diff options
Diffstat (limited to 'components/pm-subscription-handler/tests/data/filter_test_data.json')
-rw-r--r-- | components/pm-subscription-handler/tests/data/filter_test_data.json | 171 |
1 files changed, 171 insertions, 0 deletions
diff --git a/components/pm-subscription-handler/tests/data/filter_test_data.json b/components/pm-subscription-handler/tests/data/filter_test_data.json new file mode 100644 index 00000000..28dc61d1 --- /dev/null +++ b/components/pm-subscription-handler/tests/data/filter_test_data.json @@ -0,0 +1,171 @@ +[ + { + "testName": "test_filter_true_on_xnf", + "nfFilter":{ + "nfNames":[ + "^pnf.*", + "^vnf.*" + ], + "modelInvariantUUIDs": [ + + ], + "modelVersionIDs": [ + + ] + }, + "nfName": "pnf1", + "modelInvariantUUID": "7129e420-d396-4efb-af02-6b83499b12f8", + "modelVersionID": "e80a6ae3-cafd-4d24-850d-e14c084a5ca9", + "orchestration_status": "Active", + "expectedResult": true + }, + { + "testName": "test_filter_false_on_xnf", + "nfFilter":{ + "nfNames":[ + "^pnf.*", + "^vnf.*" + ], + "modelInvariantUUIDs": [ + + ], + "modelVersionIDs": [ + + ] + }, + "nfName": "PNF-33", + "modelInvariantUUID": "7129e420-d396-4efb-af02-6b83499b12f8", + "modelVersionID": "e80a6ae3-cafd-4d24-850d-e14c084a5ca9", + "orchestration_status": "Active", + "expectedResult": false + }, + { + "testName": "test_filter_true_on_modelInvariantUUIDs", + "nfFilter":{ + "nfNames":[ + ], + "modelInvariantUUIDs": [ + "5845y423-g654-6fju-po78-8n53154532k6", + "7129e420-d396-4efb-af02-6b83499b12f8" + ], + "modelVersionIDs": [ + + ] + }, + "nfName": "pnf1", + "modelInvariantUUID": "7129e420-d396-4efb-af02-6b83499b12f8", + "modelVersionID": "e80a6ae3-cafd-4d24-850d-e14c084a5ca9", + "orchestration_status": "Active", + "expectedResult": true + }, + { + "testName": "test_filter_false_on_modelInvariantUUIDs", + "nfFilter":{ + "nfNames":[ + ], + "modelInvariantUUIDs": [ + "5845y423-g654-6fju-po78-8n53154532k6", + "7129e420-d396-4efb-af02-6b83499b12f8" + ], + "modelVersionIDs": [ + + ] + }, + "nfName": "pnf1", + "modelInvariantUUID": "WrongModelInvariantUUID", + "modelVersionID": "e80a6ae3-cafd-4d24-850d-e14c084a5ca9", + "orchestration_status": "Active", + "expectedResult": false + }, + { + "testName": "test_filter_false_on_modelInvariantUUIDs_being_false_and_pnfname_being_true", + "nfFilter":{ + "nfNames":[ + "^pnf.*", + "^vnf.*" + ], + "modelInvariantUUIDs": [ + "7129e420-d396-4efb-af02-6b83499b12f8" + ], + "modelVersionIDs": [ + + ] + }, + "nfName": "pnf1", + "modelInvariantUUID": "WrongModelInvariantUUID", + "modelVersionID": "e80a6ae3-cafd-4d24-850d-e14c084a5ca9", + "orchestration_status": "Active", + "expectedResult": false + }, + { + "testName": "test_filter_true_on_modelVersionIDs", + "nfFilter":{ + "nfNames":[ + ], + "modelInvariantUUIDs": [ + ], + "modelVersionIDs": [ + "e80a6ae3-cafd-4d24-850d-e14c084a5ca9" + ] + }, + "nfName": "pnf1", + "modelInvariantUUID": "7129e420-d396-4efb-af02-6b83499b12f8", + "modelVersionID": "e80a6ae3-cafd-4d24-850d-e14c084a5ca9", + "orchestration_status": "Active", + "expectedResult": true + }, + { + "testName": "test_filter_false_on_modelVersionIDs", + "nfFilter":{ + "nfNames":[ + ], + "modelInvariantUUIDs": [ + ], + "modelVersionIDs": [ + "e80a6ae3-cafd-4d24-850d-e14c084a5ca9" + ] + }, + "nfName": "pnf1", + "modelInvariantUUID": "7129e420-d396-4efb-af02-6b83499b12f8", + "modelVersionID": "WrongModelVersionID", + "orchestration_status": "Active", + "expectedResult": false + }, + { + "testName": "test_filter_false_on_modelVersionIDs_being_false_and_pnfname_being_true", + "nfFilter":{ + "nfNames":[ + "^pnf.*", + "^vnf.*" + ], + "modelInvariantUUIDs": [ + ], + "modelVersionIDs": [ + "e80a6ae3-cafd-4d24-850d-e14c084a5ca9" + ] + }, + "nfName": "pnf1", + "modelInvariantUUID": "7129e420-d396-4efb-af02-6b83499b12f8", + "modelVersionID": "WrongModelVersionID", + "orchestration_status": "Active", + "expectedResult": false + }, + { + "testName": "test_filter_false_on_OrchestrationStatus", + "nfFilter":{ + "nfNames":[ + "^pnf.*", + "^vnf.*" + ], + "modelInvariantUUIDs": [ + ], + "modelVersionIDs": [ + ] + }, + "nfName": "pnf1", + "modelInvariantUUID": "7129e420-d396-4efb-af02-6b83499b12f8", + "modelVersionID": "e80a6ae3-cafd-4d24-850d-e14c084a5ca9", + "orchestration_status": "Inventoried", + "expectedResult": false + } + ]
\ No newline at end of file |