Generated by TestNG with ReportNG at 22:23 PDT on Thursday 19 May 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 8.534s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2022-05-19 22:38:39 |

2022-05-19 22:38:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:39 | ------------------------------------

2022-05-19 22:38:39 | [Mutex] waiting for: [configured:node:node-34605156-b646-4e73-ad99-20c5738ca805:node-f58f286d-a2a1-46af-83be-c6c852e23635]

2022-05-19 22:38:39 | [Mutex] received everything.

2022-05-19 22:38:39 | [Mutex] isItemNotified: configured:node:node-34605156-b646-4e73-ad99-20c5738ca805:node-f58f286d-a2a1-46af-83be-c6c852e23635 :: true

2022-05-19 22:38:40 | [Mutex] waiting for: [received:nodes:78d88520-fab1-40c2-a6e5-0b5b47808076:localhost]

2022-05-19 22:38:40 | [Mutex] received everything.

2022-05-19 22:38:40 | [Mutex] isItemNotified: received:node:78d88520-fab1-40c2-a6e5-0b5b47808076:localhost:node-34605156-b646-4e73-ad99-20c5738ca805:Node 34605156-b646-4e73-ad99-20c5738ca805 :: true

2022-05-19 22:38:40 | [Mutex] waiting for: [received:nodes:3813c901-238b-42d4-bad6-08096843dcee:localhost]

2022-05-19 22:38:40 | [Mutex] received everything.

2022-05-19 22:38:40 | [Mutex] isItemNotified: received:node:3813c901-238b-42d4-bad6-08096843dcee:localhost:node-34605156-b646-4e73-ad99-20c5738ca805:Node 34605156-b646-4e73-ad99-20c5738ca805 :: false

createNodes 1.569s
2022-05-19 22:38:36 |

2022-05-19 22:38:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:36 | ------------------------------------

2022-05-19 22:38:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-34605156-b646-4e73-ad99-20c5738ca805",
    "pubsub#title": "Node 34605156-b646-4e73-ad99-20c5738ca805"
}

2022-05-19 22:38:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 22:38:38 | [Mutex] waiting for: [received:nodes:73f71c18-20a6-4d25-bbee-f504876212d6:localhost]

2022-05-19 22:38:38 | [Mutex] received everything.

2022-05-19 22:38:38 | [Mutex] isItemNotified: received:node:73f71c18-20a6-4d25-bbee-f504876212d6:localhost:node-34605156-b646-4e73-ad99-20c5738ca805:Node 34605156-b646-4e73-ad99-20c5738ca805 :: true

createSubnodes 1.023s
2022-05-19 22:38:38 |

2022-05-19 22:38:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:38 | ------------------------------------

2022-05-19 22:38:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f58f286d-a2a1-46af-83be-c6c852e23635",
    "pubsub#title": "Node f58f286d-a2a1-46af-83be-c6c852e23635"
}

2022-05-19 22:38:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 22:38:39 | [Mutex] waiting for: [received:nodes:93a6816d-0a65-4022-a15d-87b6b8bb637f:localhost]

2022-05-19 22:38:39 | [Mutex] waiting for: [received:nodes:93a6816d-0a65-4022-a15d-87b6b8bb637f:localhost]

2022-05-19 22:38:39 | [Mutex] received everything.

2022-05-19 22:38:39 | [Mutex] isItemNotified: received:node:93a6816d-0a65-4022-a15d-87b6b8bb637f:localhost:node-f58f286d-a2a1-46af-83be-c6c852e23635:Node f58f286d-a2a1-46af-83be-c6c852e23635 :: true

deleteNodes 1.025s
2022-05-19 22:38:43 |

2022-05-19 22:38:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:43 | ------------------------------------

2022-05-19 22:38:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f58f286d-a2a1-46af-83be-c6c852e23635"
}

2022-05-19 22:38:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 22:38:44 | [Mutex] waiting for: [received:nodes:871c41c4-f114-4104-bfe7-34447447727d:localhost]

2022-05-19 22:38:44 | [Mutex] received everything.

2022-05-19 22:38:44 | [Mutex] isItemNotified: received:node:871c41c4-f114-4104-bfe7-34447447727d:localhost:node-f58f286d-a2a1-46af-83be-c6c852e23635:Node f58f286d-a2a1-46af-83be-c6c852e23635 :: false

deleteSubnodes 1.025s
2022-05-19 22:38:42 |

2022-05-19 22:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:42 | ------------------------------------

2022-05-19 22:38:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-34605156-b646-4e73-ad99-20c5738ca805"
}

2022-05-19 22:38:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 22:38:43 | [Mutex] waiting for: [received:nodes:fb696b0f-59b3-496a-88f5-02f29e16f80b:localhost]

2022-05-19 22:38:43 | [Mutex] received everything.

2022-05-19 22:38:43 | [Mutex] isItemNotified: received:node:fb696b0f-59b3-496a-88f5-02f29e16f80b:localhost:node-34605156-b646-4e73-ad99-20c5738ca805:Node 34605156-b646-4e73-ad99-20c5738ca805 :: false

2022-05-19 22:38:43 | [Mutex] waiting for: [received:nodes:94de0e7e-7f26-4f4b-b2d8-6ac5c236a1a2:localhost]

2022-05-19 22:38:43 | [Mutex] received everything.

2022-05-19 22:38:43 | [Mutex] isItemNotified: received:node:94de0e7e-7f26-4f4b-b2d8-6ac5c236a1a2:localhost:node-34605156-b646-4e73-ad99-20c5738ca805:Node 34605156-b646-4e73-ad99-20c5738ca805 :: false

publishItemsToNodes 0.058s
2022-05-19 22:38:41 |

2022-05-19 22:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:41 | ------------------------------------

2022-05-19 22:38:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-34605156-b646-4e73-ad99-20c5738ca805",
    "entry": "<test>item-f2e39223-2f30-4f0f-b70a-6b39f41c870a</test>",
    "item-id": "item-f2e39223-2f30-4f0f-b70a-6b39f41c870a"
}

2022-05-19 22:38:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2e39223-2f30-4f0f-b70a-6b39f41c870a"
}

2022-05-19 22:38:41 | [Mutex] waiting for: [published:item:notifieditem-f2e39223-2f30-4f0f-b70a-6b39f41c870a:admin@test-domain.com]

2022-05-19 22:38:41 | [Mutex] received everything.

2022-05-19 22:38:41 | [Mutex] isItemNotified: published:item:notifieditem-f2e39223-2f30-4f0f-b70a-6b39f41c870a:admin@test-domain.com :: true

retractItemsFromNodes 0.103s
2022-05-19 22:38:41 |

2022-05-19 22:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:41 | ------------------------------------

2022-05-19 22:38:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-34605156-b646-4e73-ad99-20c5738ca805",
    "item-id": "item-f2e39223-2f30-4f0f-b70a-6b39f41c870a"
}

2022-05-19 22:38:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2e39223-2f30-4f0f-b70a-6b39f41c870a"
}

2022-05-19 22:38:41 | [Mutex] waiting for: [retracted:item:notifieditem-f2e39223-2f30-4f0f-b70a-6b39f41c870a:admin@test-domain.com]

2022-05-19 22:38:41 | [Mutex] received everything.

2022-05-19 22:38:41 | [Mutex] isItemNotified: retracted:item:notifieditem-f2e39223-2f30-4f0f-b70a-6b39f41c870a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2022-05-19 22:38:41 |

2022-05-19 22:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:41 | ------------------------------------

2022-05-19 22:38:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-34605156-b646-4e73-ad99-20c5738ca805",
    "item-id": "item-f2e39223-2f30-4f0f-b70a-6b39f41c870a"
}

2022-05-19 22:38:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-34605156-b646-4e73-ad99-20c5738ca805",
    "item-id": "item-f2e39223-2f30-4f0f-b70a-6b39f41c870a",
    "item": [
        "<item id=\"item-f2e39223-2f30-4f0f-b70a-6b39f41c870a\"><test>item-f2e39223-2f30-4f0f-b70a-6b39f41c870a</test></item>"
    ]
}

2022-05-19 22:38:41 | [Mutex] notify: [retrieved:item:item-f2e39223-2f30-4f0f-b70a-6b39f41c870a:payload-matches:true:localhost]

2022-05-19 22:38:41 | [Mutex] received everything.

2022-05-19 22:38:41 | [Mutex] isItemNotified: retrieved:item:item-f2e39223-2f30-4f0f-b70a-6b39f41c870a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-05-19 22:38:41 |

2022-05-19 22:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:41 | ------------------------------------

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

2022-05-19 22:38:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-34605156-b646-4e73-ad99-20c5738ca805",
        "node-f58f286d-a2a1-46af-83be-c6c852e23635",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-19 22:38:41 |

2022-05-19 22:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:41 | ------------------------------------

2022-05-19 22:38:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-34605156-b646-4e73-ad99-20c5738ca805)"
}

2022-05-19 22:38:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-05-19 22:38:40 |

2022-05-19 22:38:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:40 | ------------------------------------

2022-05-19 22:38:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-34605156-b646-4e73-ad99-20c5738ca805",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-19 22:38:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.021s
2022-05-19 22:38:41 |

2022-05-19 22:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:38:41 | ------------------------------------

2022-05-19 22:38:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-34605156-b646-4e73-ad99-20c5738ca805",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-19 22:38:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}