@@ -87,7 +87,7 @@ func runTest(t *testing.T, cases TestCases) {
8787 }
8888
8989 if c .options == nil {
90- c .options = & pkg.ScanOptions {}
90+ c .options = & pkg.ScanOptions {Deep : true }
9191 }
9292
9393 scanProgress := & output.MockProgress {}
@@ -140,7 +140,7 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
140140 result .AssertInfrastructureIsInSync ()
141141 },
142142 options : func (t * testing.T ) * pkg.ScanOptions {
143- return & pkg.ScanOptions {}
143+ return & pkg.ScanOptions {Deep : true }
144144 }(t ),
145145 },
146146 {
@@ -152,9 +152,6 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
152152 assert : func (result * test.ScanResult , err error ) {
153153 result .AssertDeletedCount (1 )
154154 },
155- options : func (t * testing.T ) * pkg.ScanOptions {
156- return & pkg.ScanOptions {}
157- }(t ),
158155 },
159156 {
160157 name : "we should have unmanaged resource" ,
@@ -165,9 +162,6 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
165162 assert : func (result * test.ScanResult , err error ) {
166163 result .AssertUnmanagedCount (1 )
167164 },
168- options : func (t * testing.T ) * pkg.ScanOptions {
169- return & pkg.ScanOptions {}
170- }(t ),
171165 },
172166 {
173167 name : "we should have changes of field update" ,
@@ -199,9 +193,6 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
199193 Computed : false ,
200194 })
201195 },
202- options : func (t * testing.T ) * pkg.ScanOptions {
203- return & pkg.ScanOptions {}
204- }(t ),
205196 },
206197 {
207198 name : "we should have changes on computed field" ,
@@ -235,9 +226,6 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
235226 Computed : true ,
236227 })
237228 },
238- options : func (t * testing.T ) * pkg.ScanOptions {
239- return & pkg.ScanOptions {}
240- }(t ),
241229 },
242230 {
243231 name : "we should have changes on deleted field" ,
@@ -271,9 +259,6 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
271259 Computed : false ,
272260 })
273261 },
274- options : func (t * testing.T ) * pkg.ScanOptions {
275- return & pkg.ScanOptions {}
276- }(t ),
277262 },
278263 {
279264 name : "we should have changes of added field" ,
@@ -307,9 +292,6 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
307292 Computed : false ,
308293 })
309294 },
310- options : func (t * testing.T ) * pkg.ScanOptions {
311- return & pkg.ScanOptions {}
312- }(t ),
313295 },
314296 {
315297 name : "we should ignore default AWS IAM role when strict mode is disabled" ,
@@ -396,6 +378,7 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
396378 options : func (t * testing.T ) * pkg.ScanOptions {
397379 return & pkg.ScanOptions {
398380 StrictMode : false ,
381+ Deep : true ,
399382 }
400383 }(t ),
401384 },
@@ -484,6 +467,7 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
484467 options : func (t * testing.T ) * pkg.ScanOptions {
485468 return & pkg.ScanOptions {
486469 StrictMode : true ,
470+ Deep : true ,
487471 }
488472 }(t ),
489473 },
@@ -581,6 +565,7 @@ func TestDriftctlRun_BasicBehavior(t *testing.T) {
581565 return & pkg.ScanOptions {
582566 Filter : f ,
583567 StrictMode : true ,
568+ Deep : true ,
584569 }
585570 }(t ),
586571 },
@@ -617,7 +602,7 @@ func TestDriftctlRun_BasicFilter(t *testing.T) {
617602 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
618603 }
619604
620- return & pkg.ScanOptions {Filter : f }
605+ return & pkg.ScanOptions {Filter : f , Deep : true }
621606 }(t ),
622607 },
623608 {
@@ -646,7 +631,7 @@ func TestDriftctlRun_BasicFilter(t *testing.T) {
646631 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
647632 }
648633
649- return & pkg.ScanOptions {Filter : f }
634+ return & pkg.ScanOptions {Filter : f , Deep : true }
650635 }(t ),
651636 },
652637 {
@@ -677,7 +662,7 @@ func TestDriftctlRun_BasicFilter(t *testing.T) {
677662 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
678663 }
679664
680- return & pkg.ScanOptions {Filter : f }
665+ return & pkg.ScanOptions {Filter : f , Deep : true }
681666 }(t ),
682667 },
683668 }
@@ -751,7 +736,7 @@ func TestDriftctlRun_Middlewares(t *testing.T) {
751736 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
752737 }
753738
754- return & pkg.ScanOptions {Filter : f }
739+ return & pkg.ScanOptions {Filter : f , Deep : true }
755740 }(t ),
756741 },
757742 {
@@ -864,7 +849,7 @@ func TestDriftctlRun_Middlewares(t *testing.T) {
864849 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
865850 }
866851
867- return & pkg.ScanOptions {Filter : f }
852+ return & pkg.ScanOptions {Filter : f , Deep : true }
868853 }(t ),
869854 },
870855 {
@@ -963,7 +948,7 @@ func TestDriftctlRun_Middlewares(t *testing.T) {
963948 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
964949 }
965950
966- return & pkg.ScanOptions {Filter : f }
951+ return & pkg.ScanOptions {Filter : f , Deep : true }
967952 }(t ),
968953 },
969954 {
@@ -1026,7 +1011,7 @@ func TestDriftctlRun_Middlewares(t *testing.T) {
10261011 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
10271012 }
10281013
1029- return & pkg.ScanOptions {Filter : f }
1014+ return & pkg.ScanOptions {Filter : f , Deep : true }
10301015 }(t ),
10311016 },
10321017 {
@@ -1088,7 +1073,7 @@ func TestDriftctlRun_Middlewares(t *testing.T) {
10881073 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
10891074 }
10901075
1091- return & pkg.ScanOptions {Filter : f }
1076+ return & pkg.ScanOptions {Filter : f , Deep : true }
10921077 }(t ),
10931078 },
10941079 {
@@ -1404,7 +1389,7 @@ func TestDriftctlRun_Middlewares(t *testing.T) {
14041389 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
14051390 }
14061391
1407- return & pkg.ScanOptions {Filter : f }
1392+ return & pkg.ScanOptions {Filter : f , Deep : true }
14081393 }(t ),
14091394 },
14101395 {
@@ -1542,7 +1527,7 @@ func TestDriftctlRun_Middlewares(t *testing.T) {
15421527 t .Fatalf ("Unable to build filter expression: %s\n %s" , filterStr , err )
15431528 }
15441529
1545- return & pkg.ScanOptions {Filter : f }
1530+ return & pkg.ScanOptions {Filter : f , Deep : true }
15461531 }(t ),
15471532 },
15481533 {
0 commit comments