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

r/aws_m2_deployment: set deployment_id on start/stop #37581

Merged
merged 3 commits into from
May 17, 2024

Conversation

johnsonaj
Copy link
Contributor

Description

Before:

% make testacc TESTARGS="-run=TestAccM2Deployment_start" PKG=m2

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.2 test ./internal/service/m2/... -v -count 1 -parallel 20  -run=TestAccM2Deployment_nostart -timeout 360m
=== RUN   TestAccM2Deployment_start
=== PAUSE TestAccM2Deployment_start
=== CONT  TestAccM2Deployment_start
    deployment_test.go:97: Step 3/3 error: Error running apply: exit status 1

        Error: Provider returned invalid result object after apply

        After the apply operation, the provider still indicated an unknown value for
        aws_m2_deployment.test.deployment_id. All values must be known after apply,
        so this is always a bug in the provider and should be reported in the
        provider's own repository. Terraform will still save the other known object
        values in the state.
    panic.go:626: Error running post-test destroy, there may be dangling resources: operation error m2: GetDeployment, serialization failed: serialization failed: input member deploymentId must not be empty
--- FAIL: TestAccM2Deployment_nostart (2831.37s)
FAIL
FAIL	[github.com/hashicorp/terraform-provider-aws/internal/service/m2](https://github.com/hashicorp/terraform-provider-aws/internal/service/m2)	2836.723s
FAIL
make: *** [testacc] Error 1

Relations

References

Output from Acceptance Testing

After:

% make testacc TESTARGS="-run=TestAccM2Deployment_" PKG=m2

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.2 test ./internal/service/m2/... -v -count 1 -parallel 20  -run=TestAccM2Deployment_ -timeout 360m
--- PASS: TestAccM2Deployment_start (2868.05s)
--- PASS: TestAccM2Deployment_disappears (2919.10s)
--- PASS: TestAccM2Deployment_basic (2997.56s)
--- PASS: TestAccM2Deployment_update (3291.45s)
PASS
ok  	[github.com/hashicorp/terraform-provider-aws/internal/service/m2](https://github.com/hashicorp/terraform-provider-aws/internal/service/m2)	3296.872s
--- PASS: TestAccAppStreamDirectoryConfig_basic (3851.45s)
PASS
ok  	[github.com/hashicorp/terraform-provider-aws/internal/service/appstream](https://github.com/hashicorp/terraform-provider-aws/internal/service/appstream)	3856.704s

Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/S Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/m2 Issues and PRs that pertain to the m2 service. labels May 17, 2024
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label May 17, 2024
@johnsonaj johnsonaj added the bug Addresses a defect in current functionality. label May 17, 2024
@johnsonaj johnsonaj merged commit 82f193a into main May 17, 2024
37 checks passed
@johnsonaj johnsonaj deleted the b-m2_deployment_start branch May 17, 2024 18:54
@github-actions github-actions bot added this to the v5.51.0 milestone May 17, 2024
github-actions bot pushed a commit that referenced this pull request May 17, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label May 24, 2024
Copy link

This functionality has been released in v5.51.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. Thank you!

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/m2 Issues and PRs that pertain to the m2 service. size/S Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant