Generated by TestNG with ReportNG at 22:21 PDT on Thursday 07 October 2021
root@b2c2a8eba6e6 / 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.937s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2021-10-07 22:35:43 |

2021-10-07 22:35:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:43 | ------------------------------------

2021-10-07 22:35:43 | [Mutex] waiting for: [configured:node:node-c8efa10f-da4d-4c54-ac4c-7f1748924fff:node-ca83e632-5af1-43bf-9c52-7c5830547d43]

2021-10-07 22:35:43 | [Mutex] received everything.

2021-10-07 22:35:43 | [Mutex] isItemNotified: configured:node:node-c8efa10f-da4d-4c54-ac4c-7f1748924fff:node-ca83e632-5af1-43bf-9c52-7c5830547d43 :: true

2021-10-07 22:35:44 | [Mutex] waiting for: [received:nodes:c4f68831-ca7c-4e6b-a846-70e1561f8a4a:localhost]

2021-10-07 22:35:44 | [Mutex] waiting for: [received:nodes:c4f68831-ca7c-4e6b-a846-70e1561f8a4a:localhost]

2021-10-07 22:35:44 | [Mutex] received everything.

2021-10-07 22:35:44 | [Mutex] isItemNotified: received:node:c4f68831-ca7c-4e6b-a846-70e1561f8a4a:localhost:node-c8efa10f-da4d-4c54-ac4c-7f1748924fff:Node c8efa10f-da4d-4c54-ac4c-7f1748924fff :: true

2021-10-07 22:35:44 | [Mutex] waiting for: [received:nodes:d6ec038b-706c-4fc7-873e-4dd59160a0c5:localhost]

2021-10-07 22:35:44 | [Mutex] waiting for: [received:nodes:d6ec038b-706c-4fc7-873e-4dd59160a0c5:localhost]

2021-10-07 22:35:44 | [Mutex] waiting for: [received:nodes:d6ec038b-706c-4fc7-873e-4dd59160a0c5:localhost]

2021-10-07 22:35:44 | [Mutex] waiting for: [received:nodes:d6ec038b-706c-4fc7-873e-4dd59160a0c5:localhost]

2021-10-07 22:35:44 | [Mutex] received everything.

2021-10-07 22:35:44 | [Mutex] isItemNotified: received:node:d6ec038b-706c-4fc7-873e-4dd59160a0c5:localhost:node-c8efa10f-da4d-4c54-ac4c-7f1748924fff:Node c8efa10f-da4d-4c54-ac4c-7f1748924fff :: false

createNodes 1.642s
2021-10-07 22:35:40 |

2021-10-07 22:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:40 | ------------------------------------

2021-10-07 22:35:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c8efa10f-da4d-4c54-ac4c-7f1748924fff",
    "pubsub#title": "Node c8efa10f-da4d-4c54-ac4c-7f1748924fff"
}

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

2021-10-07 22:35:42 | [Mutex] waiting for: [received:nodes:2abb4676-e6e2-4a01-aca7-5a65a6c9e2d9:localhost]

2021-10-07 22:35:42 | [Mutex] received everything.

2021-10-07 22:35:42 | [Mutex] isItemNotified: received:node:2abb4676-e6e2-4a01-aca7-5a65a6c9e2d9:localhost:node-c8efa10f-da4d-4c54-ac4c-7f1748924fff:Node c8efa10f-da4d-4c54-ac4c-7f1748924fff :: true

createSubnodes 1.036s
2021-10-07 22:35:42 |

2021-10-07 22:35:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:42 | ------------------------------------

2021-10-07 22:35:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ca83e632-5af1-43bf-9c52-7c5830547d43",
    "pubsub#title": "Node ca83e632-5af1-43bf-9c52-7c5830547d43"
}

2021-10-07 22:35:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 22:35:43 | [Mutex] waiting for: [received:nodes:22b3c108-5457-4776-86cb-237e3f8d300f:localhost]

2021-10-07 22:35:43 | [Mutex] received everything.

2021-10-07 22:35:43 | [Mutex] isItemNotified: received:node:22b3c108-5457-4776-86cb-237e3f8d300f:localhost:node-ca83e632-5af1-43bf-9c52-7c5830547d43:Node ca83e632-5af1-43bf-9c52-7c5830547d43 :: true

deleteNodes 1.032s
2021-10-07 22:35:47 |

2021-10-07 22:35:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:47 | ------------------------------------

2021-10-07 22:35:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ca83e632-5af1-43bf-9c52-7c5830547d43"
}

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

2021-10-07 22:35:48 | [Mutex] waiting for: [received:nodes:562c8cf0-f2f0-4e5e-afa5-b01b27d45e3e:localhost]

