Generated by TestNG with ReportNG at 21:25 PST on Tuesday 02 February 2021
root@eaa73862192b / 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.127s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2021-02-02 21:40:47 |

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

2021-02-02 21:40:47 | ------------------------------------

2021-02-02 21:40:47 | [Mutex] waiting for: [configured:node:node-ce7f2b03-f1f0-4c44-b741-80f4f788620f:node-3f413b86-090e-4079-89e9-5794c9b1394b]

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

2021-02-02 21:40:47 | [Mutex] isItemNotified: configured:node:node-ce7f2b03-f1f0-4c44-b741-80f4f788620f:node-3f413b86-090e-4079-89e9-5794c9b1394b :: true

2021-02-02 21:40:48 | [Mutex] waiting for: [received:nodes:bd4ce82f-626b-4936-80f9-9ba6097b03d8:localhost]

2021-02-02 21:40:48 | [Mutex] received everything.

2021-02-02 21:40:48 | [Mutex] isItemNotified: received:node:bd4ce82f-626b-4936-80f9-9ba6097b03d8:localhost:node-ce7f2b03-f1f0-4c44-b741-80f4f788620f:Node ce7f2b03-f1f0-4c44-b741-80f4f788620f :: true

2021-02-02 21:40:48 | [Mutex] waiting for: [received:nodes:f30147b1-26ab-4ba0-9ba6-6b208c2f232e:localhost]

2021-02-02 21:40:48 | [Mutex] waiting for: [received:nodes:f30147b1-26ab-4ba0-9ba6-6b208c2f232e:localhost]

2021-02-02 21:40:48 | [Mutex] received everything.

2021-02-02 21:40:48 | [Mutex] isItemNotified: received:node:f30147b1-26ab-4ba0-9ba6-6b208c2f232e:localhost:node-ce7f2b03-f1f0-4c44-b741-80f4f788620f:Node ce7f2b03-f1f0-4c44-b741-80f4f788620f :: false

createNodes 1.716s
2021-02-02 21:40:44 |

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

2021-02-02 21:40:44 | ------------------------------------

2021-02-02 21:40:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ce7f2b03-f1f0-4c44-b741-80f4f788620f",
    "pubsub#title": "Node ce7f2b03-f1f0-4c44-b741-80f4f788620f"
}

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

2021-02-02 21:40:46 | [Mutex] waiting for: [received:nodes:efc903c8-b0b5-40c2-9605-8bd8d667ffc3:localhost]

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

2021-02-02 21:40:46 | [Mutex] isItemNotified: received:node:efc903c8-b0b5-40c2-9605-8bd8d667ffc3:localhost:node-ce7f2b03-f1f0-4c44-b741-80f4f788620f:Node ce7f2b03-f1f0-4c44-b741-80f4f788620f :: true

createSubnodes 1.030s
2021-02-02 21:40:46 |

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

2021-02-02 21:40:46 | ------------------------------------

2021-02-02 21:40:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3f413b86-090e-4079-89e9-5794c9b1394b",
    "pubsub#title": "Node 3f413b86-090e-4079-89e9-5794c9b1394b"
}

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

2021-02-02 21:40:47 | [Mutex] waiting for: [received:nodes:1e9a34c0-b8b3-4aca-96b0-f07584f8178f:localhost]

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

2021-02-02 21:40:47 | [Mutex] isItemNotified: received:node:1e9a34c0-b8b3-4aca-96b0-f07584f8178f:localhost:node-3f413b86-090e-4079-89e9-5794c9b1394b:Node 3f413b86-090e-4079-89e9-5794c9b1394b :: true

deleteNodes 1.026s
2021-02-02 21:40:52 |

2021-02-02 21:40:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 21:40:52 | ------------------------------------

2021-02-02 21:40:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3f413b86-090e-4079-89e9-5794c9b1394b"
}

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

2021-02-02 21:40:53 | [Mutex] waiting for: [received:nodes:9a9472e7-7a4a-4b54-b06c-ae395b476629:localhost]

2021-02-02 21:40:53 | [Mutex] received everything.

2021-02-02 21:40:53 | [Mutex] isItemNotified: received:node:9a9472e7-7a4a-4b54-b06c-ae395b476629:localhost:node-3f413b86-090e-4079-89e9-5794c9b1394b:Node 3f413b86-090e-4079-89e9-5794c9b1394b :: false

