mirror of https://github.com/apache/archiva.git
Merged /archiva/trunk:r899478-909070
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909202 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
commit
96fb5280ef
|
@ -19,8 +19,8 @@ Upgrading Archiva
|
|||
Because of the changes in the search implementation starting in 1.2, a few additional steps need to be performed when upgrading Archiva from 1.1.x to
|
||||
1.2.x. Since the format of the index has changed in 1.2.x, the old index directory (which is located at <<</path/to/repo/.index>>> by default) needs to
|
||||
be removed. And in order for the artifacts in the repository to be indexed again, the last modified date of the artifacts need to be updated.
|
||||
To do this, you can force Archiva to scan all the artifacts by ticking the 'Process All Artifacts' checkbox then clicking the 'Scan Repository Now'
|
||||
button in the Repositories page. Take note though that this feature is only available starting with version 1.2.3. Otherwise, you must execute
|
||||
To do this, you can force Archiva to scan all the artifacts by ticking the <<<Process All Artifacts>>> checkbox then clicking the <<<Scan Repository Now>>>
|
||||
button in the Repositories page. Take note though that this feature is only available starting with version 1.3. Otherwise, you must execute
|
||||
<<find [REPOSITORY_DIRECTORY_NAME] | xargs touch>> at the base directory where the repository resides and then force execute the repository scanning so
|
||||
that the new index will be generated.
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0"?>
|
||||
<document>
|
||||
<properties>
|
||||
<title>Audit Log Report</title>
|
||||
<author email="oching@apache.org">Maria Odea Ching</author>
|
||||
</properties>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<section name="Audit Log Report">
|
||||
<div style="text-align: center">
|
||||
<img src="../images/tour/audit-log.png" width="640" height="401" alt="" />
|
||||
<p>
|
||||
Archiva provides a user interface for querying audit logs. The current
|
||||
implementation only covers upload/deploy actions but will include other
|
||||
actions such as artifact delete, repository configuration and more in the future.
|
||||
</p>
|
||||
<p>
|
||||
<a href="reports.html">Previous: Integrity Reports</a> |
|
||||
<strong>Audit Log Report</strong> |
|
||||
<a href="maintenance.html">Next: Maintenance</a>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
|
@ -91,10 +91,16 @@ table.bodyTable tr.b {
|
|||
9. Integrity Reports
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="audit-log.html">
|
||||
<img src="../images/tour/audit-log.png" width="150" height="93" style="border: 1px solid silver; margin-left: 0.25em; margin-bottom: 0.25em" alt="" /><br/>
|
||||
10. Audit Log Report
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="maintenance.html">
|
||||
<img src="../images/tour/maintenance.png" width="150" height="93" style="border: 1px solid silver; margin-left: 0.25em; margin-bottom: 0.25em" alt="" /><br/>
|
||||
10. Maintenance
|
||||
11. Maintenance
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
enable or disable these consumers.
|
||||
</p>
|
||||
<p>
|
||||
<a href="reports.html">Previous: Integrity Reports</a> |
|
||||
<a href="audit-log.html">Previous: Audit Log Report</a> |
|
||||
<strong>Maintenance</strong> |
|
||||
<a href="index.html">Next: Feature Tour</a>
|
||||
</p>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<p>
|
||||
<a href="security.html">Previous: Role-based Security</a> |
|
||||
<strong>Integrity Reports</strong> |
|
||||
<a href="maintenance.html">Next: Maintenance</a>
|
||||
<a href="audit-log.html">Next: Audit Log Report</a>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -77,6 +77,13 @@ PACKAGING1=jar
|
|||
ARTIFACTFILEPATH1=test
|
||||
REPOSITORYID1=internal
|
||||
|
||||
SNAPSHOT_GROUPID=org.apache.archiva
|
||||
SNAPSHOT_ARTIFACTID=archiva-test
|
||||
SNAPSHOT_VERSION=1.0-SNAPSHOT
|
||||
SNAPSHOT_PACKAGING=jar
|
||||
SNAPSHOT_ARTIFACTFILEPATH=test
|
||||
SNAPSHOT_REPOSITORYID=snapshots
|
||||
|
||||
# REPOSITORIES
|
||||
# Manage Repositories
|
||||
MANAGED_IDENTIFIER=testing1
|
||||
|
|
|
@ -128,4 +128,40 @@ public class AuditLogsReportTest
|
|||
assertTextPresent( "internal" );
|
||||
assertTextPresent( "admin" );
|
||||
}
|
||||
|
||||
@Test (dependsOnMethods = { "testAddArtifactValidValues", "testUserWithRepoManagerInternalRole" }, enabled = false )
|
||||
public void testViewAuditLogsViewAuditEventsForManageableRepositoriesOnly()
|
||||
{
|
||||
String groupId = getProperty( "SNAPSHOT_GROUPID" );
|
||||
String artifactId = getProperty( "SNAPSHOT_ARTIFACTID" );
|
||||
String version = getProperty( "SNAPSHOT_VERSION" );
|
||||
String repo = getProperty( "SNAPSHOT_REPOSITORYID" );
|
||||
String packaging = getProperty( "SNAPSHOT_PACKAGING" );
|
||||
|
||||
addArtifact( groupId, artifactId, version, packaging, getProperty( "SNAPSHOT_ARTIFACTFILEPATH" ), repo );
|
||||
assertTextPresent( "Artifact '" + groupId + ":" + artifactId + ":" + version +
|
||||
"' was successfully deployed to repository '" + repo + "'" );
|
||||
|
||||
clickLinkWithText( "Logout" );
|
||||
|
||||
login( getProperty( "REPOMANAGER_INTERNAL_USERNAME" ), getUserRolePassword() );
|
||||
goToAuditLogReports();
|
||||
assertAuditLogsReportPage();
|
||||
|
||||
selectValue( "repository", "all" );
|
||||
submit();
|
||||
|
||||
assertAuditLogsReportPage();
|
||||
assertTextPresent( "Results" );
|
||||
assertTextNotPresent( "No audit logs found." );
|
||||
assertTextPresent( "test-1.0.jar" );
|
||||
assertTextPresent( "Uploaded File" );
|
||||
assertTextPresent( "internal" );
|
||||
assertTextPresent( "admin" );
|
||||
|
||||
assertTextNotPresent( artifactId + "-" + version + "." + packaging );
|
||||
|
||||
clickLinkWithText( "Logout" );
|
||||
login( getProperty( "ADMIN_USERNAME" ), getProperty( "ADMIN_PASSWORD" ) );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ public class RepositoryTest
|
|||
assertRepositoriesPage();
|
||||
}
|
||||
|
||||
@Test(dependsOnMethods = { "testAddManagedRepoValidValues" } )
|
||||
public void testAddManagedRepoInvalidValues()
|
||||
{
|
||||
goToRepositoriesPage();
|
||||
|
|
|
@ -502,8 +502,11 @@ public abstract class AbstractArchivaTest
|
|||
}
|
||||
|
||||
public void goToRepositoriesPage()
|
||||
{
|
||||
if( !getTitle().equals( "Apache Archiva \\ Administration - Repositories" ) )
|
||||
{
|
||||
clickLinkWithText( "Repositories" );
|
||||
}
|
||||
assertRepositoriesPage();
|
||||
}
|
||||
|
||||
|
|
|
@ -27,8 +27,11 @@ public abstract class AbstractRepositoryTest
|
|||
{
|
||||
// Repository Groups
|
||||
public void goToRepositoryGroupsPage()
|
||||
{
|
||||
if( !getTitle().equals( "Apache Archiva \\ Administration - Repository Groups" ) )
|
||||
{
|
||||
clickLinkWithText( "Repository Groups" );
|
||||
}
|
||||
assertRepositoryGroupsPage();
|
||||
}
|
||||
|
||||
|
@ -289,7 +292,7 @@ public abstract class AbstractRepositoryTest
|
|||
|
||||
public void editManagedRepository( String fieldName, String value )
|
||||
{
|
||||
//goToRepositoriesPage();
|
||||
goToRepositoriesPage();
|
||||
clickLinkWithXPath( "//div[@id='contentArea']/div/div[5]/div[1]/a[1]/img" );
|
||||
assertPage( "Apache Archiva \\ Admin: Edit Managed Repository" );
|
||||
setFieldValue(fieldName, value);
|
||||
|
|
Loading…
Reference in New Issue