-
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
12 changed files
with
3,049 additions
and
604 deletions.
There are no files selected for viewing
825 changes: 536 additions & 289 deletions
825
...dder/rudder-core/src/main/scala/com/normation/rudder/domain/reports/ExpectedReports.scala
Large diffs are not rendered by default.
Oops, something went wrong.
133 changes: 133 additions & 0 deletions
133
webapp/sources/rudder/rudder-core/src/test/resources/expectedReports/7.0/node0.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,133 @@ | ||
{ | ||
"modes": { | ||
"globalPolicyMode": { | ||
"mode": "enforce", | ||
"overridable": true | ||
}, | ||
"globalComplianceMode": "full-compliance", | ||
"globalHeartbeatPeriod": 1, | ||
"globalAgentRunInterval": { | ||
"interval": 15, | ||
"startMinute": 0, | ||
"splayHour": 0, | ||
"splaytime": 4 | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"ruleId": "4bb75daa-a82f-445a-8e8e-af3e99608ffe", | ||
"directives": [ | ||
{ | ||
"directiveId": "73e069ea-de00-4b5d-a00e-012709b7b462", | ||
"isSystem": false, | ||
"components": [ | ||
{ | ||
"componentName": "Command execution", | ||
"values": [ | ||
"/bin/echo \"restore\"" | ||
], | ||
"unexpanded": [ | ||
"/bin/echo \"restore\"" | ||
] | ||
}, | ||
{ | ||
"componentName": "File absent", | ||
"values": [ | ||
"/tmp/pasla" | ||
], | ||
"unexpanded": [ | ||
"/tmp/pasla" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"ruleId": "hasPolicyServer-root", | ||
"directives": [ | ||
{ | ||
"directiveId": "common-hasPolicyServer-root", | ||
"isSystem": true, | ||
"components": [ | ||
{ | ||
"componentName": "Update", | ||
"values": [ | ||
"None" | ||
], | ||
"unexpanded": [ | ||
"None" | ||
] | ||
}, | ||
{ | ||
"componentName": "ncf Initialization", | ||
"values": [ | ||
"None" | ||
], | ||
"unexpanded": [ | ||
"None" | ||
] | ||
}, | ||
{ | ||
"componentName": "Security parameters", | ||
"values": [ | ||
"None" | ||
], | ||
"unexpanded": [ | ||
"None" | ||
] | ||
}, | ||
{ | ||
"componentName": "Log system for reports", | ||
"values": [ | ||
"None" | ||
], | ||
"unexpanded": [ | ||
"None" | ||
] | ||
}, | ||
{ | ||
"componentName": "CRON Daemon", | ||
"values": [ | ||
"None" | ||
], | ||
"unexpanded": [ | ||
"None" | ||
] | ||
}, | ||
{ | ||
"componentName": "Monitoring", | ||
"values": [ | ||
"None" | ||
], | ||
"unexpanded": [ | ||
"None" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"ruleId": "inventory-all", | ||
"directives": [ | ||
{ | ||
"directiveId": "inventory-all", | ||
"isSystem": true, | ||
"components": [ | ||
{ | ||
"componentName": "Inventory", | ||
"values": [ | ||
"None" | ||
], | ||
"unexpanded": [ | ||
"None" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"overrides": [] | ||
} |
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": [] | ||
} |
Oops, something went wrong.