summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2009-11-22 11:26:06 +0000
committerMaria Odea B. Ching <oching@apache.org>2009-11-22 11:26:06 +0000
commit860d4dcfb0da9e634de8250940c54537f6900598 (patch)
tree2b2ea324aa05f60958f48f620a94a167e5789626
parent27cb4991b1f340519d11bdc403c08df6825c5e07 (diff)
downloadarchiva-860d4dcfb0da9e634de8250940c54537f6900598.tar.gz
archiva-860d4dcfb0da9e634de8250940c54537f6900598.zip
[MRM-747] Archiva should prevent re-deployment of released or non-snapshot versioned artifacts
o added selenium test git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@883059 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java
index a0104e336..ca03471de 100644
--- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java
+++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java
@@ -88,6 +88,14 @@ public class ArtifactManagementTest
addArtifact( getGroupId() , getArtifactId(), getVersion(), getPackaging() , getArtifactFilePath(), getRepositoryId() );
assertTextPresent( "Artifact 'test:test:1.0' was successfully deployed to repository 'internal'" );
}
+
+ //MRM-747
+ @Test(dependsOnMethods = { "testAddArtifactValidValues" } )
+ public void testAddArtifactBlockRedeployments()
+ {
+ addArtifact( getGroupId() , getArtifactId(), getVersion(), getPackaging() , getArtifactFilePath(), getRepositoryId() );
+ assertTextPresent( "Overwriting released artifacts in repository '" + getRepositoryId() + "' is not allowed." );
+ }
public void testAddArtifactValidValues1()
{