fix: scope envreuse artifact collection to ci plan (#2174)
This commit is contained in:
@@ -532,6 +532,9 @@ test("v03 render keeps node identity as data instead of generated structure", as
|
||||
assert.ok(generatedPaths.includes("argocd/application-v03.yaml"));
|
||||
assert.ok(generatedPaths.includes("tekton-v03/pipeline.yaml"));
|
||||
assert.ok(generatedPaths.includes("runtime-v03/external-postgres.yaml"));
|
||||
const pipeline = await readFile(path.join(outDir, "tekton-v03", "pipeline.yaml"), "utf8");
|
||||
assert.match(pipeline, /--external-service-report-dir \/workspace\/source\/service-results/u);
|
||||
assert.match(pipeline, /--ci-plan-path \/workspace\/source\/affected-services\.json/u);
|
||||
assert.ok(!generatedPaths.includes("runtime-v03/postgres.yaml"));
|
||||
for (const relativePath of generatedPaths) {
|
||||
assert.doesNotMatch(relativePath, /g14/i, `legacy node token leaked into generated path ${relativePath}`);
|
||||
|
||||
Reference in New Issue
Block a user