add tests for ML powered queries 0.3.0 and CLI 2.9.3

This commit is contained in:
tombolton 2022-06-13 15:46:39 +01:00 committed by Tom Bolton
parent f8f4c0b33e
commit a568674c69
3 changed files with 27 additions and 1 deletions

View file

@ -925,4 +925,10 @@ const mlPoweredQueriesMacro = ava_1.default.macro({
(0, ava_1.default)(mlPoweredQueriesMacro, "2.9.0", true, undefined, "security-and-quality", "~0.2.0");
// Test that we don't inject an ML-powered query pack if the user has already specified one.
(0, ava_1.default)(mlPoweredQueriesMacro, "2.9.0", true, "codeql/javascript-experimental-atm-queries@0.0.1", "security-and-quality", "0.0.1");
// Test that the ~0.3.0 version of ML-powered queries are run on non-Windows platforms running
// `security-extended` on version 2.9.3+ of the CodeQL CLI.
(0, ava_1.default)(mlPoweredQueriesMacro, "2.9.3", true, undefined, "security-extended", process.platform === "win32" ? undefined : "~0.3.0");
// Test that ML-powered queries are run on all platforms running `security-and-quality` on CodeQL
// CLI 2.9.3+.
(0, ava_1.default)(mlPoweredQueriesMacro, "2.9.3", true, undefined, "security-and-quality", "~0.3.0");
//# sourceMappingURL=config-utils.test.js.map

File diff suppressed because one or more lines are too long

View file

@ -1865,3 +1865,23 @@ test(
"security-and-quality",
"0.0.1"
);
// Test that the ~0.3.0 version of ML-powered queries are run on non-Windows platforms running
// `security-extended` on version 2.9.3+ of the CodeQL CLI.
test(
mlPoweredQueriesMacro,
"2.9.3",
true,
undefined,
"security-extended",
process.platform === "win32" ? undefined : "~0.3.0"
);
// Test that ML-powered queries are run on all platforms running `security-and-quality` on CodeQL
// CLI 2.9.3+.
test(
mlPoweredQueriesMacro,
"2.9.3",
true,
undefined,
"security-and-quality",
"~0.3.0"
);