Skip to content

Commit

Permalink
Enable Heat in functional tests
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bshephar committed Oct 30, 2024
1 parent 434f86f commit ee030cf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/functional/ctlplane/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,13 @@ func GetDefaultOpenStackControlPlaneSpec() map[string]interface{} {
ironicTemplate := map[string]interface{}{
"ironicConductors": []interface{}{},
}
heatTemplate := map[string]interface{}{
"databaseInstance": "openstack",
"secret": "osp-secret",
"passwordSelectors": map[string]interface{}{
"AuthEncryptionKey": "HeatAuthEncryptionKey",
},
}

return map[string]interface{}{
"secret": "osp-secret",
Expand Down Expand Up @@ -472,6 +479,10 @@ func GetDefaultOpenStackControlPlaneSpec() map[string]interface{} {
"manila": map[string]interface{}{
"enabled": true,
},
"heat": map[string]interface{}{
"enabled": true,
"template": heatTemplate,
},
}
}

Expand Down
3 changes: 3 additions & 0 deletions tests/functional/ctlplane/openstackversion_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ var _ = Describe("OpenStackOperator controller", func() {
spec["manila"] = map[string]interface{}{
"enabled": false,
}
spec["heat"] = map[string]interface{}{
"enabled": false,
}
spec["tls"] = GetTLSPublicSpec()
spec["ovn"] = map[string]interface{}{
"enabled": true,
Expand Down

0 comments on commit ee030cf

Please sign in to comment.