-
Notifications
You must be signed in to change notification settings - Fork 328
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
Adding default to read fog credentials #1458
Adding default to read fog credentials #1458
Conversation
Can one of the admins verify this patch? |
lib/beaker/options/presets.rb
Outdated
@@ -38,6 +38,7 @@ class Presets | |||
:test_tag_or => ['BEAKER_TEST_TAG_OR'], | |||
:test_tag_exclude => ['BEAKER_EXCLUDE_TAG', 'BEAKER_TEST_TAG_EXCLUDE'], | |||
:run_in_parallel => ['BEAKER_RUN_IN_PARALLEL'], | |||
:use_fog_credentials => 'true', |
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.
@cdenneen this should be added to the list of options in the presets
method down below in this file. Additionally, it should be just true
, not 'true'
.
Thanks!
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.
Done
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.
@cdenneen it looks like it's still a string here, is there a reason for that/
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.
@kevpl ENV spec requires strings (doesn't work with bool).
The real preset is a bool:
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.
would it be better if I just removed it from there or should we be adding a BEAKER_USE_FOG ?
006c036
to
2ef48df
Compare
@tvpartytonight I originally tried boolean on line 41 but that doesn't work (fails all rspec tests) I believe it's explicitly looking for strings for everything. |
@cdenneen it's explicitly looking for strings because it is loading it from the environment; the presets method is a hash, so you should have no trouble loading it in as a |
@cdenneen last comment still current. |
last comment still current. |
@tvpartytonight @kevpl not following ... this is bool in latest commit. |
2ef48df
to
1b7ff68
Compare
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.
Can one of the admins verify this patch?
lib/beaker/options/presets.rb
Outdated
@@ -38,6 +38,7 @@ class Presets | |||
:test_tag_or => ['BEAKER_TEST_TAG_OR'], | |||
:test_tag_exclude => ['BEAKER_EXCLUDE_TAG', 'BEAKER_TEST_TAG_EXCLUDE'], | |||
:run_in_parallel => ['BEAKER_RUN_IN_PARALLEL'], | |||
:use_fog_credentials => 'true', |
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.
Done
lib/beaker/options/presets.rb
Outdated
@@ -38,6 +38,7 @@ class Presets | |||
:test_tag_or => ['BEAKER_TEST_TAG_OR'], | |||
:test_tag_exclude => ['BEAKER_EXCLUDE_TAG', 'BEAKER_TEST_TAG_EXCLUDE'], | |||
:run_in_parallel => ['BEAKER_RUN_IN_PARALLEL'], | |||
:use_fog_credentials => 'true', |
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.
@cdenneen it looks like it's still a string here, is there a reason for that/
1b7ff68
to
645bc79
Compare
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.
Removed the ENV test... so only one is the boolean at the bottom
lib/beaker/options/presets.rb
Outdated
@@ -38,6 +38,7 @@ class Presets | |||
:test_tag_or => ['BEAKER_TEST_TAG_OR'], | |||
:test_tag_exclude => ['BEAKER_EXCLUDE_TAG', 'BEAKER_TEST_TAG_EXCLUDE'], | |||
:run_in_parallel => ['BEAKER_RUN_IN_PARALLEL'], | |||
:use_fog_credentials => 'true', |
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.
@kevpl ENV spec requires strings (doesn't work with bool).
The real preset is a bool:
lib/beaker/options/presets.rb
Outdated
@@ -38,6 +38,7 @@ class Presets | |||
:test_tag_or => ['BEAKER_TEST_TAG_OR'], | |||
:test_tag_exclude => ['BEAKER_EXCLUDE_TAG', 'BEAKER_TEST_TAG_EXCLUDE'], | |||
:run_in_parallel => ['BEAKER_RUN_IN_PARALLEL'], | |||
:use_fog_credentials => 'true', |
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.
would it be better if I just removed it from there or should we be adding a BEAKER_USE_FOG ?
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.
looks good to me, but I think @tvpartytonight is the most familiar with :use_fog_credentials
on our team, so I'd like to see him take a look before merging this in.
@tvpartytonight Added to presets to read from fog credentials in order to disable in beaker-aws