Generated by TestNG with ReportNG at 22:19 PDT on Thursday 11 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.710s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2022-08-11 22:33:31 |

2022-08-11 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 22:33:31 | ------------------------------------

2022-08-11 22:33:31 | [Mutex] waiting for: [configured:node:node-190bbdf8-9c1b-4266-b4ad-d114dc72a344:node-35a90f2b-460f-48b3-a40f-a54d39ee58cc]

2022-08-11 22:33:31 | [Mutex] received everything.

2022-08-11 22:33:31 | [Mutex] isItemNotified: configured:node:node-190bbdf8-9c1b-4266-b4ad-d114dc72a344:node-35a90f2b-460f-48b3-a40f-a54d39ee58cc :: true

2022-08-11 22:33:32 | [Mutex] waiting for: [received:nodes:c42d5148-6502-4add-8373-94f8bf2fd063:localhost]

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

2022-08-11 22:33:32 | [Mutex] isItemNotified: received:node:c42d5148-6502-4add-8373-94f8bf2fd063:localhost:node-190bbdf8-9c1b-4266-b4ad-d114dc72a344:Node 190bbdf8-9c1b-4266-b4ad-d114dc72a344 :: true

2022-08-11 22:33:32 | [Mutex] waiting for: [received:nodes:deea3a76-e091-4fc0-bcfc-2b8dec1db72d:localhost]

2022-08-11 22:33:32 | [Mutex] waiting for: [received:nodes:deea3a76-e091-4fc0-bcfc-2b8dec1db72d:localhost]

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

2022-08-11 22:33:32 | [Mutex] isItemNotified: received:node:deea3a76-e091-4fc0-bcfc-2b8dec1db72d:localhost:node-190bbdf8-9c1b-4266-b4ad-d114dc72a344:Node 190bbdf8-9c1b-4266-b4ad-d114dc72a344 :: false

createNodes 1.592s
2022-08-11 22:33:28 |

2022-08-11 22:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 22:33:28 | ------------------------------------

2022-08-11 22:33: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-190bbdf8-9c1b-4266-b4ad-d114dc72a344",
    "pubsub#title": "Node 190bbdf8-9c1b-4266-b4ad-d114dc72a344"
}

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

2022-08-11 22:33:30 | [Mutex] waiting for: [received:nodes:e9cd317e-9ac3-4c4d-9205-8b58654c0908:localhost]

2022-08-11 22:33:30 | [Mutex] received everything.

2022-08-11 22:33:30 | [Mutex] isItemNotified: received:node:e9cd317e-9ac3-4c4d-9205-8b58654c0908:localhost:node-190bbdf8-9c1b-4266-b4ad-d114dc72a344:Node 190bbdf8-9c1b-4266-b4ad-d114dc72a344 :: true

createSubnodes 1.023s
2022-08-11 22:33:30 |

2022-08-11 22:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 22:33:30 | ------------------------------------

2022-08-11 22:33: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-35a90f2b-460f-48b3-a40f-a54d39ee58cc",
    "pubsub#title": "Node 35a90f2b-460f-48b3-a40f-a54d39ee58cc"
}

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

2022-08-11 22:33:31 | [Mutex] waiting for: [received:nodes:657de726-0b59-49e1-adea-3ddff98942c9:localhost]

2022-08-11 22:33:31 | [Mutex] waiting for: [received:nodes:657de726-0b59-49e1-adea-3ddff98942c9:localhost]

2022-08-11 22:33:31 | [Mutex] received everything.

2022-08-11 22:33:31 | [Mutex] isItemNotified: received:node:657de726-0b59-49e1-adea-3ddff98942c9:localhost:node-35a90f2b-460f-48b3-a40f-a54d39ee58cc:Node 35a90f2b-460f-48b3-a40f-a54d39ee58cc :: true

deleteNodes 1.019s
2022-08-11 22:33:36 |

2022-08-11 22:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 22:33:36 | ------------------------------------

2022-08-11 22:33:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-35a90f2b-460f-48b3-a40f-a54d39ee58cc"
}

2022-08-11 22:33:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-11 22:33:37 | [Mutex] waiting for: [received:nodes:ec451987-3bdd-4a68-80f7-baf131281743:localhost]

2022-08-11 22:33:37 | [Mutex] waiting for: [received:nodes:ec451987-3bdd-4a68-80f7-baf131281743:localhost]

2022-08-11 22:33:37 | [Mutex] received everything.

2022-08-11 22:33:37 | [Mutex] isItemNotified: received:node:ec451987-3bdd-4a68-80f7-baf131281743:localhost:node-35a90f2b-460f-48b3-a40f-a54d39ee58cc:Node 35a90f2b-460f-48b3-a40f-a54d39ee58cc :: false

deleteSubnodes 1.027s
2022-08-11 22:33:35 |

2022-08-11 22:33:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 22:33:35 | ------------------------------------

2022-08-11 22:33:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-190bbdf8-9c1b-4266-b4ad-d114dc72a344"
}

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

