Skip to content

Commit

Permalink
Cloud network action identifiers can be generic
Browse files Browse the repository at this point in the history
  • Loading branch information
imtayadeway committed Feb 13, 2017
1 parent 3dfe387 commit d39a9e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions config/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,14 @@
:post:
- :name: query
:identifier: miq_cloud_networks_view
:subcollection_actions:
:get:
- :name: read
:identifier: miq_cloud_networks_view
:subresource_actions:
:get:
- :name: read
:identifier: miq_cloud_networks_view
:clusters:
:description: Clusters
:identifier: ems_cluster
Expand Down Expand Up @@ -1124,14 +1132,6 @@
:identifier: ems_infra_protect
- :name: unassign
:identifier: ems_infra_protect
:cloud_networks_subcollection_actions:
:get:
- :name: read
:identifier: miq_cloud_networks_view
:cloud_networks_subresource_actions:
:get:
- :name: read
:identifier: miq_cloud_networks_view
:provision_dialogs:
:description: Provisioning Dialogs
:identifier: miq_ae_customization_explorer
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/api/cloud_networks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
end

it 'queries individual provider cloud_network' do
api_basic_authorize(action_identifier(:providers, :read, :cloud_networks_subresource_actions, :get))
api_basic_authorize(action_identifier(:cloud_networks, :read, :subresource_actions, :get))
network = provider.cloud_networks.first
cloud_network_url = "#{providers_cloud_networks_url}/#{network.id}"

Expand Down

0 comments on commit d39a9e1

Please sign in to comment.