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

Re-record vcr cassette and spec update, plus a script to generate Tower objects #8

Merged
merged 4 commits into from
Jun 23, 2017
Merged

Conversation

jameswnl
Copy link
Contributor

@jameswnl jameswnl commented Jun 21, 2017

  • Add a rake task manageiq:providers:ansible_tower:populate_tower which will re-create a set of Tower objects
  • updated refresher.rb spec to match those created by the step above
  • Now only 1 cassettes

Next time, to add new specs for refresh,

  • update and run manageiq:providers:ansible_tower:populate_tower
  • update refresher.rb

@jameswnl jameswnl changed the title Re-record vcr cassette and spec update, plus a script to generate Tower objects [WIP] Re-record vcr cassette and spec update, plus a script to generate Tower objects Jun 21, 2017
@jameswnl
Copy link
Contributor Author

@miq-bot add_label wip

@miq-bot miq-bot added the wip label Jun 21, 2017
@jameswnl jameswnl changed the title [WIP] Re-record vcr cassette and spec update, plus a script to generate Tower objects Re-record vcr cassette and spec update, plus a script to generate Tower objects Jun 22, 2017
@jameswnl
Copy link
Contributor Author

@miq-bot remove_label wip

@miq-bot miq-bot removed the wip label Jun 22, 2017
@jameswnl
Copy link
Contributor Author

@miq-bot add_label test

@miq-bot miq-bot added the test label Jun 22, 2017
@durandom
Copy link
Member

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?

@jameswnl
Copy link
Contributor Author

@durandom good suggestion. Now it's a rake task.

@bronaghs
Copy link

@durandom - good to merge?

Copy link
Member

@durandom durandom left a comment

Choose a reason for hiding this comment

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

👍
@jameswnl @bronaghs
just the note about the namespace of the task.
But if you like it in the current namespace... I dont have a strong opinion on that.

@@ -0,0 +1,157 @@
namespace :manageiq do
namespace :providers do
namespace :ansible_tower do
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@miq-bot
Copy link
Member

miq-bot commented Jun 23, 2017

Some comments on commits https://github.com/jameswnl/manageiq-providers-ansible_tower/compare/149136d49abccfb786302fbb1fdf2604f5b0cb96~...cefc65ab133663fcbae8f35f0f34932b1723acd8

lib/tasks_private/spec_helper.rake

  • ⚠️ - 134 - Detected puts. Remove all debugging statements.
  • ⚠️ - 139 - Detected puts. Remove all debugging statements.
  • ⚠️ - 149 - Detected puts. Remove all debugging statements.
  • ⚠️ - 66 - Detected puts. Remove all debugging statements.
  • ⚠️ - 74 - Detected puts. Remove all debugging statements.
  • ⚠️ - 83 - Detected puts. Remove all debugging statements.

spec/vcr_cassettes/manageiq/providers/ansible_tower/automation_manager/refresher.yml

  • 💣 💥 🔥 🚒 - 1021 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1047 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1066 - Detected cfme
  • 💣 💥 🔥 🚒 - 1071 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1084 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1104 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1128 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1152 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1176 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1240 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1258 - Detected cfme
  • 💣 💥 🔥 🚒 - 1262 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1277 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1293 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1316 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1329 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1333 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1350 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1374 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1398 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1422 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1424 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1447 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1473 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1498 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1522 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1548 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1574 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1576 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1601 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1627 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1655 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1678 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1703 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1727 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1751 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1769 - Detected cfme
  • 💣 💥 🔥 🚒 - 1773 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1788 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 18336 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 18340 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1844 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1869 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1896 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1914 - Detected cfme
  • 💣 💥 🔥 🚒 - 1919 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1932 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1956 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 1982 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2006 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2008 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2029 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2061 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2078 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2094 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2127 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2144 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2160 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2177 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2192 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2207 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2225 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2227 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2251 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2275 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2277 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2301 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2303 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2326 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2345 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2354 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2356 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2361 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2381 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2408 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2431 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2467 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2538 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2540 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2558 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2562 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2576 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2599 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2623 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2641 - Detected cfme
  • 💣 💥 🔥 🚒 - 2645 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2660 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2671 - Detected cfme
  • 💣 💥 🔥 🚒 - 2675 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2690 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2701 - Detected cfme
  • 💣 💥 🔥 🚒 - 2705 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2720 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2740 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2759 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2768 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2795 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2819 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2843 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2865 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2893 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2917 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2941 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2965 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 2989 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3013 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3038 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3040 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3063 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3088 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3152 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3177 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3202 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3219 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3235 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3251 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3268 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3285 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3301 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3317 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3334 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 3358 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 708 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 737 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 765 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 792 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 819 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 845 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 871 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 873 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 897 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 921 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 947 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 972 - Detected cloudforms
  • 💣 💥 🔥 🚒 - 996 - Detected cloudforms

@miq-bot
Copy link
Member

miq-bot commented Jun 23, 2017

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
2 files checked, 0 offenses detected
Everything looks fine. 👍

Copy link
Member

@durandom durandom left a comment

Choose a reason for hiding this comment

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

👍

@bronaghs bronaghs merged commit 7ed8279 into ManageIQ:master Jun 23, 2017
@bronaghs bronaghs added this to the Sprint 64 Ending Jul 3, 2017 milestone Jun 23, 2017
@bronaghs
Copy link

@jameswnl - Fine yes or no?

@jameswnl
Copy link
Contributor Author

@miq-bot add_labels fine/yes

@simaishi
Copy link
Contributor

simaishi commented Aug 4, 2017

@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?

@jameswnl
Copy link
Contributor Author

jameswnl commented Aug 7, 2017

@simaishi please merge the others first and I'll make a PR for this one. I'll need to re-record the cassette.

@simaishi
Copy link
Contributor

Backported to Fine via ManageIQ/manageiq#15780

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants