Skip to content

Commit

Permalink
Fix types in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández Gómez committed Oct 26, 2022
1 parent c17f46e commit 0e62d4e
Showing 1 changed file with 162 additions and 159 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,171 +132,174 @@ function getBrowserJourneyMockSlice() {

function getMonitorDetailsMockSlice() {
return {
pings: [
{
summary: { up: 1, down: 0 },
agent: {
name: 'cron-b010e1cc9518984e-27644714-4pd4h',
id: 'f8721d90-5aec-4815-a6f1-f4d4a6fb7482',
type: 'heartbeat',
ephemeral_id: 'd6a60494-5e52-418f-922b-8e90f0b4013c',
version: '8.3.0',
},
synthetics: {
journey: { name: 'inline', id: 'inline', tags: null },
type: 'heartbeat/summary',
},
monitor: {
duration: { us: 269722 },
origin: SourceType.UI,
name: 'One pixel monitor',
check_group: '051aba1c-0b74-11ed-9f0e-ba4e6fa109d5',
id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
timespan: { lt: '2022-07-24T17:24:06.094Z', gte: '2022-07-24T17:14:06.094Z' },
type: DataStream.BROWSER,
status: 'up',
},
url: {
scheme: 'data',
domain: '',
full: 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
},
observer: {
geo: {
continent_name: 'North America',
city_name: 'Iowa',
country_iso_code: 'US',
name: 'North America - US Central',
location: '41.8780, 93.0977',
pings: {
total: 3,
data: [
{
summary: { up: 1, down: 0 },
agent: {
name: 'cron-b010e1cc9518984e-27644714-4pd4h',
id: 'f8721d90-5aec-4815-a6f1-f4d4a6fb7482',
type: 'heartbeat',
ephemeral_id: 'd6a60494-5e52-418f-922b-8e90f0b4013c',
version: '8.3.0',
},
hostname: 'cron-b010e1cc9518984e-27644714-4pd4h',
ip: ['10.1.11.162'],
mac: ['ba:4e:6f:a1:09:d5'],
},
'@timestamp': '2022-07-24T17:14:05.079Z',
ecs: { version: '8.0.0' },
config_id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
data_stream: { namespace: 'default', type: 'synthetics', dataset: 'browser' },
'event.type': 'journey/end',
event: {
agent_id_status: 'auth_metadata_missing',
ingested: '2022-07-24T17:14:07Z',
type: 'heartbeat/summary',
dataset: 'browser',
},
timestamp: '2022-07-24T17:14:05.079Z',
docId: 'AkYzMYIBqL6WCtugsFck',
},
{
summary: { up: 1, down: 0 },
agent: {
name: 'cron-b010e1cc9518984e-27644704-zs98t',
id: 'a9620214-591d-48e7-9e5d-10b7a9fb1a03',
type: 'heartbeat',
ephemeral_id: 'c5110885-81b4-4e9a-8747-690d19fbd225',
version: '8.3.0',
},
synthetics: {
journey: { name: 'inline', id: 'inline', tags: null },
type: 'heartbeat/summary',
},
monitor: {
duration: { us: 227326 },
origin: SourceType.UI,
name: 'One pixel monitor',
id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
check_group: '9eb87e53-0b72-11ed-b34f-aa618b4334ae',
timespan: { lt: '2022-07-24T17:14:05.020Z', gte: '2022-07-24T17:04:05.020Z' },
type: DataStream.BROWSER,
status: 'up',
},
url: {
scheme: 'data',
domain: '',
full: 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
},
observer: {
geo: {
continent_name: 'North America',
city_name: 'Iowa',
country_iso_code: 'US',
name: 'North America - US Central',
location: '41.8780, 93.0977',
synthetics: {
journey: { name: 'inline', id: 'inline', tags: null },
type: 'heartbeat/summary',
},
hostname: 'cron-b010e1cc9518984e-27644704-zs98t',
ip: ['10.1.9.133'],
mac: ['aa:61:8b:43:34:ae'],
},
'@timestamp': '2022-07-24T17:04:03.769Z',
ecs: { version: '8.0.0' },
config_id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
data_stream: { namespace: 'default', type: 'synthetics', dataset: 'browser' },
'event.type': 'journey/end',
event: {
agent_id_status: 'auth_metadata_missing',
ingested: '2022-07-24T17:04:06Z',
type: 'heartbeat/summary',
dataset: 'browser',
},
timestamp: '2022-07-24T17:04:03.769Z',
docId: 'mkYqMYIBqL6WCtughFUq',
},
{
summary: { up: 1, down: 0 },
agent: {
name: 'job-b010e1cc9518984e-dkw5k',
id: 'e3a4e3a8-bdd1-44fe-86f5-e451b80f80c5',
type: 'heartbeat',
ephemeral_id: 'f41a13ab-a85d-4614-89c0-8dbad6a32868',
version: '8.3.0',
},
synthetics: {
journey: { name: 'inline', id: 'inline', tags: null },
type: 'heartbeat/summary',
},
monitor: {
duration: { us: 207700 },
origin: SourceType.UI,
name: 'One pixel monitor',
timespan: { lt: '2022-07-24T17:11:49.702Z', gte: '2022-07-24T17:01:49.702Z' },
check_group: '4e00ac5a-0b72-11ed-a97e-5203642c687d',
id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
type: DataStream.BROWSER,
status: 'up',
},
url: {
scheme: 'data',
domain: '',
full: 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
monitor: {
duration: { us: 269722 },
origin: SourceType.UI,
name: 'One pixel monitor',
check_group: '051aba1c-0b74-11ed-9f0e-ba4e6fa109d5',
id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
timespan: { lt: '2022-07-24T17:24:06.094Z', gte: '2022-07-24T17:14:06.094Z' },
type: DataStream.BROWSER,
status: 'up',
},
url: {
scheme: 'data',
domain: '',
full: 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
},
observer: {
geo: {
continent_name: 'North America',
city_name: 'Iowa',
country_iso_code: 'US',
name: 'North America - US Central',
location: '41.8780, 93.0977',
},
hostname: 'cron-b010e1cc9518984e-27644714-4pd4h',
ip: ['10.1.11.162'],
mac: ['ba:4e:6f:a1:09:d5'],
},
'@timestamp': '2022-07-24T17:14:05.079Z',
ecs: { version: '8.0.0' },
config_id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
data_stream: { namespace: 'default', type: 'synthetics', dataset: 'browser' },
'event.type': 'journey/end',
event: {
agent_id_status: 'auth_metadata_missing',
ingested: '2022-07-24T17:14:07Z',
type: 'heartbeat/summary',
dataset: 'browser',
},
timestamp: '2022-07-24T17:14:05.079Z',
docId: 'AkYzMYIBqL6WCtugsFck',
},
observer: {
geo: {
continent_name: 'North America',
city_name: 'Iowa',
country_iso_code: 'US',
name: 'North America - US Central',
location: '41.8780, 93.0977',
{
summary: { up: 1, down: 0 },
agent: {
name: 'cron-b010e1cc9518984e-27644704-zs98t',
id: 'a9620214-591d-48e7-9e5d-10b7a9fb1a03',
type: 'heartbeat',
ephemeral_id: 'c5110885-81b4-4e9a-8747-690d19fbd225',
version: '8.3.0',
},
synthetics: {
journey: { name: 'inline', id: 'inline', tags: null },
type: 'heartbeat/summary',
},
monitor: {
duration: { us: 227326 },
origin: SourceType.UI,
name: 'One pixel monitor',
id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
check_group: '9eb87e53-0b72-11ed-b34f-aa618b4334ae',
timespan: { lt: '2022-07-24T17:14:05.020Z', gte: '2022-07-24T17:04:05.020Z' },
type: DataStream.BROWSER,
status: 'up',
},
url: {
scheme: 'data',
domain: '',
full: 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
},
observer: {
geo: {
continent_name: 'North America',
city_name: 'Iowa',
country_iso_code: 'US',
name: 'North America - US Central',
location: '41.8780, 93.0977',
},
hostname: 'cron-b010e1cc9518984e-27644704-zs98t',
ip: ['10.1.9.133'],
mac: ['aa:61:8b:43:34:ae'],
},
'@timestamp': '2022-07-24T17:04:03.769Z',
ecs: { version: '8.0.0' },
config_id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
data_stream: { namespace: 'default', type: 'synthetics', dataset: 'browser' },
'event.type': 'journey/end',
event: {
agent_id_status: 'auth_metadata_missing',
ingested: '2022-07-24T17:04:06Z',
type: 'heartbeat/summary',
dataset: 'browser',
},
hostname: 'job-b010e1cc9518984e-dkw5k',
ip: ['10.1.9.132'],
mac: ['52:03:64:2c:68:7d'],
timestamp: '2022-07-24T17:04:03.769Z',
docId: 'mkYqMYIBqL6WCtughFUq',
},
'@timestamp': '2022-07-24T17:01:48.326Z',
ecs: { version: '8.0.0' },
config_id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
data_stream: { namespace: 'default', type: 'synthetics', dataset: 'browser' },
'event.type': 'journey/end',
event: {
agent_id_status: 'auth_metadata_missing',
ingested: '2022-07-24T17:01:50Z',
type: 'heartbeat/summary',
dataset: 'browser',
{
summary: { up: 1, down: 0 },
agent: {
name: 'job-b010e1cc9518984e-dkw5k',
id: 'e3a4e3a8-bdd1-44fe-86f5-e451b80f80c5',
type: 'heartbeat',
ephemeral_id: 'f41a13ab-a85d-4614-89c0-8dbad6a32868',
version: '8.3.0',
},
synthetics: {
journey: { name: 'inline', id: 'inline', tags: null },
type: 'heartbeat/summary',
},
monitor: {
duration: { us: 207700 },
origin: SourceType.UI,
name: 'One pixel monitor',
timespan: { lt: '2022-07-24T17:11:49.702Z', gte: '2022-07-24T17:01:49.702Z' },
check_group: '4e00ac5a-0b72-11ed-a97e-5203642c687d',
id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
type: DataStream.BROWSER,
status: 'up',
},
url: {
scheme: 'data',
domain: '',
full: 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
},
observer: {
geo: {
continent_name: 'North America',
city_name: 'Iowa',
country_iso_code: 'US',
name: 'North America - US Central',
location: '41.8780, 93.0977',
},
hostname: 'job-b010e1cc9518984e-dkw5k',
ip: ['10.1.9.132'],
mac: ['52:03:64:2c:68:7d'],
},
'@timestamp': '2022-07-24T17:01:48.326Z',
ecs: { version: '8.0.0' },
config_id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
data_stream: { namespace: 'default', type: 'synthetics', dataset: 'browser' },
'event.type': 'journey/end',
event: {
agent_id_status: 'auth_metadata_missing',
ingested: '2022-07-24T17:01:50Z',
type: 'heartbeat/summary',
dataset: 'browser',
},
timestamp: '2022-07-24T17:01:48.326Z',
docId: 'kUYoMYIBqL6WCtugc1We',
},
timestamp: '2022-07-24T17:01:48.326Z',
docId: 'kUYoMYIBqL6WCtugc1We',
},
],
loading: false,
],
loading: false,
},
syntheticsMonitor: {
id: '4afd3980-0b72-11ed-9c10-b57918ea89d6',
type: DataStream.BROWSER,
Expand Down

0 comments on commit 0e62d4e

Please sign in to comment.