Generated by TestNG with ReportNG at 22:46 PDT on Thursday 04 August 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.789s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2022-08-04 23:01:04 |

2022-08-04 23:01:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:04 | ------------------------------------

2022-08-04 23:01:04 | [Mutex] waiting for: [configured:node:node-d11b316c-1aee-4392-b0e4-a69b6decac3e:node-d307bbc4-423a-475d-a7b9-5af0ad11fb14]

2022-08-04 23:01:04 | [Mutex] received everything.

2022-08-04 23:01:04 | [Mutex] isItemNotified: configured:node:node-d11b316c-1aee-4392-b0e4-a69b6decac3e:node-d307bbc4-423a-475d-a7b9-5af0ad11fb14 :: true

2022-08-04 23:01:05 | [Mutex] waiting for: [received:nodes:bbe758a8-073d-4e88-85b2-ef8bb56170bf:localhost]

2022-08-04 23:01:05 | [Mutex] received everything.

2022-08-04 23:01:05 | [Mutex] isItemNotified: received:node:bbe758a8-073d-4e88-85b2-ef8bb56170bf:localhost:node-d11b316c-1aee-4392-b0e4-a69b6decac3e:Node d11b316c-1aee-4392-b0e4-a69b6decac3e :: true

2022-08-04 23:01:05 | [Mutex] waiting for: [received:nodes:d6d2a1b2-d496-464b-b362-498adcc79346:localhost]

2022-08-04 23:01:05 | [Mutex] received everything.

2022-08-04 23:01:05 | [Mutex] isItemNotified: received:node:d6d2a1b2-d496-464b-b362-498adcc79346:localhost:node-d11b316c-1aee-4392-b0e4-a69b6decac3e:Node d11b316c-1aee-4392-b0e4-a69b6decac3e :: false

createNodes 1.658s
2022-08-04 23:01:01 |

2022-08-04 23:01:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:01 | ------------------------------------

2022-08-04 23:01:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d11b316c-1aee-4392-b0e4-a69b6decac3e",
    "pubsub#title": "Node d11b316c-1aee-4392-b0e4-a69b6decac3e"
}

2022-08-04 23:01:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-04 23:01:03 | [Mutex] waiting for: [received:nodes:9a048131-b178-42a0-bcc5-d25a7dc87b67:localhost]

2022-08-04 23:01:03 | [Mutex] waiting for: [received:nodes:9a048131-b178-42a0-bcc5-d25a7dc87b67:localhost]

2022-08-04 23:01:03 | [Mutex] received everything.

2022-08-04 23:01:03 | [Mutex] isItemNotified: received:node:9a048131-b178-42a0-bcc5-d25a7dc87b67:localhost:node-d11b316c-1aee-4392-b0e4-a69b6decac3e:Node d11b316c-1aee-4392-b0e4-a69b6decac3e :: true

createSubnodes 1.028s
2022-08-04 23:01:03 |

2022-08-04 23:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:03 | ------------------------------------

2022-08-04 23:01:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d307bbc4-423a-475d-a7b9-5af0ad11fb14",
    "pubsub#title": "Node d307bbc4-423a-475d-a7b9-5af0ad11fb14"
}

2022-08-04 23:01:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-04 23:01:04 | [Mutex] waiting for: [received:nodes:273675c1-5022-4cd5-9cea-da0bc32ab6aa:localhost]

2022-08-04 23:01:04 | [Mutex] received everything.

2022-08-04 23:01:04 | [Mutex] isItemNotified: received:node:273675c1-5022-4cd5-9cea-da0bc32ab6aa:localhost:node-d307bbc4-423a-475d-a7b9-5af0ad11fb14:Node d307bbc4-423a-475d-a7b9-5af0ad11fb14 :: true

deleteNodes 1.019s
2022-08-04 23:01:09 |

2022-08-04 23:01:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:09 | ------------------------------------

2022-08-04 23:01:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d307bbc4-423a-475d-a7b9-5af0ad11fb14"
}

2022-08-04 23:01:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-04 23:01:10 | [Mutex] waiting for: [received:nodes:5de141ec-d4a6-4702-9cf2-a5ff08862b37:localhost]

2022-08-04 23:01:10 | [Mutex] received everything.

2022-08-04 23:01:10 | [Mutex] isItemNotified: received:node:5de141ec-d4a6-4702-9cf2-a5ff08862b37:localhost:node-d307bbc4-423a-475d-a7b9-5af0ad11fb14:Node d307bbc4-423a-475d-a7b9-5af0ad11fb14 :: false

deleteSubnodes 1.027s
2022-08-04 23:01:08 |

2022-08-04 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:08 | ------------------------------------

2022-08-04 23:01:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d11b316c-1aee-4392-b0e4-a69b6decac3e"
}

2022-08-04 23:01:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-04 23:01:09 | [Mutex] waiting for: [received:nodes:43973771-2f41-47cd-9360-f669416bc164:localhost]

2022-08-04 23:01:09 | [Mutex] received everything.

2022-08-04 23:01:09 | [Mutex] isItemNotified: received:node:43973771-2f41-47cd-9360-f669416bc164:localhost:node-d11b316c-1aee-4392-b0e4-a69b6decac3e:Node d11b316c-1aee-4392-b0e4-a69b6decac3e :: false

2022-08-04 23:01:09 | [Mutex] waiting for: [received:nodes:b7d3e656-b439-4f1b-9e7c-c291b3d98689:localhost]

2022-08-04 23:01:09 | [Mutex] received everything.

2022-08-04 23:01:09 | [Mutex] isItemNotified: received:node:b7d3e656-b439-4f1b-9e7c-c291b3d98689:localhost:node-d11b316c-1aee-4392-b0e4-a69b6decac3e:Node d11b316c-1aee-4392-b0e4-a69b6decac3e :: false

publishItemsToNodes 0.058s
2022-08-04 23:01:06 |

2022-08-04 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:06 | ------------------------------------

2022-08-04 23:01:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d11b316c-1aee-4392-b0e4-a69b6decac3e",
    "entry": "<test>item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0</test>",
    "item-id": "item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0"
}

2022-08-04 23:01:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0"
}

2022-08-04 23:01:06 | [Mutex] received everything.

2022-08-04 23:01:06 | [Mutex] isItemNotified: published:item:notifieditem-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0:admin@test-domain.com :: true

retractItemsFromNodes 0.139s
2022-08-04 23:01:06 |

2022-08-04 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:06 | ------------------------------------

2022-08-04 23:01:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d11b316c-1aee-4392-b0e4-a69b6decac3e",
    "item-id": "item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0"
}

2022-08-04 23:01:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0"
}

2022-08-04 23:01:07 | [Mutex] received everything.

2022-08-04 23:01:07 | [Mutex] isItemNotified: retracted:item:notifieditem-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.089s
2022-08-04 23:01:06 |

2022-08-04 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:06 | ------------------------------------

2022-08-04 23:01:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d11b316c-1aee-4392-b0e4-a69b6decac3e",
    "item-id": "item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0"
}

2022-08-04 23:01:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d11b316c-1aee-4392-b0e4-a69b6decac3e",
    "item-id": "item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0",
    "item": [
        "<item id=\"item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0\"><test>item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0</test></item>"
    ]
}

2022-08-04 23:01:06 | [Mutex] notify: [retrieved:item:item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0:payload-matches:true:localhost]

2022-08-04 23:01:06 | [Mutex] received everything.

2022-08-04 23:01:06 | [Mutex] isItemNotified: retrieved:item:item-1f3e6ec0-4da9-4b0a-9172-566cc7d055d0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-04 23:01:06 |

2022-08-04 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:06 | ------------------------------------

2022-08-04 23:01:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-04 23:01:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d307bbc4-423a-475d-a7b9-5af0ad11fb14",
        "test",
        "node-d11b316c-1aee-4392-b0e4-a69b6decac3e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-04 23:01:06 |

2022-08-04 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:06 | ------------------------------------

2022-08-04 23:01:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d11b316c-1aee-4392-b0e4-a69b6decac3e)"
}

2022-08-04 23:01:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-08-04 23:01:05 |

2022-08-04 23:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:05 | ------------------------------------

2022-08-04 23:01:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d11b316c-1aee-4392-b0e4-a69b6decac3e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-04 23:01:05 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-08-04 23:01:07 |

2022-08-04 23:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 23:01:07 | ------------------------------------

2022-08-04 23:01:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d11b316c-1aee-4392-b0e4-a69b6decac3e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-04 23:01:07 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}