Skip to content

Conversation

@eliecharra
Copy link
Contributor

Q A
πŸ› Bug fix? no
πŸš€ New feature? no
⚠ Deprecations? no
❌ BC Break no
πŸ”— Related issues #...
❓ Documentation no

Description

  • Set all test AZ to us-east-1
  • Use terraform overridden env in PreCheck() to ensure mutations are executed with read write credentials
  • Fix hidden error in aws_instance test (tag creation failure was not handled)
  • Minor fmt fix

@eliecharra eliecharra added this to the v0.4.0 milestone Jan 28, 2021
@eliecharra eliecharra requested a review from a team January 28, 2021 19:00
@eliecharra eliecharra added the kind/maintenance Refactoring or changes to the workspace label Jan 28, 2021
@codecov
Copy link

codecov bot commented Jan 28, 2021

Codecov Report

Merging #166 (31e20a1) into main (e5d1339) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #166   +/-   ##
=======================================
  Coverage   69.72%   69.72%           
=======================================
  Files         190      190           
  Lines        4364     4364           
=======================================
  Hits         3043     3043           
  Misses       1081     1081           
  Partials      240      240           

one for terraform related actions, and one for driftctl scan.

You can override environment variables passed to terraform operations by adding `ACC_` prefix on env variables.
Environment used in `PreCheck()` is using using overriden env too as it is common to perform mutations in that place.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand your sentence here, can you help me get it in order to rephrase it well.

Copy link
Contributor

Choose a reason for hiding this comment

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

In our acceptance tests, we may need read/write permissions during specific contexts (e.g. terraform init, apply, destroy) or lifecycle (PreExec and PostExec). If needed, you can override environment variables in those contexts by adding ACC_ prefix on env variables.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a way better, fixed

- Set all test AZ to us-east-1
- Use terraform overriden env in PreCheck() to ensure mutations are
  executed with read write credentials
- Fix hidden error in aws_instance test (tag creation failure was not
  handled
- Minor fmt fix
@wbeuil wbeuil merged commit 78f1e40 into main Jan 29, 2021
@wbeuil wbeuil deleted the acc_test_fixes branch January 29, 2021 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/maintenance Refactoring or changes to the workspace

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants