correct test due to changed behaviour in audit log

git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@910393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2010-02-16 04:27:33 +00:00
parent 23de2a49fb
commit b0bf4f1689
2 changed files with 5 additions and 5 deletions

View File

@ -99,12 +99,11 @@ public void testViewAuditLogsOnlyArtifactIdIsSpecified()
submit();
assertAuditLogsReportPage();
assertTextPresent( "Results" );
assertTextPresent( "If you specify an artifact ID, you must specify a group ID" );
assertTextNotPresent( "Results" );
assertTextNotPresent( "No audit logs found." );
assertTextPresent( "testAddArtifactValidValues-1.0.jar" );
assertTextPresent( "Uploaded File" );
assertTextPresent( "internal" );
assertTextPresent( "admin" );
assertTextNotPresent( "testAddArtifactValidValues-1.0.jar" );
assertTextNotPresent( "Uploaded File" );
}
// TODO: add test for adding via WebDAV

View File

@ -187,6 +187,7 @@ public String execute()
{
// Until we store the full artifact metadata in the audit event, we can't query by these individually
addActionError( "If you specify an artifact ID, you must specify a group ID" );
auditLogs = null;
return INPUT;
}