Skip to content

Commit

Permalink
Merge pull request #16375 from karelhala/mwComplianceCheck
Browse files Browse the repository at this point in the history
Enable compliance check for MW server
  • Loading branch information
martinpovolny authored Nov 2, 2017
2 parents 2ea04fa + e189b2f commit 67cf171
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
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
4 changes: 4 additions & 0 deletions db/fixtures/miq_product_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3832,6 +3832,10 @@
: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

0 comments on commit 67cf171

Please sign in to comment.