Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds DurationType and uses it for assume role duration #193

Merged
merged 1 commit into from
Sep 29, 2021

Conversation

gdavison
Copy link
Contributor

Creates custom DurationType and replaces AssumeRole.DurationSeconds with AssumeRole.Duration

Reference hashicorp/aws-sdk-go-base#84

@ewbankkit ewbankkit self-assigned this Sep 29, 2021
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% go test -v ./internal/types 
=== RUN   TestDurationTypeValueFromTerraform
=== PAUSE TestDurationTypeValueFromTerraform
=== RUN   TestDurationTypeValidate
=== PAUSE TestDurationTypeValidate
=== CONT  TestDurationTypeValueFromTerraform
=== CONT  TestDurationTypeValidate
=== RUN   TestDurationTypeValueFromTerraform/valid_duration
=== RUN   TestDurationTypeValidate/valid_string
=== RUN   TestDurationTypeValidate/invalid_string
=== RUN   TestDurationTypeValidate/not_a_string
=== RUN   TestDurationTypeValidate/unknown_string
=== RUN   TestDurationTypeValidate/null_string
--- PASS: TestDurationTypeValidate (0.00s)
    --- PASS: TestDurationTypeValidate/valid_string (0.00s)
    --- PASS: TestDurationTypeValidate/invalid_string (0.00s)
    --- PASS: TestDurationTypeValidate/not_a_string (0.00s)
    --- PASS: TestDurationTypeValidate/unknown_string (0.00s)
    --- PASS: TestDurationTypeValidate/null_string (0.00s)
=== RUN   TestDurationTypeValueFromTerraform/invalid_duration
=== RUN   TestDurationTypeValueFromTerraform/null_value
=== RUN   TestDurationTypeValueFromTerraform/unknown_value
--- PASS: TestDurationTypeValueFromTerraform (0.00s)
    --- PASS: TestDurationTypeValueFromTerraform/valid_duration (0.00s)
    --- PASS: TestDurationTypeValueFromTerraform/invalid_duration (0.00s)
    --- PASS: TestDurationTypeValueFromTerraform/null_value (0.00s)
    --- PASS: TestDurationTypeValueFromTerraform/unknown_value (0.00s)
PASS
ok  	github.com/hashicorp/terraform-provider-awscc/internal/types	0.844s

@ewbankkit ewbankkit removed their assignment Sep 29, 2021
@gdavison gdavison merged commit 041f107 into main Sep 29, 2021
@gdavison gdavison deleted the add-duration-type branch September 29, 2021 17:33
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.

2 participants