-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/codeartifact_repository - support external connection #15569
r/codeartifact_repository - support external connection #15569
Conversation
=== CONT TestAccAWSCodeArtifactRepository_externalConnection
resource_aws_codeartifact_repository_test.go:214: Step 3/4 error: Check failed: Check 2/2 error: aws_codeartifact_repository.test: Attribute 'external_connections.#' expected "0", got "1"
--- FAIL: TestAccAWSCodeArtifactRepository_externalConnection (50.75s) With external_connections = [] In these cases we normally have something like
in the documentation for the attribute. |
@ewbankkit, TF doesn't like this config. its a config block rather than a list so I get errors for I would opt to remove computed and add a comment that it may be destructive for external connections created out side of this resource. thoughts? |
@DrFaust92 Yes, changing to non- |
test is passing without computed. let me know if the wording in the docs is a bit weird. I couldn't think of a better way to phrase it. |
0aaceb4
to
01196e6
Compare
@DrFaust92 I suggest moving the Note that setting an external connection may replace any external connections created outside of terraform phrase to the release notes as this is the normal behavior for attributes and is just changing for this release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSCodeArtifactRepository_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSCodeArtifactRepository_ -timeout 120m
=== RUN TestAccAWSCodeArtifactRepository_basic
=== PAUSE TestAccAWSCodeArtifactRepository_basic
=== RUN TestAccAWSCodeArtifactRepository_owner
=== PAUSE TestAccAWSCodeArtifactRepository_owner
=== RUN TestAccAWSCodeArtifactRepository_description
=== PAUSE TestAccAWSCodeArtifactRepository_description
=== RUN TestAccAWSCodeArtifactRepository_upstreams
=== PAUSE TestAccAWSCodeArtifactRepository_upstreams
=== RUN TestAccAWSCodeArtifactRepository_externalConnection
=== PAUSE TestAccAWSCodeArtifactRepository_externalConnection
=== RUN TestAccAWSCodeArtifactRepository_disappears
=== PAUSE TestAccAWSCodeArtifactRepository_disappears
=== CONT TestAccAWSCodeArtifactRepository_basic
=== CONT TestAccAWSCodeArtifactRepository_externalConnection
=== CONT TestAccAWSCodeArtifactRepository_disappears
=== CONT TestAccAWSCodeArtifactRepository_upstreams
=== CONT TestAccAWSCodeArtifactRepository_description
=== CONT TestAccAWSCodeArtifactRepository_owner
--- PASS: TestAccAWSCodeArtifactRepository_disappears (37.73s)
--- PASS: TestAccAWSCodeArtifactRepository_basic (41.39s)
--- PASS: TestAccAWSCodeArtifactRepository_owner (42.68s)
--- PASS: TestAccAWSCodeArtifactRepository_description (62.63s)
--- PASS: TestAccAWSCodeArtifactRepository_externalConnection (80.55s)
--- PASS: TestAccAWSCodeArtifactRepository_upstreams (83.17s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 83.220s
Co-authored-by: Kit Ewbank <Kit_Ewbank@hotmail.com>
LGTM 🚀 Thanks @DrFaust92! Verified Acceptance Tests in Commercial (us-west-2) make testacc TEST=./aws TESTARGS='-run=TestAccAWSCodeArtifactRepository_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSCodeArtifactRepository_ -timeout 120m
=== RUN TestAccAWSCodeArtifactRepository_basic
=== PAUSE TestAccAWSCodeArtifactRepository_basic
=== RUN TestAccAWSCodeArtifactRepository_owner
=== PAUSE TestAccAWSCodeArtifactRepository_owner
=== RUN TestAccAWSCodeArtifactRepository_description
=== PAUSE TestAccAWSCodeArtifactRepository_description
=== RUN TestAccAWSCodeArtifactRepository_upstreams
=== PAUSE TestAccAWSCodeArtifactRepository_upstreams
=== RUN TestAccAWSCodeArtifactRepository_externalConnection
=== PAUSE TestAccAWSCodeArtifactRepository_externalConnection
=== RUN TestAccAWSCodeArtifactRepository_disappears
=== PAUSE TestAccAWSCodeArtifactRepository_disappears
=== CONT TestAccAWSCodeArtifactRepository_basic
=== CONT TestAccAWSCodeArtifactRepository_externalConnection
=== CONT TestAccAWSCodeArtifactRepository_description
=== CONT TestAccAWSCodeArtifactRepository_disappears
=== CONT TestAccAWSCodeArtifactRepository_upstreams
=== CONT TestAccAWSCodeArtifactRepository_owner
2020/10/21 14:14:57 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2020/10/21 14:14:57 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
--- PASS: TestAccAWSCodeArtifactRepository_disappears (18.39s)
--- PASS: TestAccAWSCodeArtifactRepository_basic (20.70s)
--- PASS: TestAccAWSCodeArtifactRepository_owner (21.79s)
--- PASS: TestAccAWSCodeArtifactRepository_description (34.94s)
--- PASS: TestAccAWSCodeArtifactRepository_externalConnection (48.45s)
--- PASS: TestAccAWSCodeArtifactRepository_upstreams (48.86s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 50.654s |
This has been released in version 3.12.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #13714
Release note for CHANGELOG:
Output from acceptance testing: