Skip to content

build test scripts via tf output - #1360

Open
eschultink wants to merge 2 commits into
rc-v0.6.9from
s230-test-via-tf-output
Open

build test scripts via tf output#1360
eschultink wants to merge 2 commits into
rc-v0.6.9from
s230-test-via-tf-output

Conversation

@eschultink

Copy link
Copy Markdown
Member

Features

  • tooling to generate connector test scripts from Terraform outputs, so tests can be driven by deployed infrastructure state instead of hand-maintained script configuration.

Change implications

  • dependencies added/changed? no (not indicated by this commit; verify if new tool runtime deps were added)
  • something important to note in future release notes?
    • NOTE in CHANGELOG.md anything that will show up in terraform plan/apply that isn't obviously a no-op?
      • Unlikely from tooling-only change; confirm no Terraform module/output changes shipped with this PR.
    • breaking changes? no — new tools only; no module/example contract change indicated.

Introduce `build-test-scripts-from-output.mjs` and a thin bash wrapper that read standard Psoxy Terraform outputs and regenerate the same `test-*.sh` and `test-all.sh` scripts Terraform normally writes via `local_file`. This lets us materialize connector test scripts wherever Terraform state is available—local, CI, or Terraform Cloud—without re-running apply, and supports AWS and GCP deployments with optional `PSOXY_BASE_DIR` and `TF_WORKSPACE` overrides.
@eschultink eschultink self-assigned this Jul 28, 2026
@eschultink eschultink changed the title S230 : test via tf output build test scripts via tf output Jul 28, 2026
Comment thread tools/build-test-scripts-from-output.mjs Fixed
…ion.

- Fix CodeQL incomplete escaping by using shellSingleQuote for request bodies and webhook payloads
- Expose aws_region and psoxy_base_dir from dev AWS example outputs
- Expose psoxy_base_dir and batch_scheduler_job_id from dev GCP example outputs
- Add batch_scheduler_job_id output to gcp-webhook-collector module

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants