You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tasks/HelmDeployV0/Tests/L0.ts
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -191,5 +191,45 @@ describe("HelmDeployV0 Suite", function () {
191
191
assert(tr.stdout.indexOf(`Successfully packaged chart and saved it to: ${shared.testDestinationPath}/testChartName.tgz`)!=-1,"Chart should have been successfully packaged");
192
192
assert(tr.succeeded,"task should have succeeded");
193
193
done();
194
-
});
194
+
});
195
+
196
+
it("Run successfully with Helm save command (version 3)",function(done: MochaDone){
assert(tr.stdout.indexOf("Successfully saved the helm chart to local registry cache.")!=-1,"Chart should have been successfully saved to local registry cache.");
211
+
assert(tr.stdout.indexOf(`Successfully logged in to ${process.env[shared.TestEnvVars.azureContainerRegistry]}.`)!=-1,"Azure container registry login should have been successful.");
212
+
assert(tr.stdout.indexOf("Successfully pushed to the chart to container registry.")!=-1,"Chart should have been successfully pushed to container registry.");
213
+
assert(tr.stdout.indexOf("Successfully removed the chart from local cache.")!=-1,"Chart should have been successfully removed from local cache.");
214
+
assert(tr.succeeded,"task should have succeeded");
215
+
done();
216
+
});
217
+
218
+
it("Helm same should fail (version 2)",function(done: MochaDone){
"stdout": `Kubernetes master is running at https://shigupt-cluster-dns-7489360e.hcp.southindia.azmk8s.io:443 \nhealthmodel-replicaset-service is running at https://shigupt-cluster-dns-7489360e.hcp.southindia.azmk8s.io:443/api/v1/namespaces/kube-system/services/healthmodel-replicaset-service/proxy \nCoreDNS is running at https://shigupt-cluster-dns-7489360e.hcp.southindia.azmk8s.io:443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy \nkubernetes-dashboard is running at https://shigupt-cluster-dns-7489360e.hcp.southindia.azmk8s.io:443/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy \nMetrics-server is running at https://shigupt-cluster-dns-7489360e.hcp.southindia.azmk8s.io:443/api/v1/namespaces/kube-system/services/https:metrics-server:/proxy\n\nTo further debug and diagnose cluster problems, use "kubectl cluster-info dump".\n`
269
269
}
270
270
271
+
consthelmSaveCommand=`helm chart save ${process.env[shared.TestEnvVars.chartPathForACR]}${process.env[shared.TestEnvVars.azureContainerRegistry]}/helm/${process.env[shared.TestEnvVars.chartNameForACR]}`;
272
+
a.exec[helmSaveCommand]={
273
+
"code": 0,
274
+
"stdout": `ref: ${process.env[shared.TestEnvVars.azureContainerRegistry]}/helm/${process.env[shared.TestEnvVars.chartNameForACR]}:0.1.0 \n Successfully saved the helm chart to local registry cache.`
0 commit comments