Generated by TestNG with ReportNG at 21:13 PST on Sunday 14 February 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.064s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.131s
2021-02-14 21:29:45 |

2021-02-14 21:29:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:45 | ------------------------------------

2021-02-14 21:29:45 | [Mutex] waiting for: [configured:node:node-19490aba-810e-4c6d-a29a-84c37fc8e71b:node-099f8b25-7c4c-45b5-8461-f85779dfc941]

2021-02-14 21:29:45 | [Mutex] received everything.

2021-02-14 21:29:45 | [Mutex] isItemNotified: configured:node:node-19490aba-810e-4c6d-a29a-84c37fc8e71b:node-099f8b25-7c4c-45b5-8461-f85779dfc941 :: true

2021-02-14 21:29:46 | [Mutex] waiting for: [received:nodes:25d491db-9304-44d2-8fdc-b49b869269c9:localhost]

2021-02-14 21:29:46 | [Mutex] received everything.

2021-02-14 21:29:46 | [Mutex] isItemNotified: received:node:25d491db-9304-44d2-8fdc-b49b869269c9:localhost:node-19490aba-810e-4c6d-a29a-84c37fc8e71b:Node 19490aba-810e-4c6d-a29a-84c37fc8e71b :: true

2021-02-14 21:29:46 | [Mutex] waiting for: [received:nodes:5f9b351b-a2b0-4d72-b1dd-ece7aebd6fd1:localhost]

2021-02-14 21:29:46 | [Mutex] received everything.

2021-02-14 21:29:46 | [Mutex] isItemNotified: received:node:5f9b351b-a2b0-4d72-b1dd-ece7aebd6fd1:localhost:node-19490aba-810e-4c6d-a29a-84c37fc8e71b:Node 19490aba-810e-4c6d-a29a-84c37fc8e71b :: false

createNodes 1.668s
2021-02-14 21:29:42 |

2021-02-14 21:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:42 | ------------------------------------

2021-02-14 21:29: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-19490aba-810e-4c6d-a29a-84c37fc8e71b",
    "pubsub#title": "Node 19490aba-810e-4c6d-a29a-84c37fc8e71b"
}

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

2021-02-14 21:29:44 | [Mutex] waiting for: [received:nodes:071e4b04-9f84-40e9-9816-ccaa54346257:localhost]

2021-02-14 21:29:44 | [Mutex] received everything.

2021-02-14 21:29:44 | [Mutex] isItemNotified: received:node:071e4b04-9f84-40e9-9816-ccaa54346257:localhost:node-19490aba-810e-4c6d-a29a-84c37fc8e71b:Node 19490aba-810e-4c6d-a29a-84c37fc8e71b :: true

createSubnodes 1.032s
2021-02-14 21:29:44 |

2021-02-14 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:44 | ------------------------------------

2021-02-14 21:29:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-099f8b25-7c4c-45b5-8461-f85779dfc941",
    "pubsub#title": "Node 099f8b25-7c4c-45b5-8461-f85779dfc941"
}

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

2021-02-14 21:29:45 | [Mutex] waiting for: [received:nodes:9c2f7459-d072-4c44-a997-9b3b6b6b169b:localhost]

2021-02-14 21:29:45 | [Mutex] waiting for: [received:nodes:9c2f7459-d072-4c44-a997-9b3b6b6b169b:localhost]

2021-02-14 21:29:45 | [Mutex] received everything.

2021-02-14 21:29:45 | [Mutex] isItemNotified: received:node:9c2f7459-d072-4c44-a997-9b3b6b6b169b:localhost:node-099f8b25-7c4c-45b5-8461-f85779dfc941:Node 099f8b25-7c4c-45b5-8461-f85779dfc941 :: true

deleteNodes 1.025s
2021-02-14 21:29:49 |

2021-02-14 21:29:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:49 | ------------------------------------

2021-02-14 21:29:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-099f8b25-7c4c-45b5-8461-f85779dfc941"
}

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

2021-02-14 21:29:51 | [Mutex] waiting for: [received:nodes:7b15c562-d295-4507-af37-b5e68d497d72:localhost]

2021-02-14 21:29:51 | [Mutex] received everything.

2021-02-14 21:29:51 | [Mutex] isItemNotified: received:node:7b15c562-d295-4507-af37-b5e68d497d72:localhost:node-099f8b25-7c4c-45b5-8461-f85779dfc941:Node 099f8b25-7c4c-45b5-8461-f85779dfc941 :: false

deleteSubnodes 1.032s
2021-02-14 21:29:48 |

2021-02-14 21:29:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:48 | ------------------------------------

2021-02-14 21:29:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-19490aba-810e-4c6d-a29a-84c37fc8e71b"
}

2021-02-14 21:29:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 21:29:49 | [Mutex] waiting for: [received:nodes:8d49fb96-1f6e-4115-9ba6-e0ab5c7e7d8a:localhost]

