Remove the secrets directory flag and update fixtures

This commit is contained in:
2026-11-23 14:23:53 +00:00
parent a4491a8517
commit 6175945230
30 changed files with 146 additions and 334 deletions

View File

@@ -178,9 +178,10 @@ inputs:
seedInvocationPrerequisites(t, workspaceRoot, "polish")
configureTestSecrets(t, pipelinePath, secretsDir)
var stdout bytes.Buffer
var stderr bytes.Buffer
code := executeForTest([]string{"run", sessionID, "--stage", "polish", "--config", pipelinePath, "--campaign-file", campaignPath, "--session-file", sessionPath, "--force", "--secrets-dir", secretsDir}, &stdout, &stderr)
code := executeForTest([]string{"run", sessionID, "--stage", "polish", "--config", pipelinePath, "--campaign-file", campaignPath, "--session-file", sessionPath, "--force"}, &stdout, &stderr)
if code != 0 {
t.Fatalf("exit code = %d, want 0; stderr=%q", code, stderr.String())
}
@@ -268,13 +269,14 @@ inputs:
t.Fatalf("write session.yml: %v", err)
}
configureTestSecrets(t, pipelinePath, filepath.Join(configDir, "missing-secrets"))
var stdout bytes.Buffer
var stderr bytes.Buffer
code := executeForTest([]string{"run", "2026-05-03", "--config", pipelinePath, "--campaign-file", campaignPath, "--session-file", sessionPath, "--secrets-dir", filepath.Join(configDir, "missing-secrets")}, &stdout, &stderr)
code := executeForTest([]string{"run", "2026-05-03", "--config", pipelinePath, "--campaign-file", campaignPath, "--session-file", sessionPath}, &stdout, &stderr)
if code == 0 {
t.Fatal("exit code = 0, want non-zero")
}
if !strings.Contains(stderr.String(), "bootstrap secrets directory") {
if !strings.Contains(stderr.String(), "prepare pipeline configuration") {
t.Fatalf("stderr = %q, want secrets validation error context", stderr.String())
}
}