Class LegacyRemoteAuditServiceHelper
- java.lang.Object
-
- com.atlassian.confluence.it.audit.impl.LegacyRemoteAuditServiceHelper
-
@ExperimentalApi public class LegacyRemoteAuditServiceHelper extends Object
Helper class to set up REST context and run assertions on audit records, using the old auditing REST API. It's not going away, because we have to support the old API forever, which means we have to run some tests against it.Most likely you should use
RemoteAuditServiceHelperwhich queries new REST API instead.
-
-
Constructor Summary
Constructors Constructor Description LegacyRemoteAuditServiceHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull AuditRecordassertSingleAuditRecord(String affectedObjectName, String summary)voidsetupAuditService(AuthenticatedWebResourceProvider provider, com.atlassian.confluence.test.rest.api.ConfluenceRestClient rest)voidtearDownAuditService(AuthenticatedWebResourceProvider provider)
-
-
-
Method Detail
-
setupAuditService
public void setupAuditService(AuthenticatedWebResourceProvider provider, com.atlassian.confluence.test.rest.api.ConfluenceRestClient rest)
-
tearDownAuditService
public void tearDownAuditService(AuthenticatedWebResourceProvider provider) throws InterruptedException
- Throws:
InterruptedException
-
assertSingleAuditRecord
public @NonNull AuditRecord assertSingleAuditRecord(String affectedObjectName, String summary) throws Exception
- Throws:
Exception
-
-