2021-10-07 22:35:48 | [Mutex] received everything.

2021-10-07 22:35:48 | [Mutex] isItemNotified: received:node:562c8cf0-f2f0-4e5e-afa5-b01b27d45e3e:localhost:node-ca83e632-5af1-43bf-9c52-7c5830547d43:Node ca83e632-5af1-43bf-9c52-7c5830547d43 :: false

deleteSubnodes 1.034s
2021-10-07 22:35:46 |

2021-10-07 22:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:46 | ------------------------------------

2021-10-07 22:35:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c8efa10f-da4d-4c54-ac4c-7f1748924fff"
}

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

2021-10-07 22:35:47 | [Mutex] waiting for: [received:nodes:7b947a37-4e86-4be5-a553-d2729e35b0da:localhost]

2021-10-07 22:35:47 | [Mutex] received everything.

2021-10-07 22:35:47 | [Mutex] isItemNotified: received:node:7b947a37-4e86-4be5-a553-d2729e35b0da:localhost:node-c8efa10f-da4d-4c54-ac4c-7f1748924fff:Node c8efa10f-da4d-4c54-ac4c-7f1748924fff :: false

2021-10-07 22:35:47 | [Mutex] waiting for: [received:nodes:0588a493-0bcb-423e-8328-c6408f9edbe4:localhost]

2021-10-07 22:35:47 | [Mutex] received everything.

2021-10-07 22:35:47 | [Mutex] isItemNotified: received:node:0588a493-0bcb-423e-8328-c6408f9edbe4:localhost:node-c8efa10f-da4d-4c54-ac4c-7f1748924fff:Node c8efa10f-da4d-4c54-ac4c-7f1748924fff :: false

publishItemsToNodes 0.050s
2021-10-07 22:35:45 |

2021-10-07 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:45 | ------------------------------------

2021-10-07 22:35:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c8efa10f-da4d-4c54-ac4c-7f1748924fff",
    "entry": "<test>item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9</test>",
    "item-id": "item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9"
}

2021-10-07 22:35:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9"
}

2021-10-07 22:35:45 | [Mutex] waiting for: [published:item:notifieditem-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9:admin@test-domain.com]

2021-10-07 22:35:45 | [Mutex] received everything.

2021-10-07 22:35:45 | [Mutex] isItemNotified: published:item:notifieditem-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2021-10-07 22:35:45 |

2021-10-07 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:45 | ------------------------------------

2021-10-07 22:35:45 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c8efa10f-da4d-4c54-ac4c-7f1748924fff",
    "item-id": "item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9"
}

2021-10-07 22:35:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9"
}

2021-10-07 22:35:45 | [Mutex] waiting for: [retracted:item:notifieditem-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9:admin@test-domain.com]

2021-10-07 22:35:45 | [Mutex] received everything.

2021-10-07 22:35:45 | [Mutex] isItemNotified: retracted:item:notifieditem-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2021-10-07 22:35:45 |

2021-10-07 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:45 | ------------------------------------

2021-10-07 22:35:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c8efa10f-da4d-4c54-ac4c-7f1748924fff",
    "item-id": "item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9"
}

2021-10-07 22:35:45 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c8efa10f-da4d-4c54-ac4c-7f1748924fff",
    "item-id": "item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9",
    "item": [
        "<item id=\"item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9\"><test>item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9</test></item>"
    ]
}

2021-10-07 22:35:45 | [Mutex] notify: [retrieved:item:item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9:payload-matches:true:localhost]

2021-10-07 22:35:45 | [Mutex] received everything.

2021-10-07 22:35:45 | [Mutex] isItemNotified: retrieved:item:item-706c22ef-cc9d-468e-b2ec-9dea3a98c2c9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-10-07 22:35:45 |

2021-10-07 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:45 | ------------------------------------

2021-10-07 22:35:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-07 22:35:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ca83e632-5af1-43bf-9c52-7c5830547d43",
        "node-c8efa10f-da4d-4c54-ac4c-7f1748924fff"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-10-07 22:35:45 |

2021-10-07 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:45 | ------------------------------------

2021-10-07 22:35:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c8efa10f-da4d-4c54-ac4c-7f1748924fff)"
}

2021-10-07 22:35:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-10-07 22:35:44 |

2021-10-07 22:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:44 | ------------------------------------

2021-10-07 22:35:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c8efa10f-da4d-4c54-ac4c-7f1748924fff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-07 22:35:44 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2021-10-07 22:35:45 |

2021-10-07 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:35:45 | ------------------------------------

2021-10-07 22:35:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c8efa10f-da4d-4c54-ac4c-7f1748924fff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-07 22:35:45 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}