Skip to content

Commit

Permalink
Implement fix for failing AKS acceptance/mock test
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Shaw <gshaw+github@pivotal.io>
  • Loading branch information
gshaw-pivotal committed Feb 7, 2024
1 parent cb65605 commit 9be22e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions internal/resources/akscluster/resource_akscluster_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ func testAKSCluster(fn *aksmodel.VmwareTanzuManageV1alpha1AksclusterFullName) st
enable_disk_csi_driver = false
enable_file_csi_driver = false
}
identity_config {
type = "IDENTITY_TYPE_SYSTEM_ASSIGNED"
}
}
nodepool {
name = "systemnp"
Expand Down Expand Up @@ -433,6 +436,9 @@ func testAKSClusterEnableCSI(fn *aksmodel.VmwareTanzuManageV1alpha1AksclusterFul
enable_disk_csi_driver = true
enable_file_csi_driver = true
}
identity_config {
type = "IDENTITY_TYPE_SYSTEM_ASSIGNED"
}
}
nodepool {
name = "systemnp"
Expand Down Expand Up @@ -464,6 +470,9 @@ func testAKSClusterAddUserNodepool(fn *aksmodel.VmwareTanzuManageV1alpha1Aksclus
enable_disk_csi_driver = true
enable_file_csi_driver = true
}
identity_config {
type = "IDENTITY_TYPE_SYSTEM_ASSIGNED"
}
}
nodepool {
name = "systemnp"
Expand Down Expand Up @@ -508,6 +517,9 @@ func mockCluster(w ...clusterWither) *aksmodel.VmwareTanzuManageV1alpha1AksClust
EnableDiskCsiDriver: false,
EnableFileCsiDriver: false,
},
IdentityConfig: &aksmodel.VmwareTanzuManageV1alpha1AksclusterManagedIdentityConfig{
Type: aksmodel.VmwareTanzuManageV1alpha1AksclusterManagedIdentityTypeSYSTEMASSIGNED.Pointer(),
},
Version: "1.26.6",
},
},
Expand Down

0 comments on commit 9be22e2

Please sign in to comment.