diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java index e559db452..3c3739832 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java +++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java @@ -247,6 +247,15 @@ public class RepositoryTest addRemoteRepository( "remoterepo", "Remote Repository Sample", "", "", "", "", "Maven 2.x Repository" ); assertTextPresent( "You must enter a url." ); } + + @Test( dependsOnMethods = { "testAddRemoteRepoNullURL" } ) + public void testAddProxyConnectorValidValues() throws Exception + { + getSelenium().open( "/archiva/admin/addProxyConnector.action" ); + addProxyConnector( "(direct connection)", "internal", "remoterepo" ); + assertTextPresent( "remoterepo" ); + assertTextPresent( "Remote Repository Sample" ); + } @Test( dependsOnMethods = { "testDeleteManageRepo" } ) public void testAddRemoteRepoValidValues() diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractRepositoryTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractRepositoryTest.java index 52dfd2089..13b48f43d 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractRepositoryTest.java +++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractRepositoryTest.java @@ -167,6 +167,7 @@ public abstract class AbstractRepositoryTest selectValue( "connector.proxyId", networkProxy ); selectValue( "connector.sourceRepoId", managedRepo ); selectValue( "connector.targetRepoId", remoteRepo ); + clickButtonWithValue( "Add Proxy Connector" ); } public void deleteProxyConnector() diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/proxyConnectorForm.jspf b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/proxyConnectorForm.jspf index 2fb43d9a0..01ad6149c 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/proxyConnectorForm.jspf +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/proxyConnectorForm.jspf @@ -48,7 +48,7 @@