-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
VCR testing phase 1 #25587
VCR testing phase 1 #25587
Conversation
…form-plugin-sdk/helper/resource'.
…0e20a819dc8ca7be59026326d0ec8567e278'.
…andomWithPrefix'.
% make testacc TESTARGS='-run=TestAccLogsGroup_' PKG=logs ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/logs/... -v -count 1 -parallel 3 -run=TestAccLogsGroup_ -timeout 180m
=== RUN TestAccLogsGroup_basic
=== PAUSE TestAccLogsGroup_basic
=== RUN TestAccLogsGroup_nameGenerate
=== PAUSE TestAccLogsGroup_nameGenerate
=== RUN TestAccLogsGroup_namePrefix
=== PAUSE TestAccLogsGroup_namePrefix
=== RUN TestAccLogsGroup_disappears
=== PAUSE TestAccLogsGroup_disappears
=== RUN TestAccLogsGroup_tags
=== PAUSE TestAccLogsGroup_tags
=== RUN TestAccLogsGroup_kmsKey
=== PAUSE TestAccLogsGroup_kmsKey
=== RUN TestAccLogsGroup_retentionPolicy
=== PAUSE TestAccLogsGroup_retentionPolicy
=== RUN TestAccLogsGroup_multiple
=== PAUSE TestAccLogsGroup_multiple
=== RUN TestAccLogsGroup_skipDestroy
=== PAUSE TestAccLogsGroup_skipDestroy
=== CONT TestAccLogsGroup_basic
=== CONT TestAccLogsGroup_kmsKey
=== CONT TestAccLogsGroup_multiple
--- PASS: TestAccLogsGroup_multiple (15.15s)
=== CONT TestAccLogsGroup_skipDestroy
--- PASS: TestAccLogsGroup_basic (17.35s)
=== CONT TestAccLogsGroup_tags
--- PASS: TestAccLogsGroup_skipDestroy (13.25s)
=== CONT TestAccLogsGroup_retentionPolicy
--- PASS: TestAccLogsGroup_kmsKey (49.12s)
=== CONT TestAccLogsGroup_namePrefix
--- PASS: TestAccLogsGroup_retentionPolicy (29.04s)
=== CONT TestAccLogsGroup_nameGenerate
--- PASS: TestAccLogsGroup_tags (40.59s)
=== CONT TestAccLogsGroup_disappears
--- PASS: TestAccLogsGroup_namePrefix (16.17s)
--- PASS: TestAccLogsGroup_disappears (11.82s)
--- PASS: TestAccLogsGroup_nameGenerate (16.19s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/logs 78.578s
% make testacc TESTARGS='-run=TestAccSchedulerSchedule_' PKG=scheduler ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/scheduler/... -v -count 1 -parallel 3 -run=TestAccSchedulerSchedule_ -timeout 180m
=== RUN TestAccSchedulerSchedule_basic
=== PAUSE TestAccSchedulerSchedule_basic
=== RUN TestAccSchedulerSchedule_disappears
=== PAUSE TestAccSchedulerSchedule_disappears
=== RUN TestAccSchedulerSchedule_description
=== PAUSE TestAccSchedulerSchedule_description
=== RUN TestAccSchedulerSchedule_endDate
=== PAUSE TestAccSchedulerSchedule_endDate
=== RUN TestAccSchedulerSchedule_flexibleTimeWindow
=== PAUSE TestAccSchedulerSchedule_flexibleTimeWindow
=== RUN TestAccSchedulerSchedule_groupName
=== PAUSE TestAccSchedulerSchedule_groupName
=== RUN TestAccSchedulerSchedule_kmsKeyARN
=== PAUSE TestAccSchedulerSchedule_kmsKeyARN
=== RUN TestAccSchedulerSchedule_nameGenerated
=== PAUSE TestAccSchedulerSchedule_nameGenerated
=== RUN TestAccSchedulerSchedule_namePrefix
=== PAUSE TestAccSchedulerSchedule_namePrefix
=== RUN TestAccSchedulerSchedule_scheduleExpression
=== PAUSE TestAccSchedulerSchedule_scheduleExpression
=== RUN TestAccSchedulerSchedule_scheduleExpressionTimezone
=== PAUSE TestAccSchedulerSchedule_scheduleExpressionTimezone
=== RUN TestAccSchedulerSchedule_startDate
=== PAUSE TestAccSchedulerSchedule_startDate
=== RUN TestAccSchedulerSchedule_state
=== PAUSE TestAccSchedulerSchedule_state
=== RUN TestAccSchedulerSchedule_targetARN
=== PAUSE TestAccSchedulerSchedule_targetARN
=== RUN TestAccSchedulerSchedule_targetDeadLetterConfig
=== PAUSE TestAccSchedulerSchedule_targetDeadLetterConfig
=== RUN TestAccSchedulerSchedule_targetECSParameters
=== PAUSE TestAccSchedulerSchedule_targetECSParameters
=== RUN TestAccSchedulerSchedule_targetEventBridgeParameters
=== PAUSE TestAccSchedulerSchedule_targetEventBridgeParameters
=== RUN TestAccSchedulerSchedule_targetInput
=== PAUSE TestAccSchedulerSchedule_targetInput
=== RUN TestAccSchedulerSchedule_targetKinesisParameters
=== PAUSE TestAccSchedulerSchedule_targetKinesisParameters
=== RUN TestAccSchedulerSchedule_targetRetryPolicy
=== PAUSE TestAccSchedulerSchedule_targetRetryPolicy
=== RUN TestAccSchedulerSchedule_targetRoleARN
=== PAUSE TestAccSchedulerSchedule_targetRoleARN
=== RUN TestAccSchedulerSchedule_targetSageMakerPipelineParameters
=== PAUSE TestAccSchedulerSchedule_targetSageMakerPipelineParameters
=== RUN TestAccSchedulerSchedule_targetSQSParameters
=== PAUSE TestAccSchedulerSchedule_targetSQSParameters
=== CONT TestAccSchedulerSchedule_basic
=== CONT TestAccSchedulerSchedule_targetSageMakerPipelineParameters
=== CONT TestAccSchedulerSchedule_targetSQSParameters
--- PASS: TestAccSchedulerSchedule_basic (51.31s)
=== CONT TestAccSchedulerSchedule_kmsKeyARN
--- PASS: TestAccSchedulerSchedule_targetSQSParameters (89.50s)
=== CONT TestAccSchedulerSchedule_scheduleExpressionTimezone
--- PASS: TestAccSchedulerSchedule_targetSageMakerPipelineParameters (111.84s)
=== CONT TestAccSchedulerSchedule_scheduleExpression
--- PASS: TestAccSchedulerSchedule_kmsKeyARN (77.91s)
=== CONT TestAccSchedulerSchedule_namePrefix
--- PASS: TestAccSchedulerSchedule_scheduleExpressionTimezone (75.99s)
=== CONT TestAccSchedulerSchedule_nameGenerated
--- PASS: TestAccSchedulerSchedule_scheduleExpression (61.49s)
=== CONT TestAccSchedulerSchedule_targetEventBridgeParameters
--- PASS: TestAccSchedulerSchedule_namePrefix (46.15s)
=== CONT TestAccSchedulerSchedule_targetRoleARN
--- PASS: TestAccSchedulerSchedule_nameGenerated (45.84s)
=== CONT TestAccSchedulerSchedule_targetRetryPolicy
--- PASS: TestAccSchedulerSchedule_targetRoleARN (60.88s)
=== CONT TestAccSchedulerSchedule_targetKinesisParameters
--- PASS: TestAccSchedulerSchedule_targetEventBridgeParameters (86.13s)
=== CONT TestAccSchedulerSchedule_targetInput
--- PASS: TestAccSchedulerSchedule_targetRetryPolicy (78.96s)
=== CONT TestAccSchedulerSchedule_targetDeadLetterConfig
--- PASS: TestAccSchedulerSchedule_targetInput (68.23s)
=== CONT TestAccSchedulerSchedule_targetECSParameters
--- PASS: TestAccSchedulerSchedule_targetKinesisParameters (111.82s)
=== CONT TestAccSchedulerSchedule_startDate
--- PASS: TestAccSchedulerSchedule_targetDeadLetterConfig (134.82s)
=== CONT TestAccSchedulerSchedule_targetARN
--- PASS: TestAccSchedulerSchedule_startDate (145.01s)
=== CONT TestAccSchedulerSchedule_state
--- PASS: TestAccSchedulerSchedule_targetARN (107.97s)
=== CONT TestAccSchedulerSchedule_description
--- PASS: TestAccSchedulerSchedule_targetECSParameters (228.17s)
=== CONT TestAccSchedulerSchedule_endDate
--- PASS: TestAccSchedulerSchedule_state (136.08s)
=== CONT TestAccSchedulerSchedule_groupName
--- PASS: TestAccSchedulerSchedule_description (139.36s)
=== CONT TestAccSchedulerSchedule_flexibleTimeWindow
--- PASS: TestAccSchedulerSchedule_endDate (139.92s)
=== CONT TestAccSchedulerSchedule_disappears
--- PASS: TestAccSchedulerSchedule_groupName (80.40s)
--- PASS: TestAccSchedulerSchedule_disappears (55.86s)
--- PASS: TestAccSchedulerSchedule_flexibleTimeWindow (109.30s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/scheduler 787.155s |
This functionality has been released in v4.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! |
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. |
Community Note
Introduces facilities to enable VCR testing via
go-vcr
.VCR provides facilities to transparently record and replay HTTP requests and responses, enabling fast, deterministic and accurate testing of HTTP API interactions.
This PR adds functionality to the
acctest
package toRecording
Replaying
Enabling VCR Testing
VCR testing is configured through the use of two environment variables, both of which must be set in order to enable the facility:
VCR_MODE
- there are two valid values:RECORDING
- indicates that VCR is recording HTTP interactions and will persist successful HTTP request/response pairs to a cassette fileREPLAYING
- indicates that VCR is replaying, from the cassette file matching HTTP requestsVCR_PATH
- indicates the file system location for cassette filesCassettes are the YAML files (one per acceptance test) generated by VCR that contain HTTP requests and responses.
References
Leverages the great work done for VCR testing in the Terraform GCP Provider.
TODO
context.Context
to signal that VCR replay is enabled fortfresource
?Relates: #25602.
Relates: #18419.