mirror of https://github.com/apache/archiva.git
[MRM-1475] Add proxy connector is broken
submitted by Greg Michael Meneses o removed id attribute in struts property tag in proxy connector form which was removed in struts 2.1.x o added selenium test for add proxy connector git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1126927 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eead981577
commit
af0ae64f42
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
</td>
|
||||
<td>
|
||||
<c:set var="value">
|
||||
<s:property id="value" value="%{#attr.connector.policies[#attr.policy.key]}" default="%{#attr.policy.value.defaultOption}" />
|
||||
<s:property value="%{#attr.connector.policies[#attr.policy.key]}" default="%{#attr.policy.value.defaultOption}" />
|
||||
</c:set>
|
||||
<s:select name="connector.policies['%{#attr.policy.key}']"
|
||||
list="%{#attr.policyMap[#attr.policy.key].options}"
|
||||
|
|
Loading…
Reference in New Issue