Skip to content

test: use non-destructive runner for readonly suite - #73

Merged
bryce-lynn-nttd merged 1 commit into
mainfrom
fix/readonly-nondestructive-runner
Jul 6, 2026
Merged

test: use non-destructive runner for readonly suite#73
bryce-lynn-nttd merged 1 commit into
mainfrom
fix/readonly-nondestructive-runner

Conversation

@bryce-lynn-nttd

Copy link
Copy Markdown
Contributor

What

The tests/post_deploy_functional_readonly suite called lib.RunSetupTestTeardown, which applies and destroys infrastructure — so the "read-only" suite was not actually read-only. This switches it to lib.RunNonDestructiveTest.

Why it was invisible

make test excludes post_deploy_functional_readonly (go list ./tests/... | grep -v post_deploy_functional_readonly), so CI never runs this suite and the wrong runner passed unnoticed. Background: launchbynttdata/launch-workflows#92.

Scope / safety

  • One-line change. The testimpl function passed is unchanged and already satisfies the TestComposable* requirement of RunNonDestructiveTest.
  • This is the proven-correct pairing used by passing modules across the fleet.

Part of a fleet-wide cleanup of converted-cohort "wrong runner" readonly suites (see #36 for the pilot).

Generated with Claude Code

The post_deploy_functional_readonly suite called lib.RunSetupTestTeardown,
which applies and destroys infrastructure -- so the 'read-only' suite was
not actually read-only. Switch it to lib.RunNonDestructiveTest. The testimpl
function is unchanged and already satisfies the TestComposable* requirement.

CI never executes this suite (make test excludes post_deploy_functional_readonly),
so this defect was invisible. Background: launchbynttdata/launch-workflows#92.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bryce-lynn-nttd
bryce-lynn-nttd requested a review from a team as a code owner June 29, 2026 22:38
@github-actions github-actions Bot added the test label Jun 29, 2026

@ben-vaughan-nttd ben-vaughan-nttd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the one-line readonly suite runner change. This correctly switches the post_deploy_functional_readonly test from lib.RunSetupTestTeardown to lib.RunNonDestructiveTest, which matches the intended non-destructive behavior for readonly Terratest packages.

No issues found. Checks are passing.

Note: This pull request review was generated by Codex.

@bryce-lynn-nttd
bryce-lynn-nttd merged commit 67f88d8 into main Jul 6, 2026
18 checks passed
@bryce-lynn-nttd
bryce-lynn-nttd deleted the fix/readonly-nondestructive-runner branch July 6, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants