Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f4f951e
test: add CIS 1.1.3 global admin count tests
karansoni15-create Aug 30, 2026
aa75aa5
Merge remote-tracking branch 'origin/main' into karan/1.1.3-global-ad…
karansoni15-create Sep 10, 2026
8e60b7c
ci(engine): run Rego regression tests and fail on empty suites
karansoni15-create Sep 10, 2026
781cb22
chore: remove unrelated engine workflow changes
karansoni15-create Sep 23, 2026
8b3290e
test: move CIS 1.1.3 coverage to CI behavioural fixtures
karansoni15-create Sep 23, 2026
0dbd6eb
test: add CI behavioural fixtures for CIS 1.1.3
karansoni15-create Sep 23, 2026
375bd7f
test: add CI behavioural fixtures for CIS 1.1.3
karansoni15-create Sep 23, 2026
4d1cc7f
test: add CI behavioural fixtures for CIS 1.1.3
karansoni15-create Sep 23, 2026
1784bca
test: add CI behavioural fixtures for CIS 1.1.3
karansoni15-create Sep 23, 2026
332e620
test: add CI behavioural fixtures for CIS 1.1.3
karansoni15-create Sep 23, 2026
31b0f69
test: add CI behavioural fixtures for CIS 1.1.3
karansoni15-create Sep 23, 2026
81551f0
merge main and keep CIS 1.1.3 behavioural fixtures
karansoni15-create Sep 23, 2026
344b8f8
style: format CIS 1.1.3 behavioural fixtures
karansoni15-create Sep 23, 2026
339977e
style: format CIS 1.1.3 behavioural fixtures
karansoni15-create Sep 23, 2026
c8ab6c1
style: format CIS 1.1.3 behavioural fixtures
karansoni15-create Sep 23, 2026
9a9682e
style: format CIS 1.1.3 behavioural fixtures
karansoni15-create Sep 23, 2026
bf364bc
style: format CIS 1.1.3 behavioural fixtures
karansoni15-create Sep 23, 2026
4234744
style: format CIS 1.1.3 behavioural fixtures
karansoni15-create Sep 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"framework": "cis",
"benchmark": "microsoft-365-foundations",
"version": "v6.0.0",
"control_id": "1.1.3",
"scenario": "Four global administrators configured",
"input": {
"global_admin_count": 4,
"global_admins": [
{
"id": "admin-001",
"display_name": "Global Admin 1"
},
{
"id": "admin-002",
"display_name": "Global Admin 2"
},
{
"id": "admin-003",
"display_name": "Global Admin 3"
},
{
"id": "admin-004",
"display_name": "Global Admin 4"
}
]
},
"expected": {
"compliant": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"framework": "cis",
"benchmark": "microsoft-365-foundations",
"version": "v6.0.0",
"control_id": "1.1.3",
"scenario": "Two global administrators configured",
"input": {
"global_admin_count": 2,
"global_admins": [
{
"id": "admin-001",
"display_name": "Global Admin 1"
},
{
"id": "admin-002",
"display_name": "Global Admin 2"
}
]
},
"expected": {
"compliant": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"framework": "cis",
"benchmark": "microsoft-365-foundations",
"version": "v6.0.0",
"control_id": "1.1.3",
"scenario": "Valid count with empty administrator resource list",
"input": {
"global_admin_count": 2,
"global_admins": []
},
"expected": {
"compliant": true
}
}
55 changes: 55 additions & 0 deletions engine/tests/fixtures/compliance/cis_1_1_3/many_admins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"framework": "cis",
"benchmark": "microsoft-365-foundations",
"version": "v6.0.0",
"control_id": "1.1.3",
"scenario": "Ten global administrators configured",
"input": {
"global_admin_count": 10,
"global_admins": [
{
"id": "admin-001",
"display_name": "Global Admin 1"
},
{
"id": "admin-002",
"display_name": "Global Admin 2"
},
{
"id": "admin-003",
"display_name": "Global Admin 3"
},
{
"id": "admin-004",
"display_name": "Global Admin 4"
},
{
"id": "admin-005",
"display_name": "Global Admin 5"
},
{
"id": "admin-006",
"display_name": "Global Admin 6"
},
{
"id": "admin-007",
"display_name": "Global Admin 7"
},
{
"id": "admin-008",
"display_name": "Global Admin 8"
},
{
"id": "admin-009",
"display_name": "Global Admin 9"
},
{
"id": "admin-010",
"display_name": "Global Admin 10"
}
]
},
"expected": {
"compliant": false
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"framework": "cis",
"benchmark": "microsoft-365-foundations",
"version": "v6.0.0",
"control_id": "1.1.3",
"scenario": "Valid count with administrator resource list omitted",
"input": {
"global_admin_count": 3
},
"expected": {
"compliant": true
}
}
14 changes: 14 additions & 0 deletions engine/tests/fixtures/compliance/cis_1_1_3/zero_admins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"framework": "cis",
"benchmark": "microsoft-365-foundations",
"version": "v6.0.0",
"control_id": "1.1.3",
"scenario": "No global administrators configured",
"input": {
"global_admin_count": 0,
"global_admins": []
},
"expected": {
"compliant": false
}
}
Loading