Skip to content

Commit

Permalink
fix acc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
suhasbshekar committed Nov 25, 2024
1 parent b520d72 commit b97928a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func TestLicensingLicenseResouceAlias(t *testing.T) {
testLicense := os.Getenv("TF_ACC_NETAPP_LICENSE")
name := "FCP"
name := "NFS"
credName := "cluster4"
resource.Test(t, resource.TestCase{
PreCheck: func() { ntest.TestAccPreCheck(t) },
Expand Down Expand Up @@ -40,11 +40,11 @@ func TestLicensingLicenseResouceAlias(t *testing.T) {
}

func testAccLicensingLicenseResourceConfigAlias(key string) string {
host := os.Getenv("TF_ACC_NETAPP_HOST")
host := os.Getenv("TF_ACC_NETAPP_HOST5")
admin := os.Getenv("TF_ACC_NETAPP_USER")
password := os.Getenv("TF_ACC_NETAPP_PASS")
password := os.Getenv("TF_ACC_NETAPP_PASS2")
if host == "" || admin == "" || password == "" {
fmt.Println("TF_ACC_NETAPP_HOST, TF_ACC_NETAPP_USER, and TF_ACC_NETAPP_PASS must be set for acceptance tests")
fmt.Println("TF_ACC_NETAPP_HOST5, TF_ACC_NETAPP_USER, and TF_ACC_NETAPP_PASS2 must be set for acceptance tests")
os.Exit(1)
}
return fmt.Sprintf(`
Expand Down
8 changes: 4 additions & 4 deletions internal/provider/cluster/cluster_licensing_license_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func TestLicensingLicenseResouce(t *testing.T) {
testLicense := os.Getenv("TF_ACC_NETAPP_LICENSE")
name := "FCP"
name := "NFS"
credName := "cluster4"
resource.Test(t, resource.TestCase{
PreCheck: func() { ntest.TestAccPreCheck(t) },
Expand Down Expand Up @@ -40,11 +40,11 @@ func TestLicensingLicenseResouce(t *testing.T) {
}

func testAccLicensingLicenseResourceConfig(key string) string {
host := os.Getenv("TF_ACC_NETAPP_HOST")
host := os.Getenv("TF_ACC_NETAPP_HOST5")
admin := os.Getenv("TF_ACC_NETAPP_USER")
password := os.Getenv("TF_ACC_NETAPP_PASS")
password := os.Getenv("TF_ACC_NETAPP_PASS2")
if host == "" || admin == "" || password == "" {
fmt.Println("TF_ACC_NETAPP_HOST, TF_ACC_NETAPP_USER, and TF_ACC_NETAPP_PASS must be set for acceptance tests")
fmt.Println("TF_ACC_NETAPP_HOST5, TF_ACC_NETAPP_USER, and TF_ACC_NETAPP_PASS2 must be set for acceptance tests")
os.Exit(1)
}
return fmt.Sprintf(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestAccProtocolsSanLunMapResourceAlias(t *testing.T) {
Steps: []resource.TestStep{
// Test non existant
{
Config: testAccProtocolsSanLunMapResourceBasicConfig("/vol/abc/ACC-import-lun", "abc", "abc"),
Config: testAccProtocolsSanLunMapResourceBasicConfigAlias("/vol/abc/ACC-import-lun", "abc", "abc"),
ExpectError: regexp.MustCompile("2621462"),
},
// Create protocols_san_lun-maps and read
Expand Down

0 comments on commit b97928a

Please sign in to comment.