Generated by TestNG with ReportNG at 21:15 PST on Sunday 29 November 2020
root@43fec6d4badf / 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.342s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2020-11-29 21:32:37 |

2020-11-29 21:32:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:37 | ------------------------------------

2020-11-29 21:32:37 | [Mutex] waiting for: [configured:node:node-3cc49ad2-3341-47db-afde-577beda7e692:node-c82e6319-b1ea-4b5f-b9db-32330791d903]

2020-11-29 21:32:37 | [Mutex] received everything.

2020-11-29 21:32:37 | [Mutex] isItemNotified: configured:node:node-3cc49ad2-3341-47db-afde-577beda7e692:node-c82e6319-b1ea-4b5f-b9db-32330791d903 :: true

2020-11-29 21:32:38 | [Mutex] waiting for: [received:nodes:51952b5b-ce98-49b6-8920-bd7273cf1964:localhost]

2020-11-29 21:32:38 | [Mutex] received everything.

2020-11-29 21:32:38 | [Mutex] isItemNotified: received:node:51952b5b-ce98-49b6-8920-bd7273cf1964:localhost:node-3cc49ad2-3341-47db-afde-577beda7e692:Node 3cc49ad2-3341-47db-afde-577beda7e692 :: true

2020-11-29 21:32:38 | [Mutex] waiting for: [received:nodes:4993d359-b7d0-44c4-9d2d-e928ca6834ff:localhost]

2020-11-29 21:32:38 | [Mutex] waiting for: [received:nodes:4993d359-b7d0-44c4-9d2d-e928ca6834ff:localhost]

2020-11-29 21:32:38 | [Mutex] received everything.

2020-11-29 21:32:38 | [Mutex] isItemNotified: received:node:4993d359-b7d0-44c4-9d2d-e928ca6834ff:localhost:node-3cc49ad2-3341-47db-afde-577beda7e692:Node 3cc49ad2-3341-47db-afde-577beda7e692 :: false

createNodes 1.749s
2020-11-29 21:32:34 |

2020-11-29 21:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:34 | ------------------------------------

2020-11-29 21:32:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3cc49ad2-3341-47db-afde-577beda7e692",
    "pubsub#title": "Node 3cc49ad2-3341-47db-afde-577beda7e692"
}

2020-11-29 21:32:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 21:32:36 | [Mutex] waiting for: [received:nodes:c79ca5cd-89fb-4da4-91f7-c6c0bb755a8c:localhost]

2020-11-29 21:32:36 | [Mutex] received everything.

2020-11-29 21:32:36 | [Mutex] isItemNotified: received:node:c79ca5cd-89fb-4da4-91f7-c6c0bb755a8c:localhost:node-3cc49ad2-3341-47db-afde-577beda7e692:Node 3cc49ad2-3341-47db-afde-577beda7e692 :: true

createSubnodes 1.031s
2020-11-29 21:32:36 |

2020-11-29 21:32:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:36 | ------------------------------------

2020-11-29 21:32:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c82e6319-b1ea-4b5f-b9db-32330791d903",
    "pubsub#title": "Node c82e6319-b1ea-4b5f-b9db-32330791d903"
}

2020-11-29 21:32:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 21:32:37 | [Mutex] waiting for: [received:nodes:a09d3b61-5490-44f0-a2c1-e919d58a8a6d:localhost]

2020-11-29 21:32:37 | [Mutex] waiting for: [received:nodes:a09d3b61-5490-44f0-a2c1-e919d58a8a6d:localhost]

2020-11-29 21:32:37 | [Mutex] received everything.

2020-11-29 21:32:37 | [Mutex] isItemNotified: received:node:a09d3b61-5490-44f0-a2c1-e919d58a8a6d:localhost:node-c82e6319-b1ea-4b5f-b9db-32330791d903:Node c82e6319-b1ea-4b5f-b9db-32330791d903 :: true

deleteNodes 1.020s
2020-11-29 21:32:42 |

2020-11-29 21:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:42 | ------------------------------------

2020-11-29 21:32:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c82e6319-b1ea-4b5f-b9db-32330791d903"
}

2020-11-29 21:32:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 21:32:43 | [Mutex] waiting for: [received:nodes:d18a38d6-3a76-4a4e-bb56-b9ac893cdfc9:localhost]

2020-11-29 21:32:43 | [Mutex] received everything.

2020-11-29 21:32:43 | [Mutex] isItemNotified: received:node:d18a38d6-3a76-4a4e-bb56-b9ac893cdfc9:localhost:node-c82e6319-b1ea-4b5f-b9db-32330791d903:Node c82e6319-b1ea-4b5f-b9db-32330791d903 :: false

deleteSubnodes 1.033s
2020-11-29 21:32:41 |

2020-11-29 21:32:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:41 | ------------------------------------

2020-11-29 21:32:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3cc49ad2-3341-47db-afde-577beda7e692"
}

