Spelling error correction
Change-Id: Id652a290015612e953a7fb0a845a5f10af382730
This commit is contained in:
parent
5968842a5a
commit
ba8add220b
@ -51,7 +51,7 @@ State configuration yaml file has to be defined for all the plugins which were c
|
||||
|
||||
The following file will map alarm states.
|
||||
Original states 'CRITICAL' and 'DOWN' will be mapped to normalized state 'CRITICAL'.
|
||||
Normalized state 'SEVER' has no original states.
|
||||
Normalized state 'SEVERE' has no original states.
|
||||
Original state 'WARNING' is mapped to normalized state 'WARNING', etc.
|
||||
|
||||
::
|
||||
@ -65,7 +65,7 @@ Original state 'WARNING' is mapped to normalized state 'WARNING', etc.
|
||||
- name: CRITICAL
|
||||
- name: DOWN
|
||||
- normalized state:
|
||||
name: SEVER
|
||||
name: SEVERE
|
||||
priority: 40
|
||||
original states:
|
||||
- normalized state:
|
||||
|
@ -7,7 +7,7 @@ states:
|
||||
- name: CRITICAL
|
||||
- name: DOWN
|
||||
- normalized state:
|
||||
name: SEVER
|
||||
name: SEVERE
|
||||
priority: 40
|
||||
original states:
|
||||
- normalized state:
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
class NormalizedAlarmSeverity(object):
|
||||
CRITICAL = 'CRITICAL'
|
||||
SEVER = 'SEVER'
|
||||
SEVERE = 'SEVERE'
|
||||
WARNING = 'WARNING'
|
||||
DISABLED = 'DISABLED'
|
||||
UNKNOWN = 'UNKNOWN'
|
||||
|
@ -7,7 +7,7 @@ states:
|
||||
- name: CRITICAL
|
||||
- name: DOWN
|
||||
- normalized state:
|
||||
name: SEVER
|
||||
name: SEVERE
|
||||
priority: 40
|
||||
original states:
|
||||
- normalized state:
|
||||
|
@ -7,7 +7,7 @@ states:
|
||||
- name: CRITICAL
|
||||
- name: DOWN
|
||||
- normalized state:
|
||||
name: SEVER
|
||||
name: SEVERE
|
||||
priority: 40
|
||||
original states:
|
||||
- normalized state:
|
||||
|
29
vitrage/tests/resources/states_plugins/vitrage.yaml
Normal file
29
vitrage/tests/resources/states_plugins/vitrage.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
category: ALARM
|
||||
states:
|
||||
- normalized state:
|
||||
name: CRITICAL
|
||||
priority: 50
|
||||
original states:
|
||||
- name: CRITICAL
|
||||
- normalized state:
|
||||
name: SEVERE
|
||||
priority: 40
|
||||
original states:
|
||||
- name: SEVERE
|
||||
- name: MAJOR
|
||||
- normalized state:
|
||||
name: WARNING
|
||||
priority: 30
|
||||
original states:
|
||||
- name: WARNING
|
||||
- name: MINOR
|
||||
- normalized state:
|
||||
name: UNKNOWN
|
||||
priority: 20
|
||||
original states:
|
||||
- name: UNKNOWN
|
||||
- normalized state:
|
||||
name: DISABLED
|
||||
priority: 10
|
||||
original states:
|
||||
- name: OK
|
@ -60,7 +60,7 @@ class TestStateManager(base.BaseTest):
|
||||
state_manager = StateManager(self.conf)
|
||||
|
||||
# test assertions
|
||||
self.assertEqual(len(self.conf.synchronizer_plugins.plugin_type),
|
||||
self.assertEqual(len(self.conf.synchronizer_plugins.plugin_type) + 1,
|
||||
len(state_manager.states_plugins))
|
||||
|
||||
def test_load_state_plugins_with_errors(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user