Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiqueclarke committed Sep 29, 2022
1 parent 3a7d244 commit 5c43159
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ describe('http normalizers', () => {
timeout: '80',
type: 'http',
urls: 'http://localhost:9200',
'url.port': null,
username: '',
},
unsupportedKeys: ['check.response.body', 'unsupportedKey.nestedUnsupportedKey'],
Expand Down Expand Up @@ -232,6 +233,7 @@ describe('http normalizers', () => {
timeout: '80',
type: 'http',
urls: 'http://localhost:9200',
'url.port': null,
username: '',
},
unsupportedKeys: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { Locations, LocationStatus, PrivateLocation } from '../../../../common/runtime_types';
import { normalizeProjectMonitors } from '.';

describe('http normalizers', () => {
describe('icmp normalizers', () => {
describe('normalize push monitors', () => {
const projectId = 'test-project-id';
const locations: Locations = [
Expand Down Expand Up @@ -81,7 +81,7 @@ describe('http normalizers', () => {
},
];

it('properly normalizes http monitors', () => {
it('properly normalizes icmp monitors', () => {
const actual = normalizeProjectMonitors({
locations,
privateLocations,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { Locations, LocationStatus, PrivateLocation } from '../../../../common/runtime_types';
import { normalizeProjectMonitors } from '.';

describe('http normalizers', () => {
describe('tcp normalizers', () => {
describe('normalize push monitors', () => {
const projectId = 'test-project-id';
const locations: Locations = [
Expand Down Expand Up @@ -83,7 +83,7 @@ describe('http normalizers', () => {
},
];

it('properly normalizes http monitors', () => {
it('properly normalizes tcp monitors', () => {
const actual = normalizeProjectMonitors({
locations,
privateLocations,
Expand All @@ -106,6 +106,7 @@ describe('http normalizers', () => {
enabled: true,
form_monitor_type: 'tcp',
hosts: 'smtp.gmail.com:587',
'url.port': null,
journey_id: 'gmail-smtp',
locations: [
{
Expand Down Expand Up @@ -157,6 +158,7 @@ describe('http normalizers', () => {
enabled: true,
form_monitor_type: 'tcp',
hosts: 'localhost:18278',
'url.port': null,
journey_id: 'always-down',
locations: [
{
Expand Down Expand Up @@ -221,6 +223,7 @@ describe('http normalizers', () => {
enabled: true,
form_monitor_type: 'tcp',
hosts: 'localhost',
'url.port': null,
journey_id: 'always-down',
locations: [
{
Expand Down

0 comments on commit 5c43159

Please sign in to comment.