-
Notifications
You must be signed in to change notification settings - Fork 125
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
Remove Settings.product.transformation #236
Conversation
@miq-bot add_label transformation, gaprindashvili/yes |
@himdel We do not back-port migrations so the |
OK, removing the label, thanks :) @miq-bot remove_label gaprindashvili/yes |
@himdel unrecognized command 'remove', ignoring... Accepted commands are: add_label, add_reviewer, assign, close_issue, move_issue, remove_label, rm_label, set_milestone |
v2v product feature, this should be always on from 5.9.3 on
Checked commit https://github.com/himdel/manageiq-schema/commit/0f14276be08e50b76d3b4f2736de8f52411bde6e with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@himdel I totally missed that this was a data migration that doesn't have any specs...can you add a spec in a separate PR please? |
I ...am trying :). Do we have any docs on running specs here?
|
diff --git a/spec/migrations/20180718132840_remove_transformation_product_setting_spec.rb b/spec/migrations/20180718132840_remove_transformation_product_setting_spec.rb
new file mode 100644
index 0000000..72e00ac
--- /dev/null
+++ b/spec/migrations/20180718132840_remove_transformation_product_setting_spec.rb
@@ -0,0 +1,17 @@
+require_migration
+
+describe RemoveTransformationProductSetting do
+ let(:settings_change_stub) { migration_stub(:SettingsChange) }
+
+ migration_context :up do
+ it "removes the /product/transformation key" do
+ setting_changed = settings_change_stub.create!(:key => "/product/transformation", :value => true)
+ setting_ignored = settings_change_stub.create!(:key => "/product/magic", :value => true)
+
+ migrate
+
+ expect(setting_changed.reload.value).to eq(nil) # TODO?
+ expect(setting_ignored.reload.value).to eq(true)
+ end
+ end
+end This is probably close, I'll create a PR once I can test it |
@himdel Just make sure you set up the |
Aah, silly me, thanks! :) Good to know about |
Should be ready in #249 :) |
v2v product feature, this should be always on from 5.9.3 on - replaced by RBAC.
Goes together with ManageIQ/manageiq#17711 (and ManageIQ/manageiq-v2v#490).
Cc @Fryguy