-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agent): fix indentation for custom settings (#1277)
Co-authored-by: Adam Roberts <[email protected]>
- Loading branch information
1 parent
ae75590
commit 9e8d863
Showing
4 changed files
with
105 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
suite: Testing pre-generated values and best-known edge cases | ||
templates: | ||
- configmap.yaml | ||
- configmap-deployment.yaml | ||
tests: | ||
- it: Testing custom settings | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
settings: | ||
first: | ||
value: 1 | ||
second: example | ||
asserts: | ||
- matchRegex: | ||
path: data['dragent.yaml'] | ||
pattern: |- | ||
.* | ||
first: | ||
value: 1 | ||
second: example | ||
.* | ||
template: configmap.yaml | ||
|
||
- it: Testing custom settings when custom CA is in place | ||
set: | ||
ssl: | ||
ca: | ||
certs: | ||
- | | ||
-----BEGIN CERTIFICATE----- | ||
my-test-cert | ||
-----END CERTIFICATE----- | ||
keyName: "root_ca.crt" | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
settings: | ||
first: | ||
value: 1 | ||
second: example | ||
asserts: | ||
- matchRegex: | ||
path: data['dragent.yaml'] | ||
pattern: |- | ||
.* | ||
first: | ||
value: 1 | ||
second: example | ||
.* | ||
template: configmap.yaml | ||
|
||
- it: Testing custom settings in deployment | ||
set: | ||
delegatedAgentDeployment: | ||
enabled: true | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
settings: | ||
first: | ||
value: 1 | ||
second: example | ||
asserts: | ||
- matchRegex: | ||
path: data['dragent.yaml'] | ||
pattern: |- | ||
.* | ||
first: | ||
value: 1 | ||
second: example | ||
.* | ||
template: configmap-deployment.yaml | ||
|
||
- it: Testing custom settings in deployment when custom CA is in place | ||
set: | ||
delegatedAgentDeployment: | ||
enabled: true | ||
ssl: | ||
ca: | ||
certs: | ||
- | | ||
-----BEGIN CERTIFICATE----- | ||
my-test-cert | ||
-----END CERTIFICATE----- | ||
keyName: "root_ca.crt" | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
settings: | ||
first: | ||
value: 1 | ||
second: example | ||
asserts: | ||
- matchRegex: | ||
path: data['dragent.yaml'] | ||
pattern: |- | ||
.* | ||
first: | ||
value: 1 | ||
second: example | ||
.* | ||
template: configmap-deployment.yaml |