testdata: strip unused fields from all test data files (23MB -> 4MB)
Strip fields not consumed by any test from all 594 HuJSON test data files:
grant_results/ (248 files, 21MB -> 1.8MB):
- Remove: timestamp, propagation_wait_seconds, input.policy_file,
input.grants_section, input.api_endpoint, input.api_method,
topology.nodes.mts_name, topology.nodes.socket, topology.nodes.user_id,
captures.commands, captures.packet_filter_matches, captures.whois
- V14-V16, V26-V36: keep stripped netmap (Peers.Name/AllowedIPs/PrimaryRoutes
+ PacketFilterRules) for via_compat_test.go compatibility
- V17-V25: strip netmap (old topology, incompatible with via_compat harness)
acl_results/ (215 files, 1.4MB -> 1.2MB):
- Remove: timestamp, propagation_wait_seconds, input.policy_file,
input.api_endpoint, input.api_response_code, entire topology section
(parsed by Go struct but completely ignored — nodes are hardcoded)
routes_results/ (92 files, unchanged — topology is actively used):
- Remove: timestamp, propagation_wait_seconds, input.policy_file,
input.api_endpoint, input.api_response_code
ssh_results/ (39 files, unchanged — minimal to begin with):
- Remove: policy_file
This commit is contained in:
parent
30dce30a9d
commit
835db974b5
594 changed files with 45359 additions and 535977 deletions
|
|
@ -5,13 +5,22 @@
|
|||
// 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": [] }
|
||||
"user1": {
|
||||
"rules": []
|
||||
},
|
||||
"user-kris": {
|
||||
"rules": []
|
||||
},
|
||||
"user-mon": {
|
||||
"rules": []
|
||||
},
|
||||
"tagged-server": {
|
||||
"rules": []
|
||||
},
|
||||
"tagged-prod": {
|
||||
"rules": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue