From 637ce00852e062abf0e2cf676e39daf818ee2cf2 Mon Sep 17 00:00:00 2001 From: Trent Mohay Date: Tue, 7 Jan 2025 13:27:57 +1100 Subject: [PATCH] repaired test --- .../KubernetesContextScriptWrapperFixture.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Calamari.Tests/KubernetesFixtures/KubernetesContextScriptWrapperFixture.cs b/source/Calamari.Tests/KubernetesFixtures/KubernetesContextScriptWrapperFixture.cs index 9303d513c..eae3ee73e 100644 --- a/source/Calamari.Tests/KubernetesFixtures/KubernetesContextScriptWrapperFixture.cs +++ b/source/Calamari.Tests/KubernetesFixtures/KubernetesContextScriptWrapperFixture.cs @@ -228,9 +228,9 @@ public void ExecutionWithUsernamePassword() } [Test] - public void TryingToUseAzureRmModule() + public void ExecutionWithAzureServicePrincipalWithAdmin_ShouldFailIfAzureRmIsDeprecated() { - variables.Set(ScriptVariables.Syntax, ScriptSyntax.Bash.ToString()); + variables.Set(ScriptVariables.Syntax, ScriptSyntax.PowerShell.ToString()); variables.Set(PowerShellVariables.Edition, "Desktop"); variables.Set(Deployment.SpecialVariables.Account.AccountType, "AzureServicePrincipal"); variables.Set("Octopus.Action.Kubernetes.AksClusterResourceGroup", "clusterRG"); @@ -250,7 +250,7 @@ public void TryingToUseAzureRmModule() ","); var wrapper = CreateWrapper(); - ExecuteScriptInRecordOnlyMode(wrapper, "blah.ps1").AssertSuccess(); + TestScriptInReadOnlyMode(wrapper).AssertFailure(); }