deleteSubnodes 1.032s
2021-02-02 21:40:51 |

2021-02-02 21:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 21:40:51 | ------------------------------------

2021-02-02 21:40:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ce7f2b03-f1f0-4c44-b741-80f4f788620f"
}

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

2021-02-02 21:40:52 | [Mutex] waiting for: [received:nodes:25bb4944-0777-40fb-8318-0f7cf3db0fcf:localhost]

2021-02-02 21:40:52 | [Mutex] received everything.

2021-02-02 21:40:52 | [Mutex] isItemNotified: received:node:25bb4944-0777-40fb-8318-0f7cf3db0fcf:localhost:node-ce7f2b03-f1f0-4c44-b741-80f4f788620f:Node ce7f2b03-f1f0-4c44-b741-80f4f788620f :: false

2021-02-02 21:40:52 | [Mutex] waiting for: [received:nodes:60273b61-3671-409a-b2a9-5985c803662a:localhost]

2021-02-02 21:40:52 | [Mutex] received everything.

2021-02-02 21:40:52 | [Mutex] isItemNotified: received:node:60273b61-3671-409a-b2a9-5985c803662a:localhost:node-ce7f2b03-f1f0-4c44-b741-80f4f788620f:Node ce7f2b03-f1f0-4c44-b741-80f4f788620f :: false

publishItemsToNodes 0.057s
2021-02-02 21:40:49 |

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

2021-02-02 21:40:49 | ------------------------------------

2021-02-02 21:40:49 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ce7f2b03-f1f0-4c44-b741-80f4f788620f",
    "entry": "<test>item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6</test>",
    "item-id": "item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6"
}

2021-02-02 21:40:49 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6"
}

2021-02-02 21:40:49 | [Mutex] waiting for: [published:item:notifieditem-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6:admin@test-domain.com]

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

2021-02-02 21:40:49 | [Mutex] isItemNotified: published:item:notifieditem-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-02-02 21:40:50 |

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

2021-02-02 21:40:50 | ------------------------------------

2021-02-02 21:40:50 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ce7f2b03-f1f0-4c44-b741-80f4f788620f",
    "item-id": "item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6"
}

2021-02-02 21:40:50 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6"
}

2021-02-02 21:40:50 | [Mutex] received everything.

2021-02-02 21:40:50 | [Mutex] isItemNotified: retracted:item:notifieditem-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2021-02-02 21:40:49 |

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

2021-02-02 21:40:49 | ------------------------------------

2021-02-02 21:40:49 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ce7f2b03-f1f0-4c44-b741-80f4f788620f",
    "item-id": "item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6"
}

2021-02-02 21:40:49 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ce7f2b03-f1f0-4c44-b741-80f4f788620f",
    "item-id": "item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6",
    "item": [
        "<item id=\"item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6\"><test>item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6</test></item>"
    ]
}

2021-02-02 21:40:49 | [Mutex] notify: [retrieved:item:item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6:payload-matches:true:localhost]

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

2021-02-02 21:40:49 | [Mutex] isItemNotified: retrieved:item:item-a80b2f81-c5b3-44b9-8d10-3a45b6da94b6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2021-02-02 21:40:49 |

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

2021-02-02 21:40:49 | ------------------------------------

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

2021-02-02 21:40:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3f413b86-090e-4079-89e9-5794c9b1394b",
        "node-ce7f2b03-f1f0-4c44-b741-80f4f788620f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-02-02 21:40:49 |

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

2021-02-02 21:40:49 | ------------------------------------

2021-02-02 21:40:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ce7f2b03-f1f0-4c44-b741-80f4f788620f)"
}

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

subscribeNodes 1.016s
2021-02-02 21:40:48 |

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

2021-02-02 21:40:48 | ------------------------------------

2021-02-02 21:40:48 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ce7f2b03-f1f0-4c44-b741-80f4f788620f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.112s
2021-02-02 21:40:50 |

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

2021-02-02 21:40:50 | ------------------------------------

2021-02-02 21:40:50 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ce7f2b03-f1f0-4c44-b741-80f4f788620f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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