alarm_types |
Type : []
|
Default value : ['windspeed', 'humidity', 'temperature', 'marker']
|
Set of mock types of alarms |
mockAlarms |
Type : object
|
Default value : {
'mockAlarm-0': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-0',
'running_id': 'mockAlarm-0',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'description': 'Short description for mock alarm',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-1': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-1',
'running_id': 'mockAlarm-1',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'description': 'Short description for mock alarm',
'url': 'https://www.alma2.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-0-temperature': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-0-temperature',
'running_id': 'mockAlarm-0-temperature',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'description': 'Short description for mock alarm',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-0-windspeed': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-0-windspeed',
'running_id': 'mockAlarm-0-windspeed',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'description': 'Short description for mock alarm',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-0-humidity': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-0-humidity',
'running_id': 'mockAlarm-0-humidity',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'description': 'Short description for mock alarm',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-1-temperature': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-1-temperature',
'running_id': 'mockAlarm-1-temperature',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'description': 'Short description for mock alarm',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-1-windspeed': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-1-windspeed',
'running_id': 'mockAlarm-1-windspeed',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'description': 'Short description for mock alarm',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-1-humidity': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-1-humidity',
'running_id': 'mockAlarm-1-humidity',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'description': 'Short description for mock alarm',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
}
|
Set of mock alarms |
mockAntennas |
Type : object
|
Default value : {
'group1': ['ANT1', 'ANT2'],
'group2': ['ANT4']
}
|
Set of mock antennas |
mockImagesSets |
Type : object
|
Default value : {}
|
Set of mock ImageSet |
mockPadsStatus |
Type : object
|
Default value : {
'group1': {
'PAD1': 'ANT1',
'PAD2': 'ANT2',
'PAD3': null
},
'group2': {
'PAD4': 'ANT4'
}
}
|
Set of mock pad status |
AntennasSettings |
Type : object
|
Default value : {
mapKey: 'weather_map',
}
|
Key for the url to get information for the antenna display |
Assets |
Type : object
|
Default value : {
ICONS: '/assets/img/',
SOUNDS: '/assets/sounds/'
}
|
Set that defines the locations of assets in the application |
BackendUrls |
Type : object
|
Default value : {
TOKEN: '/users/api-token-auth/',
VALIDATE_TOKEN: '/users/users/validate_token/',
USERS_LIST: '/users/users/filter/?group=operators',
CDB: '/cdb-api/',
CDB_IAS: '/cdb-api/ias/',
CDB_IASIO: '/cdb-api/iasio/',
TICKETS: '/tickets/',
TICKETS_MULTIPLE_ACK: '/tickets-api/tickets/acknowledge/',
TICKETS_INFO: '/tickets-api/tickets/old_open_info/',
SHELVE_API: '/tickets-api/shelve-registries/',
UNSHELVE_API: '/tickets-api/shelve-registries/unshelve/',
SHELVE_REGS_FILTER: '/tickets-api/shelve-registries/filters/',
FILES_JSON: '/panels-api/files/get_json/?key=',
WEATHER_VIEW: '/panels-api/alarms-config/get_json/?key=weather_config',
ANTENNAS_VIEW: '/panels-api/alarms-config/get_json/?key=antennas_config',
WEATHER_SUMMARY: '/panels-api/alarms-config/get_json/?key=weather_summary_config',
ANTENNAS_SUMMARY: '/panels-api/alarms-config/get_json/?key=antennas_summary_config',
HEALTH_SUMMARY: '/panels-api/alarms-config/get_json/?key=health_summary_config',
BUILDING_SUMMARY: '/panels-api/alarms-config/get_json/?key=building_summary_config',
PADS_STATUS: '/panels-api/placemark/pads_by_group/',
}
|
Set of URLs used to request data from the Backend |
Locale |
Type : object
|
Default value : {
DATE_FORMAT: 'yyyy-MM-ddTHH:mm:ss', // date format for templates
MOMENT_DATE_FORMAT: 'YYYY-MM-DDTHH:mm:ss',
TIMEZONE: '+0000',
}
|
Set of properties to set the formatting of dates The formats related to dates should follow the same standard |
StorageItems |
Type : object
|
Default value : {
TOKEN: 'token',
}
|
Set of items to store in the browser cache |
Streams |
Type : object
|
Default value : {
ALARMS: 'alarms',
UPDATES: 'requests',
COUNTER: 'counter',
}
|
Set of websocket streams from where the applications to receives data from the Backend |
WeatherSettings |
Type : object
|
Default value : {
mapKey: 'weather_map',
}
|
Url settings to get data for the related displays |
ChangedAlarm2 |
Type : object
|
Default value : {
'value': 1,
'core_id': 'coreid$2',
'running_id': 'coreid$2',
'mode': 5,
'core_timestamp': 1267252440010,
'state_change_timestamp': 1267252440010,
'value_change_timestamp': 0,
'value_change_transition': [0, 1],
'validity': 1,
'description': 'Alarm 2 description',
'url': 'https://www.alma.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
'properties': {},
}
|
Change in MockAlarm[1] (coreid$2) |
ChangedAlarm5 |
Type : object
|
Default value : {
'value': 4,
'core_id': 'coreid$5',
'running_id': 'coreid$5',
'mode': 5,
'core_timestamp': 1267252440010,
'state_change_timestamp': 1267252440010,
'value_change_timestamp': 0,
'value_change_transition': [0, 4],
'validity': 1,
'description': 'Alarm 5 description',
'url': 'https://www.alma.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
'properties': {},
}
|
Change in MockAlarm[4] (coreid$5) |
environment |
Type : object
|
Default value : {
/** Indicates wether the environment is production or development */
production: false,
/** Path for websocket connection */
websocketPath: 'ws://127.0.0.1:8000/stream/',
/** Base URL for HTTP requests */
httpUrl: 'http://127.0.0.1:8000',
}
|
Environment variables related to the production environment |
environment |
Type : object
|
Default value : {
/** Indicates wether the environment is production or development */
production: true,
/** Path for websocket connection */
websocketPath: '/stream',
/** Base URL for HTTP requests */
httpUrl: '',
}
|
Environment variables related to the production environment |
environment |
Type : object
|
Default value : {
/** Indicates wether the environment is production or development */
production: false,
/** Path for websocket connection */
websocketPath: '/stream',
/** Base URL for HTTP requests */
httpUrl: '',
}
|
Environment variables related to the production environment |
expectedClassesWhenHiddenText |
Type : object
|
Default value : {
'critical': ['alarm-label-critical', 'hide-text'],
'high': ['alarm-label-high', 'hide-text'],
'medium': ['alarm-label-medium', 'hide-text'],
'low': ['alarm-label-low', 'hide-text'],
'clear': ['alarm-label-clear', 'hide-text'],
'unknown_low': ['alarm-label-low', 'hide-text'],
'unknown_clear': ['alarm-label-clear', 'hide-text'],
'maintenance_low': ['alarm-label-low', 'hide-text'],
'maintenance_clear': ['alarm-label-clear', 'hide-text'],
'shutteddown_low': ['alarm-label-low', 'hide-text'],
'shutteddown_clear': ['alarm-label-clear', 'hide-text'],
'malfunctioning_low': ['alarm-label-low', 'hide-text'],
'malfunctioning_clear': ['alarm-label-clear', 'hide-text'],
'critical_unreliable': ['alarm-label-critical', 'unreliable', 'hide-text'],
'high_unreliable': ['alarm-label-high', 'unreliable', 'hide-text'],
'medium_unreliable': ['alarm-label-medium', 'unreliable', 'hide-text'],
'low_unreliable': ['alarm-label-low', 'unreliable', 'hide-text'],
'clear_unreliable': ['alarm-label-clear', 'unreliable', 'hide-text'],
'unknown_low_unreliable': ['alarm-label-low', 'unreliable', 'hide-text'],
'unknown_clear_unreliable': ['alarm-label-clear', 'unreliable', 'hide-text'],
'maintenance_low_unreliable': ['alarm-label-low', 'unreliable', 'hide-text'],
'maintenance_clear_unreliable': ['alarm-label-clear', 'unreliable', 'hide-text'],
'shutteddown_low_unreliable': ['alarm-label-low', 'unreliable', 'hide-text'],
'shutteddown_clear_unreliable': ['alarm-label-clear', 'unreliable', 'hide-text'],
'malfunctioning_low_unreliable': ['alarm-label-low', 'unreliable', 'hide-text'],
'malfunctioning_clear_unreliable': ['alarm-label-clear', 'unreliable', 'hide-text'],
'shelved': ['alarm-label-clear', 'hide-text'],
'shelved_unreliable': ['alarm-label-clear', 'hide-text'],
}
|
Set of mock classes to display the alarm label if showText is false |
expectedClassesWhenShowText |
Type : object
|
Default value : {
'critical': ['alarm-label-critical'],
'high': ['alarm-label-high'],
'medium': ['alarm-label-medium'],
'low': ['alarm-label-low'],
'clear': ['alarm-label-clear', 'hide-label'],
'unknown_low': ['alarm-label-low'],
'unknown_clear': ['alarm-label-clear', 'hide-label'],
'maintenance_low': ['alarm-label-low'],
'maintenance_clear': ['alarm-label-clear', 'hide-label'],
'shutteddown_low': ['alarm-label-low'],
'shutteddown_clear': ['alarm-label-clear', 'hide-label'],
'malfunctioning_low': ['alarm-label-low'],
'malfunctioning_clear': ['alarm-label-clear', 'hide-label'],
'critical_unreliable': ['alarm-label-critical', 'unreliable'],
'high_unreliable': ['alarm-label-high', 'unreliable'],
'medium_unreliable': ['alarm-label-medium', 'unreliable'],
'low_unreliable': ['alarm-label-low', 'unreliable'],
'clear_unreliable': ['alarm-label-clear', 'hide-label', 'unreliable'],
'unknown_low_unreliable': ['alarm-label-low', 'unreliable'],
'unknown_clear_unreliable': ['alarm-label-clear', 'hide-label', 'unreliable'],
'maintenance_low_unreliable': ['alarm-label-low', 'unreliable'],
'maintenance_clear_unreliable': ['alarm-label-clear', 'hide-label', 'unreliable'],
'shutteddown_low_unreliable': ['alarm-label-low', 'unreliable'],
'shutteddown_clear_unreliable': ['alarm-label-clear', 'hide-label', 'unreliable'],
'malfunctioning_low_unreliable': ['alarm-label-low', 'unreliable'],
'malfunctioning_clear_unreliable': ['alarm-label-clear', 'hide-label', 'unreliable'],
'shelved': ['alarm-label-clear', 'hide-label'],
'shelved_unreliable': ['alarm-label-clear', 'hide-label'],
}
|
Set of mock classes to display the alarm label if showText is true |
expectedTreeData |
Type : object
|
Default value : {
'parent': {
'child_1': {
'grandChild_11': null,
'grandChild_12': null,
'grandChild_13': null,
},
'child_2': {
'grandChild_21': null,
'grandChild_23': null,
},
}
}
|
Data expected to be contained by the tree in tests |
Map |
Type : object
|
Default value : {
'relations': {
'antenna_groups': {
'P_ARM': {
'pads': [
{
'description': 'description',
'name': 'name',
'opt_cy': 0.0,
'opt_cx': 0.0
}
]
},
'MORITA_AND_INNER': {
'pads': [
{
'description': 'description',
'name': 'name',
'opt_cy': 0.0,
'opt_cx': 0.0
}
]
},
'W_ARM': {
'pads': [
{
'description': 'description',
'name': 'name',
'opt_cy': 0.0,
'opt_cx': 0.0
}
]
},
'S_ARM': {
'pads': [
{
'description': 'description',
'name': 'name',
'opt_cy': 0.0,
'opt_cx': 0.0
}
]
}
},
'wstations_groups': {
'primary': {
'wstations': [
{
'description': 'description',
'name': 'name',
'opt_cy': 0.0,
'opt_cx': 0.0
}
]
},
'backup': {
'wstations': [
{
'description': 'description',
'name': 'name',
'opt_cy': 0.0,
'opt_cx': 0.0
}
]
}
}
},
'placemarks': {
'wstations': [
{
'description': 'description',
'name': 'name',
'opt_cy': 0.0,
'opt_cx': 0.0
}
],
'pads': [
{
'description': 'description',
'name': 'name',
'opt_cy': 0.0,
'opt_cx': 0.0
}
],
'buildings': [
{
'description': 'description',
'name': 'name',
'opt_cy': 0.0,
'opt_cx': 0.0
}
]
},
'paths': [
[
{
'opt_cy': 0.0,
'opt_cx': 0.0
},
{
'opt_cy': 0.0,
'opt_cx': 0.0
},
{
'opt_cy': 0.0,
'opt_cx': 0.0
},
{
'opt_cy': 0.0,
'opt_cx': 0.0
}
]
]
}
|
Mock Map for testing purposes |
mockAlarms |
Type : object
|
Default value : {
'mockAlarm-0': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-0',
'running_id': 'mockAlarm-0',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'value_change_timestamp': 0,
'value_change_transition': [0, 0],
'description': 'Short description for mock alarm',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': ['mockAlarm-0-child-0', 'mockAlarm-0-child-1'],
}),
'mockAlarm-1': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-1',
'running_id': 'mockAlarm-1',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'value_change_timestamp': 0,
'value_change_transition': [0, 0],
'description': 'Short description for mock alarm',
'url': 'https://www.alma2.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': ['mockAlarm-1-child-0', 'mockAlarm-1-child-1'],
}),
'mockAlarm-2': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-2',
'running_id': 'mockAlarm-2',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'value_change_timestamp': 0,
'value_change_transition': [0, 0],
'description': 'Short description for mock alarm',
'url': 'https://www.alma2.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-0-child-0': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-0-child-0',
'running_id': 'mockAlarm-0-child-0',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'value_change_timestamp': 0,
'value_change_transition': [0, 0],
'description': 'Short description for mock alarm device',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-0-child-1': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-0-child-1',
'running_id': 'mockAlarm-0-child-1',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'value_change_timestamp': 0,
'value_change_transition': [0, 0],
'description': 'Short description for mock alarm device',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-0-child-2': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-0-child-2',
'running_id': 'mockAlarm-0-child-2',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'value_change_timestamp': 0,
'value_change_transition': [0, 0],
'description': 'Short description for mock alarm device',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-2-child-0': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-2-child-0',
'running_id': 'mockAlarm-2-child-0',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'value_change_timestamp': 0,
'value_change_transition': [0, 0],
'description': 'Short description for mock alarm device',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-2-child-1': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-2-child-1',
'running_id': 'mockAlarm-2-child-1',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'value_change_timestamp': 0,
'value_change_transition': [0, 0],
'description': 'Short description for mock alarm device',
'url': 'https://www.alma1.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
}),
'mockAlarm-3': Alarm.asAlarm({
'value': 0,
'core_id': 'mockAlarm-3',
'running_id': 'mockAlarm-3',
'mode': '0',
'core_timestamp': 1267252440000,
'validity': '1',
'state_change_timestamp': 1267252440000,
'value_change_timestamp': 0,
'value_change_transition': [0, 0],
'description': 'Short description for mock alarm',
'url': 'https://www.alma2.cl',
'sound': 'NONE',
'can_shelve': true,
'ack': false,
'shelved': false,
'dependencies': [],
})
}
|
Mock alarms for the test |