@@ -480,7 +480,7 @@ func TestTestHuman_Run(t *testing.T) {
480
480
StdErr string
481
481
}{
482
482
"pass" : {
483
- Run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pass },
483
+ Run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pass },
484
484
Progress : moduletest .Complete ,
485
485
StdOut : " run \" run_block\" ... pass\n " ,
486
486
},
@@ -502,19 +502,19 @@ some warning happened during this test
502
502
},
503
503
504
504
"pending" : {
505
- Run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pending },
505
+ Run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pending },
506
506
Progress : moduletest .Complete ,
507
507
StdOut : " run \" run_block\" ... pending\n " ,
508
508
},
509
509
510
510
"skip" : {
511
- Run : & moduletest.Run {Name : "run_block" , Status : moduletest .Skip },
511
+ Run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Skip },
512
512
Progress : moduletest .Complete ,
513
513
StdOut : " run \" run_block\" ... skip\n " ,
514
514
},
515
515
516
516
"fail" : {
517
- Run : & moduletest.Run {Name : "run_block" , Status : moduletest .Fail },
517
+ Run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Fail },
518
518
Progress : moduletest .Complete ,
519
519
StdOut : " run \" run_block\" ... fail\n " ,
520
520
},
@@ -542,7 +542,7 @@ other details
542
542
},
543
543
544
544
"error" : {
545
- Run : & moduletest.Run {Name : "run_block" , Status : moduletest .Error },
545
+ Run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Error },
546
546
Progress : moduletest .Complete ,
547
547
StdOut : " run \" run_block\" ... fail\n " ,
548
548
},
@@ -725,15 +725,15 @@ resource "test_resource" "creating" {
725
725
// These next three tests should print nothing, as we only report on
726
726
// progress complete.
727
727
"progress_starting" : {
728
- Run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pass },
728
+ Run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pass },
729
729
Progress : moduletest .Starting ,
730
730
},
731
731
"progress_running" : {
732
- Run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pass },
732
+ Run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pass },
733
733
Progress : moduletest .Running ,
734
734
},
735
735
"progress_teardown" : {
736
- Run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pass },
736
+ Run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pass },
737
737
Progress : moduletest .TearDown ,
738
738
},
739
739
}
@@ -822,7 +822,7 @@ this time it is very bad
822
822
diags : tfdiags.Diagnostics {
823
823
tfdiags .Sourceless (tfdiags .Error , "first error" , "this time it is very bad" ),
824
824
},
825
- run : & moduletest.Run {Name : "run_block" },
825
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {} },
826
826
file : & moduletest.File {Name : "main.tftest.hcl" },
827
827
state : states .NewState (),
828
828
stderr : `Terraform encountered an error destroying resources created while executing
@@ -1973,7 +1973,7 @@ func TestTestJSON_DestroySummary(t *testing.T) {
1973
1973
},
1974
1974
"state_from_run" : {
1975
1975
file : & moduletest.File {Name : "main.tftest.hcl" },
1976
- run : & moduletest.Run {Name : "run_block" },
1976
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {} },
1977
1977
state : states .BuildState (func (state * states.SyncState ) {
1978
1978
state .SetResourceInstanceCurrent (
1979
1979
addrs.Resource {
@@ -2380,7 +2380,7 @@ func TestTestJSON_Run(t *testing.T) {
2380
2380
want []map [string ]interface {}
2381
2381
}{
2382
2382
"starting" : {
2383
- run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pass },
2383
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pass },
2384
2384
progress : moduletest .Starting ,
2385
2385
want : []map [string ]interface {}{
2386
2386
{
@@ -2401,7 +2401,7 @@ func TestTestJSON_Run(t *testing.T) {
2401
2401
},
2402
2402
2403
2403
"running" : {
2404
- run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pass },
2404
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pass },
2405
2405
progress : moduletest .Running ,
2406
2406
elapsed : 2024 ,
2407
2407
want : []map [string ]interface {}{
@@ -2423,7 +2423,7 @@ func TestTestJSON_Run(t *testing.T) {
2423
2423
},
2424
2424
2425
2425
"teardown" : {
2426
- run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pass },
2426
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pass },
2427
2427
progress : moduletest .TearDown ,
2428
2428
want : []map [string ]interface {}{
2429
2429
{
@@ -2444,7 +2444,7 @@ func TestTestJSON_Run(t *testing.T) {
2444
2444
},
2445
2445
2446
2446
"pass" : {
2447
- run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pass },
2447
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pass },
2448
2448
progress : moduletest .Complete ,
2449
2449
want : []map [string ]interface {}{
2450
2450
{
@@ -2503,7 +2503,7 @@ func TestTestJSON_Run(t *testing.T) {
2503
2503
},
2504
2504
2505
2505
"pending" : {
2506
- run : & moduletest.Run {Name : "run_block" , Status : moduletest .Pending },
2506
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Pending },
2507
2507
progress : moduletest .Complete ,
2508
2508
want : []map [string ]interface {}{
2509
2509
{
@@ -2524,7 +2524,7 @@ func TestTestJSON_Run(t *testing.T) {
2524
2524
},
2525
2525
2526
2526
"skip" : {
2527
- run : & moduletest.Run {Name : "run_block" , Status : moduletest .Skip },
2527
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Skip },
2528
2528
progress : moduletest .Complete ,
2529
2529
want : []map [string ]interface {}{
2530
2530
{
@@ -2545,7 +2545,7 @@ func TestTestJSON_Run(t *testing.T) {
2545
2545
},
2546
2546
2547
2547
"fail" : {
2548
- run : & moduletest.Run {Name : "run_block" , Status : moduletest .Fail },
2548
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Fail },
2549
2549
progress : moduletest .Complete ,
2550
2550
want : []map [string ]interface {}{
2551
2551
{
@@ -2620,7 +2620,7 @@ func TestTestJSON_Run(t *testing.T) {
2620
2620
},
2621
2621
2622
2622
"error" : {
2623
- run : & moduletest.Run {Name : "run_block" , Status : moduletest .Error },
2623
+ run : & moduletest.Run {Name : "run_block" , Config : & configs. TestRun {}, Status : moduletest .Error },
2624
2624
progress : moduletest .Complete ,
2625
2625
want : []map [string ]interface {}{
2626
2626
{
0 commit comments