@@ -62,12 +62,9 @@ func TestAccProtocolsCIFSShareResource(t *testing.T) {
62
62
}
63
63
64
64
func testAccProtocolsCIFSShareResourceConfig (svm , shareName string ) string {
65
- // host := os.Getenv("TF_ACC_NETAPP_HOST_CIFS")
66
- // admin := os.Getenv("TF_ACC_NETAPP_USER")
67
- // password := os.Getenv("TF_ACC_NETAPP_PASS2")
68
- host := "10.193.73.2"
69
- admin := "admin"
70
- password := "Netapp1!"
65
+ host := os .Getenv ("TF_ACC_NETAPP_HOST_CIFS" )
66
+ admin := os .Getenv ("TF_ACC_NETAPP_USER" )
67
+ password := os .Getenv ("TF_ACC_NETAPP_PASS2" )
71
68
72
69
if host == "" || admin == "" || password == "" {
73
70
fmt .Println ("TF_ACC_NETAPP_HOST_CIFS, TF_ACC_NETAPP_USER, and TF_ACC_NETAPP_PASS2 must be set for acceptance tests" )
@@ -103,12 +100,9 @@ resource "netapp-ontap_protocols_cifs_share_resource" "example" {
103
100
}
104
101
105
102
func testAccProtocolsCIFSShareResourceConfigUpdate (svm , volName string ) string {
106
- // host := os.Getenv("TF_ACC_NETAPP_HOST_CIFS")
107
- // admin := os.Getenv("TF_ACC_NETAPP_USER")
108
- // password := os.Getenv("TF_ACC_NETAPP_PASS2")
109
- host := "10.193.73.2"
110
- admin := "admin"
111
- password := "Netapp1!"
103
+ host := os .Getenv ("TF_ACC_NETAPP_HOST_CIFS" )
104
+ admin := os .Getenv ("TF_ACC_NETAPP_USER" )
105
+ password := os .Getenv ("TF_ACC_NETAPP_PASS2" )
112
106
113
107
if host == "" || admin == "" || password == "" {
114
108
fmt .Println ("TF_ACC_NETAPP_HOST_CIFS, TF_ACC_NETAPP_USER, and TF_ACC_NETAPP_PASS2 must be set for acceptance tests" )
@@ -145,12 +139,9 @@ resource "netapp-ontap_protocols_cifs_share_resource" "example" {
145
139
}
146
140
147
141
func testAccProtocolsCIFSShareResourceConfigUpdateAddACL (svm , volName string ) string {
148
- // host := os.Getenv("TF_ACC_NETAPP_HOST_CIFS")
149
- // admin := os.Getenv("TF_ACC_NETAPP_USER")
150
- // password := os.Getenv("TF_ACC_NETAPP_PASS2")
151
- host := "10.193.73.2"
152
- admin := "admin"
153
- password := "Netapp1!"
142
+ host := os .Getenv ("TF_ACC_NETAPP_HOST_CIFS" )
143
+ admin := os .Getenv ("TF_ACC_NETAPP_USER" )
144
+ password := os .Getenv ("TF_ACC_NETAPP_PASS2" )
154
145
155
146
if host == "" || admin == "" || password == "" {
156
147
fmt .Println ("TF_ACC_NETAPP_HOST_CIFS, TF_ACC_NETAPP_USER, and TF_ACC_NETAPP_PASS2 must be set for acceptance tests" )
@@ -192,12 +183,10 @@ resource "netapp-ontap_protocols_cifs_share_resource" "example" {
192
183
}
193
184
194
185
func testAccProtocolsCIFSShareResourceConfigUpdateDeleteACL (svm , volName string ) string {
195
- // host := os.Getenv("TF_ACC_NETAPP_HOST_CIFS")
196
- // admin := os.Getenv("TF_ACC_NETAPP_USER")
197
- // password := os.Getenv("TF_ACC_NETAPP_PASS2")
198
- host := "10.193.73.2"
199
- admin := "admin"
200
- password := "Netapp1!"
186
+ host := os .Getenv ("TF_ACC_NETAPP_HOST_CIFS" )
187
+ admin := os .Getenv ("TF_ACC_NETAPP_USER" )
188
+ password := os .Getenv ("TF_ACC_NETAPP_PASS2" )
189
+
201
190
if host == "" || admin == "" || password == "" {
202
191
fmt .Println ("TF_ACC_NETAPP_HOST_CIFS, TF_ACC_NETAPP_USER, and TF_ACC_NETAPP_PASS2 must be set for acceptance tests" )
203
192
os .Exit (1 )
0 commit comments