Index

src/app/weather/test_fixtures.ts

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

mockWeatherStationsConfig
Default value : [ { 'alarm_id': 'mockAlarm-0', 'custom_name': null, 'type': 'station', 'view': 'weather', 'placemark': 'mockAlarm-0', 'group': 'group1', 'children': [ { 'alarm_id': 'mockAlarm-0-windspeed', 'custom_name': null, 'type': 'windspeed', 'view': 'weather', 'placemark': '', 'group': 'group1', 'children': [] }, { 'alarm_id': 'mockAlarm-0-humidity', 'custom_name': null, 'type': 'humidity', 'view': 'weather', 'placemark': '', 'group': 'group1', 'children': [] }, { 'alarm_id': 'mockAlarm-0-temperature', 'custom_name': null, 'type': 'temperature', 'view': 'weather', 'placemark': '', 'group': 'group1', 'children': [] } ] }, { 'alarm_id': 'mockAlarm-1', 'custom_name': null, 'type': 'station', 'view': 'weather', 'placemark': 'mockAlarm-1', 'group': 'group2', 'children': [ { 'alarm_id': 'mockAlarm-1-windspeed', 'custom_name': null, 'type': 'windspeed', 'view': 'weather', 'placemark': '', 'group': 'group2', 'children': [] }, { 'alarm_id': 'mockAlarm-1-humidity', 'custom_name': null, 'type': 'humidity', 'view': 'weather', 'placemark': '', 'group': 'group2', 'children': [] }, { 'alarm_id': 'mockAlarm-1-temperature', 'custom_name': null, 'type': 'temperature', 'view': 'weather', 'placemark': '', 'group': 'group2', 'children': [] } ] }, ] as AlarmConfig[]

Set of mock configurations for WeatherStations

mockWeatherSummaryConfig
Default value : [ { 'alarm_id': 'mockGlobal-windspeed', 'custom_name': 'Wind Speed', 'type': 'windspeed', 'view': 'weather_summary', 'placemark': '', 'group': '', 'children': [] }, { 'alarm_id': 'mockGlobal-humidity', 'custom_name': 'Humidity', 'type': 'humidity', 'view': 'weather_summary', 'placemark': '', 'group': '', 'children': [] }, { 'alarm_id': 'mockGlobal-temperature', 'custom_name': 'Temperature', 'type': 'temperature', 'view': 'weather_summary', 'placemark': '', 'group': '', 'children': [] } ] as AlarmConfig[]

Mock configuration for WeatherSummary

src/app/data/alarm.service.fixtures.ts

alarms
Type : []
Default value : [ { 'value': 0, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 0, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': '', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'coreid$2', 'running_id': 'coreid$2', 'mode': 0, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 2], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': '', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 4, 'core_id': 'coreid$3', 'running_id': 'coreid$3', 'mode': 0, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': '', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], } ]

List of mocks alarms with different IDs, to test changes in multiple Alarms

alarmSequence
Type : []
Default value : [ // mock alarm messages from webserver { // same alarm, different actions 'value': 0, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 0, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 4, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE3', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 4, 'core_id': 'coreid$2', 'running_id': 'coreid$2', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE4', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 4, 'core_id': 'coreid$2', 'running_id': 'coreid$2', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE4', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], }, { 'value': 4, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE3', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], } ]

List of mocks alarms with the same ID, to test sequences of changes in the same Alarm

alarmsUpdates
Type : []
Default value : [ { 'value': 3, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 0, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 3], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': '', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'coreid$3', 'running_id': 'coreid$3', 'mode': 0, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [4, 2], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': '', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], } ]

List of mocks alarms with that represent updates over previous Alarms

shelvedAlarmSequence
Type : []
Default value : [ // mock alarm messages from webserver { // same alarm, different actions 'value': 0, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 0, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': true, 'dependencies': [], }, { 'value': 1, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': true, 'dependencies': [], }, { 'value': 4, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE3', 'can_shelve': true, 'ack': false, 'shelved': true, 'dependencies': [], }, { 'value': 4, 'core_id': 'coreid$2', 'running_id': 'coreid$2', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE4', 'can_shelve': true, 'ack': false, 'shelved': true, 'dependencies': [], }, { 'value': 4, 'core_id': 'coreid$2', 'running_id': 'coreid$2', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE4', 'can_shelve': true, 'ack': true, 'shelved': true, 'dependencies': [], }, { 'value': 4, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 1, 'core_timestamp': 10000, 'state_change_timestamp': 10000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE3', 'can_shelve': true, 'ack': true, 'shelved': true, 'dependencies': [], } ]

List of shelved mocks alarms with the same ID, to test sequences of changes in the same Alarm

src/app/settings.ts

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

src/app/tabular/table/fixtures.ts

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)

ExpectedFilteredTableRows
Type : []
Default value : [ ExpectedTableRows[5], ExpectedTableRows[12], ExpectedTableRows[13], ExpectedTableRows[14], ExpectedTableRows[15], ExpectedTableRows[22], ]

Set of the rows the that the test expects on the Table after the filter

ExpectedReducedTableRows
Type : []
Default value : [ Alarm.asAlarm(MockAlarms[0]), Alarm.asAlarm(MockAlarms[2]), Alarm.asAlarm(MockAlarms[11]), Alarm.asAlarm(MockAlarms[4]), ]

Set of the rows the that the test expects on the Table when only some alarms are going to be displayed

ExpectedReducedTableRowsAfterChange
Type : []
Default value : [ Alarm.asAlarm(MockAlarms[0]), Alarm.asAlarm(ChangedAlarm5), Alarm.asAlarm(MockAlarms[2]), Alarm.asAlarm(MockAlarms[11]), ]

Set of the rows the that the test expects on the Table when only some alarms are going to be displayed, after the change is done

ExpectedTableRows
Type : []
Default value : [ // SET VALID NOT-ACK Alarm.asAlarm(MockAlarms[21]), Alarm.asAlarm(MockAlarms[0]), Alarm.asAlarm(MockAlarms[20]), Alarm.asAlarm(MockAlarms[22]), Alarm.asAlarm(MockAlarms[23]), Alarm.asAlarm(MockAlarms[1]), Alarm.asAlarm(MockAlarms[2]), Alarm.asAlarm(MockAlarms[3]), // SET VALID ACK Alarm.asAlarm(MockAlarms[5]), Alarm.asAlarm(MockAlarms[6]), Alarm.asAlarm(MockAlarms[7]), Alarm.asAlarm(MockAlarms[8]), // SET INVALID NOT-ACK Alarm.asAlarm(MockAlarms[10]), Alarm.asAlarm(MockAlarms[11]), Alarm.asAlarm(MockAlarms[12]), Alarm.asAlarm(MockAlarms[13]), // SET INVALID ACK Alarm.asAlarm(MockAlarms[15]), Alarm.asAlarm(MockAlarms[16]), Alarm.asAlarm(MockAlarms[17]), Alarm.asAlarm(MockAlarms[18]), // CLEARED: Alarm.asAlarm(MockAlarms[4]), Alarm.asAlarm(MockAlarms[9]), Alarm.asAlarm(MockAlarms[14]), Alarm.asAlarm(MockAlarms[19]), ]

Set of the rows the that the test expects on the Table

MockAlarms
Type : []
Default value : [ // VALID NOT-ACK { 'value': 4, 'core_id': 'coreid$1', 'running_id': 'coreid$1', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'Alarm 1 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 3, 'core_id': 'coreid$2', 'running_id': 'coreid$2', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 3], 'validity': 1, 'description': 'Alarm 2 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 2, 'core_id': 'coreid$3', 'running_id': 'coreid$3', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 2], 'validity': 1, 'description': 'Alarm 3 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 1, 'core_id': 'coreid$4', 'running_id': 'coreid$4', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'Alarm 4 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 0, 'core_id': 'coreid$5', 'running_id': 'coreid$5', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'Alarm 5 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, // VALID ACK { 'value': 4, 'core_id': 'coreid$11', 'running_id': 'coreid$11', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'Alarm 11 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 3, 'core_id': 'coreid$12', 'running_id': 'coreid$12', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 3], 'validity': 1, 'description': 'Alarm 12 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 2, 'core_id': 'coreid$13', 'running_id': 'coreid$13', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 2], 'validity': 1, 'description': 'Alarm 13 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 1, 'core_id': 'coreid$14', 'running_id': 'coreid$14', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'Alarm 14 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 0, 'core_id': 'coreid$15', 'running_id': 'coreid$15', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'Alarm 15 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, // INVALID NOT-ACK { 'value': 4, 'core_id': 'coreid$21', 'running_id': 'coreid$21', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 0, 'description': 'Alarm 21 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 3, 'core_id': 'coreid$22', 'running_id': 'coreid$22', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 3], 'validity': 0, 'description': 'Alarm 22 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 2, 'core_id': 'coreid$23', 'running_id': 'coreid$23', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 2], 'validity': 0, 'description': 'Alarm 23 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 1, 'core_id': 'coreid$24', 'running_id': 'coreid$24', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 0, 'description': 'Alarm 24 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 0, 'core_id': 'coreid$25', 'running_id': 'coreid$25', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'Alarm 25 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, // INVALID ACK { 'value': 4, 'core_id': 'coreid$31', 'running_id': 'coreid$31', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 0, 'description': 'Alarm 31 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 3, 'core_id': 'coreid$32', 'running_id': 'coreid$32', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 3], 'validity': 0, 'description': 'Alarm 32 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 2, 'core_id': 'coreid$33', 'running_id': 'coreid$33', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 2], 'validity': 0, 'description': 'Alarm 33 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 1, 'core_id': 'coreid$34', 'running_id': 'coreid$34', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 0, 'description': 'Alarm 34 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 0, 'core_id': 'coreid$35', 'running_id': 'coreid$35', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'Alarm 35 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': true, 'shelved': false, 'dependencies': [], 'properties': {}, }, // Repetitions weith different modes: { 'value': 4, 'core_id': 'coreid$43', 'running_id': 'coreid$43', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'Alarm 43 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 4, 'core_id': 'coreid$44', 'running_id': 'coreid$44', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'Alarm 44 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 4, 'core_id': 'coreid$47', 'running_id': 'coreid$47', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'Alarm 47 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, { 'value': 4, 'core_id': 'coreid$50', 'running_id': 'coreid$50', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'Alarm 50 description', 'url': 'https://www.alma.cl', 'sound': 'NONE', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'properties': {}, }, ]

Set of mock Alarms for the tests

MockAlarmsToDisplay
Type : []
Default value : [ MockAlarms[0]['core_id'], MockAlarms[4]['core_id'], MockAlarms[2]['core_id'], MockAlarms[11]['core_id'], ]

Set of IDs of the alarms are going to be displayed, when only some of them are displayed

MockIasios
Type : []
Default value : [ { io_id: 'coreid$1', short_desc: 'Alarm 1 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$2', short_desc: 'Alarm 2 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$3', short_desc: 'Alarm 3 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$4', short_desc: 'Alarm 4 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$5', short_desc: 'Alarm 5 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$11', short_desc: 'Alarm 11 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$12', short_desc: 'Alarm 12 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$13', short_desc: 'Alarm 13 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$14', short_desc: 'Alarm 14 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$15', short_desc: 'Alarm 15 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$21', short_desc: 'Alarm 21 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$22', short_desc: 'Alarm 22 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$23', short_desc: 'Alarm 23 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$24', short_desc: 'Alarm 24 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$25', short_desc: 'Alarm 25 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$31', short_desc: 'Alarm 31 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$32', short_desc: 'Alarm 32 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$33', short_desc: 'Alarm 33 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$34', short_desc: 'Alarm 34 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$35', short_desc: 'Alarm 35 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$40', short_desc: 'Alarm 41 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$41', short_desc: 'Alarm 41 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$42', short_desc: 'Alarm 42 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$43', short_desc: 'Alarm 43 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$44', short_desc: 'Alarm 44 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$45', short_desc: 'Alarm 45 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$46', short_desc: 'Alarm 46 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$47', short_desc: 'Alarm 47 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$48', short_desc: 'Alarm 48 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, { io_id: 'coreid$49', short_desc: 'Alarm 49 description', ias_type: 'ALARM', doc_url: 'https://www.alma.cl/' }, ]

Set of mock IASIOS for the tests

src/environments/environment.ts

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

src/environments/environment.prod.ts

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

src/environments/environment.docker.ts

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

src/app/shared/alarm-label/fixtures.ts

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

MockAlarms
Type : []
Default value : [ { 'value': 4, 'core_id': 'critical', 'running_id': 'critical', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 3, 'core_id': 'high', 'running_id': 'high', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 3], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'medium', 'running_id': 'medium', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 2], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'low', 'running_id': 'low', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'clear', 'running_id': 'clear', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'unknown_low', 'running_id': 'unknown_low', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'unknown_clear', 'running_id': 'unknown_clear', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'maintenance_low', 'running_id': 'maintenance_low', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'maintenance_clear', 'running_id': 'maintenance_clear', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'shutteddown_low', 'running_id': 'shutteddown_low', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'shutteddown_clear', 'running_id': 'shutteddown_clear', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'malfunctioning_low', 'running_id': 'malfunctioning_low', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'malfunctioning_clear', 'running_id': 'malfunctioning_clear', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 4, 'core_id': 'critical_unreliable', 'running_id': 'critical_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 4], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 3, 'core_id': 'high_unreliable', 'running_id': 'high_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 3], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'medium_unreliable', 'running_id': 'medium_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 2], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'low_unreliable', 'running_id': 'low_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'clear_unreliable', 'running_id': 'clear_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'unknown_low_unreliable', 'running_id': 'unknown_low_unreliable', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'unknown_clear_unreliable', 'running_id': 'unknown_clear_unreliable', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'maintenance_low_unreliable', 'running_id': 'maintenance_low_unreliable', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'maintenance_clear_unreliable', 'running_id': 'maintenance_clear_unreliable', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'shutteddown_low_unreliable', 'running_id': 'shutteddown_low_unreliable', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'shutteddown_clear_unreliable', 'running_id': 'shutteddown_clear_unreliable', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'malfunctioning_low_unreliable', 'running_id': 'malfunctioning_low_unreliable', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'malfunctioning_clear_unreliable', 'running_id': 'malfunctioning_clear_unreliable', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'shelved', 'running_id': 'shelved', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': true, 'dependencies': [], }, { 'value': 1, 'core_id': 'shelved_unreliable', 'running_id': 'shelved_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 1], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': true, 'dependencies': [], } ]

Set of mock Alarms for the tests

src/app/actions/ack-tree/fixtures.ts

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

mockAlarmData
Type : []
Default value : [ { 'value': 0, 'core_id': 'parent', 'running_id': '', 'mode': '', 'core_timestamp': 1, 'state_change_timestamp': 1, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'description': 'Short description for mock alarm', 'url': 'www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'validity': '0', 'ack': false, 'shelved': false, 'dependencies': [ 'child_1', 'child_2', ], }, { 'value': 0, 'core_id': 'child_1', 'running_id': '', 'mode': '', 'core_timestamp': 1, 'state_change_timestamp': 1, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'description': 'Short description for mock alarm', 'url': 'www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'validity': '0', 'ack': false, 'shelved': false, 'dependencies': [ 'grandChild_11', 'grandChild_12', 'grandChild_13', ], }, { 'value': 0, 'core_id': 'child_2', 'running_id': '', 'mode': '', 'core_timestamp': 1, 'state_change_timestamp': 1, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'description': 'Short description for mock alarm', 'url': 'www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'validity': '0', 'ack': false, 'shelved': false, 'dependencies': [ 'grandChild_21', 'grandChild_22', 'grandChild_23', ], }, { 'value': 0, 'core_id': 'grandChild_11', 'running_id': '', 'mode': '', 'core_timestamp': 1, 'state_change_timestamp': 1, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'description': 'Short description for mock alarm', 'url': 'www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'validity': '0', 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'grandChild_12', 'running_id': '', 'mode': '', 'core_timestamp': 1, 'state_change_timestamp': 1, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'description': 'Short description for mock alarm', 'url': 'www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'validity': '0', 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'grandChild_13', 'running_id': '', 'mode': '', 'core_timestamp': 1, 'state_change_timestamp': 1, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'description': 'Short description for mock alarm', 'url': 'www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'validity': '0', 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'grandChild_21', 'running_id': '', 'mode': '', 'core_timestamp': 1, 'state_change_timestamp': 1, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'description': 'Short description for mock alarm', 'url': 'www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'validity': '0', 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'grandChild_22', 'running_id': '', 'mode': '', 'core_timestamp': 1, 'state_change_timestamp': 1, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'description': 'Short description for mock alarm', 'url': 'www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'validity': '0', 'ack': true, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'grandChild_23', 'running_id': '', 'mode': '', 'core_timestamp': 1, 'state_change_timestamp': 1, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'description': 'Short description for mock alarm', 'url': 'www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'validity': '0', 'ack': false, 'shelved': false, 'dependencies': [], }, ]

Mock alarms data to be used in tests

src/app/map/fixtures.ts

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

src/app/antennas/tests_fixtures.ts

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

mockAntennasConfig
Type : []
Default value : [ { 'alarm_id': 'mockAlarm-0', 'custom_name': 'antenna-0', 'type': 'antenna', 'view': 'antennas', 'placemark': 'mockAlarm-0', 'group': 'antennas', 'children': [ { 'alarm_id': 'mockAlarm-0-child-2', 'custom_name': '', 'type': '', 'view': '', 'placemark': '', 'group': 'antennas', 'children': [] }, ] }, { 'alarm_id': 'mockAlarm-1', 'custom_name': 'antenna-1', 'type': 'antenna', 'view': 'antennas', 'placemark': 'mockAlarm-1', 'group': 'antennas', 'children': [] }, { 'alarm_id': 'mockAlarm-2', 'custom_name': 'antenna-2', 'type': 'antenna', 'view': 'antennas', 'placemark': 'mockAlarm-2', 'group': 'antennas', 'children': [] }, { 'alarm_id': 'mockAlarm-3', 'custom_name': 'antenna-3', 'type': 'antenna', 'view': 'antennas', 'placemark': 'mockAlarm-3', 'group': 'antennas', 'children': [], }, ]

Mock configuration for the displaying of antennas alarms

mockDevicesConfig
Type : []
Default value : [ { 'alarm_id': 'mockAlarm-3', 'custom_name': 'device-1', 'placemark': '', 'type': 'device', 'view': 'antennas', 'children': [] } ]

Mock configuration for the displaying of general devices alarms

mockImagesSets
Default value : new AlarmImageSet({ clear: 'antennaImageSet', set_low: 'antennaImageSet', set_medium: 'antennaImageSet', set_high: 'antennaImageSet', set_critical: 'antennaImageSet', unknown: 'antennaImageSet', maintenance: 'antennaImageSet', shelved: 'antennaImageSet', })

Mock sets of images for the icons of antennas alarms

mockImagesUnreliableSets
Default value : new AlarmImageSet({ clear: 'antennaUnreliableImageSet', set_low: 'antennaUnreliableImageSet', set_medium: 'antennaUnreliableImageSet', set_high: 'antennaUnreliableImageSet', set_critical: 'antennaUnreliableImageSet', unknown: 'antennaUnreliableImageSet', maintenance: 'antennaUnreliableImageSet', shelved: 'antennaUnreliableImageSet', })

Mock sets of images for the icons of antennas unreliable alarms

mockSummaryConfig
Type : []
Default value : [new AlarmConfig({ alarm_id: 'antenna-dummy-alarm', custom_name: '', type: 'antenna', view: 'antennas', placemark: '', group: 'antennas', children: [] })]

Mock configuration for the Antennas Summary (to be displayed in Overview)

src/app/shared/alarm-tile/fixtures.ts

MockAlarms
Type : []
Default value : [ { 'value': 4, 'core_id': 'critical', 'running_id': 'critical', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 3, 'core_id': 'high', 'running_id': 'high', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'medium', 'running_id': 'medium', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'low', 'running_id': 'low', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'clear', 'running_id': 'clear', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'unknown', 'running_id': 'unknown', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'maintenance', 'running_id': 'maintenance', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'shutteddown', 'running_id': 'shutteddown', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'malfunctioning', 'running_id': 'malfunctioning', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 4, 'core_id': 'critical_unreliable', 'running_id': 'critical_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 3, 'core_id': 'high_unreliable', 'running_id': 'high_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'medium_unreliable', 'running_id': 'medium_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'low_unreliable', 'running_id': 'low_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'clear_unreliable', 'running_id': 'clear_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'unknown_unreliable', 'running_id': 'unknown_unreliable', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'maintenance_unreliable', 'running_id': 'maintenance_unreliable', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'shutteddown_unreliable', 'running_id': 'shutteddown_unreliable', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'malfunctioning_unreliable', 'running_id': 'malfunctioning_unreliable', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], } ]

Set of mock Alarms for the tests

MockImageSet
Default value : new AlarmImageSet({ clear: 'clear', set_low: 'low', set_medium: 'medium', set_high: 'high', set_critical: 'critical', unknown: 'unknown', maintenance: 'maintenance', shelved: 'shelved', })

Set of mock icons alarms for the tests

MockImageUnreliableSet
Default value : new AlarmImageSet({ clear: 'clear_unreliable', set_low: 'low_unreliable', set_medium: 'medium_unreliable', set_high: 'high_unreliable', set_critical: 'critical_unreliable', unknown: 'unknown_unreliable', maintenance: 'maintenance_unreliable', shelved: 'shelved_unreliable', })

Set of mock icons for unreliable alarms for the tests

src/app/shared/alarm-card/fixtures.ts

MockAlarms
Type : []
Default value : [ { 'value': 4, 'core_id': 'critical', 'running_id': 'critical', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 4], }, { 'value': 3, 'core_id': 'high', 'running_id': 'high', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 3], }, { 'value': 2, 'core_id': 'medium', 'running_id': 'medium', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 2], }, { 'value': 1, 'core_id': 'low', 'running_id': 'low', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 1], }, { 'value': 0, 'core_id': 'clear', 'running_id': 'clear', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], }, { 'value': 0, 'core_id': 'unknown', 'running_id': 'unknown', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], }, { 'value': 0, 'core_id': 'maintenance', 'running_id': 'maintenance', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], }, { 'value': 0, 'core_id': 'shutteddown', 'running_id': 'shutteddown', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], }, { 'value': 0, 'core_id': 'malfunctioning', 'running_id': 'malfunctioning', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], }, { 'value': 4, 'core_id': 'critical_unreliable', 'running_id': 'critical_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 4], }, { 'value': 3, 'core_id': 'high_unreliable', 'running_id': 'high_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 3], }, { 'value': 2, 'core_id': 'medium_unreliable', 'running_id': 'medium_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 2], }, { 'value': 1, 'core_id': 'low_unreliable', 'running_id': 'low_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 1], }, { 'value': 0, 'core_id': 'clear_unreliable', 'running_id': 'clear_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], }, { 'value': 0, 'core_id': 'unknown_unreliable', 'running_id': 'unknown_unreliable', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], }, { 'value': 0, 'core_id': 'maintenance_unreliable', 'running_id': 'maintenance_unreliable', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], }, { 'value': 0, 'core_id': 'shutteddown_unreliable', 'running_id': 'shutteddown_unreliable', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], }, { 'value': 0, 'core_id': 'malfunctioning_unreliable', 'running_id': 'malfunctioning_unreliable', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], } ]

Set of mock Alarms for the tests

src/app/shared/alarm-header/fixtures.ts

MockAlarms
Type : []
Default value : [ { 'value': 4, 'core_id': 'critical', 'running_id': 'critical', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 3, 'core_id': 'high', 'running_id': 'high', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'medium', 'running_id': 'medium', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'low', 'running_id': 'low', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'clear', 'running_id': 'clear', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'unknown', 'running_id': 'unknown', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'maintenance', 'running_id': 'maintenance', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'shutteddown', 'running_id': 'shutteddown', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'malfunctioning', 'running_id': 'malfunctioning', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 4, 'core_id': 'critical_unreliable', 'running_id': 'critical_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 3, 'core_id': 'high_unreliable', 'running_id': 'high_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'medium_unreliable', 'running_id': 'medium_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'low_unreliable', 'running_id': 'low_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'clear_unreliable', 'running_id': 'clear_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'unknown_unreliable', 'running_id': 'unknown_unreliable', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'maintenance_unreliable', 'running_id': 'maintenance_unreliable', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'shutteddown_unreliable', 'running_id': 'shutteddown_unreliable', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'malfunctioning_unreliable', 'running_id': 'malfunctioning_unreliable', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], } ]

Set of mock Alarms for the tests

src/app/shared/alarm-blink/fixtures.ts

MockAlarms
Type : []
Default value : [ Alarm.asAlarm({ 'value': 0, 'core_id': 'clear', 'running_id': 'clear', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }), Alarm.asAlarm({ 'value': 1, 'core_id': 'low', 'running_id': 'low', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 1], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }), Alarm.asAlarm({ 'value': 2, 'core_id': 'medium', 'running_id': 'medium', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 2], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }), Alarm.asAlarm({ 'value': 3, 'core_id': 'high', 'running_id': 'high', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 3], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }), Alarm.asAlarm({ 'value': 4, 'core_id': 'critical', 'running_id': 'critical', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 1267252440000, 'value_change_transition': [0, 4], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'sound1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }), ]

Set of mock Alarms for the tests

src/app/shared/alarm/fixtures.ts

MockAlarms
Type : []
Default value : [ { 'value': 4, 'core_id': 'critical', 'running_id': 'critical', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 3, 'core_id': 'high', 'running_id': 'high', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'medium', 'running_id': 'medium', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'low', 'running_id': 'low', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'clear', 'running_id': 'clear', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'unknown', 'running_id': 'unknown', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'maintenance', 'running_id': 'maintenance', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'shutteddown', 'running_id': 'shutteddown', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'malfunctioning', 'running_id': 'malfunctioning', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 1, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 4, 'core_id': 'critical_unreliable', 'running_id': 'critical_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 3, 'core_id': 'high_unreliable', 'running_id': 'high_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 2, 'core_id': 'medium_unreliable', 'running_id': 'medium_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 1, 'core_id': 'low_unreliable', 'running_id': 'low_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'clear_unreliable', 'running_id': 'clear_unreliable', 'mode': 5, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'unknown_unreliable', 'running_id': 'unknown_unreliable', 'mode': 7, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'maintenance_unreliable', 'running_id': 'maintenance_unreliable', 'mode': 4, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'shutteddown_unreliable', 'running_id': 'shutteddown_unreliable', 'mode': 3, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], }, { 'value': 0, 'core_id': 'malfunctioning_unreliable', 'running_id': 'malfunctioning_unreliable', 'mode': 8, 'core_timestamp': 1267252440000, 'state_change_timestamp': 1267252440000, 'value_change_timestamp': 0, 'value_change_transition': [0, 0], 'validity': 0, 'description': 'my description', 'url': 'https://www.alma.cl', 'sound': 'TYPE1', 'can_shelve': true, 'ack': false, 'shelved': false, 'dependencies': [], } ]

Set of mock Alarms for the tests

MockImageSet
Default value : new AlarmImageSet({ clear: 'clear', set_low: 'low', set_medium: 'medium', set_high: 'high', set_critical: 'critical', unknown: 'unknown', maintenance: 'maintenance', shelved: 'shelved', })

Set of mock icons alarms for the tests

MockImageUnreliableSet
Default value : new AlarmImageSet({ clear: 'clear_unreliable', set_low: 'low_unreliable', set_medium: 'medium_unreliable', set_high: 'high_unreliable', set_critical: 'critical_unreliable', unknown: 'unknown_unreliable', maintenance: 'maintenance_unreliable', shelved: 'shelved_unreliable', })

Set of mock icons for unreliable alarms for the tests

result-matching ""

    No results matching ""