Skip to content

Commit d71cb1a

Browse files
committed
Fix an API test that asserts that the rules do not get created when connectors are undefined.
1 parent 4a75c36 commit d71cb1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/solutions/observability/test/api_integration_deployment_agnostic/apis/synthetics/enable_default_alerting.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
7474
.expect(200);
7575
});
7676

77-
it('does not create the rules when there are no connectors defined', async () => {
77+
it('does create the rules when there are no connectors defined', async () => {
7878
await supertest
7979
.put(SYNTHETICS_API_URLS.DYNAMIC_SETTINGS)
8080
.set(editorUser.apiKeyHeader)
@@ -89,8 +89,8 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
8989
.send()
9090
.expect(200);
9191

92-
expect(apiResponse.body.statusRule).to.be(null);
93-
expect(apiResponse.body.tlsRule).to.be(null);
92+
expect(apiResponse.body.statusRule).not.to.be(null);
93+
expect(apiResponse.body.tlsRule).not.to.be(null);
9494
});
9595

9696
it('returns the created alerted when called', async () => {

0 commit comments

Comments
 (0)