Skip to content

Commit

Permalink
Merge pull request ManageIQ#17668 from douglasgabriel/ph_chassis_actions
Browse files Browse the repository at this point in the history
Adding miq_feature to chassis LED operation
  • Loading branch information
h-kataria authored and agrare committed Jul 9, 2018
2 parents efe1c66 + 3a820b7 commit a36b013
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions db/fixtures/miq_product_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6023,6 +6023,18 @@
:description: Refresh relationships and power states for all items related to Physical Chassis
:feature_type: control
:identifier: physical_chassis_refresh
- :name: Blink LED
:description: Blink Loc LED
:feature_type: control
:identifier: physical_chassis_blink_loc_led
- :name: Turn On LED
:description: Turn On Loc LED
:feature_type: control
:identifier: physical_chassis_turn_on_loc_led
- :name: Turn Off LED
:description: Turn Off Loc LED
:feature_type: control
:identifier: physical_chassis_turn_off_loc_led

# Physical Switches
- :name: Physical Switches
Expand Down
5 changes: 5 additions & 0 deletions spec/models/service_template_transformation_plan_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,10 @@
described_class.create_catalog_item(catalog_item_options)
end.to raise_error(StandardError, 'Must select a list of valid vms')
end

it 'validates unique plan names' do
service_template = described_class.create_catalog_item(catalog_item_options)
expect { described_class.create_catalog_item(catalog_item_options) }.to raise_error('Validation failed: Name has already been taken')
end
end
end

0 comments on commit a36b013

Please sign in to comment.