-
Notifications
You must be signed in to change notification settings - Fork 22
Restructure testacc execution #606
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
Conversation
burythehammer
left a comment
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.
Couple of small things, but approved nonetheless
|
|
||
| func TestAccResourceRedisCloudSubscriptionPeering_aws(t *testing.T) { | ||
|
|
||
| testAccRequiresEnvVar(t, "EXECUTE_TESTS") |
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.
having now gone through a few of these, it feels like we could extract out these magic strings to some constants just incase you mistype something.
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.
Yes, agreed and I will address this in the next PR.
* Separates out each group of Acceptance tests into their own steps * Disbales TestAccResourceRedisCloudCloudAccount_basic
The problem with the existing execution of the Acceptance tests is the length of time and understanding the context of failures. Viewing the output of the failure is also problematic due to the volume of information returned.
The following PR separates out the Acceptance Tests into grouped individual steps in the workflow. These are
Each step allows the execution time to be understood and will execute 6 Acceptance Tests in parallel.
Steps that fail can be re-run if there is an unexpected situation such as network comms or timeout.