github.com/mponton/terratest@v0.44.0/modules/azure/recoveryservices_test.go (about)

     1  package azure
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/require"
     7  )
     8  
     9  /*
    10  The below tests are currently stubbed out, with the expectation that they will throw errors.
    11  If/when methods to create and delete recovery services resources are added, these tests can be extended.
    12  */
    13  
    14  func TestRecoveryServicesVaultName(t *testing.T) {
    15  	_, err := GetRecoveryServicesVaultE("", "", "")
    16  	require.Error(t, err, "vault")
    17  }
    18  
    19  func TestRecoveryServicesVaultExists(t *testing.T) {
    20  	_, err := RecoveryServicesVaultExistsE("", "", "")
    21  	require.Error(t, err, "vault exists")
    22  }
    23  
    24  func TestRecoveryServicesVaultBackupPolicyList(t *testing.T) {
    25  	_, err := GetRecoveryServicesVaultBackupPolicyListE("", "", "")
    26  	require.Error(t, err, "Backup policy list not faulted")
    27  }
    28  
    29  func TestRecoveryServicesVaultBackupProtectedVMList(t *testing.T) {
    30  	_, err := GetRecoveryServicesVaultBackupProtectedVMListE("", "", "", "")
    31  	require.Error(t, err, "Backup policy protected vm list not faulted")
    32  }