-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from kenmoini/182-patch
Patch for Issue #182
- Loading branch information
Showing
5 changed files
with
116 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
94 changes: 94 additions & 0 deletions
94
helm-chart-sources/logstream-leader/tests/service_test.yaml
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,94 @@ | ||
suite: Service | ||
templates: | ||
- service.yaml | ||
- service-internal.yaml | ||
tests: | ||
- it: Should not set annotations by default to the external service | ||
template: service.yaml | ||
asserts: | ||
- equal: | ||
path: metadata.annotations | ||
value: {} | ||
|
||
- it: Should not set annotations to the internal service | ||
template: service-internal.yaml | ||
asserts: | ||
- equal: | ||
path: metadata.annotations | ||
value: {} | ||
|
||
- it: Applies an annotation to the internal service that would be shared with the external service | ||
template: service-internal.yaml | ||
set: | ||
service: | ||
annotations: | ||
foo: bar | ||
asserts: | ||
- equal: | ||
path: metadata.annotations.foo | ||
value: "bar" | ||
|
||
- it: Applies an annotation to the external service that would be shared with the internal service | ||
template: service.yaml | ||
set: | ||
service: | ||
annotations: | ||
foo: bar | ||
asserts: | ||
- equal: | ||
path: metadata.annotations.foo | ||
value: "bar" | ||
|
||
- it: Applies an annotation to the internal service only | ||
template: service-internal.yaml | ||
set: | ||
service: | ||
internalAnnotations: | ||
fizz: buzz | ||
asserts: | ||
- equal: | ||
path: metadata.annotations.fizz | ||
value: "buzz" | ||
|
||
- it: Applies an annotation to the external service only | ||
template: service.yaml | ||
set: | ||
service: | ||
externalAnnotations: | ||
fizz: buzz | ||
asserts: | ||
- equal: | ||
path: metadata.annotations.fizz | ||
value: "buzz" | ||
|
||
- it: Applies an annotation to the external service only and also a shared annotation | ||
template: service.yaml | ||
set: | ||
service: | ||
annotations: | ||
foo: 'bar' | ||
externalAnnotations: | ||
fizz: 'buzz' | ||
asserts: | ||
- equal: | ||
path: metadata.annotations.foo | ||
value: "bar" | ||
- equal: | ||
path: metadata.annotations.fizz | ||
value: "buzz" | ||
|
||
- it: Applies an annotation to the external service only and also a shared annotation | ||
template: service-internal.yaml | ||
set: | ||
service: | ||
annotations: | ||
bar: 'foo' | ||
internalAnnotations: | ||
buzz: 'fizz' | ||
asserts: | ||
- equal: | ||
path: metadata.annotations.bar | ||
value: "foo" | ||
- equal: | ||
path: metadata.annotations.buzz | ||
value: "fizz" |
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