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

Explicitly store (teardown) fixtures in setupVPCWithSubnetWithInstance #421

Conversation

zliang-akamai
Copy link
Member

📝 Description

Explicitly call fixture teardown function in the VPC setup function, to avoid confusion and errors that caused by API calls after fixtures teardown were not recorded.

✔️ How to Test

make fixtures ARGS="-run TestInstance_ConfigInterface"
make test SKIP_LINT=1 ARGS="-run TestInstance_ConfigInterface"

make fixtures ARGS="-run TestVPC"
make test SKIP_LINT=1 ARGS="-run TestVPC"

@zliang-akamai zliang-akamai requested a review from a team as a code owner November 6, 2023 20:11
@zliang-akamai zliang-akamai requested review from lgarber-akamai and vshanthe and removed request for a team November 6, 2023 20:11
@zliang-akamai zliang-akamai changed the title Explicitly store fixture in setupVPCWithSubnetWithInstance Explicitly store fixtures in setupVPCWithSubnetWithInstance Nov 6, 2023
@zliang-akamai zliang-akamai requested review from a team, jriddle-linode, ykim-1 and amisiorek-akamai and removed request for a team November 6, 2023 20:17
Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

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

LGTM and tests are all passing. Nice work!

Copy link
Contributor

@ykim-1 ykim-1 left a comment

Choose a reason for hiding this comment

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

Looks good! Passes locally as well

@zliang-akamai zliang-akamai changed the title Explicitly store fixtures in setupVPCWithSubnetWithInstance Explicitly store (teardown) fixtures in setupVPCWithSubnetWithInstance Nov 6, 2023
@zliang-akamai zliang-akamai merged commit a9ac19b into linode:proj/vpc Nov 6, 2023
3 checks passed
@zliang-akamai zliang-akamai deleted the zhiwei/fix-vpc-test-explicit-fixture-cleanup branch November 6, 2023 21:26
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.

3 participants