add new constants
add constants to decouple vitrage dependency Change-Id: I20385f03f0524c764915b319c4c4bc748cdfe3e2
This commit is contained in:
parent
3361a52293
commit
91d34a481d
|
@ -17,10 +17,6 @@ import json
|
|||
from oslo_log import log as logging
|
||||
from testtools import matchers
|
||||
|
||||
from vitrage.entity_graph.mappings.operational_alarm_severity \
|
||||
import OperationalAlarmSeverity
|
||||
from vitrage.entity_graph.mappings.operational_resource_state \
|
||||
import OperationalResourceState
|
||||
from vitrage_tempest_plugin.tests.api.alarms.base import BaseAlarmsTest
|
||||
from vitrage_tempest_plugin.tests.base import IsNotEmpty
|
||||
from vitrage_tempest_plugin.tests.common import aodh_utils
|
||||
|
@ -30,6 +26,10 @@ from vitrage_tempest_plugin.tests.common.constants import EdgeProperties
|
|||
from vitrage_tempest_plugin.tests.common.constants import NOVA_HOST_DATASOURCE
|
||||
from vitrage_tempest_plugin.tests.common.constants import \
|
||||
NOVA_INSTANCE_DATASOURCE
|
||||
from vitrage_tempest_plugin.tests.common.constants \
|
||||
import OperationalAlarmSeverity
|
||||
from vitrage_tempest_plugin.tests.common.constants \
|
||||
import OperationalResourceState
|
||||
from vitrage_tempest_plugin.tests.common.constants import VertexProperties \
|
||||
as VProps
|
||||
from vitrage_tempest_plugin.tests.common.constants import VITRAGE_DATASOURCE
|
||||
|
|
|
@ -226,3 +226,20 @@ class AodhProperties(object):
|
|||
USER_ID = 'user_id'
|
||||
STATE_REASON = 'state_reason'
|
||||
ID = 'id'
|
||||
|
||||
|
||||
class OperationalAlarmSeverity(object):
|
||||
CRITICAL = 'CRITICAL'
|
||||
SEVERE = 'SEVERE'
|
||||
WARNING = 'WARNING'
|
||||
NA = 'N/A'
|
||||
OK = 'OK'
|
||||
|
||||
|
||||
class OperationalResourceState(object):
|
||||
NA = 'N/A'
|
||||
OK = 'OK'
|
||||
TRANSIENT = 'TRANSIENT'
|
||||
SUBOPTIMAL = 'SUBOPTIMAL'
|
||||
ERROR = 'ERROR'
|
||||
DELETED = 'DELETED'
|
||||
|
|
Loading…
Reference in New Issue