mirror of https://github.com/apache/archiva.git
[MRM-1145] RSS tests do not correctly check responses
This commit is contained in:
parent
84d5a61c80
commit
31cc47c313
|
@ -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" );
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in New Issue