generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ test_Count_Correct_V2 if { | |
} | ||
|
||
test_Count_Correct_V3 if { | ||
# 4 super admins | ||
# 8 super admins | ||
PolicyId := "GWS.COMMONCONTROLS.6.2v0.2" | ||
Output := tests with input as { | ||
"super_admins": [ | ||
|
@@ -109,7 +109,23 @@ test_Count_Correct_V3 if { | |
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
} | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
] | ||
} | ||
|
||
|
@@ -119,15 +135,15 @@ test_Count_Correct_V3 if { | |
not RuleOutput[0].NoSuchEvent | ||
RuleOutput[0].ReportDetails == concat("", [ | ||
"The following super admins are configured: ", | ||
"[email protected], [email protected], [email protected], ", | ||
"admin4@example.org. <i>Note: Exceptions are ", | ||
"[email protected], [email protected], [email protected], [email protected], ", | ||
"[email protected], [email protected], [email protected], admin8@example.org. <i>Note: Exceptions are ", | ||
"allowed for \"break glass\" super admin accounts, ", | ||
"though we are not able to account for this automatically.</i>" | ||
]) | ||
} | ||
|
||
test_Count_Incorrect_V1 if { | ||
# 5 super admins | ||
# 9 super admins | ||
PolicyId := "GWS.COMMONCONTROLS.6.2v0.2" | ||
Output := tests with input as { | ||
"super_admins": [ | ||
|
@@ -150,6 +166,22 @@ test_Count_Incorrect_V1 if { | |
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
} | ||
] | ||
} | ||
|
@@ -160,8 +192,8 @@ test_Count_Incorrect_V1 if { | |
not RuleOutput[0].NoSuchEvent | ||
RuleOutput[0].ReportDetails == concat("", [ | ||
"The following super admins are configured: ", | ||
"[email protected], [email protected], [email protected], ", | ||
"admin4@example.org, admin5@example.org. <i>Note: Exceptions are ", | ||
"[email protected], [email protected], [email protected], [email protected], [email protected], ", | ||
"admin6@example.org, [email protected], [email protected], admin9@example.org. <i>Note: Exceptions are ", | ||
"allowed for \"break glass\" super admin accounts, ", | ||
"though we are not able to account for this automatically.</i>" | ||
]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters