Generated by TestNG with ReportNG at 21:39 PST on Thursday 24 November 2022
root@7c41cec37518 / 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.561s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2022-11-24 21:54:31 |

2022-11-24 21:54:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:31 | ------------------------------------

2022-11-24 21:54:31 | [Mutex] waiting for: [configured:node:node-38246168-1fe2-451b-af88-138b7e49d2d5:node-cee434f6-b938-4aed-8714-04e09fd88ff9]

2022-11-24 21:54:31 | [Mutex] received everything.

2022-11-24 21:54:31 | [Mutex] isItemNotified: configured:node:node-38246168-1fe2-451b-af88-138b7e49d2d5:node-cee434f6-b938-4aed-8714-04e09fd88ff9 :: true

2022-11-24 21:54:32 | [Mutex] waiting for: [received:nodes:92e82d8b-0a7c-4c59-b387-61badb4034da:localhost]

2022-11-24 21:54:32 | [Mutex] received everything.

2022-11-24 21:54:32 | [Mutex] isItemNotified: received:node:92e82d8b-0a7c-4c59-b387-61badb4034da:localhost:node-38246168-1fe2-451b-af88-138b7e49d2d5:Node 38246168-1fe2-451b-af88-138b7e49d2d5 :: true

2022-11-24 21:54:32 | [Mutex] waiting for: [received:nodes:d671fae6-f60c-481c-9e77-aaf83e4b8329:localhost]

2022-11-24 21:54:32 | [Mutex] received everything.

2022-11-24 21:54:32 | [Mutex] isItemNotified: received:node:d671fae6-f60c-481c-9e77-aaf83e4b8329:localhost:node-38246168-1fe2-451b-af88-138b7e49d2d5:Node 38246168-1fe2-451b-af88-138b7e49d2d5 :: false

createNodes 1.571s
2022-11-24 21:54:28 |

2022-11-24 21:54:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:28 | ------------------------------------

2022-11-24 21:54:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-38246168-1fe2-451b-af88-138b7e49d2d5",
    "pubsub#title": "Node 38246168-1fe2-451b-af88-138b7e49d2d5"
}

2022-11-24 21:54:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 21:54:30 | [Mutex] waiting for: [received:nodes:62595d95-1ea4-447b-a486-8aacfcedc05b:localhost]

2022-11-24 21:54:30 | [Mutex] received everything.

2022-11-24 21:54:30 | [Mutex] isItemNotified: received:node:62595d95-1ea4-447b-a486-8aacfcedc05b:localhost:node-38246168-1fe2-451b-af88-138b7e49d2d5:Node 38246168-1fe2-451b-af88-138b7e49d2d5 :: true

createSubnodes 1.020s
2022-11-24 21:54:30 |

2022-11-24 21:54:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:30 | ------------------------------------

2022-11-24 21:54:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cee434f6-b938-4aed-8714-04e09fd88ff9",
    "pubsub#title": "Node cee434f6-b938-4aed-8714-04e09fd88ff9"
}

2022-11-24 21:54:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 21:54:31 | [Mutex] waiting for: [received:nodes:39c2a153-46ab-4971-be7b-5da9964fa189:localhost]

2022-11-24 21:54:31 | [Mutex] waiting for: [received:nodes:39c2a153-46ab-4971-be7b-5da9964fa189:localhost]

2022-11-24 21:54:31 | [Mutex] received everything.

2022-11-24 21:54:31 | [Mutex] isItemNotified: received:node:39c2a153-46ab-4971-be7b-5da9964fa189:localhost:node-cee434f6-b938-4aed-8714-04e09fd88ff9:Node cee434f6-b938-4aed-8714-04e09fd88ff9 :: true

deleteNodes 1.018s
2022-11-24 21:54:35 |

2022-11-24 21:54:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:35 | ------------------------------------

2022-11-24 21:54:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cee434f6-b938-4aed-8714-04e09fd88ff9"
}

2022-11-24 21:54:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 21:54:36 | [Mutex] waiting for: [received:nodes:286f4093-0e54-435a-95d6-5dade2d6467f:localhost]

2022-11-24 21:54:36 | [Mutex] waiting for: [received:nodes:286f4093-0e54-435a-95d6-5dade2d6467f:localhost]

2022-11-24 21:54:36 | [Mutex] waiting for: [received:nodes:286f4093-0e54-435a-95d6-5dade2d6467f:localhost]

2022-11-24 21:54:36 | [Mutex] received everything.

