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

Fix: Adhere module.this.enabled #66

Merged
merged 7 commits into from
Jul 2, 2021
Merged

Fix: Adhere module.this.enabled #66

merged 7 commits into from
Jul 2, 2021

Conversation

korenyoni
Copy link
Member

@korenyoni korenyoni commented Jul 2, 2021

what

  • Ensure module can be disabled
  • Add tests to test module when it is disabled.

why

  • This module does not currently adhere module.this.enabled. Resources are still created when var.enabled=false. This means that module invocations cannot reliably pass var.enabled=false in situations where resources should not be created, for example if this module is invoked in test suites reused by multiple tests, some of them conditionally disabling this module when they do not need it.

references

@korenyoni korenyoni requested review from a team as code owners July 2, 2021 17:17
@korenyoni korenyoni requested review from dotCipher and RothAndrew and removed request for a team July 2, 2021 17:17
@korenyoni korenyoni changed the title Fix: Adhere module.this.enabled Fix: Adhere module.this.enabled Jul 2, 2021
@korenyoni
Copy link
Member Author

/test all

@korenyoni korenyoni added the bug 🐛 An issue with the system label Jul 2, 2021
@korenyoni
Copy link
Member Author

/test all

@korenyoni
Copy link
Member Author

/test all

nitrocode
nitrocode previously approved these changes Jul 2, 2021
@korenyoni
Copy link
Member Author

/test all

… Doing so causes issues in CI due to tests running in parallel.
@korenyoni
Copy link
Member Author

/test all

@korenyoni korenyoni requested a review from nitrocode July 2, 2021 18:56
@korenyoni korenyoni merged commit 6c6ad0f into master Jul 2, 2021
@korenyoni korenyoni deleted the fix/module-disable branch July 2, 2021 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module does not adhere module.this.enabled
3 participants