Versions Compared

Key

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

...

No properties given All which contain public properties    }
}[
    "Bookstore4",
    "Bookstore5",
    "Bookstore1",
    "Bookstore2Multiple Entries - both properties match that Match        "Contact""newemailforstore@bookstore.com        color" : "red"
    }
}[
    "Bookstore1
#ScenarioRequestResponse
1

Both properties match

(Return CM Handles that Match

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

[
    "Bookstore1",
    "PNFDemo"
]

2

Multiple Entries - both properties match

(Return

CM Handles

that Match

{
    "publicCmHandleProperties": {

        "Contact""newemailforstore@bookstore.com",
        "color" : "red"
    }
}

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

3

No properties given

(Return All CM Handles

which contain public properties

{

    "publicCmHandleProperties": {

    }
}

[
    "Bookstore4",

    "

Bookstore5",
    "Bookstore1",
    "Bookstore2",
    "Bookstore3",
    "PNFDemo"
]

Results - Edge Cases

#ScenarioRequestResponse
1

Value doesn't match 

(Return Empty Response

{
    "publicCmHandleProperties": {
        "Contact""wont match"
    }
}

[ ]
2

Unknown properties given

(Return Empty Response)

{
    "publicCmHandleProperties": {
        "UnknwnProperty""doesnt matter"
    }
}

[ ]
3

Empty value (valid)

(Return CM Handles Returned that Match

{

    "publicCmHandleProperties": {
        "color"""
    }
}

[
    "Bookstore4"
]

4

Empty property (invalid)

(BAD_REQUEST)

{

    "publicCmHandleProperties": {
        """doesnt matter "
    }
}

{
    "status""400 BAD_REQUEST",
    "message""Invalid data",
    "details""Missing property - please supply a valid property"
}

5

Multiple entries with one empty property (invalid)

(BAD_REQUEST)

{
    "publicCmHandleProperties": {
        "color" : "",
        "" : "doesnt matter",
        "Contact""newemailforstore@bookstore.com"
    }
}

{
    "status""400 BAD_REQUEST",
    "message""Invalid data",
    "details""Missing property - please supply a valid property"
}

6

Apostrophe in cm handle 

(Exception)

*** CPS can accept a cm handle with an apostrophe but fails to return when queried ***

{
    "publicCmHandleProperties": {
        "color" : "won't match"
    }
}

{
    "status""500 INTERNAL_SERVER_ERROR",
    "message""Error while parsing cpsPath expression",
    "details""failed to parse at line 1 due to extraneous input 't' expecting {']', 'and'}"
}

...