-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to add additional configuration to opensearch-dashboards.…
…yml (#77) Signed-off-by: Sayali Gaikawad <[email protected]>
- Loading branch information
Showing
5 changed files
with
86 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,13 +23,16 @@ test('Test Resources with security disabled multi-node default instance types', | |
serverAccessType: 'ipv4', | ||
restrictServerAccessTo: 'all', | ||
additionalConfig: '{ "name": "John Doe", "age": 30, "email": "[email protected]" }', | ||
additionalOsdConfig: '{ "something.enabled": "true", "something_else.enabled": "false" }', | ||
}, | ||
}); | ||
|
||
// WHEN | ||
const securityDisabledStack = new OsClusterEntrypoint(app, { | ||
env: { account: 'test-account', region: 'us-east-1' }, | ||
}); | ||
|
||
// THEN | ||
expect(securityDisabledStack.stacks).toHaveLength(2); | ||
const networkStack = securityDisabledStack.stacks.filter((s) => s.stackName === 'opensearch-network-stack')[0]; | ||
const networkTemplate = Template.fromStack(networkStack); | ||
|
@@ -299,6 +302,8 @@ test('Test multi-node cluster with only data-nodes', () => { | |
const testStack = new OsClusterEntrypoint(app, { | ||
env: { account: 'test-account', region: 'us-east-1' }, | ||
}); | ||
|
||
// THEN | ||
expect(testStack.stacks).toHaveLength(2); | ||
|
||
const infraStack = testStack.stacks.filter((s) => s.stackName === 'opensearch-infra-stack')[0]; | ||
|
@@ -349,6 +354,8 @@ test('Test multi-node cluster with remote-store enabled', () => { | |
const testStack = new OsClusterEntrypoint(app, { | ||
env: { account: 'test-account', region: 'us-east-1' }, | ||
}); | ||
|
||
// THEN | ||
expect(testStack.stacks).toHaveLength(2); | ||
|
||
const infraStack = testStack.stacks.filter((s) => s.stackName === 'opensearch-infra-stack')[0]; | ||
|
@@ -471,6 +478,8 @@ test('Test multi-node cluster with custom IAM Role', () => { | |
const testStack = new OsClusterEntrypoint(app, { | ||
env: { account: 'test-account', region: 'us-east-1' }, | ||
}); | ||
|
||
// THEN | ||
expect(testStack.stacks).toHaveLength(2); | ||
|
||
const infraStack = testStack.stacks.filter((s) => s.stackName === 'opensearch-infra-stack')[0]; | ||
|