Generated by TestNG with ReportNG at 04:16 PST on Friday 05 March 2021
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.160s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.090s
2021-03-05 04:30:48 |

2021-03-05 04:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:48 | ------------------------------------

2021-03-05 04:30:48 | [Mutex] waiting for: [configured:node:node-72eb1c29-1337-491a-a0f6-678fd9716cff:node-18bbcd83-ba14-43fd-82f7-5ef9c84d706d]

2021-03-05 04:30:48 | [Mutex] received everything.

2021-03-05 04:30:48 | [Mutex] isItemNotified: configured:node:node-72eb1c29-1337-491a-a0f6-678fd9716cff:node-18bbcd83-ba14-43fd-82f7-5ef9c84d706d :: true

2021-03-05 04:30:49 | [Mutex] waiting for: [received:nodes:7f123f4d-85ab-42a2-8a78-7ff73fc37aae:localhost]

2021-03-05 04:30:49 | [Mutex] received everything.

2021-03-05 04:30:49 | [Mutex] isItemNotified: received:node:7f123f4d-85ab-42a2-8a78-7ff73fc37aae:localhost:node-72eb1c29-1337-491a-a0f6-678fd9716cff:Node 72eb1c29-1337-491a-a0f6-678fd9716cff :: true

2021-03-05 04:30:49 | [Mutex] waiting for: [received:nodes:eb5c5601-c1a0-42ec-a2a2-0b06a2039fed:localhost]

2021-03-05 04:30:49 | [Mutex] received everything.

2021-03-05 04:30:49 | [Mutex] isItemNotified: received:node:eb5c5601-c1a0-42ec-a2a2-0b06a2039fed:localhost:node-72eb1c29-1337-491a-a0f6-678fd9716cff:Node 72eb1c29-1337-491a-a0f6-678fd9716cff :: false

createNodes 1.874s
2021-03-05 04:30:45 |

2021-03-05 04:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:45 | ------------------------------------

2021-03-05 04:30:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-72eb1c29-1337-491a-a0f6-678fd9716cff",
    "pubsub#title": "Node 72eb1c29-1337-491a-a0f6-678fd9716cff"
}

2021-03-05 04:30:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:30:47 | [Mutex] waiting for: [received:nodes:2a039945-00d6-40f8-9f3d-7bf014cb19ef:localhost]

2021-03-05 04:30:47 | [Mutex] received everything.

2021-03-05 04:30:47 | [Mutex] isItemNotified: received:node:2a039945-00d6-40f8-9f3d-7bf014cb19ef:localhost:node-72eb1c29-1337-491a-a0f6-678fd9716cff:Node 72eb1c29-1337-491a-a0f6-678fd9716cff :: true

createSubnodes 1.024s
2021-03-05 04:30:47 |

2021-03-05 04:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:47 | ------------------------------------

2021-03-05 04:30:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-18bbcd83-ba14-43fd-82f7-5ef9c84d706d",
    "pubsub#title": "Node 18bbcd83-ba14-43fd-82f7-5ef9c84d706d"
}

2021-03-05 04:30:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:30:48 | [Mutex] waiting for: [received:nodes:cc8e0d6b-f576-44ea-80b1-e7fe30ec09bd:localhost]

2021-03-05 04:30:48 | [Mutex] received everything.

2021-03-05 04:30:48 | [Mutex] isItemNotified: received:node:cc8e0d6b-f576-44ea-80b1-e7fe30ec09bd:localhost:node-18bbcd83-ba14-43fd-82f7-5ef9c84d706d:Node 18bbcd83-ba14-43fd-82f7-5ef9c84d706d :: true

deleteNodes 1.020s
2021-03-05 04:30:53 |

2021-03-05 04:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:53 | ------------------------------------

2021-03-05 04:30:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-18bbcd83-ba14-43fd-82f7-5ef9c84d706d"
}

2021-03-05 04:30:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:30:54 | [Mutex] waiting for: [received:nodes:5f599c0c-b046-46d8-8dea-9c21ce61bcc5:localhost]

2021-03-05 04:30:54 | [Mutex] received everything.

2021-03-05 04:30:54 | [Mutex] isItemNotified: received:node:5f599c0c-b046-46d8-8dea-9c21ce61bcc5:localhost:node-18bbcd83-ba14-43fd-82f7-5ef9c84d706d:Node 18bbcd83-ba14-43fd-82f7-5ef9c84d706d :: false

deleteSubnodes 1.037s
2021-03-05 04:30:52 |

2021-03-05 04:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:52 | ------------------------------------

2021-03-05 04:30:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-72eb1c29-1337-491a-a0f6-678fd9716cff"
}

2021-03-05 04:30:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:30:53 | [Mutex] waiting for: [received:nodes:b477a373-5a30-4592-939b-fc370404f1e1:localhost]

