[MRM-1145] RSS tests do not correctly check responses

This commit is contained in:
Olivier Lamy 2014-10-14 15:45:31 +11:00
parent 84d5a61c80
commit 31cc47c313
3 changed files with 4 additions and 8 deletions

View File

@ -447,14 +447,10 @@ public class RssFeedServletTest
}
@Ignore
@Test
public void testInvalidAuthenticationRequest()
throws Exception
{
//RssFeedServlet servlet =
// (RssFeedServlet) client.newInvocation( "http://localhost/feeds/unauthorized-repo" ).getServlet();
//WebRequest request = new GetMethodWebRequest( "http://localhost/feeds/unauthorized-repo" );
MockHttpServletRequest request = new MockHttpServletRequest();
request.setRequestURI( "/feeds/unauthorized-repo" );

View File

@ -96,11 +96,11 @@ public class SecuritySystemStub
}
@Override
public AuthorizationResult authorize( SecuritySession arg0, String arg1, String arg2 )
public AuthorizationResult authorize( SecuritySession arg0, String permission, String repositoryId )
throws AuthorizationException
{
AuthorizationResult result = new AuthorizationResult( true, arg1, null );
AuthorizationResult result = new AuthorizationResult( this.repoIds.contains( repositoryId ), permission, null );
return result;
}

View File

@ -19,7 +19,7 @@
-->
<configuration status="debug">
<configuration> <!-- status="debug"> -->
<appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="%d [%t] %-5p %c %x - %m%n"/>