From 29b36fd6e6e68e1aa4314bb5f0cf6ae6004f71e9 Mon Sep 17 00:00:00 2001 From: Felix Breuer Date: Fri, 27 Mar 2026 11:29:09 +0100 Subject: [PATCH] set dhcp to true in integration test Signed-off-by: Felix Breuer --- pkg/controller/infrastructure/stackit/infraflow/reconcile.go | 2 +- test/integration/infrastructure/stackit/infrastructure_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/infrastructure/stackit/infraflow/reconcile.go b/pkg/controller/infrastructure/stackit/infraflow/reconcile.go index 739512d..11b2dda 100644 --- a/pkg/controller/infrastructure/stackit/infraflow/reconcile.go +++ b/pkg/controller/infrastructure/stackit/infraflow/reconcile.go @@ -113,7 +113,7 @@ func (fctx *FlowContext) ensureConfiguredNetwork(ctx context.Context) error { networkIPv4Config := network.GetIpv4() // In IaaS API Network can only have 1 Prefix. However, in OpenStack previously it was possible to have more. - // We never used this but let's bet sure by checking it here. + // We never used this but let's be sure by checking it here. if len(networkIPv4Config.GetPrefixes()) > 1 { return fmt.Errorf("multiple prefixes found for network '%s'", networkID) } diff --git a/test/integration/infrastructure/stackit/infrastructure_test.go b/test/integration/infrastructure/stackit/infrastructure_test.go index 4211c07..2a2f923 100644 --- a/test/integration/infrastructure/stackit/infrastructure_test.go +++ b/test/integration/infrastructure/stackit/infrastructure_test.go @@ -593,6 +593,7 @@ func prepareIsolatedNetwork(log logr.Logger, networkName string) (*string, error log.Info("Waiting until network is created", "networkName", networkName) createOpts := iaas.CreateIsolatedNetworkPayload{ + Dhcp: new(true), Name: new(networkName), Ipv4: &iaas.CreateNetworkIPv4{ CreateNetworkIPv4WithPrefix: &iaas.CreateNetworkIPv4WithPrefix{