mirror of https://github.com/apache/archiva.git
fix the audit log tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@909433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
951639dec3
commit
be5981bf16
archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test
|
@ -81,7 +81,7 @@ public class AuditLogsReportTest
|
|||
assertAuditLogsReportPage();
|
||||
assertTextPresent( "Results" );
|
||||
assertTextNotPresent( "No audit logs found." );
|
||||
assertTextPresent( "test-1.0.jar" );
|
||||
assertTextPresent( "testAddArtifactValidValues-1.0.jar" );
|
||||
assertTextPresent( "Uploaded File" );
|
||||
assertTextPresent( "internal" );
|
||||
assertTextPresent( "admin" );
|
||||
|
@ -101,7 +101,7 @@ public class AuditLogsReportTest
|
|||
assertAuditLogsReportPage();
|
||||
assertTextPresent( "Results" );
|
||||
assertTextNotPresent( "No audit logs found." );
|
||||
assertTextPresent( "test-1.0.jar" );
|
||||
assertTextPresent( "testAddArtifactValidValues-1.0.jar" );
|
||||
assertTextPresent( "Uploaded File" );
|
||||
assertTextPresent( "internal" );
|
||||
assertTextPresent( "admin" );
|
||||
|
@ -120,7 +120,7 @@ public class AuditLogsReportTest
|
|||
assertAuditLogsReportPage();
|
||||
assertTextPresent( "Results" );
|
||||
assertTextNotPresent( "No audit logs found." );
|
||||
assertTextPresent( "test-1.0.jar" );
|
||||
assertTextPresent( "testAddArtifactValidValues-1.0.jar" );
|
||||
assertTextPresent( "Uploaded File" );
|
||||
assertTextPresent( "internal" );
|
||||
assertTextPresent( "admin" );
|
||||
|
@ -141,23 +141,23 @@ public class AuditLogsReportTest
|
|||
|
||||
clickLinkWithText( "Logout" );
|
||||
|
||||
login( getProperty( "REPOMANAGER_INTERNAL_USERNAME" ), getUserRolePassword() );
|
||||
goToAuditLogReports();
|
||||
login( getProperty( "REPOMANAGER_INTERNAL_USERNAME" ), getUserRoleNewPassword() );
|
||||
|
||||
goToAuditLogReports();
|
||||
assertAuditLogsReportPage();
|
||||
|
||||
|
||||
selectValue( "repository", "all" );
|
||||
submit();
|
||||
|
||||
|
||||
assertAuditLogsReportPage();
|
||||
assertTextPresent( "Results" );
|
||||
assertTextNotPresent( "No audit logs found." );
|
||||
assertTextPresent( "test-1.0.jar" );
|
||||
assertTextPresent( "testAddArtifactValidValues-1.0.jar" );
|
||||
assertTextPresent( "Uploaded File" );
|
||||
assertTextPresent( "internal" );
|
||||
assertTextPresent( "admin" );
|
||||
|
||||
|
||||
assertTextNotPresent( artifactId + "-" + version + "." + packaging );
|
||||
|
||||
clickLinkWithText( "Logout" );
|
||||
login( getProperty( "ADMIN_USERNAME" ), getProperty( "ADMIN_PASSWORD" ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue