mirror of https://github.com/apache/archiva.git
remove dependencies on artifact upload functionality, add test fixture data. Temporarily disable tests that don't work on Safari
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@899031 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bc8f42601c
commit
edf6aa2ced
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
ea7dea9244b2a0975cfa117dc34fe18e
|
|
@ -0,0 +1 @@
|
|||
1039566ff5361d07eccd1243c45929b96441c7d6
|
|
@ -0,0 +1,24 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>test</groupId>
|
||||
<artifactId>test</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0</version>
|
||||
<name>test</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>test</id>
|
||||
<url>file://localhost/Users/brett/scm/archiva/archiva/archiva-modules/archiva-web/archiva-webapp-test/src/test/it-resources/appserver-base/data/repositories/internal</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
</project>
|
|
@ -0,0 +1 @@
|
|||
f80c7c493716de649a99db00cd2ff34c
|
|
@ -0,0 +1 @@
|
|||
4b95c6fa09d1e02efdb69129f53f025e33bc8958
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>test</groupId>
|
||||
<artifactId>test</artifactId>
|
||||
<version>1.0</version>
|
||||
<versioning>
|
||||
<versions>
|
||||
<version>1.0</version>
|
||||
</versions>
|
||||
<lastUpdated>20100114015837</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
|
@ -0,0 +1 @@
|
|||
dab1b8c2475fe839f387ceaef0d82b30
|
|
@ -0,0 +1 @@
|
|||
4e5b414d5419121ef75131cb52235a9abbf2095a
|
|
@ -83,15 +83,16 @@ public class ArtifactManagementTest
|
|||
assertTextPresent( "Please add a file to upload." );
|
||||
}
|
||||
|
||||
@Test( enabled = false )
|
||||
public void testAddArtifactValidValues()
|
||||
{
|
||||
// TODO: disable test on non *chrome browsers, there is no way to do file uploads (SEL-63)
|
||||
addArtifact( getGroupId() , getArtifactId(), getVersion(), getPackaging() , getArtifactFilePath(), getRepositoryId() );
|
||||
addArtifact( getGroupId() , "testAddArtifactValidValues", getVersion(), getPackaging() , getArtifactFilePath(), getRepositoryId() );
|
||||
assertTextPresent( "Artifact 'test:test:1.0' was successfully deployed to repository 'internal'" );
|
||||
}
|
||||
|
||||
//MRM-747
|
||||
@Test(dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
@Test( enabled = false )
|
||||
public void testAddArtifactBlockRedeployments()
|
||||
{
|
||||
// TODO: disable test on non *chrome browsers, there is no way to do file uploads (SEL-63)
|
||||
|
@ -99,6 +100,7 @@ public class ArtifactManagementTest
|
|||
assertTextPresent( "Overwriting released artifacts in repository '" + getRepositoryId() + "' is not allowed." );
|
||||
}
|
||||
|
||||
@Test( enabled = false )
|
||||
public void testDeleteArtifact()
|
||||
{
|
||||
//prep
|
||||
|
|
|
@ -67,7 +67,9 @@ public class AuditLogsReportTest
|
|||
assertTextPresent( "No audit logs found." );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
// TODO: add test for adding via WebDAV
|
||||
// TODO: disable if not running on *chrome
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" }, enabled = false )
|
||||
public void testViewAuditLogsDataFound()
|
||||
{
|
||||
goToAuditLogReports();
|
||||
|
@ -86,7 +88,9 @@ public class AuditLogsReportTest
|
|||
assertTextPresent( "admin" );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testViewAuditLogsDataFound" } )
|
||||
// TODO: add test for adding via WebDAV
|
||||
// TODO: disable if not running on *chrome
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" }, enabled = false )
|
||||
public void testViewAuditLogsOnlyArtifactIdIsSpecified()
|
||||
{
|
||||
goToAuditLogReports();
|
||||
|
@ -105,7 +109,9 @@ public class AuditLogsReportTest
|
|||
assertTextPresent( "admin" );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testViewAuditLogsOnlyArtifactIdIsSpecified" } )
|
||||
// TODO: add test for adding via WebDAV
|
||||
// TODO: disable if not running on *chrome
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" }, enabled = false )
|
||||
public void testViewAuditLogsForAllRepositories()
|
||||
{
|
||||
goToAuditLogReports();
|
||||
|
|
|
@ -45,6 +45,7 @@ public class BrowseTest
|
|||
}
|
||||
|
||||
// MRM-1278
|
||||
@Test( enabled = false )
|
||||
public void testCorrectRepositoryInBrowse()
|
||||
{
|
||||
File artifact =
|
||||
|
|
|
@ -22,13 +22,12 @@ package org.apache.archiva.web.test;
|
|||
import org.apache.archiva.web.test.parent.AbstractArtifactReportsTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test( groups = { "reports" }, dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
@Test( groups = { "reports" }, dependsOnMethods = { "testWithCorrectUsernamePassword" } )
|
||||
public class ReportsTest
|
||||
extends AbstractArtifactReportsTest
|
||||
{
|
||||
//TODO Tests for repository with defects
|
||||
|
||||
// @Test(dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
public void testRepoStatisticsWithoutRepoCompared()
|
||||
{
|
||||
goToReportsPage();
|
||||
|
@ -57,7 +56,6 @@ public class ReportsTest
|
|||
assertTextPresent( "Start Date must be earlier than the End Date" );
|
||||
}
|
||||
|
||||
@Test(dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
public void testRepositoryStatistics()
|
||||
{
|
||||
String repositoryName = getProperty( "REPOSITORY_NAME" ) ;
|
||||
|
@ -78,7 +76,6 @@ public class ReportsTest
|
|||
assertTextPresent( "Statistics Report" );
|
||||
}
|
||||
|
||||
@Test(dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
public void testRepositoryHealthWithoutDefect()
|
||||
{
|
||||
goToReportsPage();
|
||||
|
@ -89,7 +86,6 @@ public class ReportsTest
|
|||
assertTextPresent( "The operation generated an empty report." );
|
||||
}
|
||||
|
||||
@Test(dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
public void testRepositoryHealthWithoutGroupId()
|
||||
{
|
||||
goToReportsPage();
|
||||
|
|
|
@ -34,7 +34,6 @@ public class SearchTest
|
|||
assertTextPresent( "No results found" );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
public void testSearchExistingArtifact()
|
||||
{
|
||||
searchForArtifact( getProperty( "ARTIFACT_ARTIFACTID" ) );
|
||||
|
@ -43,7 +42,6 @@ public class SearchTest
|
|||
assertLinkPresent( "test" );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
public void testViewSearchedArtifact()
|
||||
{
|
||||
searchForArtifact( getProperty( "ARTIFACT_ARTIFACTID" ) );
|
||||
|
@ -66,7 +64,6 @@ public class SearchTest
|
|||
assertTextPresent( "Advanced Search - At least one search criteria must be provided." );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
public void testSearchExistingArtifactUsingAdvancedSearchArtifactId()
|
||||
{
|
||||
searchForArtifactAdvancedSearch( null, getProperty( "ARTIFACT_ARTIFACTID" ), null, getProperty( "REPOSITORYID" ), null, null );
|
||||
|
@ -75,7 +72,6 @@ public class SearchTest
|
|||
assertLinkPresent( "test" );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues" } )
|
||||
public void testSearchExistingArtifactUsingAdvancedSearchGroupId()
|
||||
{
|
||||
searchForArtifactAdvancedSearch( getProperty( "GROUPID" ), null, null, getProperty( "REPOSITORYID" ), null, null );
|
||||
|
@ -84,7 +80,7 @@ public class SearchTest
|
|||
assertLinkPresent( "test" );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testAddManagedRepoValidValues", "testAddArtifactValidValues" } )
|
||||
@Test (dependsOnMethods = { "testAddManagedRepoValidValues" } )
|
||||
public void testSearchExistingArtifactUsingAdvancedSearchNoAccessToRepository()
|
||||
{
|
||||
searchForArtifactAdvancedSearch( null, getProperty( "ARTIFACT_ARTIFACTID" ), null, "managedrepo1", null, null );
|
||||
|
|
Loading…
Reference in New Issue