summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src/test/resources/expectedStateModel.json
diff options
context:
space:
mode:
authormpriyank <priyank.maheshwari@est.tech>2022-05-16 17:14:25 +0100
committermpriyank <priyank.maheshwari@est.tech>2022-05-19 12:20:50 +0100
commit09156406ac7201a7329663e8fedb29dc28547048 (patch)
tree6f1d0bc41a36ea4762c79578bf7d9e04ddd0208e /cps-ncmp-service/src/test/resources/expectedStateModel.json
parent806d31aed57c798cba0ecc33d92e5b43fa1d957b (diff)
Composite State to handle dmi-reg YANG updates
- Introduce CompositeState object which handles change in updated YANG for dmi-registry - Used Builder pattern as some of the fields are optional - Removed the abstract ready method from CmHandleState which was used as state machine - Fixed few test cases Issue-ID: CPS-1042 Change-Id: I8aaf6f819c66b3a9d30c5e8f0a0007f9528b247f Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Diffstat (limited to 'cps-ncmp-service/src/test/resources/expectedStateModel.json')
-rw-r--r--cps-ncmp-service/src/test/resources/expectedStateModel.json19
1 files changed, 19 insertions, 0 deletions
diff --git a/cps-ncmp-service/src/test/resources/expectedStateModel.json b/cps-ncmp-service/src/test/resources/expectedStateModel.json
new file mode 100644
index 0000000000..a416194343
--- /dev/null
+++ b/cps-ncmp-service/src/test/resources/expectedStateModel.json
@@ -0,0 +1,19 @@
+{
+ "cm-handle-state" : "ADVISED",
+ "lock-reason" : {
+ "reason" : "lock-reason",
+ "details" : "lock-misbehaving-details"
+ },
+ "last-update-time" : "2022-01-01T01:01:01.000-1800",
+ "data-sync-enabled" : false,
+ "datastores" : {
+ "operational" : {
+ "sync-state" : "NONE_REQUESTED",
+ "last-sync-time" : "2022-01-01T01:01:01.000-1800"
+ },
+ "running" : {
+ "sync-state" : "NONE_REQUESTED",
+ "last-sync-time" : "2022-01-01T01:01:01.000-1800"
+ }
+ }
+} \ No newline at end of file