From 4f7ff4908e60678de86533a809550595617af9f7 Mon Sep 17 00:00:00 2001 From: hanenMizouni Date: Mon, 18 Nov 2024 14:17:04 +0000 Subject: [PATCH] update infrastructure template for test Signed-off-by: hanenMizouni --- capm.yaml | 6 ++++++ .../infrastructure-components.yaml | 6 ++++++ testenv/osccluster_controller_test.go | 12 ++++++------ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/capm.yaml b/capm.yaml index d93335acc..6cb2ebd0d 100644 --- a/capm.yaml +++ b/capm.yaml @@ -349,6 +349,9 @@ spec: securityGroups: items: properties: + deleteDefaultOutboundRule: + description: Should the default allow all outbound rule be deleted + type: boolean description: description: The description of the security group type: string @@ -384,6 +387,9 @@ spec: resourceId: description: The security group rule id type: string + targetSecurityGroupName: + description: The name of the security group to use as target + type: string toPortRange: description: The end of the port range format: int32 diff --git a/test/e2e/data/infrastructure-outscale/infrastructure-components.yaml b/test/e2e/data/infrastructure-outscale/infrastructure-components.yaml index 5b33d0cb6..7372ab08b 100644 --- a/test/e2e/data/infrastructure-outscale/infrastructure-components.yaml +++ b/test/e2e/data/infrastructure-outscale/infrastructure-components.yaml @@ -207,6 +207,9 @@ spec: securityGroups: items: properties: + deleteDefaultOutboundRule: + description: Should the default allow all outbound rule be deleted + type: boolean description: description: The description of the security group type: string @@ -239,6 +242,9 @@ spec: resourceId: description: The security group rule id type: string + targetSecurityGroupName: + description: The name of the security group to use as target + type: string toPortRange: description: The end of the port range format: int32 diff --git a/testenv/osccluster_controller_test.go b/testenv/osccluster_controller_test.go index 8cea43822..e52c09249 100644 --- a/testenv/osccluster_controller_test.go +++ b/testenv/osccluster_controller_test.go @@ -1017,8 +1017,8 @@ var _ = Describe("Outscale Cluster Reconciler", func() { }, SecurityGroups: []*infrastructurev1beta1.OscSecurityGroup{ { - Name: "cluster-api-securitygroups-kw", - Description: "Security Group with cluster-api", + Name: "cluster-api-securitygroups-kw", + Description: "Security Group with cluster-api", DeleteDefaultOutboundRule: false, SecurityGroupRules: []infrastructurev1beta1.OscSecurityGroupRule{ { @@ -1056,8 +1056,8 @@ var _ = Describe("Outscale Cluster Reconciler", func() { }, }, { - Name: "cluster-api-securitygroups-kcp", - Description: "Security Group with cluster-api", + Name: "cluster-api-securitygroups-kcp", + Description: "Security Group with cluster-api", DeleteDefaultOutboundRule: false, SecurityGroupRules: []infrastructurev1beta1.OscSecurityGroupRule{ { @@ -1095,8 +1095,8 @@ var _ = Describe("Outscale Cluster Reconciler", func() { }, }, { - Name: "cluster-api-securitygroup-lb", - Description: "Security Group with cluster-api", + Name: "cluster-api-securitygroup-lb", + Description: "Security Group with cluster-api", DeleteDefaultOutboundRule: false, SecurityGroupRules: []infrastructurev1beta1.OscSecurityGroupRule{ {