Skip to content

Commit c9a6976

Browse files
committed
Implementing service_test
1 parent b69bf5a commit c9a6976

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

tests/unit/custom_annotations_test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ tests:
5252

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

55-
- it: st2web, st2auth, st2api ans st2stream Services accepts custom annotations
55+
- it: st2web, st2auth, st2api and st2stream Services accepts custom annotations
5656
template: services.yaml
57-
documentIndex: 3
5857
set:
5958
st2web:
6059
service:

tests/unit/services_test.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
suite: Services hostname and type
3+
templates:
4+
# primary template files
5+
- services.yaml
6+
7+
tests:
8+
- it: st2web, st2auth, st2api, st2stream should work without hostname
9+
set:
10+
st2web:
11+
service:
12+
hostname: some-host-name
13+
type: LoadBalancer
14+
asserts:
15+
- equal:
16+
path: spec.type
17+
value: LoadBalancer
18+
- equal:
19+
path: spec.externalName
20+
value: some-host-name

0 commit comments

Comments
 (0)