Generated by TestNG with ReportNG at 22:17 PDT on Friday 22 July 2022
root@f9c07ffec79b / 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.705s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.135s
2022-07-22 22:32:12 |

2022-07-22 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:12 | ------------------------------------

2022-07-22 22:32:12 | [Mutex] waiting for: [configured:node:node-eb417685-f073-4bcb-8156-d0b1ef2917c1:node-932eeefa-a80b-4a35-9abb-9bf9215e6f43]

2022-07-22 22:32:12 | [Mutex] received everything.

2022-07-22 22:32:12 | [Mutex] isItemNotified: configured:node:node-eb417685-f073-4bcb-8156-d0b1ef2917c1:node-932eeefa-a80b-4a35-9abb-9bf9215e6f43 :: true

2022-07-22 22:32:13 | [Mutex] waiting for: [received:nodes:d04dda68-a7b4-4e61-b361-7132569029c5:localhost]

2022-07-22 22:32:13 | [Mutex] received everything.

2022-07-22 22:32:13 | [Mutex] isItemNotified: received:node:d04dda68-a7b4-4e61-b361-7132569029c5:localhost:node-eb417685-f073-4bcb-8156-d0b1ef2917c1:Node eb417685-f073-4bcb-8156-d0b1ef2917c1 :: true

2022-07-22 22:32:13 | [Mutex] waiting for: [received:nodes:b07ad847-0c8b-4f0c-b1d3-8d35c31aa275:localhost]

2022-07-22 22:32:13 | [Mutex] waiting for: [received:nodes:b07ad847-0c8b-4f0c-b1d3-8d35c31aa275:localhost]

2022-07-22 22:32:13 | [Mutex] received everything.

2022-07-22 22:32:13 | [Mutex] isItemNotified: received:node:b07ad847-0c8b-4f0c-b1d3-8d35c31aa275:localhost:node-eb417685-f073-4bcb-8156-d0b1ef2917c1:Node eb417685-f073-4bcb-8156-d0b1ef2917c1 :: false

createNodes 1.621s
2022-07-22 22:32:09 |

2022-07-22 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:09 | ------------------------------------

2022-07-22 22:32:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-eb417685-f073-4bcb-8156-d0b1ef2917c1",
    "pubsub#title": "Node eb417685-f073-4bcb-8156-d0b1ef2917c1"
}

2022-07-22 22:32:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-22 22:32:11 | [Mutex] waiting for: [received:nodes:a9878d58-da4a-409f-8499-fafce12096fa:localhost]

2022-07-22 22:32:11 | [Mutex] received everything.

2022-07-22 22:32:11 | [Mutex] isItemNotified: received:node:a9878d58-da4a-409f-8499-fafce12096fa:localhost:node-eb417685-f073-4bcb-8156-d0b1ef2917c1:Node eb417685-f073-4bcb-8156-d0b1ef2917c1 :: true

createSubnodes 1.021s
2022-07-22 22:32:11 |

2022-07-22 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:11 | ------------------------------------

2022-07-22 22:32:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-932eeefa-a80b-4a35-9abb-9bf9215e6f43",
    "pubsub#title": "Node 932eeefa-a80b-4a35-9abb-9bf9215e6f43"
}

2022-07-22 22:32:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-22 22:32:12 | [Mutex] waiting for: [received:nodes:92e7ca88-f398-4c5c-bc3d-620ab4270ade:localhost]

2022-07-22 22:32:12 | [Mutex] received everything.

2022-07-22 22:32:12 | [Mutex] isItemNotified: received:node:92e7ca88-f398-4c5c-bc3d-620ab4270ade:localhost:node-932eeefa-a80b-4a35-9abb-9bf9215e6f43:Node 932eeefa-a80b-4a35-9abb-9bf9215e6f43 :: true

deleteNodes 1.027s
2022-07-22 22:32:16 |

2022-07-22 22:32:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:16 | ------------------------------------

2022-07-22 22:32:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-932eeefa-a80b-4a35-9abb-9bf9215e6f43"
}

2022-07-22 22:32:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-22 22:32:17 | [Mutex] waiting for: [received:nodes:acbb2487-5925-4e9a-bf57-06c87d6ae601:localhost]

2022-07-22 22:32:17 | [Mutex] received everything.

2022-07-22 22:32:17 | [Mutex] isItemNotified: received:node:acbb2487-5925-4e9a-bf57-06c87d6ae601:localhost:node-932eeefa-a80b-4a35-9abb-9bf9215e6f43:Node 932eeefa-a80b-4a35-9abb-9bf9215e6f43 :: false

deleteSubnodes 1.026s
2022-07-22 22:32:15 |

2022-07-22 22:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:15 | ------------------------------------

2022-07-22 22:32:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eb417685-f073-4bcb-8156-d0b1ef2917c1"
}

