summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src/test/resources
diff options
context:
space:
mode:
authorhalil.cakal <halil.cakal@est.tech>2023-08-01 16:35:58 +0100
committerhalil.cakal <halil.cakal@est.tech>2023-08-04 14:41:42 +0100
commit640e0ed06320d594e0ef18557f0051ead853712e (patch)
tree33c0989d420facf4c088e91776ae8489be6ec415 /cps-ncmp-service/src/test/resources
parent7a049060b9ee2306eb562f75a1cbd0d50eb14f41 (diff)
Subscription Creation: Fixes for code review after demo
- Change missleading subscription details in testware - Change datastore check to comply with CPS enum - Remove redundant CloudConstructionException - Change exception handling in cloud event mappers to avoid loss of information - Remove exception handling from scheduler service as discussed in the meeting Issue-ID: CPS-1732 Change-Id: I9fee2eafd4db97a0eed80e39219463c904f5a980 Signed-off-by: halil.cakal <halil.cakal@est.tech>
Diffstat (limited to 'cps-ncmp-service/src/test/resources')
-rw-r--r--cps-ncmp-service/src/test/resources/avcSubscriptionCreationEvent.json2
-rw-r--r--cps-ncmp-service/src/test/resources/avcSubscriptionEventResponse.json25
-rw-r--r--cps-ncmp-service/src/test/resources/avcSubscriptionOutcomeEvent.json12
3 files changed, 12 insertions, 27 deletions
diff --git a/cps-ncmp-service/src/test/resources/avcSubscriptionCreationEvent.json b/cps-ncmp-service/src/test/resources/avcSubscriptionCreationEvent.json
index e4539fb38a..803fa48bdf 100644
--- a/cps-ncmp-service/src/test/resources/avcSubscriptionCreationEvent.json
+++ b/cps-ncmp-service/src/test/resources/avcSubscriptionCreationEvent.json
@@ -15,7 +15,7 @@
"CMHandle2",
"CMHandle3"
],
- "datastore": "passthrough-running",
+ "datastore": "ncmp-datastore:passthrough-running",
"datastore-xpath-filter": "//_3gpp-nr-nrm-gnbdufunction:GNBDUFunction/_3gpp-nr-nrm-nrcelldu:NRCellDU/ | //_3gpp-nr-nrm-gnbcuupfunction:GNBCUUPFunction// | //_3gpp-nr-nrm-gnbcucpfunction:GNBCUCPFunction/_3gpp-nr-nrm-nrcelldu:NRCellCU// | //_3gpp-nr-nrm-nrsectorcarrier:NRSectorCarrier//"
}
}
diff --git a/cps-ncmp-service/src/test/resources/avcSubscriptionEventResponse.json b/cps-ncmp-service/src/test/resources/avcSubscriptionEventResponse.json
index 52ca1df62b..dfe8f50466 100644
--- a/cps-ncmp-service/src/test/resources/avcSubscriptionEventResponse.json
+++ b/cps-ncmp-service/src/test/resources/avcSubscriptionEventResponse.json
@@ -7,37 +7,22 @@
{
"id": "CMHandle1",
"status": "REJECTED",
- "details": "Faulty subscription format for target(s)"
+ "details": "Some error message from the DMI"
},
{
"id": "CMHandle2",
"status": "REJECTED",
- "details": "Faulty subscription format for target(s)"
+ "details": "Some other error message from the DMI"
},
{
"id": "CMHandle3",
- "status": "REJECTED",
- "details": "Faulty subscription format for target(s)"
- },
- {
- "id": "CMHandle4",
- "status": "REJECTED",
- "details": "Target(s) do not exist"
- },
- {
- "id": "CMHandle5",
"status": "PENDING",
- "details": "EMS or node connectivity issues, retrying"
+ "details": "No reply from DMI yet"
},
{
- "id": "CMHandle6",
- "status": "PENDING",
- "details": "EMS or node connectivity issues, retrying"
- },
- {
- "id": "CMHandle7",
+ "id": "CMHandle4",
"status": "PENDING",
- "details": "EMS or node connectivity issues, retrying"
+ "details": "No reply from DMI yet"
}
]
}
diff --git a/cps-ncmp-service/src/test/resources/avcSubscriptionOutcomeEvent.json b/cps-ncmp-service/src/test/resources/avcSubscriptionOutcomeEvent.json
index 2d83bdddcb..14e8cbb4c4 100644
--- a/cps-ncmp-service/src/test/resources/avcSubscriptionOutcomeEvent.json
+++ b/cps-ncmp-service/src/test/resources/avcSubscriptionOutcomeEvent.json
@@ -5,18 +5,18 @@
"additionalInfo": {
"rejected": [
{
- "details": "Target(s) do not exist",
- "targets": ["CMHandle4"]
+ "details": "Some other error message from the DMI",
+ "targets": ["CMHandle2"]
},
{
- "details": "Faulty subscription format for target(s)",
- "targets": ["CMHandle1", "CMHandle2", "CMHandle3"]
+ "details": "Some error message from the DMI",
+ "targets": ["CMHandle1"]
}
],
"pending": [
{
- "details": "EMS or node connectivity issues, retrying",
- "targets": ["CMHandle5", "CMHandle6", "CMHandle7"]
+ "details": "No reply from DMI yet",
+ "targets": ["CMHandle3", "CMHandle4"]
}
]
}