...
- Null name, Value
- Empty name, Value
- no key value pairs at all
Manual Testing
...
Data
...
cURL Command
...
Both properties match
(CM Handles Returned that Match)
...
...
URL
...
http://localhost:8883/ncmp/v1/data/ch/searches
Results
--header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=node0p01jwoucppe9e0t2ksksk2ns7.node0' \
--data-raw '
# | Scenario | Request | Response |
---|---|---|---|
1 | Both properties match (CM Handles Returned that Match) |
{ "publicCmHandleProperties": { |
{
"publicCmHandleProperties": {
"Contact": "newemailforstore@bookstore.com"
}
}
[ | |
2 | Value |
doesn't match (Nothing Returned) |
|
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=node0p01jwoucppe9e0t2ksksk2ns7.node0' \
--data-raw
{ |
newemailforstore@bookstore.com" |
[ ] | |
3 | Unknown |
{
"publicCmHandleProperties": {
"Contact": "something else"
}
}
properties given - NO cm handles returned (Return Empty Response) | { |
UnknwnProperty": " |
doesnt matter" | [ ] |
4 | Empty property name Return 400 (BAD_REQUEST) |
--header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=node0p01jwoucppe9e0t2ksksk2ns7.node0' \
--data-raw '{:
{ |
"": ""{
|
}'
"publicCmHandleProperties": { |
doesnt matter " | |
5 | No properties given - all cm handles returned (that contain public properties) |
| { "publicCmHandleProperties": { |
Return 400
(BAD_REQUEST)
curl --location --request POST 'http://localhost:8883/ncmp/v1/data/ch/searches' \
--header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=node0p01jwoucppe9e0t2ksksk2ns7.node0' \
--data-raw '{
"publicCmHandleProperties": [
"Contact", "newemailforstore@bookstore.com"
]
}'
[ | |
6 | Property is empty (BAD_REQUEST) |
{ "publicCmHandleProperties": [ " |
", "newemailforstore@bookstore.com" ] } |
[ ] |
Future Example (Out-of-scope)
...