Skip to content
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

Middleware compliance assignment #16376

Merged
merged 3 commits into from
Nov 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/models/middleware_server.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class MiddlewareServer < ApplicationRecord
include MiqPolicyMixin
include ComplianceMixin
include NewWithTypeStiMixin
include LiveMetricsMixin

Expand Down
3 changes: 3 additions & 0 deletions db/fixtures/miq_event_definitions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ middleware_jdbc_ok,EAP JDBC Driver Deploy Succeeded,Default,middleware_operation
middleware_jdbc_error,EAP JDBC Driver Deploy Failed,Default,middleware_operations
middleware_jdbc_remove_ok,EAP JDBC Driver Undeploy Succeeded,Default,middleware_operations
middleware_jdbc_remove_error,EAP JDBC Driver Undeploy Failed,Default,middleware_operations
middlewareserver_compliance_check,Middleware Server Compliance Check,Default,compliance
middlewareserver_compliance_passed,Middleware Server Compliance Passed,Default,compliance
middlewareserver_compliance_failed,Middleware Server Compliance Failed,Default,compliance

#
# Company tags
Expand Down
8 changes: 8 additions & 0 deletions db/fixtures/miq_product_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3828,10 +3828,18 @@
:feature_type: control
:identifier: middleware_server_control
:children:
- :name: Manage Policies
:description: Manage Policies of Middleware Servers
:feature_type: control
:identifier: middleware_server_protect
- :name: Edit Tags
:description: Edit Tags of Middleware Servers
:feature_type: control
:identifier: middleware_server_tag
- :name: Check Compliance
:description: Check Compliance of Last Known Configuration
:feature_type: control
:identifier: middleware_server_check_compliance
- :name: Reload middleware server
:description: Trigger reload operation for Middleware Server
:feature_type: admin
Expand Down
7 changes: 7 additions & 0 deletions db/fixtures/miq_user_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
- my_settings_default_views
- my_settings_time_profiles
- my_settings_visuals
- middleware_server_check_compliance
- miq_report_run
- miq_report_saved_reports
- miq_report_schedules
Expand Down Expand Up @@ -213,6 +214,7 @@
- my_settings_default_views
- my_settings_time_profiles
- my_settings_visuals
- middleware_server_check_compliance
- miq_report_run
- miq_report_saved_reports
- miq_report_schedules
Expand Down Expand Up @@ -374,6 +376,7 @@
- my_settings_default_views
- my_settings_time_profiles
- my_settings_visuals
- middleware_server_check_compliance
- miq_report_run
- miq_report_saved_reports
- miq_report_schedules
Expand Down Expand Up @@ -474,6 +477,7 @@
- my_settings_default_views
- my_settings_time_profiles
- my_settings_visuals
- middleware_server_check_compliance
- miq_report_run
- miq_report_saved_reports
- miq_report_schedules
Expand Down Expand Up @@ -559,6 +563,7 @@
- my_settings_default_views
- my_settings_time_profiles
- my_settings_visuals
- middleware_server_check_compliance
- miq_report_run
- miq_report_saved_reports
- miq_report_schedules
Expand Down Expand Up @@ -642,6 +647,7 @@
- my_settings_default_views
- my_settings_time_profiles
- my_settings_visuals
- middleware_server_check_compliance
- miq_report_run
- miq_report_saved_reports
- miq_report_schedules
Expand Down Expand Up @@ -809,6 +815,7 @@
- automation_manager
- embedded_automation_manager
- compute
- middleware_server_check_compliance
- miq_request_admin
- miq_request_view
- miq_template_analyze
Expand Down