Rename all 594 test data files from .json to .hujson and add descriptive header comments to each file documenting what policy rules are under test and what outcome is expected. Update test loaders in all 5 _test.go files to parse HuJSON via hujson.Parse/Standardize/Pack before json.Unmarshal. Add cross-dependency warning to via_compat_test.go documenting that GRANT-V29/V30/V31/V36 are shared with TestGrantsCompat. Add .gitignore exemption for testdata HuJSON files.
17 lines
348 B
Text
17 lines
348 B
Text
// SSH-E4
|
|
//
|
|
// SSH: (no SSH rules)
|
|
//
|
|
// Expected: No SSH rules
|
|
{
|
|
"test_id": "SSH-E4",
|
|
"policy_file": "ssh_policies/ssh_e4.json",
|
|
"ssh_section": null,
|
|
"nodes": {
|
|
"user1": { "rules": [] },
|
|
"user-kris": { "rules": [] },
|
|
"user-mon": { "rules": [] },
|
|
"tagged-server": { "rules": [] },
|
|
"tagged-prod": { "rules": [] }
|
|
}
|
|
}
|