Hack to add Graphite namespace to the file name of latest tests (#3660)

This commit is contained in:
Peter Hedenskog 2022-05-20 22:10:08 +02:00 committed by GitHub
parent 62a6d8f1b2
commit 46c626d577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 7 deletions

View File

@ -49,13 +49,17 @@ module.exports = {
// This is a hack to get the same name as in Grafana, meaning we can
// generate the path to the URL there
const name = graphiteUtil.getURLAndGroup(
options,
message.group,
message.url,
this.options.graphite.includeQueryParams,
this.alias
);
const name =
(options.copyLatestFilesToBaseGraphiteNamespace
? `${options.graphite.namespace}.`
: '') +
graphiteUtil.getURLAndGroup(
options,
message.group,
message.url,
this.options.graphite.includeQueryParams,
this.alias
);
const connectivity = graphiteUtil.getConnectivity(options);
if (this.useScreenshots) {