AzSDK.Test/TestCases/SubscriptionSecurity/SSHealth/TestCases_SSHealth.json

{
  "TestCases": {
    "TestCase": [
      {
        "TestCaseID": "Test-Get-AzSDKSubscriptionSecurityStatus-WithLogin",
        "Priority": "1",
        "Feature": "SubscriptionSecurity",
        "ModuleName": "SSHealth",
        "Type": "BVT",
        "Enabled": true,
        "TestMethod": "TestGetAzSDKSubscriptionSecurityStatus",
        "Description": "Command should run the subscription health scan without any error in case executed within active Azure session."
      },
      {
        "TestCaseID": "Test-Get-AzSDKSubscriptionSecurityStatus-WithControlIds",
        "Priority": "1",
        "Feature": "SubscriptionSecurity",
        "ModuleName": "SSHealth",
        "Type": "BVT",
        "Enabled": true,
        "TestMethod": "TestGetAzSDKSubscriptionSecurityStatusWithControlIds",
        "Description": "Command should run the subscription health scan without any error in case executed with control id parameter."
      },
      {
        "TestCaseID": "Test-Get-AzSDKSubscriptionSecurityStatus-Withoutlogin",
        "Priority": "1",
        "Feature": "SubscriptionSecurity",
        "ModuleName": "SSHealth",
        "Type": "BVT",
        "AzureLoginRequired": false,
        "Enabled": true,
        "AutomationStatus": "Manual",
        "ManualSteps": "Logout from your Azure powershell session and then run command 'Get-AzSDKSubscriptionSecurityStatus -SubscriptionId <subscriptionid>'. It should initialize the login workflow and then should scan the subscription successfully.",
        "TestMethod": "TestGetAzSDKSubscriptionSecurityStatus",
        "Description": "Command should run the subscription health scan without any error in case executed without logging into Azure."
      },
      {
        "TestCaseID": "Test-Get-AzSDKSubscriptionSecurityStatus-WithFilterTags",
        "Priority": "1",
        "Feature": "SubscriptionSecurity",
        "ModuleName": "SSHealth",
        "Type": "BVT",
        "Enabled": true,
        "TestMethod": "TestGetAzSDKSubscriptionSecurityStatusWithFilterTags",
        "Description": "Command should run the subscription health scan without any error in case executed with filter tags."
      },
      {
        "TestCaseID": "Test-Get-AzSDKSubscriptionSecurityStatus-WithExcludeTags",
        "Priority": "1",
        "Feature": "SubscriptionSecurity",
        "ModuleName": "SSHealth",
        "Type": "BVT",
        "Enabled": true,
        "TestMethod": "TestGetAzSDKSubscriptionSecurityStatusWithExcludeTags",
        "Description": "Command should run the subscription health scan without any error in case executed with exclude tags."
      },
      {
        "TestCaseID": "Test-Set-AzSDKSubscriptionSecurity-WithLogin",
        "Priority": "1",
        "Feature": "SubscriptionSecurity",
        "ModuleName": "SSHealth",
        "Type": "BVT",
        "Enabled": true,
        "BaselineOutput": "",
        "TestMethod": "TestSetAzSDKSubscriptionSecurity",
        "Description": "Command should setup the subscription security without any error.",
        "ControlResultSet": [
          {
            "ControlID": "Azure_Subscription_Config_ARM_Policy",
            "ControlStatus": "Passed"
          },
          {
            "ControlID": "Azure_Subscription_Audit_Configure_Critical_Alerts",
            "ControlStatus": "Passed"
          },
          {
            "ControlID": "Azure_Subscription_Config_Azure_Security_Center",
            "ControlStatus": "Passed"
          },
          {
            "ControlID": "Azure_Subscription_AuthZ_Add_Required_Central_Accounts",
            "ControlStatus": "Passed"
          },
          {
            "ControlID": "Azure_Subscription_AuthZ_Remove_Deprecated_Accounts",
            "ControlStatus": "Passed"
          }
        ]
      },
      {
        "TestCaseID": "Test-Set-AzSDKSubscriptionSecurity-WithoutLogin",
        "Priority": "1",
        "Feature": "SubscriptionSecurity",
        "ModuleName": "SSHealth",
        "Type": "BVT",
        "Enabled": true,
        "AzureLoginRequired": false,
        "TestMethod": "TestSetAzSDKSubscriptionSecurity",
        "AutomationStatus": "Manual",
        "ManualSteps": "Logout from your Azure powershell session and then run command 'Set-AzSDKSubscriptionSecurity -SubscriptionId <subscriptionid> -SecurityContactEmails <Emails> -SecurityPhoneNumber <PhoneNo>'. It should initialize the login workflow and then should set the subscription security successfully.",
        "Description": "Command should setup the subscription security without any error."
      },
      {
        "TestCaseID": "Test-Remove-AzSDKSubscriptionSecurity-WithLogin",
        "Priority": "1",
        "Feature": "SubscriptionSecurity",
        "ModuleName": "SSHealth",
        "Type": "BVT",
        "Enabled": true,
        "TestMethod": "TestRemoveAzSDKSubscriptionSecurity",
        "Description": "Command should remove the subscription security without any error."
      },
      {
        "TestCaseID": "Test-Remove-AzSDKSubscriptionSecurity-WithoutLogin",
        "Priority": "1",
        "Feature": "SubscriptionSecurity",
        "ModuleName": "SSHealth",
        "Type": "BVT",
        "Enabled": true,
        "AzureLoginRequired": false,
        "TestMethod": "TestRemoveAzSDKSubscriptionSecurity",
        "AutomationStatus": "Manual",
        "ManualSteps": "Logout from your Azure powershell session and then run command 'Remove-AzSDKSubscriptionSecurity -SubscriptionId <subscriptionid> -Tags <tags>. It should remove the subscription security successfully.'",
        "Description": "Command should remove the subscription security without any error."
      }

    ]
  }
}