Skip to content

Support Get and Update of TTL policies#1291

Draft
sana-faraz wants to merge 2 commits intomainfrom
TokenTTLPolicy
Draft

Support Get and Update of TTL policies#1291
sana-faraz wants to merge 2 commits intomainfrom
TokenTTLPolicy

Conversation

@sana-faraz
Copy link

Description

Testing plan

External links

Output from tests

Including output from tests may require access to a TFE instance. Ignore this section if you have no environment to test against.

$ TFE_ADDRESS="https://example" TFE_TOKEN="example" go test ./... -v -run TestFunctionsAffectedByChange

...

Rollback Plan

Changes to Security Controls

@datadog-terraform-cloud-hashicorp
Copy link

datadog-terraform-cloud-hashicorp bot commented Mar 11, 2026

⚠️ Tests

Fix all issues with Cursor

⚠️ Warnings

🧪 4 Tests failed

TestOrganizationTokenTTLPoliciesList from organization_token_ttl_policy_integration_test.go (Datadog) (Fix with Cursor)
failed test
TestOrganizationTokenTTLPoliciesList/with_valid_organization from organization_token_ttl_policy_integration_test.go (Datadog) (Fix with Cursor)

	Error Trace:	/home/runner/work/go-tfe/go-tfe/organization_token_ttl_policy_integration_test.go:24
	            				/home/runner/go/pkg/mod/github.com/!data!dog/dd-trace-go/v2@v2.6.0/internal/civisibility/integrations/gotesting/instrumentation_orchestrion.go:289
	            				/home/runner/go/pkg/mod/github.com/!data!dog/dd-trace-go/v2@v2.6.0/internal/civisibility/integrations/gotesting/instrumentation_orchestrion.go:293
	Error:      	Received unexpected error:
	            	resource not found
	Test:       	TestOrganizationTokenTTLPoliciesList/with_valid_organization

TestOrganizationTokenTTLPoliciesUpdate_RoundTrip from organization_token_ttl_policy_integration_test.go (Datadog) (Fix with Cursor)
failed test
TestOrganizationTokenTTLPoliciesUpdate_RoundTrip/create,_list,_and_verify from organization_token_ttl_policy_integration_test.go (Datadog) (Fix with Cursor)

	Error Trace:	/home/runner/work/go-tfe/go-tfe/organization_token_ttl_policy_integration_test.go:195
	            				/home/runner/go/pkg/mod/github.com/!data!dog/dd-trace-go/v2@v2.6.0/internal/civisibility/integrations/gotesting/instrumentation_orchestrion.go:289
	            				/home/runner/go/pkg/mod/github.com/!data!dog/dd-trace-go/v2@v2.6.0/internal/civisibility/integrations/gotesting/instrumentation_orchestrion.go:293
	Error:      	Received unexpected error:
	            	resource not found
	Test:       	TestOrganizationTokenTTLPoliciesUpdate_RoundTrip/create,_list,_and_verify

View all

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: aa10301 | Docs | Was this helpful? Give us feedback!

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