Skip to content

Commit

Permalink
Re-introduce master subnet to subnet reconciliation e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam committed Nov 17, 2023
1 parent a92e5a7 commit 402f67d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/e2e/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,14 @@ var _ = Describe("ARO Operator - Azure Subnet Reconciler", func() {
Expect(err).NotTo(HaveOccurred())
location = *oc.Location

vnet, workerSubnet, err := apisubnet.Split((*(*oc.OpenShiftClusterProperties.WorkerProfiles)[0].SubnetID))
vnet, masterSubnet, err := apisubnet.Split((*oc.OpenShiftClusterProperties.MasterProfile.SubnetID))
Expect(err).NotTo(HaveOccurred())

_, workerSubnet, err := apisubnet.Split((*(*oc.OpenShiftClusterProperties.WorkerProfiles)[0].SubnetID))
Expect(err).NotTo(HaveOccurred())

subnetsToReconcile = map[string]*string{
masterSubnet: to.StringPtr(""),
workerSubnet: to.StringPtr(""),
}

Expand Down Expand Up @@ -395,7 +399,7 @@ var _ = Describe("ARO Operator - Azure Subnet Reconciler", func() {
MatchError(kerrors.IsNotFound),
))
})
It("must reconcile list of subnets when NSG is changed", func(ctx context.Context) {
It("must reconcile list of subnets when NSG is changed", Focus, func(ctx context.Context) {
for subnet := range subnetsToReconcile {
By(fmt.Sprintf("assigning test NSG to subnet %q", subnet))
// Gets current subnet NSG and then updates it to testnsg.
Expand Down

0 comments on commit 402f67d

Please sign in to comment.