2021-02-14 21:29:49 | [Mutex] received everything.

2021-02-14 21:29:49 | [Mutex] isItemNotified: received:node:8d49fb96-1f6e-4115-9ba6-e0ab5c7e7d8a:localhost:node-19490aba-810e-4c6d-a29a-84c37fc8e71b:Node 19490aba-810e-4c6d-a29a-84c37fc8e71b :: false

2021-02-14 21:29:49 | [Mutex] waiting for: [received:nodes:aa21018a-37cd-4c15-b93c-88310ca92812:localhost]

2021-02-14 21:29:49 | [Mutex] received everything.

2021-02-14 21:29:49 | [Mutex] isItemNotified: received:node:aa21018a-37cd-4c15-b93c-88310ca92812:localhost:node-19490aba-810e-4c6d-a29a-84c37fc8e71b:Node 19490aba-810e-4c6d-a29a-84c37fc8e71b :: false

publishItemsToNodes 0.045s
2021-02-14 21:29:47 |

2021-02-14 21:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:47 | ------------------------------------

2021-02-14 21:29:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-19490aba-810e-4c6d-a29a-84c37fc8e71b",
    "entry": "<test>item-13b87410-5788-44cf-8391-7f8148c8969b</test>",
    "item-id": "item-13b87410-5788-44cf-8391-7f8148c8969b"
}

2021-02-14 21:29:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-13b87410-5788-44cf-8391-7f8148c8969b"
}

2021-02-14 21:29:47 | [Mutex] waiting for: [published:item:notifieditem-13b87410-5788-44cf-8391-7f8148c8969b:admin@test-domain.com]

2021-02-14 21:29:47 | [Mutex] received everything.

2021-02-14 21:29:47 | [Mutex] isItemNotified: published:item:notifieditem-13b87410-5788-44cf-8391-7f8148c8969b:admin@test-domain.com :: true

retractItemsFromNodes 0.121s
2021-02-14 21:29:47 |

2021-02-14 21:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:47 | ------------------------------------

2021-02-14 21:29:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-19490aba-810e-4c6d-a29a-84c37fc8e71b",
    "item-id": "item-13b87410-5788-44cf-8391-7f8148c8969b"
}

2021-02-14 21:29:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-13b87410-5788-44cf-8391-7f8148c8969b"
}

2021-02-14 21:29:47 | [Mutex] waiting for: [retracted:item:notifieditem-13b87410-5788-44cf-8391-7f8148c8969b:admin@test-domain.com]

2021-02-14 21:29:47 | [Mutex] received everything.

2021-02-14 21:29:47 | [Mutex] isItemNotified: retracted:item:notifieditem-13b87410-5788-44cf-8391-7f8148c8969b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2021-02-14 21:29:47 |

2021-02-14 21:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:47 | ------------------------------------

2021-02-14 21:29:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-19490aba-810e-4c6d-a29a-84c37fc8e71b",
    "item-id": "item-13b87410-5788-44cf-8391-7f8148c8969b"
}

2021-02-14 21:29:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-19490aba-810e-4c6d-a29a-84c37fc8e71b",
    "item-id": "item-13b87410-5788-44cf-8391-7f8148c8969b",
    "item": [
        "<item id=\"item-13b87410-5788-44cf-8391-7f8148c8969b\"><test>item-13b87410-5788-44cf-8391-7f8148c8969b</test></item>"
    ]
}

2021-02-14 21:29:47 | [Mutex] notify: [retrieved:item:item-13b87410-5788-44cf-8391-7f8148c8969b:payload-matches:true:localhost]

2021-02-14 21:29:47 | [Mutex] received everything.

2021-02-14 21:29:47 | [Mutex] isItemNotified: retrieved:item:item-13b87410-5788-44cf-8391-7f8148c8969b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-02-14 21:29:47 |

2021-02-14 21:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:47 | ------------------------------------

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

2021-02-14 21:29:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-099f8b25-7c4c-45b5-8461-f85779dfc941",
        "node-19490aba-810e-4c6d-a29a-84c37fc8e71b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-02-14 21:29:47 |

2021-02-14 21:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:47 | ------------------------------------

2021-02-14 21:29:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-19490aba-810e-4c6d-a29a-84c37fc8e71b)"
}

2021-02-14 21:29:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2021-02-14 21:29:46 |

2021-02-14 21:29:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:46 | ------------------------------------

2021-02-14 21:29:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-19490aba-810e-4c6d-a29a-84c37fc8e71b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-14 21:29:46 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.027s
2021-02-14 21:29:47 |

2021-02-14 21:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:29:47 | ------------------------------------

2021-02-14 21:29:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-19490aba-810e-4c6d-a29a-84c37fc8e71b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-14 21:29:47 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}