Table of Contents |
---|
Jira Legacy | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
# | URI | Design Notes | Comment(s) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | POST /ncmp/v1/data/ch/searches | Scenario : Request received to return all cm handles matching properties given Request Body
Response Body Example 1
|
...
- Null name, Value
- Empty name, Value
- no key value pairs at all
Manual Testing
Data
Code Block | ||||
---|---|---|---|---|
| ||||
INSERT INTO public.fragment (xpath, "attributes") VALUES('/dmi-registry/cm-handles[@id=''PNFDemo'']/public-properties[@name=''Contact'']', '{"name": "Contact", "value": "newemailforstore@bookstore.com"}');
INSERT INTO public.fragment (xpath, "attributes") VALUES('/dmi-registry/cm-handles[@id=''Bookstore3'']/public-properties[@name=''color'']', '{"name": "color", "value": "red"}');
INSERT INTO public.fragment (xpath, "attributes") VALUES('/dmi-registry/cm-handles[@id=''Bookstore2'']/public-properties[@name=''Contact'']', '{"name": "Contact", "value": "newemailforstore2@bookstore.com"}');
INSERT INTO public.fragment (xpath, "attributes") VALUES('/dmi-registry/cm-handles[@id=''Bookstore1'']/public-properties[@name=''Contact'']', '{"name": "Contact", "value": "newemailforstore@bookstore.com"}'); |
URL
http://localhost:8883/ncmp/v1/data/ch/searches
Results
# | Scenario | Request | Response |
---|---|---|---|
1 | Both properties match (CM Handles Returned that Match) | { "publicCmHandleProperties": { | [ |
2 | Value doesn't match (Nothing Returned) | { | [ ] |
3 | Unknown properties given - NO cm handles returned (Return Empty Response) | { | [ ] |
4 | Empty property name Return 400 (BAD_REQUEST) | { "publicCmHandleProperties": { | |
5 | No properties given - all cm handles returned (that contain public properties) | { "publicCmHandleProperties": { | [ |
6 | Property is empty (BAD_REQUEST) | { "publicCmHandleProperties": [ "", "newemailforstore@bookstore.com" ] } | [ ] |
Future Example (Out-of-scope)
...