Generated by TestNG with ReportNG at 21:43 PST on Thursday 21 January 2021
root@87f6aca6b6f2 / 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 : 9.129s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2021-01-21 21:57:46 |

2021-01-21 21:57:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:46 | ------------------------------------

2021-01-21 21:57:46 | [Mutex] waiting for: [configured:node:node-aedb37ae-4d20-45f3-8160-48820e344702:node-c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f]

2021-01-21 21:57:46 | [Mutex] received everything.

2021-01-21 21:57:46 | [Mutex] isItemNotified: configured:node:node-aedb37ae-4d20-45f3-8160-48820e344702:node-c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f :: true

2021-01-21 21:57:47 | [Mutex] waiting for: [received:nodes:ab3c993f-7ac5-44c5-a81e-fc170772c1e3:localhost]

2021-01-21 21:57:47 | [Mutex] received everything.

2021-01-21 21:57:47 | [Mutex] isItemNotified: received:node:ab3c993f-7ac5-44c5-a81e-fc170772c1e3:localhost:node-aedb37ae-4d20-45f3-8160-48820e344702:Node aedb37ae-4d20-45f3-8160-48820e344702 :: true

2021-01-21 21:57:47 | [Mutex] waiting for: [received:nodes:b5d645e7-5632-43c2-a0a2-953ef9ed07a5:localhost]

2021-01-21 21:57:47 | [Mutex] received everything.

2021-01-21 21:57:47 | [Mutex] isItemNotified: received:node:b5d645e7-5632-43c2-a0a2-953ef9ed07a5:localhost:node-aedb37ae-4d20-45f3-8160-48820e344702:Node aedb37ae-4d20-45f3-8160-48820e344702 :: false

createNodes 1.648s
2021-01-21 21:57:43 |

2021-01-21 21:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:43 | ------------------------------------

2021-01-21 21:57:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-aedb37ae-4d20-45f3-8160-48820e344702",
    "pubsub#title": "Node aedb37ae-4d20-45f3-8160-48820e344702"
}

2021-01-21 21:57:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-21 21:57:45 | [Mutex] waiting for: [received:nodes:fcf36735-c783-4b1d-8108-451427ab1f8e:localhost]

2021-01-21 21:57:45 | [Mutex] waiting for: [received:nodes:fcf36735-c783-4b1d-8108-451427ab1f8e:localhost]

2021-01-21 21:57:45 | [Mutex] received everything.

2021-01-21 21:57:45 | [Mutex] isItemNotified: received:node:fcf36735-c783-4b1d-8108-451427ab1f8e:localhost:node-aedb37ae-4d20-45f3-8160-48820e344702:Node aedb37ae-4d20-45f3-8160-48820e344702 :: true

createSubnodes 1.028s
2021-01-21 21:57:45 |

2021-01-21 21:57:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:45 | ------------------------------------

2021-01-21 21:57:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f",
    "pubsub#title": "Node c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f"
}

2021-01-21 21:57:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-21 21:57:46 | [Mutex] waiting for: [received:nodes:d106e95e-1428-4ccc-8c89-e4b23ece2c4c:localhost]

2021-01-21 21:57:46 | [Mutex] waiting for: [received:nodes:d106e95e-1428-4ccc-8c89-e4b23ece2c4c:localhost]

2021-01-21 21:57:46 | [Mutex] received everything.

2021-01-21 21:57:46 | [Mutex] isItemNotified: received:node:d106e95e-1428-4ccc-8c89-e4b23ece2c4c:localhost:node-c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f:Node c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f :: true

deleteNodes 1.024s
2021-01-21 21:57:50 |

2021-01-21 21:57:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:50 | ------------------------------------

2021-01-21 21:57:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f"
}

2021-01-21 21:57:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-21 21:57:51 | [Mutex] waiting for: [received:nodes:7a7245c5-032e-437c-8ed2-8299b56c7dea:localhost]

2021-01-21 21:57:51 | [Mutex] waiting for: [received:nodes:7a7245c5-032e-437c-8ed2-8299b56c7dea:localhost]

2021-01-21 21:57:51 | [Mutex] received everything.

2021-01-21 21:57:51 | [Mutex] isItemNotified: received:node:7a7245c5-032e-437c-8ed2-8299b56c7dea:localhost:node-c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f:Node c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f :: false

deleteSubnodes 1.033s
2021-01-21 21:57:49 |

2021-01-21 21:57:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:49 | ------------------------------------

2021-01-21 21:57:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-aedb37ae-4d20-45f3-8160-48820e344702"
}

2021-01-21 21:57:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-21 21:57:50 | [Mutex] waiting for: [received:nodes:04afad50-f24f-4c51-a551-0b782539e3d7:localhost]

2021-01-21 21:57:50 | [Mutex] waiting for: [received:nodes:04afad50-f24f-4c51-a551-0b782539e3d7:localhost]

