- Get created service model in Test Case T01 curl --location --request GET 'https://{worker_ip}:30204/sdc2/rest/v1/catalog/services/serviceName/{service model name}/serviceVersion/1.0' \
--header 'USER_ID: cs0008' \ --header 'X-FromAppId: robot-ete' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Authorization: Basic YmVlcDpib29w' - From response get following parameters
- service_model_uuid → resp_json.uuid;
- service_model_invariant_uuid -> resp_json.invariantUUID
- nf_resource_name -> resp_json.componentInstances[0].name
- nf_resource_uuid -> resp_json.componentInstances[0].customizationUUID
- componentName -> resp_json.componentInstances[0].componentName
- nf_model_invariant_uuid -> resp_json.invariantUUID
- nf_model_uuid -> resp_json.uuid
- nf_model_name -> resp_json.name
- Get owning entity id:
curl -k -O --location --request GET 'https://{worker_ip}:30233/aai/v13/business/owning-entities?owning-entity-name=OE-Demonstration' \
--header 'Content-Type: application/json' \ --header 'X-FromAppId: dcae-curl' \ --header 'x-transactionId: 9998' \ --header 'Accept: application/json' \ --header 'Authorization: Basic QUFJOkFBSQ==' From response get following parameter: - Get product family id:
curl -k -O --location --request GET 'https://{worker_ip}:30233/aai/v13/service-design-and-creation/services?service-description=gNB' \ --header 'Content-Type: application/json' \ --header 'X-FromAppId: dcae-curl' \ --header 'x-transactionId: 9998' \ --header 'Accept: application/json' \ --header 'Authorization: Basic QUFJOkFBSQ==' From response get following parameter: - Fill SO_request.json with above paremeters and:
- Send Instantiation request to SO
curl -k --request POST 'http://{worker_ip}:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances' \ --header 'Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ -d @SO_request.json - Login to so- so-bpmn-infra pod via rke console:
kubectl exec -it dev-so-so-bpmn-infra-<....> -n onap /bin/sh open debug.log vi logs/bpmn/debug.log - Verify AAI entry for PNF created by SO service using command:
curl --location --request GET 'https:///{worker_ip}:30233/aai/v17/network/pnfs/pnf/{nf_instance_name}' \ --header 'Content-Type: application/json' \ --header 'X-FromAppId: dcae-curl' \ --header 'x-transactionId: 9998' \ --header 'Accept: application/json' \ --header 'Authorization: Basic QUFJOkFBSQ==' \ --header 'Cookie: JSESSIONID=2F951F19C99CDAED4CA5AFB3DCCD5D61'
- Verify AAI entry for Service Instance created by SO service using command:
curl --location --request GET 'https://{worker_ip}:30233/aai/v13/business/customers/customer/{full_customer_name}/service-subscriptions/service-subscription/{service}/service-instances/service-instance/{instanceId}' \ --header 'Content-Type: application/json' \ --header 'X-FromAppId: dcae-curl' \ --header 'x-transactionId: 9998' \ --header 'Accept: application/json' \ --header 'Authorization: Basic QUFJOkFBSQ==' \ --header 'Cookie: JSESSIONID=2F951F19C99CDAED4CA5AFB3DCCD5D61' - Send PNF Regitration request from real PNF or simulate it using following curl comand.
- Verify if SO service has reacted on PNFReady message Verify if SO service has reacted on PNFReady message from PRH and has ended
- Once again Verify AAI entry for PNF created by SO service using command:
curl --location --request GET 'https:///{worker_ip}:30233/aai/v17/network/pnfs/pnf/{nf_instance_name}' \ --header 'Content-Type: application/json' \ --header 'X-FromAppId: dcae-curl' \ --header 'x-transactionId: 9998' \ --header 'Accept: application/json' \ --header 'Authorization: Basic QUFJOkFBSQ==' \ --header 'Cookie: JSESSIONID=2F951F19C99CDAED4CA5AFB3DCCD5D61' - Once again Verify AAI entry for Service Instance created by SO service using command:
curl --location --request GET 'https://{worker_ip}:30233/aai/v13/business/customers/customer/{full_customer_name}/service-subscriptions/service-subscription/{service}/service-instances/service-instance/{instanceId}' \ --header 'Content-Type: application/json' \ --header 'X-FromAppId: dcae-curl' \ --header 'x-transactionId: 9998' \ --header 'Accept: application/json' \ --header 'Authorization: Basic QUFJOkFBSQ==' \ --header 'Cookie: JSESSIONID=2F951F19C99CDAED4CA5AFB3DCCD5D61'
|
- Service model is present
- Paremeters are present
- Owning Entity ID is presnet
- Product Familiy ID is present
- SO_request.json is filled accodingly
- SO request is send sucesfully.
Service_instance_id is saved from POST response (example of response: {"requestReferences":{"requestId":"10e2577f-3547-4e66-901d-b7b0c6e1d3ab","instanceId":"10004a65-20c4-44d2-bd27-53544fe99916","requestSelfLink":"http://10.183.42.156:30277/orchestrationRequests/v7/10e2577f-3547-4e66-901d-b7b0c6e1d3ab"}})
In debug log should be presnet following entry: Code Block |
---|
2020-08-20T20:59:35.865Z|87f367b7-5d84-47e9-a955-6b2143e8424a|o.o.l.filter.spring.SpringClientPayloadFilter - =======================response end=================================================
2020-08-20T20:59:35.875Z|87f367b7-5d84-47e9-a955-6b2143e8424a|o.o.s.b.i.pnf.dmaap.PnfEventReadyDmaapClient - registering for pnf ready dmaap event for pnf correlation id: test_pnf_name
2020-08-20T20:59:35.881Z|87f367b7-5d84-47e9-a955-6b2143e8424a|org.onap.so.client.RestClient - RestClientSSL using default SSL context!
2020-08-20T20:59:35.894Z|87f367b7-5d84-47e9-a955-6b2143e8424a|o.o.logging.filter.base.PayloadLoggingClientFilter - Sending HTTP POST (overridden to PATCH) to:https://aai.onap:8443/aai/v19/network/pnfs/pnf
/test_pnf_name with request headers:{Authorization=[***REDACTED***], X-RequestID=[87f367b7-5d84-47e9-a955-6b2143e8424a], X-FromAppId=[MSO], X-ONAP-PartnerName=[UNKNOWN], X-HTTP-Method-Override=[PATCH], Ac
cept=[application/json], X-InvocationID=[a9b7b7c1-4912-4e48-8f3a-df7cd3123a54], X-ECOMP-RequestID=[87f367b7-5d84-47e9-a955-6b2143e8424a], X-TransactionId=[], X-ONAP-RequestID=[87f367b7-5d84-47e9-a955-6b21
43e8424a], Content-Type=[application/merge-patch+json]} |
- Service model is present
- Paremeters are present
- Owning Entity ID is presnet
- Product Familiy ID is present
- SO_request.json is filled accodingly
- SO request is send sucesfully.
Service_instance_id is saved from POST response (example of response: {"requestReferences":{"requestId":"10e2577f-3547-4e66-901d-b7b0c6e1d3ab","instanceId":"10004a65-20c4-44d2-bd27-53544fe99916","requestSelfLink":"http://10.183.42.156:30277/orchestrationRequests/v7/10e2577f-3547-4e66-901d-b7b0c6e1d3ab"}})
In debug log should be presnet following entry: Code Block |
---|
2020-08-20T20:59:35.865Z|87f367b7-5d84-47e9-a955-6b2143e8424a|o.o.l.filter.spring.SpringClientPayloadFilter - =======================response end=================================================
2020-08-20T20:59:35.875Z895Z|87f367b7-5d84-47e9-a955-6b2143e8424a|o.o.slogging.bfilter.i.pnf.dmaap.PnfEventReadyDmaapClientbase.PayloadLoggingClientFilter - registering for pnf ready dmaap event for pnf correlation id: test_pnf_name
2020-08-20T20:59:35.881Z|87f367b7-5d84-47e9-a955-6b2143e8424a|org.onap.so.client.RestClient - RestClientSSL using default SSL context!{"pnf-id":"f792d78d-7c2c-4858-980b-23968923b3f4","orchestration-status":"Register"}
2020-08-20T20:59:35.894Z982Z|87f367b7-5d84-47e9-a955-6b2143e8424a|o.o.logging.filter.base.PayloadLoggingClientFilter - SendingResponse HTTPfrom method:POST (overridden to PATCH) performed on touri:https://aai.onap:8443/aaiaa
i/v19/network/pnfs/pnf
/test_pnf_name has withhttp requeststatus headers:{Authorization=[***REDACTED***], X-RequestID=[87f367b7-5d84-47e9-a955-6b2143e8424a], X-FromAppId=[MSO], X-ONAP-PartnerName=[UNKNOWN], X-HTTP-Method-Override=[PATCH], Ac
ceptcode:200 and response headers:{Content-Length=[0], content-type=[application/json], X-InvocationID=[a9b7b7c1-4912-4e48-8f3a-df7cd3123a54Date=[Thu, 20 Aug 2020 20:59:35 GMT], XStrict-ECOMPTransport-RequestIDSecurity=[87f367b7-5d84-47e9-a955-6b2143e8424ama
x-age=16000000; includeSubDomains; preload;], Xvertex-TransactionIdid=[254096], X-ONAP-RequestID=[87f367b7-5d84-47e9-a955-6b21
43e8424a], Content-Type=[application/merge-patch+json-AAI-TXID=[2-aai-resources-200820-20:59:35:904-22741]}
2020-08-20T20:59:35.895Z983Z|87f367b7-5d84-47e9-a955-6b2143e8424a|o.o.logging.filter.base.PayloadLoggingClientFilter - {"pnf-id":"f792d78d-7c2c-4858-980b-23968923b3f4","orchestration-status":"Register"}
Response was returned with an empty entity.
2020-08-20T20:59:39.896Z||o.o.s.b.i.pnf.dmaap.PnfEventReadyDmaapClient - dmaap listener starts listening pnf ready dmaap topic
2020-08-20T20:59:3554.982Z|87f367b7-5d84-47e9-a955-6b2143e8424a485Z||o.o.s.b.loggingi.filterpnf.basedmaap.PayloadLoggingClientFilterPnfEventReadyDmaapClient - Responsedmaap fromlistener method:POST (overridden to PATCH) performed on uri:https://aai.onap:8443/aa
i/v19/network/pnfs/pnf/test_pnf_name has http status code:200 and response headers:{Content-Length=[0], content-type=[application/json], Date=[Thu, 20 Aug 2020 20:59:35 GMT], Strict-Transport-Security=[ma
x-age=16000000; includeSubDomains; preload;], vertex-id=[254096], X-AAI-TXID=[2-aai-resources-200820-20:59:35:904-22741]}
2020-08-20T20:59:35.983Z|87f367b7-5d84-47e9-a955-6b2143e8424a|o.o.logging.filter.base.PayloadLoggingClientFilter - Response was returned with an empty entity.
2020-08-20T20:59:39.896Z||o.o.s.b.i.pnf.dmaap.PnfEventReadyDmaapClient - dmaap listener starts listening pnf ready dmaap topic
2020-08-20T20:59:54.485Zstarts listening pnf ready dmaap topic
2020-08-20T21:00:09.016Z||o.o.s.b.i.pnf.dmaap.PnfEventReadyDmaapClient - dmaap listener starts listening pnf ready dmaap topic
|
especially following entries: correlation id: test_pnf_name same as nf_instance_name from SO request and dmaap listener starts listening pnf ready dmaap topic is pnf name Request is successful. Request should contain following values: "pnf-name": equals to nf_instance_name "orchestration-status": in status Register "relationship-list": with information about service id (instanceId) to which PNF is connected
"model-invariant-id": equals to nf_model_invariant_uuid "model-version-id": equals to nf_model_uuid "ipaddress-v4-oam": should be missing "ipaddress-v6-oam": should be missing "equip-type": should be missing "equip-vendor": should be missing "equip-model": should be missing "sw-version": should be missing
"serial-number": should be missing
"nf-role": should be missing
Request is successful. Request should contain following values: "service-instance-name": equals to service_model_name_nf_instance_name "model-invariant-id": equals to service_model_invariant_uuid "model-version-id": equals to service_model_uuid "orchestration-status": equals to "Assigned", - "relationship-list": with information pnf name (nf_instance_name)
- Regitration request is send sucesfully.
- SO-BPMN pod in /app/logs/bpmn/debug.log should be present following message:
2020-08-21T08:01:19.862Z||o.o.s.b.i.pnf.dmaap.PnfEventReadyDmaapClient - dmaap listener starts listening pnf ready dmaap topic
- unregistering from pnf ready dmaap event for pnf correlation id: nf_instance_name 2020-08-20T2121T08:0001:0919.016Z862Z||o.o.s.b.i.pnf.dmaap.PnfEventReadyDmaapClient - dmaap listener starts listening gets pnf ready dmaap topic
especially following entries: correlation id: test_pnf_name same as ready event for pnfCorrelationId: nf_instance_name from SO request and dmaap listener starts listening pnf ready dmaap topic is pnf name 2020-08-21T08:01:19.930Z|626785f1-baea-427d-aa7a-cdfddc209f5d|org.onap.so.client.RestClient - RestClientSSL using default SSL context! Request is successful. Request should contain following values: "pnf-name": equals to nf_instance_name "orchestration-status": in status RegisterActive "relationship-list": with information about service id (instanceId) to which PNF is connected
"model-invariant-id": equals to nf_model_invariant_uuid "model-version-id": equals to nf_model_uuid "ipaddress-v4-oam": should be missingfilled according to registration_request,json
"ipaddress-v6-oam": should be missing should be filled according to registration_request,json
"equip-type":should be missing should be filled according to registration_request,json "equip-vendor":should be missing should be filled according to registration_request,json "equip-model": should be missingfilled according to registration_request,json "sw-version": should be missingfilled according to registration_request,json
"serial-number": should be missingfilled according to registration_request,json
"nf-role": should be missingfilled according to registration_request,json
Request is successful. Request should contain following values: "service-instance-name": "VENDOR_c20b091e-9d1b-47a6-9c38-f34d65d62dd6","model-invariant-id": "1acbfcc0-f6de-4ccb-8586-9af4b71ef94c",equals to service_model_name_nf_instance_name "model-versioninvariant-id": equals to service_model_invariant_uuid "model-version-id": equals to service_model_uuid "f3ea4c45-aee8-43c1-a0c8-a03046a4be1d", "orchestration-status": equals to Active - "Assigned",relationship-list": with information pnf name (nf_instance_name)
|