Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ public class DataUpdateServiceLoggingTests {
// 13 September 2020, 12:26:40 UTC.
private static final long FILE_MODIFIED_MILLIS = 1600000000000L;
// A license key of the length and characters the Distributor issues.
private static final String LICENSE_KEY = "QF8ZR2KD7NMB4XWT9HJC3LPA";
private static final String FULL_KEY = "QF8ZR2KD7NMB4XWT9HJC3LPA";
private static final String MASKED_KEY = "********************3LPA";
private static final String KEYED_URL = UPDATE_URL + "?LicenseKeys=" +
LICENSE_KEY + "&Download=True&Type=HashV41";
FULL_KEY + "&Download=True&Type=HashV41";
private static final String MASKED_URL = UPDATE_URL + "?LicenseKeys=" +
MASKED_KEY + "&Download=True&Type=HashV41";

Expand Down Expand Up @@ -430,7 +430,7 @@ private AspectEngineDataFileDefault newKeyedDataFile(boolean inMemory) {
AspectEngineDataFileDefault file = newDataFile(inMemory, false, false);
DataFileConfiguration config = file.getConfiguration();
config.setDataUpdateLicenseKeys(
Collections.singletonList(LICENSE_KEY));
Collections.singletonList(FULL_KEY));
config.setUrlFormatter(dataFile -> KEYED_URL);
return file;
}
Expand All @@ -449,7 +449,7 @@ private void assertKeyOnlyMasked() {
}
assertFalse(
"The license key is in full in: " + text,
text.contains(LICENSE_KEY));
text.contains(FULL_KEY));
}
}

Expand Down
Loading