Skip to content

Commit

Permalink
More tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
doracretu3pillar committed Sep 20, 2024
1 parent d8318ae commit b95747b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ describe('AddRemoteInstanceService:: ', () => {
replication_set: 'test',
cluster: 'test',
custom_labels: 'test:test',
pmm_agent_id: {
value: 'pmm-server'
}
};

const payload = {
Expand Down Expand Up @@ -93,7 +96,7 @@ describe('AddRemoteInstanceService:: ', () => {
qan_postgresql_pgstatements_agent: true,
metrics_mode: 1,
};

expect(toPayload(data)).toStrictEqual(payload);
const expected = toPayload(data);
expect(expected).toStrictEqual(payload);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('Get instance data:: ', () => {
port: '5432',
metricsParameters: 'manually',
schema: 'https',
pmm_agent_id: '',
},
};

Expand Down Expand Up @@ -77,6 +78,7 @@ describe('Get instance data:: ', () => {
port: '27017',
metricsParameters: 'manually',
schema: 'https',
pmm_agent_id: '',
},
};

Expand All @@ -100,6 +102,7 @@ describe('Get instance data:: ', () => {
port: '3306',
metricsParameters: 'manually',
schema: 'https',
pmm_agent_id: '',
},
};

Expand All @@ -123,6 +126,7 @@ describe('Get instance data:: ', () => {
port: '6032',
metricsParameters: 'manually',
schema: 'https',
pmm_agent_id: '',
},
};

Expand Down

0 comments on commit b95747b

Please sign in to comment.