Skip to content

Commit

Permalink
Merge pull request #1 from lonegunmanb/fixtfexampleservicefabricapim
Browse files Browse the repository at this point in the history
try to fix example
  • Loading branch information
neil-yechenwei authored Jan 5, 2024
2 parents 8272afa + 5bd06f3 commit 06b533d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/e2e/quickstart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var speicalTests = map[string]func(*testing.T){
"quickstart/101-virtual-network-manager-create-management-group-scope": test101VirtualNetworkManagerCreateManagementGroupScope,
"quickstart/201-vmss-packer-jumpbox": test201VmssPackerJumpbox,
"quickstart/202-machine-learning-moderately-secure-existing-VNet": test202machineLearningModeratelySecureExistingVnet,
"quickstart/301-service-fabric-apim": test301ServiceFabricApim,
}

func Test_Quickstarts(t *testing.T) {
Expand Down Expand Up @@ -196,6 +197,19 @@ func test202machineLearningModeratelySecureExistingVnet(t *testing.T) {
})
}

func test301ServiceFabricApim(t *testing.T) {
rootPath := filepath.Join("..", "..")
examplePath := filepath.Join("quickstart", "301-service-fabric-apim")
vars := map[string]any{}
if msiId := os.Getenv("MSI_ID"); msiId != "" {
vars["client_object_id"] = msiId
}

helper.RunE2ETest(t, rootPath, examplePath, terraform.Options{
Vars: vars,
}, nil)
}

func removeDuplicates(s []string) []string {
m := make(map[string]struct{})
result := []string{}
Expand Down

0 comments on commit 06b533d

Please sign in to comment.