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

...


Data

...

cURL Command

...

Both properties match

(CM Handles Returned that Match) (tick)

...

Image Removed

...

Image Added


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 '
#ScenarioRequestResponse
1

Both properties match

(CM Handles Returned that Match

{

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

'

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

2

[
    "Bookstore1",
    "PNFDemo"
]

2

Value

One property

doesn't match 

(Nothing Returned)

(tick)

Image Removed

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

newemailforstore@bookstore.com"
    }
}

'

[ ]
3

Unknown

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

3unknown

properties given - NO cm handles returned

(Return Empty Response)

{
    "publicCmHandleProperties": {
        "

UnknownProperty

UnknwnProperty""

doesn't matter

doesnt matter"
    }
}

[ ]
4

Empty property name

Return 400

(BAD_REQUEST)

Image Removed

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

doesnt matter "
    }
}


5

No properties given - all cm handles returned

(that contain public properties)

(tick)

 

{

    "publicCmHandleProperties": {
    }
}

6

Return 400

(BAD_REQUEST) (tick)

Image Removed

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

[
    "Bookstore1",
    "Bookstore2",
    "Bookstore3",
    "PNFDemo"
]

6

Property is empty 

(BAD_REQUEST

http://localhost:8883/ncmp/v1/data/ch/searches

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


Future Example (Out-of-scope)

...