mirror of
https://github.com/apache/archiva.git
synced 2025-02-07 02:29:23 +00:00
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:
parent
23de2a49fb
commit
b0bf4f1689
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user