Generated by TestNG with ReportNG at 21:13 PST on Tuesday 02 February 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.008s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2021-02-02 21:27:41 |

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

2021-02-02 21:27:41 | ------------------------------------

2021-02-02 21:27:41 | [Mutex] waiting for: [configured:node:node-654478eb-a545-47e1-a5fa-f30ab8d92bd4:node-740a570e-f451-4edf-b449-6d64042f4070]

2021-02-02 21:27:41 | [Mutex] received everything.

2021-02-02 21:27:41 | [Mutex] isItemNotified: configured:node:node-654478eb-a545-47e1-a5fa-f30ab8d92bd4:node-740a570e-f451-4edf-b449-6d64042f4070 :: true

2021-02-02 21:27:42 | [Mutex] waiting for: [received:nodes:d50c56d6-0f2f-450a-9e69-ebacd9a6125d:localhost]

2021-02-02 21:27:42 | [Mutex] received everything.

2021-02-02 21:27:42 | [Mutex] isItemNotified: received:node:d50c56d6-0f2f-450a-9e69-ebacd9a6125d:localhost:node-654478eb-a545-47e1-a5fa-f30ab8d92bd4:Node 654478eb-a545-47e1-a5fa-f30ab8d92bd4 :: true

2021-02-02 21:27:42 | [Mutex] waiting for: [received:nodes:75c3291c-d522-4552-8fc8-ff357aa46f50:localhost]

2021-02-02 21:27:42 | [Mutex] waiting for: [received:nodes:75c3291c-d522-4552-8fc8-ff357aa46f50:localhost]

2021-02-02 21:27:42 | [Mutex] received everything.

2021-02-02 21:27:42 | [Mutex] isItemNotified: received:node:75c3291c-d522-4552-8fc8-ff357aa46f50:localhost:node-654478eb-a545-47e1-a5fa-f30ab8d92bd4:Node 654478eb-a545-47e1-a5fa-f30ab8d92bd4 :: false

createNodes 1.555s
2021-02-02 21:27:38 |

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

2021-02-02 21:27:38 | ------------------------------------

2021-02-02 21:27:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-654478eb-a545-47e1-a5fa-f30ab8d92bd4",
    "pubsub#title": "Node 654478eb-a545-47e1-a5fa-f30ab8d92bd4"
}

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

2021-02-02 21:27:40 | [Mutex] waiting for: [received:nodes:43867e2a-46c0-42ea-ac39-68b099c336be:localhost]

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

2021-02-02 21:27:40 | [Mutex] isItemNotified: received:node:43867e2a-46c0-42ea-ac39-68b099c336be:localhost:node-654478eb-a545-47e1-a5fa-f30ab8d92bd4:Node 654478eb-a545-47e1-a5fa-f30ab8d92bd4 :: true

createSubnodes 1.020s
2021-02-02 21:27:40 |

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

2021-02-02 21:27:40 | ------------------------------------

2021-02-02 21:27:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-740a570e-f451-4edf-b449-6d64042f4070",
    "pubsub#title": "Node 740a570e-f451-4edf-b449-6d64042f4070"
}

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

2021-02-02 21:27:41 | [Mutex] waiting for: [received:nodes:87326bf1-8f22-4c42-9dea-9d18bf53f0dd:localhost]

2021-02-02 21:27:41 | [Mutex] received everything.

2021-02-02 21:27:41 | [Mutex] isItemNotified: received:node:87326bf1-8f22-4c42-9dea-9d18bf53f0dd:localhost:node-740a570e-f451-4edf-b449-6d64042f4070:Node 740a570e-f451-4edf-b449-6d64042f4070 :: true

deleteNodes 1.019s
2021-02-02 21:27:45 |

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

2021-02-02 21:27:45 | ------------------------------------

2021-02-02 21:27:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-740a570e-f451-4edf-b449-6d64042f4070"
}

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

2021-02-02 21:27:46 | [Mutex] waiting for: [received:nodes:e15654e9-1eb2-49fa-bad9-637dd7625c4e:localhost]

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

2021-02-02 21:27:46 | [Mutex] isItemNotified: received:node:e15654e9-1eb2-49fa-bad9-637dd7625c4e:localhost:node-740a570e-f451-4edf-b449-6d64042f4070:Node 740a570e-f451-4edf-b449-6d64042f4070 :: false

deleteSubnodes 1.029s
2021-02-02 21:27:44 |

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

2021-02-02 21:27:44 | ------------------------------------

2021-02-02 21:27:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-654478eb-a545-47e1-a5fa-f30ab8d92bd4"
}

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

2021-02-02 21:27:45 | [Mutex] waiting for: [received:nodes:3ee836bf-ac52-4744-a18b-0481c710690b:localhost]

