Skip to content

Commit d235435

Browse files
committed
feat(opensearch): Add assertion that checks schema is http when tls is disabled
1 parent 250a2d3 commit d235435

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/modules/opensearch/src/opensearch-container.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ describe("OpenSearchContainer", { timeout: 180_000 }, () => {
116116
});
117117
// }
118118

119+
// Url should start with http not https.
120+
expect(container.getHttpUrl()).toMatch(/^http:\/\/.*/);
121+
119122
await client.indices.create({ index: "people" });
120123

121124
const { body } = await client.indices.exists({ index: "people" });

0 commit comments

Comments
 (0)