Generated by TestNG with ReportNG at 21:18 PST on Saturday 06 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.243s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2021-02-06 21:34:51 |

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

2021-02-06 21:34:51 | ------------------------------------

2021-02-06 21:34:51 | [Mutex] waiting for: [configured:node:node-b5b5fb69-07cb-458c-a932-32290ca245cc:node-01f5db53-17a7-45a8-81a2-16349923d245]

2021-02-06 21:34:51 | [Mutex] received everything.

2021-02-06 21:34:51 | [Mutex] isItemNotified: configured:node:node-b5b5fb69-07cb-458c-a932-32290ca245cc:node-01f5db53-17a7-45a8-81a2-16349923d245 :: true

2021-02-06 21:34:52 | [Mutex] waiting for: [received:nodes:d93a6701-c9be-47db-88ce-671055fb0251:localhost]

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

2021-02-06 21:34:52 | [Mutex] isItemNotified: received:node:d93a6701-c9be-47db-88ce-671055fb0251:localhost:node-b5b5fb69-07cb-458c-a932-32290ca245cc:Node b5b5fb69-07cb-458c-a932-32290ca245cc :: true

2021-02-06 21:34:52 | [Mutex] waiting for: [received:nodes:f7b7aa72-3c52-4eb1-a3d0-52e13cb11918:localhost]

2021-02-06 21:34:52 | [Mutex] waiting for: [received:nodes:f7b7aa72-3c52-4eb1-a3d0-52e13cb11918:localhost]

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

2021-02-06 21:34:52 | [Mutex] isItemNotified: received:node:f7b7aa72-3c52-4eb1-a3d0-52e13cb11918:localhost:node-b5b5fb69-07cb-458c-a932-32290ca245cc:Node b5b5fb69-07cb-458c-a932-32290ca245cc :: false

createNodes 1.670s
2021-02-06 21:34:48 |

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

2021-02-06 21:34:48 | ------------------------------------

2021-02-06 21:34:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b5b5fb69-07cb-458c-a932-32290ca245cc",
    "pubsub#title": "Node b5b5fb69-07cb-458c-a932-32290ca245cc"
}

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

2021-02-06 21:34:50 | [Mutex] waiting for: [received:nodes:2a60555c-0a44-484b-a552-38b5abc6f3fe:localhost]

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

2021-02-06 21:34:50 | [Mutex] isItemNotified: received:node:2a60555c-0a44-484b-a552-38b5abc6f3fe:localhost:node-b5b5fb69-07cb-458c-a932-32290ca245cc:Node b5b5fb69-07cb-458c-a932-32290ca245cc :: true

createSubnodes 1.026s
2021-02-06 21:34:50 |

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

2021-02-06 21:34:50 | ------------------------------------

2021-02-06 21:34:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-01f5db53-17a7-45a8-81a2-16349923d245",
    "pubsub#title": "Node 01f5db53-17a7-45a8-81a2-16349923d245"
}

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

2021-02-06 21:34:51 | [Mutex] waiting for: [received:nodes:c02827b1-6968-4967-96db-911a8fa32985:localhost]

2021-02-06 21:34:51 | [Mutex] received everything.

2021-02-06 21:34:51 | [Mutex] isItemNotified: received:node:c02827b1-6968-4967-96db-911a8fa32985:localhost:node-01f5db53-17a7-45a8-81a2-16349923d245:Node 01f5db53-17a7-45a8-81a2-16349923d245 :: true

deleteNodes 1.020s
2021-02-06 21:34:55 |

2021-02-06 21:34:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:34:55 | ------------------------------------

2021-02-06 21:34:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-01f5db53-17a7-45a8-81a2-16349923d245"
}

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

2021-02-06 21:34:56 | [Mutex] waiting for: [received:nodes:25933ac6-4727-47ea-8709-1b8f60390368:localhost]

2021-02-06 21:34:56 | [Mutex] received everything.

2021-02-06 21:34:56 | [Mutex] isItemNotified: received:node:25933ac6-4727-47ea-8709-1b8f60390368:localhost:node-01f5db53-17a7-45a8-81a2-16349923d245:Node 01f5db53-17a7-45a8-81a2-16349923d245 :: false

deleteSubnodes 1.029s
2021-02-06 21:34:54 |

2021-02-06 21:34:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:34:54 | ------------------------------------

2021-02-06 21:34:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b5b5fb69-07cb-458c-a932-32290ca245cc"
}

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

