From 7f2f7f78a5c80bfe56b064da4f79903365e0413d Mon Sep 17 00:00:00 2001 From: Nanxiang Liu Date: Mon, 10 Apr 2023 20:32:13 +0800 Subject: [PATCH 1/2] revise live test --- src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 b/src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 index cbef72ab338d..6b200fd8ed39 100644 --- a/src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 +++ b/src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 @@ -1,4 +1,4 @@ -Invoke-LiveTestScenario -Name "Test ConnectedKubernetes" -Description "Test New-AzConnectedKubernetes" -Platform "Windows" -ScenarioScript ` +Invoke-LiveTestScenario -Name "Test ConnectedKubernetes" -Description "Test AzConnectedKubernetes" -Platform "Linux" -ScenarioScript ` { param ($rg) $rgName = $rg.ResourceGroupName From aca1a53712d40581d576cd8546c777f8174df5ac Mon Sep 17 00:00:00 2001 From: Nanxiang Liu Date: Tue, 11 Apr 2023 17:01:35 +0800 Subject: [PATCH 2/2] revise code --- src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 b/src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 index 6b200fd8ed39..ea61584dfdf0 100644 --- a/src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 +++ b/src/ConnectedKubernetes/LiveTests/TestLiveScenarios.ps1 @@ -3,7 +3,11 @@ Invoke-LiveTestScenario -Name "Test ConnectedKubernetes" -Description "Test AzCo param ($rg) $rgName = $rg.ResourceGroupName $ckName = New-LiveTestResourceName - kind create cluster --name $ckName + wget https://get.helm.sh/helm-v3.6.3-linux-amd64.tar.gz + tar -zxvf helm-v3.6.3-linux-amd64.tar.gz + sudo cp linux-amd64/helm /usr/local/bin/ + helm version + minikube start $ckLocation = "westus" $actual = New-AzConnectedKubernetes -ClusterName $ckName -ResourceGroupName $rgName -Location $ckLocation Assert-AreEqual $ckName $actual.Name