From 38e84342edec4955df280094a1fa5eb50bbb09de Mon Sep 17 00:00:00 2001 From: Brendan Shephard Date: Fri, 31 May 2024 09:44:56 +1000 Subject: [PATCH] Enable Horizon in functional tests Signed-off-by: Brendan Shephard --- pkg/openstack/horizon.go | 2 -- tests/functional/base_test.go | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/openstack/horizon.go b/pkg/openstack/horizon.go index d8af6cf2d..c027c6f0e 100644 --- a/pkg/openstack/horizon.go +++ b/pkg/openstack/horizon.go @@ -83,7 +83,6 @@ func ReconcileHorizon(ctx context.Context, instance *corev1beta1.OpenStackContro // apiOverrides := instance.Spec.Horizon.APIOverride - // Initialize Route if nil if apiOverrides.Route == nil { apiOverrides.Route = &route.OverrideSpec{} } @@ -92,7 +91,6 @@ func ReconcileHorizon(ctx context.Context, instance *corev1beta1.OpenStackContro apiOverrides.Route.EmbeddedLabelsAnnotations = &route.EmbeddedLabelsAnnotations{} } - // Initialize the annotations map if it is nil if apiOverrides.Route.Annotations == nil { apiOverrides.Route.Annotations = map[string]string{} } diff --git a/tests/functional/base_test.go b/tests/functional/base_test.go index cc8a80307..627126787 100644 --- a/tests/functional/base_test.go +++ b/tests/functional/base_test.go @@ -372,6 +372,9 @@ func GetDefaultOpenStackControlPlaneSpec() map[string]interface{} { "glance": map[string]interface{}{ "enabled": false, }, + "horizon": map[string]interface{}{ + "enabled": true, + }, "cinder": map[string]interface{}{ "enabled": false, },