Skip to content

Commit ee030cf

Browse files
author
Brendan Shephard
committed
Enable Heat in functional tests
This change enables the Heat service in the openstackcontrolplane functional tests. It ensures webhook logic is evaluated to avoid any potential nil pointer derefs and that we can validate the route annotations are applied. Signed-off-by: Brendan Shephard <bshephar@redhat.com>
1 parent 434f86f commit ee030cf

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎tests/functional/ctlplane/base_test.go‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,13 @@ func GetDefaultOpenStackControlPlaneSpec() map[string]interface{} {
409409
ironicTemplate := map[string]interface{}{
410410
"ironicConductors": []interface{}{},
411411
}
412+
heatTemplate := map[string]interface{}{
413+
"databaseInstance": "openstack",
414+
"secret": "osp-secret",
415+
"passwordSelectors": map[string]interface{}{
416+
"AuthEncryptionKey": "HeatAuthEncryptionKey",
417+
},
418+
}
412419

413420
return map[string]interface{}{
414421
"secret": "osp-secret",
@@ -472,6 +479,10 @@ func GetDefaultOpenStackControlPlaneSpec() map[string]interface{} {
472479
"manila": map[string]interface{}{
473480
"enabled": true,
474481
},
482+
"heat": map[string]interface{}{
483+
"enabled": true,
484+
"template": heatTemplate,
485+
},
475486
}
476487
}
477488

‎tests/functional/ctlplane/openstackversion_controller_test.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ var _ = Describe("OpenStackOperator controller", func() {
227227
spec["manila"] = map[string]interface{}{
228228
"enabled": false,
229229
}
230+
spec["heat"] = map[string]interface{}{
231+
"enabled": false,
232+
}
230233
spec["tls"] = GetTLSPublicSpec()
231234
spec["ovn"] = map[string]interface{}{
232235
"enabled": true,

0 commit comments

Comments
 (0)