From a36f839dd8573748bf9b34b37586862328c4208b Mon Sep 17 00:00:00 2001 From: Dan Clarizio Date: Thu, 27 Jul 2017 08:42:40 -0700 Subject: [PATCH] Merge pull request #15647 from rsevilla87/master Include EvmRole-reader as read-only role in the fixtures (cherry picked from commit 78fb6b49aa6699b9d4e90ab14f2175a051c0c4fe) https://bugzilla.redhat.com/show_bug.cgi?id=1484901 --- db/fixtures/miq_user_roles.yml | 107 ++++++++++++++++++++++++++++++ db/fixtures/role_map.yaml | 1 + spec/models/miq_user_role_spec.rb | 2 +- 3 files changed, 109 insertions(+), 1 deletion(-) diff --git a/db/fixtures/miq_user_roles.yml b/db/fixtures/miq_user_roles.yml index cefd3e36356f..26b5331bff86 100644 --- a/db/fixtures/miq_user_roles.yml +++ b/db/fixtures/miq_user_roles.yml @@ -1233,3 +1233,110 @@ - instance_view - vm_view - ems_container_ad_hoc_metrics + + +- :name: EvmRole-reader + :read_only: true + :miq_product_feature_identifiers: + - auth_key_pair_cloud_view + - automation_manager_configuration_script_view + - automation_manager_configured_system_view + - automation_manager_providers_view + - availability_zone_view + - bottlenecks + - catalog_items_view + - cloud_network_view + - cloudobject_store_container_view + - cloud_object_store_object_view + - cloud_subnet_view + - cloud_tenant_view + - cloud_topology + - cloud_volume_backup_view + - cloud_volume_snapshot_view + - cloud_volume_view + - configuration_job_view + - configuration_script_view + - configured_systems_filter_accord_view + - container_build_view + - container_dashboard + - container_filter_accord + - container_group_view + - container_image_registry_view + - container_image_view + - container_node_view + - container_project_view + - container_replicator_view + - container_route_view + - container_service_view + - container_template_view + - container_topology + - container_view + - customization_template_view + - dashboard_view + - embedded_automation_manager_credentials_view + - embedded_configuration_script_payload_view + - embedded_configuration_script_source_view + - ems_block_storage_view + - ems_cloud_view + - ems_cluster_view + - ems_container_view + - ems_infra_view + - ems_middleware_view + - ems_network_view + - ems_object_storage_view + - flavor_view + - floating_ip_view + - host_aggregate_view + - host_view + - image_view + - infra_networking_view + - infra_topology + - instance_view + - iso_datastore_view + - load_balancer_view + - middleware_datasource_view + - middleware_deployment_view + - middleware_domain_view + - middleware_messaging_view + - middleware_server_view + - middleware_topology + - miq_ae_class_log + - miq_ae_domain_view + - miq_report_saved_reports_view + - miq_report_schedule_view + - miq_report_view + - miq_request_view + - miq_template_snapshot_view + - miq_template_view + - my_settings + - network_port_view + - network_router_view + - network_topology + - orchestration_stack_view + - orchestration_templates_view + - persistent_volume_view + - planning + - policy_log + - provider_foreman_view + - pxe_image_type_view + - pxe_server_view + - rbac_group_view + - rbac_role_view + - rbac_tenant_view + - rbac_user_view + - redhat_access_insights_overview + - resource_pool_view + - rss + - security_group_view + - service_view + - st_catalog_view + - storage_view + - tasks + - timeline + - utilization + - virtual_template_show + - vm_cloud_explorer + - vm_explorer + - vm_infra_explorer + - vm_snapshot_view + - vm_view diff --git a/db/fixtures/role_map.yaml b/db/fixtures/role_map.yaml index cf29e9d37a64..fc0b1fce67fe 100644 --- a/db/fixtures/role_map.yaml +++ b/db/fixtures/role_map.yaml @@ -16,3 +16,4 @@ EvmGroup-consumption_administrator: consumption_administrator EvmGroup-container_administrator: container_administrator EvmGroup-container_operator: container_operator + EvmGroup-reader: reader diff --git a/spec/models/miq_user_role_spec.rb b/spec/models/miq_user_role_spec.rb index d3a06895d712..e4e14b34dcc2 100644 --- a/spec/models/miq_user_role_spec.rb +++ b/spec/models/miq_user_role_spec.rb @@ -1,6 +1,6 @@ describe MiqUserRole do before do - @expected_user_role_count = 17 + @expected_user_role_count = 18 end context ".seed" do