Skip to content

Commit a303c51

Browse files
committed
Enable glance in kuttl tests
1 parent 0dbf1d1 commit a303c51

File tree

7 files changed

+147
-0
lines changed

7 files changed

+147
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: glance.openstack.org/v1beta1
2+
kind: Glance
3+
metadata:
4+
name: glance
5+
spec:
6+
serviceUser: glance
7+
customServiceConfig: |
8+
[DEFAULT]
9+
debug = true
10+
enabled_backends=foo:bar
11+
databaseInstance: openstack
12+
databaseAccount: glance
13+
secret: osp-secret
14+
storage:
15+
storageClass: local-storage
16+
storageRequest: 10G
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- glance_v1beta1_glance.yaml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: glance.openstack.org/v1beta1
2+
kind: Glance
3+
metadata:
4+
name: glance
5+
spec:
6+
serviceUser: glance
7+
databaseInstance: openstack
8+
databaseAccount: glance
9+
keystoneEndpoint: default
10+
customServiceConfig: |
11+
[DEFAULT]
12+
debug = true
13+
glanceAPIs:
14+
default:
15+
type: single
16+
preserveJobs: false
17+
replicas: 1
18+
imageCache:
19+
size: 2G
20+
secret: osp-secret
21+
storage:
22+
storageClass: local-storage
23+
storageRequest: 10G
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- ../base
5+
patches:
6+
- path: glance.yaml

config/samples/octavia_v1beta1_octavia.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Octavia
33
metadata:
44
name: octavia
55
spec:
6+
amphoraImageContainerImage: quay.io/gthiemonge/octavia-amphora-image
67
databaseInstance: openstack
78
databaseAccount: octavia
89
persistenceDatabaseAccount: octavia-persistence

tests/kuttl/common/assert_sample_deployment.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,101 @@ spec:
6969
service: OctaviaPassword
7070
secret: osp-secret
7171
serviceUser: octavia
72+
status:
73+
apireadyCount: 1
74+
healthmanagerreadyCount: 1
75+
housekeepingreadyCount: 1
76+
rsyslogreadyCount: 1
77+
databaseHostname: openstack.octavia-kuttl-tests.svc
78+
conditions:
79+
- message: Setup complete
80+
reason: Ready
81+
status: "True"
82+
type: Ready
83+
- message: DB create completed
84+
reason: Ready
85+
status: "True"
86+
type: DBReady
87+
- message: DBsync completed
88+
reason: Ready
89+
status: "True"
90+
type: DBSyncReady
91+
- message: Exposing service completed
92+
reason: Ready
93+
status: "True"
94+
type: ExposeServiceReady
95+
- message: Input data complete
96+
reason: Ready
97+
status: "True"
98+
type: InputReady
99+
- message: MariaDBAccount creation complete
100+
reason: Ready
101+
status: "True"
102+
type: MariaDBAccountReady
103+
- message: NetworkAttachments completed
104+
reason: Ready
105+
status: "True"
106+
type: NetworkAttachmentsReady
107+
- message: Setup complete
108+
reason: Ready
109+
status: "True"
110+
type: OctaviaAPIReady
111+
- message: Octavia Amphora certificates setup completed
112+
reason: Ready
113+
status: "True"
114+
type: OctaviaAmphoraCertsReady
115+
- message: Octavia Amphora Images setup completed
116+
reason: Ready
117+
status: "True"
118+
type: OctaviaAmphoraImagesReady
119+
- message: Octavia Amphora SSH setup completed
120+
reason: Ready
121+
status: "True"
122+
type: OctaviaAmphoraSSHReady
123+
- message: Setup complete
124+
reason: Ready
125+
status: "True"
126+
type: OctaviaHealthManagerReady
127+
- message: Setup complete
128+
reason: Ready
129+
status: "True"
130+
type: OctaviaHousekeepingReady
131+
- message: Octavia Management Network setup completed
132+
reason: Ready
133+
status: "True"
134+
type: OctaviaManagementNetworkReady
135+
- message: Octavia quotas setup completed
136+
reason: Ready
137+
status: "True"
138+
type: OctaviaQuotasReady
139+
- message: Setup complete
140+
reason: Ready
141+
status: "True"
142+
type: OctaviaRsyslogReady
143+
- message: Setup complete
144+
reason: Ready
145+
status: "True"
146+
type: OctaviaWorkerReady
147+
- message: RabbitMqTransportURL successfully created
148+
reason: Ready
149+
status: "True"
150+
type: RabbitMqTransportURLReady
151+
- message: RoleBinding created
152+
reason: Ready
153+
status: "True"
154+
type: RoleBindingReady
155+
- message: Role created
156+
reason: Ready
157+
status: "True"
158+
type: RoleReady
159+
- message: ServiceAccount created
160+
reason: Ready
161+
status: "True"
162+
type: ServiceAccountReady
163+
- message: Service config create completed
164+
reason: Ready
165+
status: "True"
166+
type: ServiceConfigReady
72167
---
73168
apiVersion: apps/v1
74169
kind: Deployment

tests/kuttl/tests/octavia_scale/00-test-resources.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ kind: TestStep
33
commands:
44
- script: |
55
oc kustomize ../../../../config/samples/network-attachment-definition | oc apply -n $NAMESPACE -f -
6+
- script: |
7+
oc kustomize ../../../../config/samples/glance/single | oc apply -n $NAMESPACE -f -

0 commit comments

Comments
 (0)