2022-08-11 22:33:36 | [Mutex] waiting for: [received:nodes:b5f61df8-ec9b-4044-8134-5fb6d998ad19:localhost]

2022-08-11 22:33:36 | [Mutex] received everything.

2022-08-11 22:33:36 | [Mutex] isItemNotified: received:node:b5f61df8-ec9b-4044-8134-5fb6d998ad19:localhost:node-190bbdf8-9c1b-4266-b4ad-d114dc72a344:Node 190bbdf8-9c1b-4266-b4ad-d114dc72a344 :: false

2022-08-11 22:33:36 | [Mutex] waiting for: [received:nodes:2b66862e-9e8b-426f-a21f-9aa6469bbd02:localhost]

2022-08-11 22:33:36 | [Mutex] received everything.

2022-08-11 22:33:36 | [Mutex] isItemNotified: received:node:2b66862e-9e8b-426f-a21f-9aa6469bbd02:localhost:node-190bbdf8-9c1b-4266-b4ad-d114dc72a344:Node 190bbdf8-9c1b-4266-b4ad-d114dc72a344 :: false

publishItemsToNodes 0.042s
2022-08-11 22:33:33 |

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

2022-08-11 22:33:33 | ------------------------------------

2022-08-11 22:33:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-190bbdf8-9c1b-4266-b4ad-d114dc72a344",
    "entry": "<test>item-63dfa44c-e5e5-4fc8-94a3-227126b56d66</test>",
    "item-id": "item-63dfa44c-e5e5-4fc8-94a3-227126b56d66"
}

2022-08-11 22:33:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-63dfa44c-e5e5-4fc8-94a3-227126b56d66"
}

2022-08-11 22:33:33 | [Mutex] waiting for: [published:item:notifieditem-63dfa44c-e5e5-4fc8-94a3-227126b56d66:admin@test-domain.com]

2022-08-11 22:33:33 | [Mutex] received everything.

2022-08-11 22:33:33 | [Mutex] isItemNotified: published:item:notifieditem-63dfa44c-e5e5-4fc8-94a3-227126b56d66:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2022-08-11 22:33:33 |

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

2022-08-11 22:33:33 | ------------------------------------

2022-08-11 22:33:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-190bbdf8-9c1b-4266-b4ad-d114dc72a344",
    "item-id": "item-63dfa44c-e5e5-4fc8-94a3-227126b56d66"
}

2022-08-11 22:33:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-63dfa44c-e5e5-4fc8-94a3-227126b56d66"
}

2022-08-11 22:33:33 | [Mutex] waiting for: [retracted:item:notifieditem-63dfa44c-e5e5-4fc8-94a3-227126b56d66:admin@test-domain.com]

2022-08-11 22:33:33 | [Mutex] received everything.

2022-08-11 22:33:33 | [Mutex] isItemNotified: retracted:item:notifieditem-63dfa44c-e5e5-4fc8-94a3-227126b56d66:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2022-08-11 22:33:33 |

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

2022-08-11 22:33:33 | ------------------------------------

2022-08-11 22:33:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-190bbdf8-9c1b-4266-b4ad-d114dc72a344",
    "item-id": "item-63dfa44c-e5e5-4fc8-94a3-227126b56d66"
}

2022-08-11 22:33:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-190bbdf8-9c1b-4266-b4ad-d114dc72a344",
    "item-id": "item-63dfa44c-e5e5-4fc8-94a3-227126b56d66",
    "item": [
        "<item id=\"item-63dfa44c-e5e5-4fc8-94a3-227126b56d66\"><test>item-63dfa44c-e5e5-4fc8-94a3-227126b56d66</test></item>"
    ]
}

2022-08-11 22:33:33 | [Mutex] notify: [retrieved:item:item-63dfa44c-e5e5-4fc8-94a3-227126b56d66:payload-matches:true:localhost]

2022-08-11 22:33:33 | [Mutex] received everything.

2022-08-11 22:33:33 | [Mutex] isItemNotified: retrieved:item:item-63dfa44c-e5e5-4fc8-94a3-227126b56d66:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-08-11 22:33:33 |

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

2022-08-11 22:33:33 | ------------------------------------

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

2022-08-11 22:33:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-190bbdf8-9c1b-4266-b4ad-d114dc72a344",
        "node-35a90f2b-460f-48b3-a40f-a54d39ee58cc"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-11 22:33:33 |

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

2022-08-11 22:33:33 | ------------------------------------

2022-08-11 22:33:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-190bbdf8-9c1b-4266-b4ad-d114dc72a344)"
}

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

subscribeNodes 1.013s
2022-08-11 22:33:32 |

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

2022-08-11 22:33:32 | ------------------------------------

2022-08-11 22:33:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-190bbdf8-9c1b-4266-b4ad-d114dc72a344",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.057s
2022-08-11 22:33:33 |

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

2022-08-11 22:33:33 | ------------------------------------

2022-08-11 22:33:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-190bbdf8-9c1b-4266-b4ad-d114dc72a344",
    "jids": [
        "admin@test-domain.com"
    ]
}

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