2022-07-22 22:32:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-22 22:32:16 | [Mutex] waiting for: [received:nodes:4d32361a-03a3-4c74-9b90-7c481671e1bb:localhost]

2022-07-22 22:32:16 | [Mutex] waiting for: [received:nodes:4d32361a-03a3-4c74-9b90-7c481671e1bb:localhost]

2022-07-22 22:32:16 | [Mutex] received everything.

2022-07-22 22:32:16 | [Mutex] isItemNotified: received:node:4d32361a-03a3-4c74-9b90-7c481671e1bb:localhost:node-eb417685-f073-4bcb-8156-d0b1ef2917c1:Node eb417685-f073-4bcb-8156-d0b1ef2917c1 :: false

2022-07-22 22:32:16 | [Mutex] waiting for: [received:nodes:be49780f-7b57-4c5d-88c7-cd0e929174ad:localhost]

2022-07-22 22:32:16 | [Mutex] received everything.

2022-07-22 22:32:16 | [Mutex] isItemNotified: received:node:be49780f-7b57-4c5d-88c7-cd0e929174ad:localhost:node-eb417685-f073-4bcb-8156-d0b1ef2917c1:Node eb417685-f073-4bcb-8156-d0b1ef2917c1 :: false

publishItemsToNodes 0.062s
2022-07-22 22:32:14 |

2022-07-22 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:14 | ------------------------------------

2022-07-22 22:32:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-eb417685-f073-4bcb-8156-d0b1ef2917c1",
    "entry": "<test>item-515595cc-4006-4170-9702-91f8aff48d51</test>",
    "item-id": "item-515595cc-4006-4170-9702-91f8aff48d51"
}

2022-07-22 22:32:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-515595cc-4006-4170-9702-91f8aff48d51"
}

2022-07-22 22:32:14 | [Mutex] waiting for: [published:item:notifieditem-515595cc-4006-4170-9702-91f8aff48d51:admin@test-domain.com]

2022-07-22 22:32:14 | [Mutex] received everything.

2022-07-22 22:32:14 | [Mutex] isItemNotified: published:item:notifieditem-515595cc-4006-4170-9702-91f8aff48d51:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-22 22:32:14 |

2022-07-22 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:14 | ------------------------------------

2022-07-22 22:32:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-eb417685-f073-4bcb-8156-d0b1ef2917c1",
    "item-id": "item-515595cc-4006-4170-9702-91f8aff48d51"
}

2022-07-22 22:32:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-515595cc-4006-4170-9702-91f8aff48d51"
}

2022-07-22 22:32:14 | [Mutex] received everything.

2022-07-22 22:32:14 | [Mutex] isItemNotified: retracted:item:notifieditem-515595cc-4006-4170-9702-91f8aff48d51:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2022-07-22 22:32:14 |

2022-07-22 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:14 | ------------------------------------

2022-07-22 22:32:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-eb417685-f073-4bcb-8156-d0b1ef2917c1",
    "item-id": "item-515595cc-4006-4170-9702-91f8aff48d51"
}

2022-07-22 22:32:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-eb417685-f073-4bcb-8156-d0b1ef2917c1",
    "item-id": "item-515595cc-4006-4170-9702-91f8aff48d51",
    "item": [
        "<item id=\"item-515595cc-4006-4170-9702-91f8aff48d51\"><test>item-515595cc-4006-4170-9702-91f8aff48d51</test></item>"
    ]
}

2022-07-22 22:32:14 | [Mutex] notify: [retrieved:item:item-515595cc-4006-4170-9702-91f8aff48d51:payload-matches:true:localhost]

2022-07-22 22:32:14 | [Mutex] received everything.

2022-07-22 22:32:14 | [Mutex] isItemNotified: retrieved:item:item-515595cc-4006-4170-9702-91f8aff48d51:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.076s
2022-07-22 22:32:14 |

2022-07-22 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:14 | ------------------------------------

2022-07-22 22:32:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-22 22:32:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-932eeefa-a80b-4a35-9abb-9bf9215e6f43",
        "test",
        "node-eb417685-f073-4bcb-8156-d0b1ef2917c1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-22 22:32:14 |

2022-07-22 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:14 | ------------------------------------

2022-07-22 22:32:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-eb417685-f073-4bcb-8156-d0b1ef2917c1)"
}

2022-07-22 22:32:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-07-22 22:32:13 |

2022-07-22 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:13 | ------------------------------------

2022-07-22 22:32:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-eb417685-f073-4bcb-8156-d0b1ef2917c1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-22 22:32:13 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-07-22 22:32:14 |

2022-07-22 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 22:32:14 | ------------------------------------

2022-07-22 22:32:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-eb417685-f073-4bcb-8156-d0b1ef2917c1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-22 22:32:14 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}