Skip to content

Commit b976cb1

Browse files
committed
Adding tests for custome annotations
1 parent b768f28 commit b976cb1

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

templates/services.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ metadata:
7373
name: {{ .Release.Name }}-st2stream
7474
annotations:
7575
description: StackStorm st2stream - exposes a server-sent event stream, used by the clients like WebUI and ChatOps to receive update from the st2stream server.
76-
{- if .Values.st2stream.service.hostname }}
76+
{{- if .Values.st2stream.service.hostname }}
7777
external-dns.alpha.kubernetes.io/hostname: {{ .Values.st2stream.service.hostname | quote }}
7878
{{- end }}
7979
{{- if .Values.st2stream.service.annotations }}

tests/unit/custom_annotations_test.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,26 @@ tests:
5252

5353
# st2auth, st2api, st2stream services do not accept custom annotations
5454

55-
- it: st2web Service accepts custom annotations
55+
- it: st2web, st2auth, st2api ans st2stream Services accepts custom annotations
5656
template: services.yaml
5757
documentIndex: 3
5858
set:
5959
st2web:
6060
service:
6161
hostname: some-host-name
6262
annotations: *annotations
63+
st2api:
64+
service:
65+
hostname: some-host-name
66+
annotations: *annotations
67+
st2auth:
68+
service:
69+
hostname: some-host-name
70+
annotations: *annotations
71+
st2stream:
72+
service:
73+
hostname: some-host-name
74+
annotations: *annotations
6375
asserts: *annotations_asserts
6476

6577
# st2chatops service does not accept custom annotations

0 commit comments

Comments
 (0)