@@ -82,6 +82,14 @@ func TestMergeConfigFiles(t *testing.T) {
8282 SeverityThreshold : models .SeverityHigh ,
8383 PriorityThreshold : models .PriorityImportant ,
8484 },
85+ AWS : & models.AWS {
86+ Enable : true ,
87+ RoleNameToAssume : "nullify-role" ,
88+ PrimaryAccountID : "123456789012" ,
89+ PrimaryRegion : "ap-southeast-2" ,
90+ TargetRegions : & []string {"ap-southeast-2" , "us-east-2" },
91+ TargetAccounts : & []string {"123456789012" , "123456789013" },
92+ },
8593 },
8694 },
8795 expected : & models.Configuration {
@@ -140,6 +148,14 @@ func TestMergeConfigFiles(t *testing.T) {
140148 SeverityThreshold : models .SeverityHigh ,
141149 PriorityThreshold : models .PriorityImportant ,
142150 },
151+ AWS : & models.AWS {
152+ Enable : true ,
153+ RoleNameToAssume : "nullify-role" ,
154+ PrimaryAccountID : "123456789012" ,
155+ PrimaryRegion : "ap-southeast-2" ,
156+ TargetRegions : & []string {"ap-southeast-2" , "us-east-2" },
157+ TargetAccounts : & []string {"123456789012" , "123456789013" },
158+ },
143159 },
144160 },
145161 },
@@ -204,6 +220,14 @@ func TestMergeConfigFiles(t *testing.T) {
204220 Low : "low" ,
205221 },
206222 },
223+ AWS : & models.AWS {
224+ Enable : true ,
225+ RoleNameToAssume : "nullify-role" ,
226+ PrimaryAccountID : "123456789012" ,
227+ PrimaryRegion : "ap-southeast-2" ,
228+ TargetRegions : & []string {"ap-southeast-2" , "us-east-2" },
229+ TargetAccounts : & []string {"123456789012" , "123456789013" },
230+ },
207231 },
208232 },
209233 repoConfig : nil ,
@@ -269,6 +293,14 @@ func TestMergeConfigFiles(t *testing.T) {
269293 Low : "low" ,
270294 },
271295 },
296+ AWS : & models.AWS {
297+ Enable : true ,
298+ RoleNameToAssume : "nullify-role" ,
299+ PrimaryAccountID : "123456789012" ,
300+ PrimaryRegion : "ap-southeast-2" ,
301+ TargetRegions : & []string {"ap-southeast-2" , "us-east-2" },
302+ TargetAccounts : & []string {"123456789012" , "123456789013" },
303+ },
272304 },
273305 },
274306 },
@@ -423,13 +455,6 @@ func TestMergeConfigFiles(t *testing.T) {
423455 globalConfig : & models.Configuration {
424456 AttackSurface : & models.AttackSurface {
425457 Enable : true ,
426- AWSIntegration : & models.AWSIntegration {
427- Enable : true ,
428- PrimaryAccountID : "111111111111" ,
429- PrimaryRegion : "ap-southeast-2" ,
430- TargetRegions : & []string {"ap-southeast-1" , "us-east-2" },
431- TargetAccounts : & []string {"222222222222" , "333333333333" },
432- },
433458 },
434459 },
435460 repoConfig : nil ,
@@ -440,13 +465,6 @@ func TestMergeConfigFiles(t *testing.T) {
440465 PriorityThreshold : parser .DefaultPriorityThreshold ,
441466 AttackSurface : & models.AttackSurface {
442467 Enable : true ,
443- AWSIntegration : & models.AWSIntegration {
444- Enable : true ,
445- PrimaryAccountID : "111111111111" ,
446- PrimaryRegion : "ap-southeast-2" ,
447- TargetRegions : & []string {"ap-southeast-1" , "us-east-2" },
448- TargetAccounts : & []string {"222222222222" , "333333333333" },
449- },
450468 },
451469 },
452470 },
0 commit comments