Generated by TestNG with ReportNG at 00:10 PDT on Monday 20 September 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 : 9.045s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-09-20 00:25:20 |

2021-09-20 00:25:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:20 | ------------------------------------

2021-09-20 00:25:20 | [Mutex] waiting for: [configured:node:node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab:node-de9ff370-00c7-41e8-93c4-937f709d38c7]

2021-09-20 00:25:20 | [Mutex] received everything.

2021-09-20 00:25:20 | [Mutex] isItemNotified: configured:node:node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab:node-de9ff370-00c7-41e8-93c4-937f709d38c7 :: true

2021-09-20 00:25:21 | [Mutex] waiting for: [received:nodes:4b6cf4fb-f2cd-4543-bd5c-8a352e3cd8f9:localhost]

2021-09-20 00:25:21 | [Mutex] received everything.

2021-09-20 00:25:21 | [Mutex] isItemNotified: received:node:4b6cf4fb-f2cd-4543-bd5c-8a352e3cd8f9:localhost:node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab:Node 54768370-7f2b-4aa1-92f8-c0e16da2f2ab :: true

2021-09-20 00:25:21 | [Mutex] waiting for: [received:nodes:db6617e6-7b75-418f-b24d-645746f44bce:localhost]

2021-09-20 00:25:21 | [Mutex] received everything.

2021-09-20 00:25:21 | [Mutex] isItemNotified: received:node:db6617e6-7b75-418f-b24d-645746f44bce:localhost:node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab:Node 54768370-7f2b-4aa1-92f8-c0e16da2f2ab :: false

createNodes 1.836s
2021-09-20 00:25:17 |

2021-09-20 00:25:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:17 | ------------------------------------

2021-09-20 00:25:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab",
    "pubsub#title": "Node 54768370-7f2b-4aa1-92f8-c0e16da2f2ab"
}

2021-09-20 00:25:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 00:25:19 | [Mutex] waiting for: [received:nodes:69cf8300-fc43-4d2a-aba0-027536ff5312:localhost]

2021-09-20 00:25:19 | [Mutex] received everything.

2021-09-20 00:25:19 | [Mutex] isItemNotified: received:node:69cf8300-fc43-4d2a-aba0-027536ff5312:localhost:node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab:Node 54768370-7f2b-4aa1-92f8-c0e16da2f2ab :: true

createSubnodes 1.026s
2021-09-20 00:25:19 |

2021-09-20 00:25:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:19 | ------------------------------------

2021-09-20 00:25:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-de9ff370-00c7-41e8-93c4-937f709d38c7",
    "pubsub#title": "Node de9ff370-00c7-41e8-93c4-937f709d38c7"
}

2021-09-20 00:25:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 00:25:20 | [Mutex] waiting for: [received:nodes:2fdefa14-0d24-45b9-b69a-7b0da8039279:localhost]

2021-09-20 00:25:20 | [Mutex] received everything.

2021-09-20 00:25:20 | [Mutex] isItemNotified: received:node:2fdefa14-0d24-45b9-b69a-7b0da8039279:localhost:node-de9ff370-00c7-41e8-93c4-937f709d38c7:Node de9ff370-00c7-41e8-93c4-937f709d38c7 :: true

deleteNodes 1.024s
2021-09-20 00:25:25 |

2021-09-20 00:25:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:25 | ------------------------------------

2021-09-20 00:25:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-de9ff370-00c7-41e8-93c4-937f709d38c7"
}

2021-09-20 00:25:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 00:25:26 | [Mutex] waiting for: [received:nodes:a235e0c9-3b78-4948-b644-a1292bce6aa7:localhost]

2021-09-20 00:25:26 | [Mutex] received everything.

2021-09-20 00:25:26 | [Mutex] isItemNotified: received:node:a235e0c9-3b78-4948-b644-a1292bce6aa7:localhost:node-de9ff370-00c7-41e8-93c4-937f709d38c7:Node de9ff370-00c7-41e8-93c4-937f709d38c7 :: false

deleteSubnodes 1.028s
2021-09-20 00:25:23 |

2021-09-20 00:25:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:23 | ------------------------------------

2021-09-20 00:25:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab"
}

