public abstract class AbstractAnalyticsClientIntegrationTest extends Object
| Constructor and Description |
|---|
AbstractAnalyticsClientIntegrationTest(String baseUrl,
String username,
String password,
String eventName,
String attributeName,
String globalEventName,
String globalEventAttribute) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
findWhitelistedEvent(String expectedEventName) |
void |
setUp() |
void |
testEnableAnalytics() |
void |
testEventAttributeIsFilteredForNonwhitelistedWords() |
void |
testGloballyWhitelistedAttributeIsNotFilteredForNonWhitelistedWords() |
void |
testNonWhitelistedEventIsNotPublished() |
void |
testUploadAnalytics() |
void |
testWhitelistContainsAnalyticsClientAttributes() |
void |
testWhitelistedEventDoesNotPublishUnlistedAttribute() |
void |
testWhitelistedEventIsPublished() |
public AbstractAnalyticsClientIntegrationTest(String baseUrl, String username, String password, String eventName, String attributeName, String globalEventName, String globalEventAttribute)
baseUrl - Base URL of your product, including the port and context path. E.g. "http://localhost:7990/bitbucket"username - Username of an administratorpassword - Password for the username giveneventName - Any event name that exists in a whitelist for the product.
E.g. "analytics.stash.base.data" from analytics-client/src/main/resources/whitelist/analytics_client_whitelist.json
Note: it just has to be an event that is allowed in your product i.e. is in a whitelist.json file somewhere
not necessarily in the analytics plugin whitelist.attributeName - An attribute associated with the above event name. E.g. "userCount"globalEventName - An event name that exists in the global whitelist:
https://bitbucket.org/atlassian/analytics-whitelist/src/master/src/main/resources/?at=master
E.g. "nps.survey.submit"globalEventAttribute - An attribute associated with the above event name. E.g. "comment"public void setUp()
public void testEnableAnalytics()
public void testUploadAnalytics()
public void testWhitelistContainsAnalyticsClientAttributes()
public void testWhitelistedEventIsPublished()
public void testNonWhitelistedEventIsNotPublished()
public void testWhitelistedEventDoesNotPublishUnlistedAttribute()
public void testEventAttributeIsFilteredForNonwhitelistedWords()
public void testGloballyWhitelistedAttributeIsNotFilteredForNonWhitelistedWords()
Copyright © 2018 Atlassian. All rights reserved.