Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Null name, Value
  • Empty name, Value
  • no key value pairs at all 


Manual Testing

Image Removed





No all
#ScenarioScreenshot

cURL Command

REST
1

Both properties match

(CM Handles Returned that Match) (tick)

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"
    }
}'


{
    "publicCmHandleProperties": {
        "Contact""newemailforstore@bookstore.com"
    }
}

2

One property doesn't match 

(Nothing Returned) (tick)

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""something else"
    }
}'


{
    "publicCmHandleProperties": {
        "Contact""something else"
    }
}

3unknown properties given - NO cm handles returned


{

    "publicCmHandleProperties": {
        "UnknownProperty""doesn't matter"
    }
}

4

Invalid

Return 400

(BAD_REQUEST)

(that contain public properties) (tick)

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": {
        """"
    }
}'


{
    "publicCmHandleProperties": {
        """doesn't matter "
    }
}

4
5

No properties given - all cm handles returned

(that contain public properties) (tick)




{
    "publicCmHandleProperties": {
    }
}

6

Return 400

(BAD_REQUEST) (tick)

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"
    ]
}'


{
    "publicCmHandleProperties": [
        "Contact""newemailforstore@bookstore.com"
    ]
}

7


empty value


Future Example (Out-of-scope)

...