Skip to content

Commit 250a2d3

Browse files
committed
docs(opensearch): Add a security disabled example to the docs
1 parent e110b00 commit 250a2d3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/modules/opensearch.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ Choose an image from the [container registry](https://hub.docker.com/r/opensearc
3333
<!--codeinclude-->
3434
[](../../packages/modules/opensearch/src/opensearch-container.test.ts) inside_block:opensearchCustomPassword
3535
<!--/codeinclude-->
36+
37+
### With security disabled
38+
39+
<!--codeinclude-->
40+
[](../../packages/modules/opensearch/src/opensearch-container.test.ts) inside_block:opensearchDisableSecurity
41+
<!--/codeinclude-->

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ describe("OpenSearchContainer", { timeout: 180_000 }, () => {
104104
});
105105

106106
it("should be reachable with security disabled", async () => {
107-
// opensearchCustomPassword {
107+
// opensearchDisableSecurity {
108108
await using container = await new OpenSearchContainer(IMAGE).withSecurityEnabled(false).start();
109-
// }
110109

111110
const client = new Client({
112111
node: container.getHttpUrl(),
@@ -115,6 +114,7 @@ describe("OpenSearchContainer", { timeout: 180_000 }, () => {
115114
password: container.getPassword(),
116115
},
117116
});
117+
// }
118118

119119
await client.indices.create({ index: "people" });
120120

0 commit comments

Comments
 (0)