Skip to content

Commit 3cebe81

Browse files
committed
chore: standardize on SVM name
Signed-off-by: Achim Christ <[email protected]>
1 parent 2c4b895 commit 3cebe81

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

internal/provider/protocols/protocols_iscsi_service_resource_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,44 +25,44 @@ func TestAccIscsiServiceResource(t *testing.T) {
2525
},
2626
// Create and read
2727
{
28-
Config: testAccIscsiServiceResourceConfig("svm02", true, "alias01"),
28+
Config: testAccIscsiServiceResourceConfig("tf_acc_svm", true, "alias01"),
2929
Check: resource.ComposeTestCheckFunc(
30-
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "svm_name", "svm02"),
30+
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "svm_name", "tf_acc_svm"),
3131
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "enabled", "true"),
3232
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "target.alias", "alias01"),
3333
resource.TestMatchResourceAttr("netapp-ontap_iscsi_service.example", "target.name", regexp.MustCompile(nnRegexProtocolsIscsiService)),
3434
),
3535
},
3636
// Update and read
3737
{
38-
Config: testAccIscsiServiceResourceConfig("svm02", true, "alias02"),
38+
Config: testAccIscsiServiceResourceConfig("tf_acc_svm", true, "alias02"),
3939
Check: resource.ComposeTestCheckFunc(
40-
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "svm_name", "svm02"),
40+
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "svm_name", "tf_acc_svm"),
4141
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "enabled", "true"),
4242
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "target.alias", "alias02"),
4343
resource.TestMatchResourceAttr("netapp-ontap_iscsi_service.example", "target.name", regexp.MustCompile(nnRegexProtocolsIscsiService)),
4444
),
4545
},
4646
// Update and read
4747
{
48-
Config: testAccIscsiServiceResourceConfig("svm02", false, "alias02"),
48+
Config: testAccIscsiServiceResourceConfig("tf_acc_svm", false, "alias02"),
4949
Check: resource.ComposeTestCheckFunc(
50-
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "svm_name", "svm02"),
50+
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "svm_name", "tf_acc_svm"),
5151
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "enabled", "false"),
5252
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "target.alias", "alias02"),
5353
resource.TestMatchResourceAttr("netapp-ontap_iscsi_service.example", "target.name", regexp.MustCompile(nnRegexProtocolsIscsiService)),
5454
),
5555
},
5656
// Error 5374081: Cannot modify ISCSI service status-admin and other parameters simultaneously
5757
{
58-
Config: testAccIscsiServiceResourceConfig("svm02", true, "alias03"),
58+
Config: testAccIscsiServiceResourceConfig("tf_acc_svm", true, "alias03"),
5959
ExpectError: regexp.MustCompile("Code:\"5374081\""),
6060
},
6161
// Import and read
6262
{
6363
ResourceName: "netapp-ontap_iscsi_service.example",
6464
ImportState: true,
65-
ImportStateId: fmt.Sprintf("%s,%s", "svm02", "cluster4"),
65+
ImportStateId: fmt.Sprintf("%s,%s", "tf_acc_svm", "cluster4"),
6666
Check: resource.ComposeTestCheckFunc(
6767
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "enabled", "false"),
6868
resource.TestCheckResourceAttr("netapp-ontap_iscsi_service.example", "target.alias", "alias02"),

0 commit comments

Comments
 (0)