Skip to content

Commit

Permalink
Merge pull request #299 from lpichler/allow_multiple_role_identifiers…
Browse files Browse the repository at this point in the history
…_for_cloud_volume

Allow multiple role identifiers for cloud volume
  • Loading branch information
abellotti authored Feb 1, 2018
2 parents a9e5bf5 + 4202930 commit aca3a26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions config/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1814,10 +1814,14 @@
:collection_actions:
:get:
- :name: read
:identifier: ems_infra_show_list
:identifier:
- ems_infra_show_list
- ems_block_storage_show_list
:post:
- :name: query
:identifier: ems_infra_show_list
:identifier:
- ems_infra_show_list
- ems_block_storage_show_list
- :name: create
:identifier: ems_infra_new
- :name: edit
Expand All @@ -1829,7 +1833,9 @@
:resource_actions:
:get:
- :name: read
:identifier: ems_infra_show
:identifier:
- ems_infra_show
- ems_block_storage_show
:post:
- :name: edit
:identifier: ems_infra_edit
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/api/api_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

let(:api_feature_identifiers) do
collection_settings.each_with_object(Set.new) do |(_, cfg), set|
set.add(cfg[:identifier]) if cfg[:identifier]
Array(cfg[:identifier]).each { |id| set.add(id) }
keys = [:collection_actions, :resource_actions, :subcollection_actions, :subresource_actions]
Array(cfg[:subcollections]).each do |s|
keys << "#{s}_subcollection_actions" << "#{s}_subresource_actions"
Expand Down

0 comments on commit aca3a26

Please sign in to comment.