diff options
author | Maria Odea B. Ching <oching@apache.org> | 2008-08-21 08:14:08 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2008-08-21 08:14:08 +0000 |
commit | 1b9083f0196774cc6f3851be76a27f13c0caf724 (patch) | |
tree | 0a3fa032661c889955daf1327836579ca9d2fbfd /archiva-modules/archiva-web/archiva-webapp/src/test | |
parent | b48ffaec2d00da9b3642d08d9c7ee68342b933ad (diff) | |
download | archiva-1b9083f0196774cc6f3851be76a27f13c0caf724.tar.gz archiva-1b9083f0196774cc6f3851be76a27f13c0caf724.zip |
[MRM-839]
-updated the rss url for repositories and artifacts
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@687634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp/src/test')
2 files changed, 12 insertions, 12 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/rss/RssFeedServletTest.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/rss/RssFeedServletTest.java index df208f0b9..eed126ab2 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/rss/RssFeedServletTest.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/rss/RssFeedServletTest.java @@ -59,7 +59,7 @@ public class RssFeedServletTest throws Exception { RssFeedServlet servlet = - (RssFeedServlet) client.newInvocation( "http://localhost/rss/rss_feeds?repoId=test-repo" ).getServlet(); + (RssFeedServlet) client.newInvocation( "http://localhost/feeds/test-repo" ).getServlet(); assertNotNull( servlet ); } @@ -67,10 +67,10 @@ public class RssFeedServletTest throws Exception { RssFeedServlet servlet = - (RssFeedServlet) client.newInvocation( "http://localhost/rss/rss_feeds?repoId=test-repo" ).getServlet(); + (RssFeedServlet) client.newInvocation( "http://localhost/feeds/test-repo" ).getServlet(); assertNotNull( servlet ); - WebRequest request = new GetMethodWebRequest( "http://localhost/rss/rss_feeds?repoId=test-repo" ); + WebRequest request = new GetMethodWebRequest( "http://localhost/feeds/test-repo" ); BASE64Encoder encoder = new BASE64Encoder(); String userPass = "user1:password1"; @@ -88,10 +88,10 @@ public class RssFeedServletTest { RssFeedServlet servlet = (RssFeedServlet) client.newInvocation( - "http://localhost/rss/rss_feeds?groupId=org.apache.archiva&artifactId=artifact-two" ).getServlet(); + "http://localhost/feeds/org/apache/archiva/artifact-two" ).getServlet(); assertNotNull( servlet ); - WebRequest request = new GetMethodWebRequest( "http://localhost/rss/rss_feeds?groupId=org.apache.archiva&artifactId=artifact-two" ); + WebRequest request = new GetMethodWebRequest( "http://localhost/feeds/org/apache/archiva/artifact-two" ); BASE64Encoder encoder = new BASE64Encoder(); String userPass = "user1:password1"; @@ -109,12 +109,12 @@ public class RssFeedServletTest { RssFeedServlet servlet = (RssFeedServlet) client.newInvocation( - "http://localhost/rss/rss_feeds?invalid_param=xxx" ).getServlet(); + "http://localhost/feeds?invalid_param=xxx" ).getServlet(); assertNotNull( servlet ); try { - WebResponse response = client.getResponse( "http://localhost/rss/rss_feeds?invalid_param=xxx" ); + WebResponse response = client.getResponse( "http://localhost/feeds?invalid_param=xxx" ); } catch ( HttpException he ) { @@ -127,11 +127,11 @@ public class RssFeedServletTest { RssFeedServlet servlet = (RssFeedServlet) client.newInvocation( - "http://localhost/rss/rss_feeds?repoId=unauthorized-repo" ).getServlet(); + "http://localhost/feeds/unauthorized-repo" ).getServlet(); assertNotNull( servlet ); - WebRequest request = new GetMethodWebRequest( "http://localhost/rss/rss_feeds?repoId=unauthorized-repo" ); + WebRequest request = new GetMethodWebRequest( "http://localhost/feeds/unauthorized-repo" ); Encoder encoder = new Base64(); String userPass = "unauthUser:unauthPass"; @@ -153,11 +153,11 @@ public class RssFeedServletTest { RssFeedServlet servlet = (RssFeedServlet) client.newInvocation( - "http://localhost/rss/rss_feeds?repoId=unauthorized-repo" ).getServlet(); + "http://localhost/feeds/unauthorized-repo" ).getServlet(); assertNotNull( servlet ); - WebRequest request = new GetMethodWebRequest( "http://localhost/rss/rss_feeds?repoId=unauthorized-repo" ); + WebRequest request = new GetMethodWebRequest( "http://localhost/feeds/unauthorized-repo" ); BASE64Encoder encoder = new BASE64Encoder(); String userPass = "user1:password1"; diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/webapp/WEB-INF/feedServletTest-web.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/webapp/WEB-INF/feedServletTest-web.xml index fcdd3503f..106e9cb73 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/webapp/WEB-INF/feedServletTest-web.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/webapp/WEB-INF/feedServletTest-web.xml @@ -35,7 +35,7 @@ <servlet-mapping> <servlet-name>RssFeedServlet</servlet-name> - <url-pattern>/rss/*</url-pattern> + <url-pattern>/feeds/*</url-pattern> </servlet-mapping> <context-param> |