Skip to content

Commit 36cb4c9

Browse files
committed
Add kuttl assertions for CloudKitty resources
1 parent ee3c4a2 commit 36cb4c9

File tree

2 files changed

+116
-4
lines changed

2 files changed

+116
-4
lines changed

tests/kuttl/suites/cloudkitty/tests/01-assert.yaml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,119 @@ status:
7979
conditions:
8080
- status: "True"
8181
type: Ready
82+
---
83+
apiVersion: apps/v1
84+
kind: StatefulSet
85+
metadata:
86+
labels:
87+
component: cloudkitty-api
88+
service: cloudkitty
89+
name: telemetry-kuttl-cloudkitty-api
90+
ownerReferences:
91+
- kind: CloudKittyAPI
92+
name: telemetry-kuttl-cloudkitty-api
93+
spec:
94+
replicas: 1
95+
selector:
96+
matchLabels:
97+
component: cloudkitty-api
98+
service: cloudkitty
99+
status:
100+
availableReplicas: 1
101+
currentReplicas: 1
102+
readyReplicas: 1
103+
replicas: 1
104+
---
105+
apiVersion: v1
106+
kind: Pod
107+
metadata:
108+
labels:
109+
component: cloudkitty-api
110+
service: cloudkitty
111+
name: telemetry-kuttl-cloudkitty-api-0
112+
ownerReferences:
113+
- kind: StatefulSet
114+
name: telemetry-kuttl-cloudkitty-api
115+
spec:
116+
containers:
117+
- name: cloudkitty-api
118+
hostname: telemetry-kuttl-cloudkitty-api-0
119+
status:
120+
containerStatuses:
121+
- name: cloudkitty-api
122+
ready: true
123+
started: true
124+
---
125+
apiVersion: v1
126+
kind: Service
127+
metadata:
128+
labels:
129+
component: cloudkitty-api
130+
service: cloudkitty
131+
name: cloudkitty-internal
132+
ownerReferences:
133+
- kind: CloudKittyAPI
134+
name: telemetry-kuttl-cloudkitty-api
135+
spec:
136+
ports:
137+
- port: 8889
138+
protocol: TCP
139+
targetPort: 8889
140+
---
141+
apiVersion: v1
142+
kind: Service
143+
metadata:
144+
labels:
145+
component: cloudkitty-api
146+
service: cloudkitty
147+
name: cloudkitty-public
148+
ownerReferences:
149+
- kind: CloudKittyAPI
150+
name: telemetry-kuttl-cloudkitty-api
151+
spec:
152+
ports:
153+
- port: 8889
154+
protocol: TCP
155+
targetPort: 8889
156+
---
157+
apiVersion: apps/v1
158+
kind: StatefulSet
159+
metadata:
160+
labels:
161+
component: cloudkitty-proc
162+
service: cloudkitty
163+
name: telemetry-kuttl-cloudkitty-proc
164+
ownerReferences:
165+
- kind: CloudKittyProc
166+
name: telemetry-kuttl-cloudkitty-proc
167+
spec:
168+
replicas: 1
169+
selector:
170+
matchLabels:
171+
component: cloudkitty-proc
172+
service: cloudkitty
173+
status:
174+
availableReplicas: 1
175+
currentReplicas: 1
176+
readyReplicas: 1
177+
replicas: 1
178+
---
179+
apiVersion: v1
180+
kind: Pod
181+
metadata:
182+
labels:
183+
component: cloudkitty-proc
184+
service: cloudkitty
185+
name: telemetry-kuttl-cloudkitty-proc-0
186+
ownerReferences:
187+
- kind: StatefulSet
188+
name: telemetry-kuttl-cloudkitty-proc
189+
spec:
190+
containers:
191+
- name: cloudkitty-processor
192+
hostname: telemetry-kuttl-cloudkitty-proc-0
193+
status:
194+
containerStatuses:
195+
- name: cloudkitty-processor
196+
ready: true
197+
started: true

tests/kuttl/suites/cloudkitty/tests/01-deploy.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ metadata:
55
spec:
66
apiTimeout: 0
77
cloudKittyAPI:
8-
# TODO: This should go away once CK images are taken from openstackversions
9-
containerImage: quay.io/jwysogla/cloudkitty-api:latest
108
override:
119
service:
1210
internal:
@@ -27,8 +25,6 @@ spec:
2725
public: {}
2826
caBundleSecretName: combined-ca-bundle
2927
cloudKittyProc:
30-
# TODO: This should go away once CK images are taken from openstackversions
31-
containerImage: quay.io/jwysogla/cloudkitty-processor:latest
3228
replicas: 1
3329
resources: {}
3430
tls:

0 commit comments

Comments
 (0)