Skip to content

Test proxy data source against Kernel - #108

Merged
IlyaasK merged 1 commit into
mainfrom
hypeship/reland-proxy-data-source-acceptance
Jul 29, 2026
Merged

Test proxy data source against Kernel#108
IlyaasK merged 1 commit into
mainfrom
hypeship/reland-proxy-data-source-acceptance

Conversation

@IlyaasK

@IlyaasK IlyaasK commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add live acceptance coverage for kernel_proxy lookup by ID and name
  • verify project scoping, durable datacenter metadata, masked fields, and a no-drift plan
  • add the proxy data-source package to the manual acceptance workflow matrix

Why

PR #93 was merged into the already-merged #92 head branch instead of main, so its code did not reach the canonical branch. This PR reapplies only that reviewed two-file change directly onto current main.

Scope

This adds acceptance coverage only. It does not change provider behavior, proxy CRUD behavior, Terraform schema, or runtime/session operations.

Verification

  • gofmt -l cmd internal
  • go test -short -timeout=2m ./...
  • go vet ./...
  • terraform fmt -check -recursive examples

Live acceptance remains opt-in through the manual acceptance workflow.


Note

Low Risk
Test and CI matrix changes only; no provider schema or runtime behavior is modified.

Overview
Adds live acceptance tests for kernel_proxy and wires them into the manual Acceptance workflow matrix (project ID required).

TestAccProxyDataSourceByIDAndName creates a datacenter proxy via the API, then reads it through Terraform by id + project_id and by name. Assertions cover expected metadata (type, protocol), project_id only on the ID lookup, absence of sensitive/runtime fields (username, password, status, ip_address), and a plan-only step to confirm no drift. Fixture helpers register cleanup and verify the proxy is gone after the test.

Reviewed by Cursor Bugbot for commit 4f9b0d4. Bugbot is set up for automated code reviews on this repo. Configure here.

@IlyaasK
IlyaasK merged commit 0165746 into main Jul 29, 2026
2 checks passed
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.

1 participant