You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 25dc2b0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: postman-collections/CPS.postman_collection.json
+125Lines changed: 125 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3013,6 +3013,131 @@
3013
3013
],
3014
3014
"description": "CPS-NCMP endpoints as defined by Rest OpenApi Specification [here](https://docs.onap.org/projects/onap-cps/en/latest/design.html#cps-ncmp)\n\nCPS-NCMP-Inventory endpoints as defined by Rest OpenApi Specification [here](https://docs.onap.org/projects/onap-cps/en/latest/design.html#cps-ncmp-inventory)"
-`basic_auth_171s` - basic auth header for CPS NCMP requests
118
+
119
+
`Env_k8s.json` (dmi-stub) adds:
120
+
-`DMI_HOST_1` and `DMI_PORT_1` - DMI-Stub-1 endpoint
70
121
-`DMI_HOST_2` and `DMI_PORT_2` - DMI-Stub-2 endpoint
71
122
123
+
`Env_onap_dmi_stack.json` (ONAP DMI stack) adds:
124
+
-`DMI_PLUGIN_HOST` and `DMI_PLUGIN_PORT` - in-cluster ncmp-dmi-plugin service,
125
+
used in the `dmiPlugin` field of the cm-handle registration body
126
+
-`DMI_PLUGIN_NODEPORT` - ncmp-dmi-plugin NodePort, for health checks from
127
+
outside the cluster
128
+
-`SDNC_NODEPORT` and `SDNC_AUTH` - SDNC endpoint and basic auth header
129
+
-`CM_HANDLE` - cm-handle id matching the netconf node mounted in SDNC
130
+
131
+
Note: the `NCMP-DMI-Stub` folder also references `DMI_STUB_1_PORT`, which is not
132
+
defined in either environment file. Set it manually (or add it to
133
+
`Env_k8s.json`) before running those requests.
134
+
72
135
## Using collections in Postman
73
136
A how-to guide is provided in the CPS collection. To access this guide click on the parent CPS folder icon at the top of the collection and follow the provided instructions.
74
137
@@ -80,8 +143,21 @@ The collection includes health check endpoints for all services:
80
143
-**CPS**: Liveness and Readiness checks
81
144
-**DMI-Stub-1**: Liveness and Readiness checks
82
145
-**DMI-Stub-2**: Liveness and Readiness checks
146
+
-**ONAP-DMI-Stack**: DMI plugin health check and SDNC mounted node check
147
+
(requires `onapDmiStack.enabled=true` and the ONAP DMI stack environment)
83
148
84
149
These checks work with k8s deployments by using environment variables.
85
150
151
+
## ONAP DMI Stack demo flow
152
+
The `ONAP-DMI-Stack` folder exercises the DMI -> NCMP -> SDNC integration path
153
+
against the real ncmp-dmi-plugin. Run the requests in order:
154
+
155
+
1. Register the cm-handle
156
+
2. Get CM handle state - module sync takes up to a minute; wait for
157
+
`"cmHandleState":"READY"` before step 3
158
+
3. Get module references - returns the YANG modules read from the simulated
159
+
device via SDNC
160
+
4. De-register the cm-handle - cleans up after the demo
161
+
86
162
## Notes
87
163
When exporting postman collections tabs are used for spacing, so replacing all the tabs is necessary
0 commit comments