You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

References

CPS-1613 - Getting issue details... STATUS

CPS-1706 - Getting issue details... STATUS

WIP- CPS-1613 Explore the Test Plan Scenarios for Kafka related use cases

Assumptions


Issues & Decisions


Overview

Topic:ncmp-events
Flow Path:NCMP to External Clients
Trigger:CURL Request- LCM CM Handle- Registration
Frequency:

The CURL Request:

CM Handle Registration CURL
		curl --location 'http://localhost:8883/ncmpInventory/v1/ch' \
		--header 'Content-Type: application/json' \
		--header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \
		--header 'Cookie: JSESSIONID=node0m0pehau5f3be1ly3jmq2yeib70.node0' \
		--data '{
				"dmiDataPlugin":"dminame1",
				"dmiModelPlugin":"x",
				"createdCmHandles": [
						{
								"cmHandle": "CMHandle1",
								"cmHandleProperties": {
										"Books": "Social Media"
								},
								"publicCmHandleProperties": {
										"Color": "yellow",
										"Size": "small",
										"Shape": "cube"
								}
						},
						{
								"cmHandle": "CMHandle2",
								"cmHandleProperties": {
										"Books": "Novel"
								},
								"publicCmHandleProperties": {
										"Color": "blue",
										"Size": "medium",
										"Shape": "square"
								}
						}
				]
		}'

Event Samples for Each DMI at initial step:

The events created for each DMI at initial step
		{
			 "eventId":"2d6b9baf-a05d-49e0-badd-6e7de2b9a644",
			 "eventCorrelationId":"CMHandle2",
			 "eventTime":"2023-05-17T11:40:15.126+0000",
			 "eventSource":"org.onap.ncmp",
			 "eventType":"org.onap.ncmp.cmhandle-lcm-event.create",
			 "eventSchema":"org.onap.ncmp:cmhandle-lcm-event",
			 "eventSchemaVersion":"1.0",
			 "event":{
					"cmHandleId":"CMHandle2",
					"newValues":{
						 "cmHandleState":"ADVISED",
						 "cmHandleProperties":[
								{
									 "Shape":"square",
									 "Size":"medium",
									 "Color":"blue"
								}
						 ]
					}
			 }
		}

		{
			 "eventId":"d76be55a-f215-4bf5-a6b5-832d6417f96c",
			 "eventCorrelationId":"CMHandle1",
			 "eventTime":"2023-05-17T11:40:15.270+0000",
			 "eventSource":"org.onap.ncmp",
			 "eventType":"org.onap.ncmp.cmhandle-lcm-event.create",
			 "eventSchema":"org.onap.ncmp:cmhandle-lcm-event",
			 "eventSchemaVersion":"1.0",
			 "event":{
					"cmHandleId":"CMHandle1",
					"newValues":{
						 "cmHandleState":"ADVISED",
						 "cmHandleProperties":[
								{
									 "Shape":"cube",
									 "Size":"small",
									 "Color":"yellow"
								}
						 ]
					}
			 }
		}

Event samples after state change

Event sample for DMI state changes
		{
			 "eventId":"aa8ac2c3-24a9-4bd8-966c-8699c264862b",
			 "eventCorrelationId":"CMHandle2",
			 "eventTime":"2023-05-17T11:40:38.641+0000",
			 "eventSource":"org.onap.ncmp",
			 "eventType":"org.onap.ncmp.cmhandle-lcm-event.update",
			 "eventSchema":"org.onap.ncmp:cmhandle-lcm-event",
			 "eventSchemaVersion":"1.0",
			 "event":{
					"cmHandleId":"CMHandle2",
					"oldValues":{
						 "cmHandleState":"ADVISED"
					},
					"newValues":{
						 "cmHandleState":"LOCKED"
					}
			 }
		}

		{
			 "eventId":"aaa8a3c3-5c25-465f-aee7-76b7d324275c",
			 "eventCorrelationId":"CMHandle1",
			 "eventTime":"2023-05-17T11:40:38.643+0000",
			 "eventSource":"org.onap.ncmp",
			 "eventType":"org.onap.ncmp.cmhandle-lcm-event.update",
			 "eventSchema":"org.onap.ncmp:cmhandle-lcm-event",
			 "eventSchemaVersion":"1.0",
			 "event":{
					"cmHandleId":"CMHandle1",
					"oldValues":{
						 "cmHandleState":"ADVISED"
					},
					"newValues":{
						 "cmHandleState":"LOCKED"
					}
			 }
		}
  • No labels