Skip to content

Commit

Permalink
repaired test
Browse files Browse the repository at this point in the history
  • Loading branch information
rain-on committed Jan 7, 2025
1 parent 8113511 commit 637ce00
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -250,7 +250,7 @@ public void TryingToUseAzureRmModule()
",");

var wrapper = CreateWrapper();
ExecuteScriptInRecordOnlyMode(wrapper, "blah.ps1").AssertSuccess();
TestScriptInReadOnlyMode(wrapper).AssertFailure();
}


Expand Down

0 comments on commit 637ce00

Please sign in to comment.