2021-03-05 04:30:53 | [Mutex] received everything.

2021-03-05 04:30:53 | [Mutex] isItemNotified: received:node:b477a373-5a30-4592-939b-fc370404f1e1:localhost:node-72eb1c29-1337-491a-a0f6-678fd9716cff:Node 72eb1c29-1337-491a-a0f6-678fd9716cff :: false

2021-03-05 04:30:53 | [Mutex] waiting for: [received:nodes:28b5c3e7-acd0-4233-9dbe-3cf4d0f7d627:localhost]

2021-03-05 04:30:53 | [Mutex] received everything.

2021-03-05 04:30:53 | [Mutex] isItemNotified: received:node:28b5c3e7-acd0-4233-9dbe-3cf4d0f7d627:localhost:node-72eb1c29-1337-491a-a0f6-678fd9716cff:Node 72eb1c29-1337-491a-a0f6-678fd9716cff :: false

publishItemsToNodes 0.077s
2021-03-05 04:30:50 |

2021-03-05 04:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:50 | ------------------------------------

2021-03-05 04:30:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-72eb1c29-1337-491a-a0f6-678fd9716cff",
    "entry": "<test>item-7d7deba6-426a-4556-8f08-5f104e3f484b</test>",
    "item-id": "item-7d7deba6-426a-4556-8f08-5f104e3f484b"
}

2021-03-05 04:30:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7d7deba6-426a-4556-8f08-5f104e3f484b"
}

2021-03-05 04:30:50 | [Mutex] waiting for: [published:item:notifieditem-7d7deba6-426a-4556-8f08-5f104e3f484b:admin@test-domain.com]

2021-03-05 04:30:50 | [Mutex] received everything.

2021-03-05 04:30:50 | [Mutex] isItemNotified: published:item:notifieditem-7d7deba6-426a-4556-8f08-5f104e3f484b:admin@test-domain.com :: true

retractItemsFromNodes 0.100s
2021-03-05 04:30:50 |

2021-03-05 04:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:50 | ------------------------------------

2021-03-05 04:30:50 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-72eb1c29-1337-491a-a0f6-678fd9716cff",
    "item-id": "item-7d7deba6-426a-4556-8f08-5f104e3f484b"
}

2021-03-05 04:30:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7d7deba6-426a-4556-8f08-5f104e3f484b"
}

2021-03-05 04:30:51 | [Mutex] waiting for: [retracted:item:notifieditem-7d7deba6-426a-4556-8f08-5f104e3f484b:admin@test-domain.com]

2021-03-05 04:30:51 | [Mutex] received everything.

2021-03-05 04:30:51 | [Mutex] isItemNotified: retracted:item:notifieditem-7d7deba6-426a-4556-8f08-5f104e3f484b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2021-03-05 04:30:50 |

2021-03-05 04:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:50 | ------------------------------------

2021-03-05 04:30:50 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-72eb1c29-1337-491a-a0f6-678fd9716cff",
    "item-id": "item-7d7deba6-426a-4556-8f08-5f104e3f484b"
}

2021-03-05 04:30:50 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-72eb1c29-1337-491a-a0f6-678fd9716cff",
    "item-id": "item-7d7deba6-426a-4556-8f08-5f104e3f484b",
    "item": [
        "<item id=\"item-7d7deba6-426a-4556-8f08-5f104e3f484b\"><test>item-7d7deba6-426a-4556-8f08-5f104e3f484b</test></item>"
    ]
}

2021-03-05 04:30:50 | [Mutex] notify: [retrieved:item:item-7d7deba6-426a-4556-8f08-5f104e3f484b:payload-matches:true:localhost]

2021-03-05 04:30:50 | [Mutex] received everything.

2021-03-05 04:30:50 | [Mutex] isItemNotified: retrieved:item:item-7d7deba6-426a-4556-8f08-5f104e3f484b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-03-05 04:30:50 |

2021-03-05 04:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:50 | ------------------------------------

2021-03-05 04:30:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-05 04:30:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-72eb1c29-1337-491a-a0f6-678fd9716cff",
        "node-18bbcd83-ba14-43fd-82f7-5ef9c84d706d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-03-05 04:30:50 |

2021-03-05 04:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:50 | ------------------------------------

2021-03-05 04:30:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-72eb1c29-1337-491a-a0f6-678fd9716cff)"
}

2021-03-05 04:30:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2021-03-05 04:30:49 |

2021-03-05 04:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:49 | ------------------------------------

2021-03-05 04:30:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-72eb1c29-1337-491a-a0f6-678fd9716cff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-05 04:30:49 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.030s
2021-03-05 04:30:51 |

2021-03-05 04:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:30:51 | ------------------------------------

2021-03-05 04:30:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-72eb1c29-1337-491a-a0f6-678fd9716cff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-05 04:30:51 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}