2022-11-24 21:54:36 | [Mutex] isItemNotified: received:node:286f4093-0e54-435a-95d6-5dade2d6467f:localhost:node-cee434f6-b938-4aed-8714-04e09fd88ff9:Node cee434f6-b938-4aed-8714-04e09fd88ff9 :: false

deleteSubnodes 1.025s
2022-11-24 21:54:34 |

2022-11-24 21:54:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:34 | ------------------------------------

2022-11-24 21:54:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-38246168-1fe2-451b-af88-138b7e49d2d5"
}

2022-11-24 21:54:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 21:54:35 | [Mutex] waiting for: [received:nodes:b92a11dc-070f-417a-8697-6ee72ff5e9d9:localhost]

2022-11-24 21:54:35 | [Mutex] received everything.

2022-11-24 21:54:35 | [Mutex] isItemNotified: received:node:b92a11dc-070f-417a-8697-6ee72ff5e9d9:localhost:node-38246168-1fe2-451b-af88-138b7e49d2d5:Node 38246168-1fe2-451b-af88-138b7e49d2d5 :: false

2022-11-24 21:54:35 | [Mutex] waiting for: [received:nodes:f84b570e-0308-4365-a36e-4dab51ea2de6:localhost]

2022-11-24 21:54:35 | [Mutex] received everything.

2022-11-24 21:54:35 | [Mutex] isItemNotified: received:node:f84b570e-0308-4365-a36e-4dab51ea2de6:localhost:node-38246168-1fe2-451b-af88-138b7e49d2d5:Node 38246168-1fe2-451b-af88-138b7e49d2d5 :: false

publishItemsToNodes 0.051s
2022-11-24 21:54:33 |

2022-11-24 21:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:33 | ------------------------------------

2022-11-24 21:54:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-38246168-1fe2-451b-af88-138b7e49d2d5",
    "entry": "<test>item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8</test>",
    "item-id": "item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8"
}

2022-11-24 21:54:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8"
}

2022-11-24 21:54:33 | [Mutex] waiting for: [published:item:notifieditem-5d1a5ede-1603-47fe-be85-a24e38ffb1c8:admin@test-domain.com]

2022-11-24 21:54:33 | [Mutex] received everything.

2022-11-24 21:54:33 | [Mutex] isItemNotified: published:item:notifieditem-5d1a5ede-1603-47fe-be85-a24e38ffb1c8:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-11-24 21:54:33 |

2022-11-24 21:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:33 | ------------------------------------

2022-11-24 21:54:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-38246168-1fe2-451b-af88-138b7e49d2d5",
    "item-id": "item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8"
}

2022-11-24 21:54:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8"
}

2022-11-24 21:54:33 | [Mutex] received everything.

2022-11-24 21:54:33 | [Mutex] isItemNotified: retracted:item:notifieditem-5d1a5ede-1603-47fe-be85-a24e38ffb1c8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.040s
2022-11-24 21:54:33 |

2022-11-24 21:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:33 | ------------------------------------

2022-11-24 21:54:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-38246168-1fe2-451b-af88-138b7e49d2d5",
    "item-id": "item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8"
}

2022-11-24 21:54:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-38246168-1fe2-451b-af88-138b7e49d2d5",
    "item-id": "item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8",
    "item": [
        "<item id=\"item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8\"><test>item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8</test></item>"
    ]
}

2022-11-24 21:54:33 | [Mutex] notify: [retrieved:item:item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8:payload-matches:true:localhost]

2022-11-24 21:54:33 | [Mutex] received everything.

2022-11-24 21:54:33 | [Mutex] isItemNotified: retrieved:item:item-5d1a5ede-1603-47fe-be85-a24e38ffb1c8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-11-24 21:54:33 |

2022-11-24 21:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:33 | ------------------------------------

2022-11-24 21:54:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-24 21:54:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-38246168-1fe2-451b-af88-138b7e49d2d5",
        "test",
        "node-cee434f6-b938-4aed-8714-04e09fd88ff9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-11-24 21:54:33 |

2022-11-24 21:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:33 | ------------------------------------

2022-11-24 21:54:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-38246168-1fe2-451b-af88-138b7e49d2d5)"
}

2022-11-24 21:54:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-11-24 21:54:32 |

2022-11-24 21:54:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:32 | ------------------------------------

2022-11-24 21:54:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-38246168-1fe2-451b-af88-138b7e49d2d5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 21:54:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-11-24 21:54:33 |

2022-11-24 21:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:54:33 | ------------------------------------

2022-11-24 21:54:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-38246168-1fe2-451b-af88-138b7e49d2d5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 21:54:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}