2021-02-02 21:27:45 | [Mutex] waiting for: [received:nodes:3ee836bf-ac52-4744-a18b-0481c710690b:localhost]

2021-02-02 21:27:45 | [Mutex] received everything.

2021-02-02 21:27:45 | [Mutex] isItemNotified: received:node:3ee836bf-ac52-4744-a18b-0481c710690b:localhost:node-654478eb-a545-47e1-a5fa-f30ab8d92bd4:Node 654478eb-a545-47e1-a5fa-f30ab8d92bd4 :: false

2021-02-02 21:27:45 | [Mutex] waiting for: [received:nodes:9a67fb5b-0bd5-4ff3-89db-79fc4481528f:localhost]

2021-02-02 21:27:45 | [Mutex] received everything.

2021-02-02 21:27:45 | [Mutex] isItemNotified: received:node:9a67fb5b-0bd5-4ff3-89db-79fc4481528f:localhost:node-654478eb-a545-47e1-a5fa-f30ab8d92bd4:Node 654478eb-a545-47e1-a5fa-f30ab8d92bd4 :: false

publishItemsToNodes 0.052s
2021-02-02 21:27:43 |

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

2021-02-02 21:27:43 | ------------------------------------

2021-02-02 21:27:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-654478eb-a545-47e1-a5fa-f30ab8d92bd4",
    "entry": "<test>item-828d06a5-415a-422f-bc70-90ec85730243</test>",
    "item-id": "item-828d06a5-415a-422f-bc70-90ec85730243"
}

2021-02-02 21:27:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-828d06a5-415a-422f-bc70-90ec85730243"
}

2021-02-02 21:27:43 | [Mutex] waiting for: [published:item:notifieditem-828d06a5-415a-422f-bc70-90ec85730243:admin@test-domain.com]

2021-02-02 21:27:43 | [Mutex] received everything.

2021-02-02 21:27:43 | [Mutex] isItemNotified: published:item:notifieditem-828d06a5-415a-422f-bc70-90ec85730243:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2021-02-02 21:27:43 |

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

2021-02-02 21:27:43 | ------------------------------------

2021-02-02 21:27:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-654478eb-a545-47e1-a5fa-f30ab8d92bd4",
    "item-id": "item-828d06a5-415a-422f-bc70-90ec85730243"
}

2021-02-02 21:27:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-828d06a5-415a-422f-bc70-90ec85730243"
}

2021-02-02 21:27:43 | [Mutex] received everything.

2021-02-02 21:27:43 | [Mutex] isItemNotified: retracted:item:notifieditem-828d06a5-415a-422f-bc70-90ec85730243:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2021-02-02 21:27:43 |

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

2021-02-02 21:27:43 | ------------------------------------

2021-02-02 21:27:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-654478eb-a545-47e1-a5fa-f30ab8d92bd4",
    "item-id": "item-828d06a5-415a-422f-bc70-90ec85730243"
}

2021-02-02 21:27:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-654478eb-a545-47e1-a5fa-f30ab8d92bd4",
    "item-id": "item-828d06a5-415a-422f-bc70-90ec85730243",
    "item": [
        "<item id=\"item-828d06a5-415a-422f-bc70-90ec85730243\"><test>item-828d06a5-415a-422f-bc70-90ec85730243</test></item>"
    ]
}

2021-02-02 21:27:43 | [Mutex] notify: [retrieved:item:item-828d06a5-415a-422f-bc70-90ec85730243:payload-matches:true:localhost]

2021-02-02 21:27:43 | [Mutex] received everything.

2021-02-02 21:27:43 | [Mutex] isItemNotified: retrieved:item:item-828d06a5-415a-422f-bc70-90ec85730243:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-02-02 21:27:43 |

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

2021-02-02 21:27:43 | ------------------------------------

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

2021-02-02 21:27:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-654478eb-a545-47e1-a5fa-f30ab8d92bd4",
        "node-740a570e-f451-4edf-b449-6d64042f4070"
    ]
}

retrieveUserSubscriptionsWithRegex 0.079s
2021-02-02 21:27:43 |

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

2021-02-02 21:27:43 | ------------------------------------

2021-02-02 21:27:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-654478eb-a545-47e1-a5fa-f30ab8d92bd4)"
}

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

subscribeNodes 1.013s
2021-02-02 21:27:42 |

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

2021-02-02 21:27:42 | ------------------------------------

2021-02-02 21:27:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-654478eb-a545-47e1-a5fa-f30ab8d92bd4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.091s
2021-02-02 21:27:43 |

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

2021-02-02 21:27:43 | ------------------------------------

2021-02-02 21:27:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-654478eb-a545-47e1-a5fa-f30ab8d92bd4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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