2020-11-29 21:32:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 21:32:42 | [Mutex] waiting for: [received:nodes:72c61769-0690-4c26-8a8e-85f20ec8fc6f:localhost]

2020-11-29 21:32:42 | [Mutex] received everything.

2020-11-29 21:32:42 | [Mutex] isItemNotified: received:node:72c61769-0690-4c26-8a8e-85f20ec8fc6f:localhost:node-3cc49ad2-3341-47db-afde-577beda7e692:Node 3cc49ad2-3341-47db-afde-577beda7e692 :: false

2020-11-29 21:32:42 | [Mutex] waiting for: [received:nodes:5be77ba4-0fb8-40f5-afa8-7a2dfd5b37e3:localhost]

2020-11-29 21:32:42 | [Mutex] received everything.

2020-11-29 21:32:42 | [Mutex] isItemNotified: received:node:5be77ba4-0fb8-40f5-afa8-7a2dfd5b37e3:localhost:node-3cc49ad2-3341-47db-afde-577beda7e692:Node 3cc49ad2-3341-47db-afde-577beda7e692 :: false

publishItemsToNodes 0.043s
2020-11-29 21:32:39 |

2020-11-29 21:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:39 | ------------------------------------

2020-11-29 21:32:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3cc49ad2-3341-47db-afde-577beda7e692",
    "entry": "<test>item-c4c535aa-8fdc-4bf3-9946-db19c16a9224</test>",
    "item-id": "item-c4c535aa-8fdc-4bf3-9946-db19c16a9224"
}

2020-11-29 21:32:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4c535aa-8fdc-4bf3-9946-db19c16a9224"
}

2020-11-29 21:32:39 | [Mutex] waiting for: [published:item:notifieditem-c4c535aa-8fdc-4bf3-9946-db19c16a9224:admin@test-domain.com]

2020-11-29 21:32:39 | [Mutex] received everything.

2020-11-29 21:32:39 | [Mutex] isItemNotified: published:item:notifieditem-c4c535aa-8fdc-4bf3-9946-db19c16a9224:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-11-29 21:32:39 |

2020-11-29 21:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:39 | ------------------------------------

2020-11-29 21:32:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3cc49ad2-3341-47db-afde-577beda7e692",
    "item-id": "item-c4c535aa-8fdc-4bf3-9946-db19c16a9224"
}

2020-11-29 21:32:40 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4c535aa-8fdc-4bf3-9946-db19c16a9224"
}

2020-11-29 21:32:40 | [Mutex] received everything.

2020-11-29 21:32:40 | [Mutex] isItemNotified: retracted:item:notifieditem-c4c535aa-8fdc-4bf3-9946-db19c16a9224:admin@test-domain.com :: true

retrieveItemsFromNodes 0.147s
2020-11-29 21:32:39 |

2020-11-29 21:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:39 | ------------------------------------

2020-11-29 21:32:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3cc49ad2-3341-47db-afde-577beda7e692",
    "item-id": "item-c4c535aa-8fdc-4bf3-9946-db19c16a9224"
}

2020-11-29 21:32:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3cc49ad2-3341-47db-afde-577beda7e692",
    "item-id": "item-c4c535aa-8fdc-4bf3-9946-db19c16a9224",
    "item": [
        "<item id=\"item-c4c535aa-8fdc-4bf3-9946-db19c16a9224\"><test>item-c4c535aa-8fdc-4bf3-9946-db19c16a9224</test></item>"
    ]
}

2020-11-29 21:32:39 | [Mutex] notify: [retrieved:item:item-c4c535aa-8fdc-4bf3-9946-db19c16a9224:payload-matches:true:localhost]

2020-11-29 21:32:39 | [Mutex] received everything.

2020-11-29 21:32:39 | [Mutex] isItemNotified: retrieved:item:item-c4c535aa-8fdc-4bf3-9946-db19c16a9224:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-11-29 21:32:39 |

2020-11-29 21:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:39 | ------------------------------------

2020-11-29 21:32:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-29 21:32:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3cc49ad2-3341-47db-afde-577beda7e692",
        "node-c82e6319-b1ea-4b5f-b9db-32330791d903"
    ]
}

retrieveUserSubscriptionsWithRegex 0.063s
2020-11-29 21:32:39 |

2020-11-29 21:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:39 | ------------------------------------

2020-11-29 21:32:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3cc49ad2-3341-47db-afde-577beda7e692)"
}

2020-11-29 21:32:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-11-29 21:32:38 |

2020-11-29 21:32:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:38 | ------------------------------------

2020-11-29 21:32:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3cc49ad2-3341-47db-afde-577beda7e692",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-29 21:32:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.095s
2020-11-29 21:32:40 |

2020-11-29 21:32:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:32:40 | ------------------------------------

2020-11-29 21:32:40 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3cc49ad2-3341-47db-afde-577beda7e692",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-29 21:32:40 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}