2021-09-20 00:25:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 00:25:25 | [Mutex] waiting for: [received:nodes:1c3efeba-1dee-4c75-8fb9-101c2cb6eb96:localhost]

2021-09-20 00:25:25 | [Mutex] received everything.

2021-09-20 00:25:25 | [Mutex] isItemNotified: received:node:1c3efeba-1dee-4c75-8fb9-101c2cb6eb96:localhost:node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab:Node 54768370-7f2b-4aa1-92f8-c0e16da2f2ab :: false

2021-09-20 00:25:25 | [Mutex] waiting for: [received:nodes:ce35b260-b724-473a-b73e-d536180ed12a:localhost]

2021-09-20 00:25:25 | [Mutex] received everything.

2021-09-20 00:25:25 | [Mutex] isItemNotified: received:node:ce35b260-b724-473a-b73e-d536180ed12a:localhost:node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab:Node 54768370-7f2b-4aa1-92f8-c0e16da2f2ab :: false

publishItemsToNodes 0.081s
2021-09-20 00:25:22 |

2021-09-20 00:25:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:22 | ------------------------------------

2021-09-20 00:25:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab",
    "entry": "<test>item-92cfd203-ec8b-4cf3-ac96-d531035e0119</test>",
    "item-id": "item-92cfd203-ec8b-4cf3-ac96-d531035e0119"
}

2021-09-20 00:25:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-92cfd203-ec8b-4cf3-ac96-d531035e0119"
}

2021-09-20 00:25:22 | [Mutex] waiting for: [published:item:notifieditem-92cfd203-ec8b-4cf3-ac96-d531035e0119:admin@test-domain.com]

2021-09-20 00:25:22 | [Mutex] received everything.

2021-09-20 00:25:22 | [Mutex] isItemNotified: published:item:notifieditem-92cfd203-ec8b-4cf3-ac96-d531035e0119:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2021-09-20 00:25:22 |

2021-09-20 00:25:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:22 | ------------------------------------

2021-09-20 00:25:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab",
    "item-id": "item-92cfd203-ec8b-4cf3-ac96-d531035e0119"
}

2021-09-20 00:25:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-92cfd203-ec8b-4cf3-ac96-d531035e0119"
}

2021-09-20 00:25:22 | [Mutex] received everything.

2021-09-20 00:25:22 | [Mutex] isItemNotified: retracted:item:notifieditem-92cfd203-ec8b-4cf3-ac96-d531035e0119:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2021-09-20 00:25:22 |

2021-09-20 00:25:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:22 | ------------------------------------

2021-09-20 00:25:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab",
    "item-id": "item-92cfd203-ec8b-4cf3-ac96-d531035e0119"
}

2021-09-20 00:25:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab",
    "item-id": "item-92cfd203-ec8b-4cf3-ac96-d531035e0119",
    "item": [
        "<item id=\"item-92cfd203-ec8b-4cf3-ac96-d531035e0119\"><test>item-92cfd203-ec8b-4cf3-ac96-d531035e0119</test></item>"
    ]
}

2021-09-20 00:25:22 | [Mutex] notify: [retrieved:item:item-92cfd203-ec8b-4cf3-ac96-d531035e0119:payload-matches:true:localhost]

2021-09-20 00:25:22 | [Mutex] received everything.

2021-09-20 00:25:22 | [Mutex] isItemNotified: retrieved:item:item-92cfd203-ec8b-4cf3-ac96-d531035e0119:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2021-09-20 00:25:22 |

2021-09-20 00:25:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:22 | ------------------------------------

2021-09-20 00:25:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-09-20 00:25:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-de9ff370-00c7-41e8-93c4-937f709d38c7",
        "test",
        "node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-09-20 00:25:22 |

2021-09-20 00:25:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:22 | ------------------------------------

2021-09-20 00:25:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab)"
}

2021-09-20 00:25:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-09-20 00:25:21 |

2021-09-20 00:25:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:21 | ------------------------------------

2021-09-20 00:25:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 00:25:21 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.062s
2021-09-20 00:25:22 |

2021-09-20 00:25:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:25:22 | ------------------------------------

2021-09-20 00:25:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-54768370-7f2b-4aa1-92f8-c0e16da2f2ab",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 00:25:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}