-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #16197: Serialization of NodeConfigurations is fairly expensive
- Loading branch information
Showing
8 changed files
with
1,202 additions
and
209 deletions.
There are no files selected for viewing
722 changes: 523 additions & 199 deletions
722
...dder/rudder-core/src/main/scala/com/normation/rudder/domain/reports/ExpectedReports.scala
Large diffs are not rendered by default.
Oops, something went wrong.
91 changes: 91 additions & 0 deletions
91
webapp/sources/rudder/rudder-core/src/test/resources/expectedReports/7.0/node0_min.json
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"ms": { | ||
"gpm": { | ||
"m": "enforce", | ||
"o": true | ||
}, | ||
"gcm": "full-compliance", | ||
"ghp": 1, | ||
"gar": { | ||
"i": 15, | ||
"sm": 0, | ||
"sh": 0, | ||
"st": 4 | ||
} | ||
}, | ||
"rs": [ | ||
{ | ||
"rid": "4bb75daa-a82f-445a-8e8e-af3e99608ffe", | ||
"ds": [ | ||
{ | ||
"did": "73e069ea-de00-4b5d-a00e-012709b7b462", | ||
"cs": [ | ||
{ | ||
"vid": "Command execution", | ||
"vs": [ | ||
[ "/bin/echo \"restore\"" ] | ||
] | ||
}, | ||
{ | ||
"vid": "File absent", | ||
"vs": [ | ||
[ "/tmp/pasla" ] | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"rid": "hasPolicyServer-root", | ||
"ds": [ | ||
{ | ||
"did": "common-hasPolicyServer-root", | ||
"s": true, | ||
"cs": [ | ||
{ | ||
"vid": "Update", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "ncf Initialization", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "Security parameters", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "Log system for reports", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "CRON Daemon", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "Monitoring", | ||
"vs": [ [] ] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"rid": "inventory-all", | ||
"ds": [ | ||
{ | ||
"did": "inventory-all", | ||
"s": true, | ||
"cs": [ | ||
{ | ||
"vid": "Inventory", | ||
"vs": [ [] ] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"os": [] | ||
} |
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
"values": [ | ||
"None" | ||
], | ||
"unexpanded": [] | ||
"unexpanded": [ "None" ] | ||
} | ||
] | ||
} | ||
|
168 changes: 168 additions & 0 deletions
168
webapp/sources/rudder/rudder-core/src/test/resources/expectedReports/7.0/node1_min.json
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 |
---|---|---|
@@ -0,0 +1,168 @@ | ||
{ | ||
"ms": { | ||
"gpm": { | ||
"m": "audit", | ||
"o": true | ||
}, | ||
"npm": "enforce", | ||
"gcm": "full-compliance", | ||
"ghp": 1, | ||
"gar": { | ||
"i": 5, | ||
"sm": 0, | ||
"sh": 0, | ||
"st": 4 | ||
}, | ||
"nar": { | ||
"i": 240, | ||
"sm": 17, | ||
"sh": 2, | ||
"st": 234 | ||
} | ||
}, | ||
"rs": [ | ||
{ | ||
"rid": "inventory-all", | ||
"ds": [ | ||
{ | ||
"did": "inventory-all", | ||
"s": true, | ||
"cs": [ | ||
{ | ||
"vid": "inventory", | ||
"vs": [ [] ] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"rid": "hasPolicyServer-root", | ||
"ds": [ | ||
{ | ||
"did": "common-root", | ||
"s": true, | ||
"cs": [ | ||
{ | ||
"vid": "Update", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "ncf Initialization", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "Security parameters", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "Log system for reports", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "CRON Daemon", | ||
"vs": [ [] ] | ||
}, | ||
{ | ||
"vid": "Monitoring", | ||
"vs": [ [] ] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"rid": "10023ce3-0775-4178-bd9f-1f3a61d81c7c", | ||
"ds": [ | ||
{ | ||
"did": "b6478fd4-f2de-43b0-9f04-812ec0680e4d", | ||
"cs": [ | ||
{ | ||
"vid": "File from local source", | ||
"vs": [ [ "/tmp" ] ] | ||
} | ||
] | ||
}, | ||
{ | ||
"did": "37c57e98-328d-4cd2-8a71-33f2e449ba51", | ||
"cs": [ | ||
{ | ||
"vid": "Restart ${service}", | ||
"vs": [ [ "${service}" ] ] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"rid": "32377fd7-02fd-43d0-aab7-28460a91347b", | ||
"ds": [ | ||
{ | ||
"did": "d2471d9b-5c7f-404e-9a03-970c36924f5c", | ||
"cs": [ | ||
{ | ||
"vid": "File content", | ||
"vs": [ [ "/tmp/audit/audit.log" ] ] | ||
}, | ||
{ | ||
"vid": "Permissions (non recursive)", | ||
"vs": [ [ "/tmp/audit/audit.log" ] ] | ||
}, | ||
{ | ||
"vid": "Permissions dirs", | ||
"vs": [ [ "/var/log/audit" ] ] | ||
} | ||
] | ||
}, | ||
{ | ||
"did": "86a0ef5b-1b98-4bda-8dc3-2940ad53beaa", | ||
"cs": [ | ||
{ | ||
"vid": "File", | ||
"vs": [ [ "/tmp/${sys.fqhost}" ] ] | ||
}, | ||
{ | ||
"vid": "Enforce content by section", | ||
"vs": [ [ "/tmp/${sys.fqhost}" ] ] | ||
}, | ||
{ | ||
"vid": "Line deletion regular expressions", | ||
"vs": [ [ "/tmp/${sys.fqhost}" ] ] | ||
}, | ||
{ | ||
"vid": "Line replacement regular expressions", | ||
"vs": [ [ "/tmp/${sys.fqhost}" ] ] | ||
}, | ||
{ | ||
"vid": "Permission adjustment", | ||
"vs": [ [ "/tmp/${sys.fqhost}" ] ] | ||
}, | ||
{ | ||
"vid": "Post-modification hook", | ||
"vs": [ [ "/tmp/${sys.fqhost}" ] ] | ||
} | ||
] | ||
}, | ||
{ | ||
"did": "88e99dc6-c211-40fd-85a2-b1e8381fe0cb", | ||
"cs": [ | ||
{ | ||
"vid": "Command execution", | ||
"vs": [ ["/bin/true"] ] | ||
} | ||
] | ||
}, | ||
{ | ||
"did": "6eae3c13-1d34-4643-b136-f82c143d8aa5", | ||
"cs": [ | ||
{ | ||
"vid": "File replace lines", | ||
"vs": [ ["/tmp/toto.txt", "/tmp/${node.properties[filename]}"] ] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"os": [] | ||
} |
Oops, something went wrong.