@@ -407,7 +407,7 @@ func TestAccFunctionResource_InsertSource(t *testing.T) {
407
407
}))
408
408
defer fakeServer .Close ()
409
409
410
- // common provider block
410
+
411
411
providerConfig := `
412
412
provider "segment" {
413
413
url = "` + fakeServer .URL + `"
@@ -418,7 +418,6 @@ func TestAccFunctionResource_InsertSource(t *testing.T) {
418
418
resource .Test (t , resource.TestCase {
419
419
ProtoV6ProviderFactories : testAccProtoV6ProviderFactories ,
420
420
Steps : []resource.TestStep {
421
- // ── CREATE + READ ──────────────────────────────────────────────
422
421
{
423
422
Config : providerConfig + `
424
423
resource "segment_function" "test" {
@@ -449,13 +448,13 @@ func TestAccFunctionResource_InsertSource(t *testing.T) {
449
448
resource .TestCheckResourceAttr ("segment_function.test" , "settings.0.sensitive" , "false" ),
450
449
),
451
450
},
452
- // ── IMPORT ────────────────────────────────────────────────────
451
+
453
452
{
454
453
ResourceName : "segment_function.test" ,
455
454
ImportState : true ,
456
455
ImportStateVerify : true ,
457
456
},
458
- // ── UPDATE + READ ────────────────────────────────────────────
457
+
459
458
{
460
459
Config : providerConfig + `
461
460
resource "segment_function" "test" {
@@ -484,7 +483,7 @@ func TestAccFunctionResource_InsertSource(t *testing.T) {
484
483
resource .TestCheckResourceAttr ("segment_function.test" , "settings.0.sensitive" , "true" ),
485
484
),
486
485
},
487
- // destroy is implicit
486
+
488
487
},
489
488
})
490
489
}
0 commit comments