2021-01-21 21:57:50 | [Mutex] waiting for: [received:nodes:04afad50-f24f-4c51-a551-0b782539e3d7:localhost]

2021-01-21 21:57:50 | [Mutex] received everything.

2021-01-21 21:57:50 | [Mutex] isItemNotified: received:node:04afad50-f24f-4c51-a551-0b782539e3d7:localhost:node-aedb37ae-4d20-45f3-8160-48820e344702:Node aedb37ae-4d20-45f3-8160-48820e344702 :: false

2021-01-21 21:57:50 | [Mutex] waiting for: [received:nodes:b58ac266-aaee-4dbb-92af-13c3a062a042:localhost]

2021-01-21 21:57:50 | [Mutex] received everything.

2021-01-21 21:57:50 | [Mutex] isItemNotified: received:node:b58ac266-aaee-4dbb-92af-13c3a062a042:localhost:node-aedb37ae-4d20-45f3-8160-48820e344702:Node aedb37ae-4d20-45f3-8160-48820e344702 :: false

publishItemsToNodes 0.125s
2021-01-21 21:57:48 |

2021-01-21 21:57:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:48 | ------------------------------------

2021-01-21 21:57:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-aedb37ae-4d20-45f3-8160-48820e344702",
    "entry": "<test>item-6800ce5b-6434-47db-9f65-9de4ca3933a5</test>",
    "item-id": "item-6800ce5b-6434-47db-9f65-9de4ca3933a5"
}

2021-01-21 21:57:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6800ce5b-6434-47db-9f65-9de4ca3933a5"
}

2021-01-21 21:57:48 | [Mutex] waiting for: [published:item:notifieditem-6800ce5b-6434-47db-9f65-9de4ca3933a5:admin@test-domain.com]

2021-01-21 21:57:48 | [Mutex] received everything.

2021-01-21 21:57:48 | [Mutex] isItemNotified: published:item:notifieditem-6800ce5b-6434-47db-9f65-9de4ca3933a5:admin@test-domain.com :: true

retractItemsFromNodes 0.095s
2021-01-21 21:57:48 |

2021-01-21 21:57:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:48 | ------------------------------------

2021-01-21 21:57:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-aedb37ae-4d20-45f3-8160-48820e344702",
    "item-id": "item-6800ce5b-6434-47db-9f65-9de4ca3933a5"
}

2021-01-21 21:57:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6800ce5b-6434-47db-9f65-9de4ca3933a5"
}

2021-01-21 21:57:48 | [Mutex] waiting for: [retracted:item:notifieditem-6800ce5b-6434-47db-9f65-9de4ca3933a5:admin@test-domain.com]

2021-01-21 21:57:48 | [Mutex] received everything.

2021-01-21 21:57:48 | [Mutex] isItemNotified: retracted:item:notifieditem-6800ce5b-6434-47db-9f65-9de4ca3933a5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.027s
2021-01-21 21:57:48 |

2021-01-21 21:57:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:48 | ------------------------------------

2021-01-21 21:57:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-aedb37ae-4d20-45f3-8160-48820e344702",
    "item-id": "item-6800ce5b-6434-47db-9f65-9de4ca3933a5"
}

2021-01-21 21:57:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-aedb37ae-4d20-45f3-8160-48820e344702",
    "item-id": "item-6800ce5b-6434-47db-9f65-9de4ca3933a5",
    "item": [
        "<item id=\"item-6800ce5b-6434-47db-9f65-9de4ca3933a5\"><test>item-6800ce5b-6434-47db-9f65-9de4ca3933a5</test></item>"
    ]
}

2021-01-21 21:57:48 | [Mutex] notify: [retrieved:item:item-6800ce5b-6434-47db-9f65-9de4ca3933a5:payload-matches:true:localhost]

2021-01-21 21:57:48 | [Mutex] received everything.

2021-01-21 21:57:48 | [Mutex] isItemNotified: retrieved:item:item-6800ce5b-6434-47db-9f65-9de4ca3933a5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-01-21 21:57:48 |

2021-01-21 21:57:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:48 | ------------------------------------

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

2021-01-21 21:57:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c6c2320d-96a4-4fdd-aa8e-f6c5d4de2a3f",
        "node-aedb37ae-4d20-45f3-8160-48820e344702"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-21 21:57:48 |

2021-01-21 21:57:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:48 | ------------------------------------

2021-01-21 21:57:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-aedb37ae-4d20-45f3-8160-48820e344702)"
}

2021-01-21 21:57:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-01-21 21:57:47 |

2021-01-21 21:57:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:47 | ------------------------------------

2021-01-21 21:57:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-aedb37ae-4d20-45f3-8160-48820e344702",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-21 21:57:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2021-01-21 21:57:48 |

2021-01-21 21:57:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-21 21:57:48 | ------------------------------------

2021-01-21 21:57:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-aedb37ae-4d20-45f3-8160-48820e344702",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-21 21:57:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}