2021-02-06 21:34:55 | [Mutex] waiting for: [received:nodes:4aaea96f-ad91-4989-a5ce-d44a38936c6c:localhost]

2021-02-06 21:34:55 | [Mutex] received everything.

2021-02-06 21:34:55 | [Mutex] isItemNotified: received:node:4aaea96f-ad91-4989-a5ce-d44a38936c6c:localhost:node-b5b5fb69-07cb-458c-a932-32290ca245cc:Node b5b5fb69-07cb-458c-a932-32290ca245cc :: false

2021-02-06 21:34:55 | [Mutex] waiting for: [received:nodes:80517b21-f3ea-4261-9033-5243a45dcb4e:localhost]

2021-02-06 21:34:55 | [Mutex] received everything.

2021-02-06 21:34:55 | [Mutex] isItemNotified: received:node:80517b21-f3ea-4261-9033-5243a45dcb4e:localhost:node-b5b5fb69-07cb-458c-a932-32290ca245cc:Node b5b5fb69-07cb-458c-a932-32290ca245cc :: false

publishItemsToNodes 0.045s
2021-02-06 21:34:53 |

2021-02-06 21:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:34:53 | ------------------------------------

2021-02-06 21:34:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b5b5fb69-07cb-458c-a932-32290ca245cc",
    "entry": "<test>item-25e47032-a086-4290-9ea6-698d68cd41b1</test>",
    "item-id": "item-25e47032-a086-4290-9ea6-698d68cd41b1"
}

2021-02-06 21:34:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-25e47032-a086-4290-9ea6-698d68cd41b1"
}

2021-02-06 21:34:53 | [Mutex] waiting for: [published:item:notifieditem-25e47032-a086-4290-9ea6-698d68cd41b1:admin@test-domain.com]

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

2021-02-06 21:34:53 | [Mutex] isItemNotified: published:item:notifieditem-25e47032-a086-4290-9ea6-698d68cd41b1:admin@test-domain.com :: true

retractItemsFromNodes 0.075s
2021-02-06 21:34:53 |

2021-02-06 21:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:34:53 | ------------------------------------

2021-02-06 21:34:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b5b5fb69-07cb-458c-a932-32290ca245cc",
    "item-id": "item-25e47032-a086-4290-9ea6-698d68cd41b1"
}

2021-02-06 21:34:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-25e47032-a086-4290-9ea6-698d68cd41b1"
}

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

2021-02-06 21:34:53 | [Mutex] isItemNotified: retracted:item:notifieditem-25e47032-a086-4290-9ea6-698d68cd41b1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.109s
2021-02-06 21:34:53 |

2021-02-06 21:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:34:53 | ------------------------------------

2021-02-06 21:34:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b5b5fb69-07cb-458c-a932-32290ca245cc",
    "item-id": "item-25e47032-a086-4290-9ea6-698d68cd41b1"
}

2021-02-06 21:34:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b5b5fb69-07cb-458c-a932-32290ca245cc",
    "item-id": "item-25e47032-a086-4290-9ea6-698d68cd41b1",
    "item": [
        "<item id=\"item-25e47032-a086-4290-9ea6-698d68cd41b1\"><test>item-25e47032-a086-4290-9ea6-698d68cd41b1</test></item>"
    ]
}

2021-02-06 21:34:53 | [Mutex] notify: [retrieved:item:item-25e47032-a086-4290-9ea6-698d68cd41b1:payload-matches:true:localhost]

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

2021-02-06 21:34:53 | [Mutex] isItemNotified: retrieved:item:item-25e47032-a086-4290-9ea6-698d68cd41b1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-02-06 21:34:53 |

2021-02-06 21:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:34:53 | ------------------------------------

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

2021-02-06 21:34:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b5b5fb69-07cb-458c-a932-32290ca245cc",
        "test",
        "node-01f5db53-17a7-45a8-81a2-16349923d245"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-02-06 21:34:53 |

2021-02-06 21:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:34:53 | ------------------------------------

2021-02-06 21:34:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b5b5fb69-07cb-458c-a932-32290ca245cc)"
}

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

subscribeNodes 1.010s
2021-02-06 21:34:52 |

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

2021-02-06 21:34:52 | ------------------------------------

2021-02-06 21:34:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b5b5fb69-07cb-458c-a932-32290ca245cc",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2021-02-06 21:34:53 |

2021-02-06 21:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:34:53 | ------------------------------------

2021-02-06 21:34:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b5b5fb69-07cb-458c-a932-32290ca245cc",
    "jids": [
        "admin@test-domain.com"
    ]
}

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