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

[aws unit test utils] only create a recordings directory when the env var is set #45752

Merged
merged 2 commits into from
Sep 17, 2018

Conversation

s-hertel
Copy link
Contributor

SUMMARY

Only create placebo recording test directories when the environment variable PLACEBO_RECORD is set

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

test/units/utils/amazon_placebo_fixtures.py

ANSIBLE VERSION
ansible 2.8.0.dev0

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Sep 17, 2018
@s-hertel s-hertel removed the needs_triage Needs a first human triage before being processed. label Sep 17, 2018
raise
if not os.getenv('PLACEBO_RECORD'):
if not os.path.isdir(recordings_path):
raise NotImplementedError
Copy link
Member

Choose a reason for hiding this comment

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

I'd include a message, something like:

raise Exception('Missing Placebo recordings in directory: %s' % recordings_path)

@s-hertel s-hertel merged commit 5467ac3 into ansible:devel Sep 17, 2018
s-hertel added a commit to s-hertel/ansible that referenced this pull request Sep 17, 2018
… var is set (ansible#45752)

* Only create placebo recording test directories when the environment variable PLACEBO_RECORD is set
(cherry picked from commit 5467ac3)
s-hertel added a commit to s-hertel/ansible that referenced this pull request Sep 17, 2018
… var is set (ansible#45752)

* Only create placebo recording test directories when the environment variable PLACEBO_RECORD is set
(cherry picked from commit 5467ac3)
abadger pushed a commit that referenced this pull request Sep 19, 2018
… var is set (#45752)

* Only create placebo recording test directories when the environment variable PLACEBO_RECORD is set
(cherry picked from commit 5467ac3)
mattclay pushed a commit that referenced this pull request Sep 25, 2018
… var is set (#45752)

* Only create placebo recording test directories when the environment variable PLACEBO_RECORD is set
(cherry picked from commit 5467ac3)
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants