Generated by TestNG with ReportNG at 22:26 PDT on Monday 21 June 2021
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / 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.978s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.150s
2021-06-21 22:41:31 |

2021-06-21 22:41:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:31 | ------------------------------------

2021-06-21 22:41:31 | [Mutex] waiting for: [configured:node:node-7cf75163-8f1d-4175-b5f5-971ed65c3ede:node-0ef22c45-aeca-4296-9306-c6ea3831fd46]

2021-06-21 22:41:31 | [Mutex] received everything.

2021-06-21 22:41:31 | [Mutex] isItemNotified: configured:node:node-7cf75163-8f1d-4175-b5f5-971ed65c3ede:node-0ef22c45-aeca-4296-9306-c6ea3831fd46 :: true

2021-06-21 22:41:32 | [Mutex] waiting for: [received:nodes:d72eca54-bee9-44e6-ad9c-32a7076c1e74:localhost]

2021-06-21 22:41:32 | [Mutex] received everything.

2021-06-21 22:41:32 | [Mutex] isItemNotified: received:node:d72eca54-bee9-44e6-ad9c-32a7076c1e74:localhost:node-7cf75163-8f1d-4175-b5f5-971ed65c3ede:Node 7cf75163-8f1d-4175-b5f5-971ed65c3ede :: true

2021-06-21 22:41:32 | [Mutex] waiting for: [received:nodes:76f9bda7-3427-4af6-93dd-7d4678632570:localhost]

2021-06-21 22:41:32 | [Mutex] received everything.

2021-06-21 22:41:32 | [Mutex] isItemNotified: received:node:76f9bda7-3427-4af6-93dd-7d4678632570:localhost:node-7cf75163-8f1d-4175-b5f5-971ed65c3ede:Node 7cf75163-8f1d-4175-b5f5-971ed65c3ede :: false

createNodes 1.721s
2021-06-21 22:41:28 |

2021-06-21 22:41:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:28 | ------------------------------------

2021-06-21 22:41: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-7cf75163-8f1d-4175-b5f5-971ed65c3ede",
    "pubsub#title": "Node 7cf75163-8f1d-4175-b5f5-971ed65c3ede"
}

2021-06-21 22:41:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:41:30 | [Mutex] waiting for: [received:nodes:0fdfc246-4c54-4caa-b22f-08fac607980c:localhost]

2021-06-21 22:41:30 | [Mutex] received everything.

2021-06-21 22:41:30 | [Mutex] isItemNotified: received:node:0fdfc246-4c54-4caa-b22f-08fac607980c:localhost:node-7cf75163-8f1d-4175-b5f5-971ed65c3ede:Node 7cf75163-8f1d-4175-b5f5-971ed65c3ede :: true

createSubnodes 1.032s
2021-06-21 22:41:30 |

2021-06-21 22:41:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:30 | ------------------------------------

2021-06-21 22:41: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-0ef22c45-aeca-4296-9306-c6ea3831fd46",
    "pubsub#title": "Node 0ef22c45-aeca-4296-9306-c6ea3831fd46"
}

2021-06-21 22:41:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:41:31 | [Mutex] waiting for: [received:nodes:1281b739-761a-4c06-a671-3ed8374135a4:localhost]

2021-06-21 22:41:31 | [Mutex] received everything.

2021-06-21 22:41:31 | [Mutex] isItemNotified: received:node:1281b739-761a-4c06-a671-3ed8374135a4:localhost:node-0ef22c45-aeca-4296-9306-c6ea3831fd46:Node 0ef22c45-aeca-4296-9306-c6ea3831fd46 :: true

deleteNodes 1.025s
2021-06-21 22:41:36 |

2021-06-21 22:41:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:36 | ------------------------------------

2021-06-21 22:41:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0ef22c45-aeca-4296-9306-c6ea3831fd46"
}

2021-06-21 22:41:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:41:37 | [Mutex] waiting for: [received:nodes:29c9e4b7-6feb-4644-a35c-41fd3830c0c7:localhost]

2021-06-21 22:41:37 | [Mutex] received everything.

2021-06-21 22:41:37 | [Mutex] isItemNotified: received:node:29c9e4b7-6feb-4644-a35c-41fd3830c0c7:localhost:node-0ef22c45-aeca-4296-9306-c6ea3831fd46:Node 0ef22c45-aeca-4296-9306-c6ea3831fd46 :: false

deleteSubnodes 1.026s
2021-06-21 22:41:35 |

2021-06-21 22:41:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:35 | ------------------------------------

2021-06-21 22:41:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7cf75163-8f1d-4175-b5f5-971ed65c3ede"
}

2021-06-21 22:41:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:41:36 | [Mutex] waiting for: [received:nodes:857a1172-1b3a-4614-b9c6-a87835ae129f:localhost]

2021-06-21 22:41:36 | [Mutex] waiting for: [received:nodes:857a1172-1b3a-4614-b9c6-a87835ae129f:localhost]

2021-06-21 22:41:36 | [Mutex] waiting for: [received:nodes:857a1172-1b3a-4614-b9c6-a87835ae129f:localhost]

2021-06-21 22:41:36 | [Mutex] received everything.

2021-06-21 22:41:36 | [Mutex] isItemNotified: received:node:857a1172-1b3a-4614-b9c6-a87835ae129f:localhost:node-7cf75163-8f1d-4175-b5f5-971ed65c3ede:Node 7cf75163-8f1d-4175-b5f5-971ed65c3ede :: false

2021-06-21 22:41:36 | [Mutex] waiting for: [received:nodes:97bf5069-1914-4075-b83d-1d762b2d1e54:localhost]

2021-06-21 22:41:36 | [Mutex] received everything.

2021-06-21 22:41:36 | [Mutex] isItemNotified: received:node:97bf5069-1914-4075-b83d-1d762b2d1e54:localhost:node-7cf75163-8f1d-4175-b5f5-971ed65c3ede:Node 7cf75163-8f1d-4175-b5f5-971ed65c3ede :: false

publishItemsToNodes 0.053s
2021-06-21 22:41:33 |

2021-06-21 22:41:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:33 | ------------------------------------

2021-06-21 22:41:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7cf75163-8f1d-4175-b5f5-971ed65c3ede",
    "entry": "<test>item-c9538d62-5598-4fb6-af76-48420340bf59</test>",
    "item-id": "item-c9538d62-5598-4fb6-af76-48420340bf59"
}

2021-06-21 22:41:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c9538d62-5598-4fb6-af76-48420340bf59"
}

2021-06-21 22:41:33 | [Mutex] waiting for: [published:item:notifieditem-c9538d62-5598-4fb6-af76-48420340bf59:admin@test-domain.com]

2021-06-21 22:41:33 | [Mutex] received everything.

2021-06-21 22:41:33 | [Mutex] isItemNotified: published:item:notifieditem-c9538d62-5598-4fb6-af76-48420340bf59:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-06-21 22:41:34 |

2021-06-21 22:41:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:34 | ------------------------------------

2021-06-21 22:41:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7cf75163-8f1d-4175-b5f5-971ed65c3ede",
    "item-id": "item-c9538d62-5598-4fb6-af76-48420340bf59"
}

2021-06-21 22:41:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c9538d62-5598-4fb6-af76-48420340bf59"
}

2021-06-21 22:41:34 | [Mutex] received everything.

2021-06-21 22:41:34 | [Mutex] isItemNotified: retracted:item:notifieditem-c9538d62-5598-4fb6-af76-48420340bf59:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2021-06-21 22:41:33 |

2021-06-21 22:41:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:33 | ------------------------------------

2021-06-21 22:41:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7cf75163-8f1d-4175-b5f5-971ed65c3ede",
    "item-id": "item-c9538d62-5598-4fb6-af76-48420340bf59"
}

2021-06-21 22:41:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7cf75163-8f1d-4175-b5f5-971ed65c3ede",
    "item-id": "item-c9538d62-5598-4fb6-af76-48420340bf59",
    "item": [
        "<item id=\"item-c9538d62-5598-4fb6-af76-48420340bf59\"><test>item-c9538d62-5598-4fb6-af76-48420340bf59</test></item>"
    ]
}

2021-06-21 22:41:33 | [Mutex] notify: [retrieved:item:item-c9538d62-5598-4fb6-af76-48420340bf59:payload-matches:true:localhost]

2021-06-21 22:41:33 | [Mutex] received everything.

2021-06-21 22:41:33 | [Mutex] isItemNotified: retrieved:item:item-c9538d62-5598-4fb6-af76-48420340bf59:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2021-06-21 22:41:33 |

2021-06-21 22:41:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:33 | ------------------------------------

2021-06-21 22:41:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-21 22:41:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7cf75163-8f1d-4175-b5f5-971ed65c3ede",
        "node-0ef22c45-aeca-4296-9306-c6ea3831fd46"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-06-21 22:41:34 |

2021-06-21 22:41:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:34 | ------------------------------------

2021-06-21 22:41:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7cf75163-8f1d-4175-b5f5-971ed65c3ede)"
}

2021-06-21 22:41:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-06-21 22:41:32 |

2021-06-21 22:41:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:32 | ------------------------------------

2021-06-21 22:41:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7cf75163-8f1d-4175-b5f5-971ed65c3ede",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-21 22:41:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2021-06-21 22:41:34 |

2021-06-21 22:41:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:41:34 | ------------------------------------

2021-06-21 22:41:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7cf75163-8f1d-4175-b5f5-971ed65c3ede",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-21 22:41:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}