@@ -40,6 +40,7 @@ func TestLoadModule(t *testing.T) {
40
40
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
41
41
Variables : map [string ]module.Variable {},
42
42
Outputs : map [string ]module.Output {},
43
+ Filenames : []string {"test.tf" },
43
44
},
44
45
nil ,
45
46
},
@@ -56,6 +57,7 @@ terraform {
56
57
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
57
58
Variables : map [string ]module.Variable {},
58
59
Outputs : map [string ]module.Output {},
60
+ Filenames : []string {"test.tf" },
59
61
},
60
62
nil ,
61
63
},
@@ -95,6 +97,7 @@ provider "grafana" {
95
97
},
96
98
Variables : map [string ]module.Variable {},
97
99
Outputs : map [string ]module.Output {},
100
+ Filenames : []string {"test.tf" },
98
101
},
99
102
nil ,
100
103
},
@@ -134,6 +137,7 @@ provider "grafana" {
134
137
},
135
138
Variables : map [string ]module.Variable {},
136
139
Outputs : map [string ]module.Output {},
140
+ Filenames : []string {"test.tf" },
137
141
},
138
142
nil ,
139
143
},
@@ -177,6 +181,7 @@ provider "grafana" {
177
181
},
178
182
Variables : map [string ]module.Variable {},
179
183
Outputs : map [string ]module.Output {},
184
+ Filenames : []string {"test.tf" },
180
185
},
181
186
nil ,
182
187
},
@@ -250,6 +255,7 @@ provider "grafana" {
250
255
},
251
256
Variables : map [string ]module.Variable {},
252
257
Outputs : map [string ]module.Output {},
258
+ Filenames : []string {"test.tf" },
253
259
},
254
260
nil ,
255
261
},
@@ -313,6 +319,7 @@ resource "google_storage_bucket" "bucket" {
313
319
},
314
320
Variables : map [string ]module.Variable {},
315
321
Outputs : map [string ]module.Output {},
322
+ Filenames : []string {"test.tf" },
316
323
},
317
324
nil ,
318
325
},
@@ -377,6 +384,7 @@ resource "google_storage_bucket" "bucket" {
377
384
},
378
385
Variables : map [string ]module.Variable {},
379
386
Outputs : map [string ]module.Output {},
387
+ Filenames : []string {"test.tf" },
380
388
},
381
389
nil ,
382
390
},
@@ -433,6 +441,7 @@ provider "aws" {
433
441
},
434
442
Variables : map [string ]module.Variable {},
435
443
Outputs : map [string ]module.Output {},
444
+ Filenames : []string {"test.tf" },
436
445
},
437
446
nil ,
438
447
},
@@ -495,6 +504,7 @@ provider "aws" {
495
504
},
496
505
Variables : map [string ]module.Variable {},
497
506
Outputs : map [string ]module.Output {},
507
+ Filenames : []string {"test.tf" },
498
508
},
499
509
nil ,
500
510
},
@@ -532,6 +542,7 @@ resource "google_something" "test" {
532
542
},
533
543
Variables : map [string ]module.Variable {},
534
544
Outputs : map [string ]module.Output {},
545
+ Filenames : []string {"test.tf" },
535
546
},
536
547
nil ,
537
548
},
@@ -555,6 +566,7 @@ variable "" {
555
566
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
556
567
Variables : map [string ]module.Variable {},
557
568
Outputs : map [string ]module.Output {},
569
+ Filenames : []string {"test.tf" },
558
570
},
559
571
nil ,
560
572
},
@@ -569,6 +581,7 @@ variable {
569
581
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
570
582
Variables : map [string ]module.Variable {},
571
583
Outputs : map [string ]module.Output {},
584
+ Filenames : []string {"test.tf" },
572
585
},
573
586
hcl.Diagnostics {
574
587
& hcl.Diagnostic {
@@ -615,6 +628,7 @@ variable "one" "two" {
615
628
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
616
629
Variables : map [string ]module.Variable {},
617
630
Outputs : map [string ]module.Output {},
631
+ Filenames : []string {"test.tf" },
618
632
},
619
633
hcl.Diagnostics {
620
634
& hcl.Diagnostic {
@@ -664,7 +678,8 @@ variable "name" {
664
678
Type : cty .DynamicPseudoType ,
665
679
},
666
680
},
667
- Outputs : map [string ]module.Output {},
681
+ Outputs : map [string ]module.Output {},
682
+ Filenames : []string {"test.tf" },
668
683
},
669
684
nil ,
670
685
},
@@ -683,7 +698,8 @@ variable "name" {
683
698
Type : cty .String ,
684
699
},
685
700
},
686
- Outputs : map [string ]module.Output {},
701
+ Outputs : map [string ]module.Output {},
702
+ Filenames : []string {"test.tf" },
687
703
},
688
704
nil ,
689
705
},
@@ -703,7 +719,8 @@ variable "name" {
703
719
Description : "description" ,
704
720
},
705
721
},
706
- Outputs : map [string ]module.Output {},
722
+ Outputs : map [string ]module.Output {},
723
+ Filenames : []string {"test.tf" },
707
724
},
708
725
nil ,
709
726
},
@@ -723,7 +740,8 @@ variable "name" {
723
740
IsSensitive : true ,
724
741
},
725
742
},
726
- Outputs : map [string ]module.Output {},
743
+ Outputs : map [string ]module.Output {},
744
+ Filenames : []string {"test.tf" },
727
745
},
728
746
nil ,
729
747
},
@@ -746,7 +764,8 @@ variable "name" {
746
764
IsSensitive : true ,
747
765
},
748
766
},
749
- Outputs : map [string ]module.Output {},
767
+ Outputs : map [string ]module.Output {},
768
+ Filenames : []string {"test.tf" },
750
769
},
751
770
nil ,
752
771
},
@@ -766,7 +785,8 @@ variable "name" {
766
785
DefaultValue : cty .EmptyObjectVal ,
767
786
},
768
787
},
769
- Outputs : map [string ]module.Output {},
788
+ Outputs : map [string ]module.Output {},
789
+ Filenames : []string {"test.tf" },
770
790
},
771
791
nil ,
772
792
},
@@ -784,6 +804,7 @@ output "name" {
784
804
Outputs : map [string ]module.Output {
785
805
"name" : {Value : cty .NilVal },
786
806
},
807
+ Filenames : []string {"test.tf" },
787
808
},
788
809
nil ,
789
810
},
@@ -809,6 +830,7 @@ terraform {
809
830
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
810
831
Variables : map [string ]module.Variable {},
811
832
Outputs : map [string ]module.Output {},
833
+ Filenames : []string {"test.tf" },
812
834
},
813
835
nil ,
814
836
},
@@ -830,6 +852,7 @@ terraform {
830
852
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
831
853
Variables : map [string ]module.Variable {},
832
854
Outputs : map [string ]module.Output {},
855
+ Filenames : []string {"test.tf" },
833
856
},
834
857
nil ,
835
858
},
@@ -849,6 +872,7 @@ terraform {
849
872
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
850
873
Variables : map [string ]module.Variable {},
851
874
Outputs : map [string ]module.Output {},
875
+ Filenames : []string {"test.tf" },
852
876
},
853
877
nil ,
854
878
},
@@ -870,6 +894,7 @@ terraform {
870
894
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
871
895
Variables : map [string ]module.Variable {},
872
896
Outputs : map [string ]module.Output {},
897
+ Filenames : []string {"test.tf" },
873
898
},
874
899
nil ,
875
900
},
@@ -896,6 +921,7 @@ terraform {
896
921
ProviderRequirements : map [tfaddr.Provider ]version.Constraints {},
897
922
Variables : map [string ]module.Variable {},
898
923
Outputs : map [string ]module.Output {},
924
+ Filenames : []string {"test.tf" },
899
925
},
900
926
nil ,
901
927
},
0 commit comments