Пример #1
0
 public void GetAzureStorageUsageInvalidCredential()
 {
     if (isResourceMode)
     {
         PowerShellAgent.RemoveAzureSubscriptionIfExists();
         CommandAgent.Logout();
         Test.Assert(!CommandAgent.GetAzureStorageUsage(), "Get azure storage usage should fail.");
         ExpectedContainErrorMessage("No subscription found in the context.");
     }
 }
Пример #2
0
 public void CheckAccountNameAvailabilityInvalidCredential()
 {
     if (isResourceMode)
     {
         PowerShellAgent.RemoveAzureSubscriptionIfExists();
         CommandAgent.Logout();
         string accountName = AccountUtils.GenerateAvailableAccountName();
         Test.Assert(!CommandAgent.CheckNameAvailability(accountName), "Check name availability should fail.");
         ExpectedContainErrorMessage("No subscription found in the context.");
     }
 }