-
Notifications
You must be signed in to change notification settings - Fork 54
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
Re-record vcr cassette and spec update, plus a script to generate Tower objects #8
Conversation
@miq-bot add_label wip |
@miq-bot remove_label wip |
@miq-bot add_label test |
thats great. I really like an reproducible way of generating those cassettes. How about making that script a rake task like here and also add some docs to the tasks? |
@durandom good suggestion. Now it's a rake task. |
@durandom - good to merge? |
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.
lib/tasks_private/spec_helper.rake
Outdated
@@ -0,0 +1,157 @@ | |||
namespace :manageiq do | |||
namespace :providers do | |||
namespace :ansible_tower do |
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.
I dont think this should be nested under manageiq:providers
This task is only visible inside the ansible tower gem.
Maybe spec:populate_tower
? because it's spec related?
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.
Yes, I agree. I copied this namespace from the existing rake file. Will update it
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!
Some comments on commits https://github.com/jameswnl/manageiq-providers-ansible_tower/compare/149136d49abccfb786302fbb1fdf2604f5b0cb96~...cefc65ab133663fcbae8f35f0f34932b1723acd8 lib/tasks_private/spec_helper.rake
spec/vcr_cassettes/manageiq/providers/ansible_tower/automation_manager/refresher.yml
|
Checked commits https://github.com/jameswnl/manageiq-providers-ansible_tower/compare/149136d49abccfb786302fbb1fdf2604f5b0cb96~...cefc65ab133663fcbae8f35f0f34932b1723acd8 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
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.
👍
@jameswnl - Fine yes or no? |
@miq-bot add_labels fine/yes |
@jameswnl This doesn't cherry-pick cleanly, and I'm not sure how to resolve conflicts. Can you please create a PR for Fine branch? |
@simaishi please merge the others first and I'll make a PR for this one. I'll need to re-record the cassette. |
Backported to Fine via ManageIQ/manageiq#15780 |
manageiq:providers:ansible_tower:populate_tower
which will re-create a set of Tower objectsrefresher.rb
spec to match those created by the step aboveNext time, to add new specs for refresh,
manageiq:providers:ansible_tower:populate_tower
refresher.rb