Generated by TestNG with ReportNG at 21:13 PST on Thursday 26 November 2020
root@87f6aca6b6f2 / 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.049s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2020-11-26 21:28:43 |

2020-11-26 21:28:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:43 | ------------------------------------

2020-11-26 21:28:43 | [Mutex] waiting for: [configured:node:node-4c6255eb-e356-44bc-9615-2b5ed8a12484:node-4acbe4f4-b775-4615-bb6b-79c95a0fd2c4]

2020-11-26 21:28:43 | [Mutex] received everything.

2020-11-26 21:28:43 | [Mutex] isItemNotified: configured:node:node-4c6255eb-e356-44bc-9615-2b5ed8a12484:node-4acbe4f4-b775-4615-bb6b-79c95a0fd2c4 :: true

2020-11-26 21:28:44 | [Mutex] waiting for: [received:nodes:9db90811-c1f2-4322-b2fc-41fd209ed1f8:localhost]

2020-11-26 21:28:44 | [Mutex] received everything.

2020-11-26 21:28:44 | [Mutex] isItemNotified: received:node:9db90811-c1f2-4322-b2fc-41fd209ed1f8:localhost:node-4c6255eb-e356-44bc-9615-2b5ed8a12484:Node 4c6255eb-e356-44bc-9615-2b5ed8a12484 :: true

2020-11-26 21:28:44 | [Mutex] waiting for: [received:nodes:955ba23c-8a70-4b07-b551-f753056be3ad:localhost]

2020-11-26 21:28:44 | [Mutex] waiting for: [received:nodes:955ba23c-8a70-4b07-b551-f753056be3ad:localhost]

2020-11-26 21:28:44 | [Mutex] waiting for: [received:nodes:955ba23c-8a70-4b07-b551-f753056be3ad:localhost]

2020-11-26 21:28:44 | [Mutex] received everything.

2020-11-26 21:28:44 | [Mutex] isItemNotified: received:node:955ba23c-8a70-4b07-b551-f753056be3ad:localhost:node-4c6255eb-e356-44bc-9615-2b5ed8a12484:Node 4c6255eb-e356-44bc-9615-2b5ed8a12484 :: false

createNodes 1.546s
2020-11-26 21:28:41 |

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

2020-11-26 21:28:41 | ------------------------------------

2020-11-26 21:28:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4c6255eb-e356-44bc-9615-2b5ed8a12484",
    "pubsub#title": "Node 4c6255eb-e356-44bc-9615-2b5ed8a12484"
}

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

2020-11-26 21:28:42 | [Mutex] waiting for: [received:nodes:97069c43-0536-4139-ace2-f851b63b0b37:localhost]

2020-11-26 21:28:42 | [Mutex] received everything.

2020-11-26 21:28:42 | [Mutex] isItemNotified: received:node:97069c43-0536-4139-ace2-f851b63b0b37:localhost:node-4c6255eb-e356-44bc-9615-2b5ed8a12484:Node 4c6255eb-e356-44bc-9615-2b5ed8a12484 :: true

createSubnodes 1.033s
2020-11-26 21:28:42 |

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

2020-11-26 21:28:42 | ------------------------------------

2020-11-26 21:28:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4acbe4f4-b775-4615-bb6b-79c95a0fd2c4",
    "pubsub#title": "Node 4acbe4f4-b775-4615-bb6b-79c95a0fd2c4"
}

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

2020-11-26 21:28:43 | [Mutex] waiting for: [received:nodes:6898a2b6-79d5-401e-9076-6e528cca1dbc:localhost]

2020-11-26 21:28:43 | [Mutex] received everything.

2020-11-26 21:28:43 | [Mutex] isItemNotified: received:node:6898a2b6-79d5-401e-9076-6e528cca1dbc:localhost:node-4acbe4f4-b775-4615-bb6b-79c95a0fd2c4:Node 4acbe4f4-b775-4615-bb6b-79c95a0fd2c4 :: true

deleteNodes 1.050s
2020-11-26 21:28:48 |

2020-11-26 21:28:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:48 | ------------------------------------

2020-11-26 21:28:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4acbe4f4-b775-4615-bb6b-79c95a0fd2c4"
}

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

2020-11-26 21:28:49 | [Mutex] waiting for: [received:nodes:eff3605a-a6c6-452b-9b3c-7c261ad869a5:localhost]

2020-11-26 21:28:49 | [Mutex] received everything.

2020-11-26 21:28:49 | [Mutex] isItemNotified: received:node:eff3605a-a6c6-452b-9b3c-7c261ad869a5:localhost:node-4acbe4f4-b775-4615-bb6b-79c95a0fd2c4:Node 4acbe4f4-b775-4615-bb6b-79c95a0fd2c4 :: false

deleteSubnodes 1.024s
2020-11-26 21:28:47 |

2020-11-26 21:28:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:47 | ------------------------------------

2020-11-26 21:28:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4c6255eb-e356-44bc-9615-2b5ed8a12484"
}

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

2020-11-26 21:28:48 | [Mutex] waiting for: [received:nodes:a574f4e5-c58e-423d-a5c8-e2ca12934ea4:localhost]

2020-11-26 21:28:48 | [Mutex] received everything.

2020-11-26 21:28:48 | [Mutex] isItemNotified: received:node:a574f4e5-c58e-423d-a5c8-e2ca12934ea4:localhost:node-4c6255eb-e356-44bc-9615-2b5ed8a12484:Node 4c6255eb-e356-44bc-9615-2b5ed8a12484 :: false

2020-11-26 21:28:48 | [Mutex] waiting for: [received:nodes:27d34f4a-c317-4290-818d-767bba600caf:localhost]

2020-11-26 21:28:48 | [Mutex] received everything.

2020-11-26 21:28:48 | [Mutex] isItemNotified: received:node:27d34f4a-c317-4290-818d-767bba600caf:localhost:node-4c6255eb-e356-44bc-9615-2b5ed8a12484:Node 4c6255eb-e356-44bc-9615-2b5ed8a12484 :: false

publishItemsToNodes 0.043s
2020-11-26 21:28:45 |

2020-11-26 21:28:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:45 | ------------------------------------

2020-11-26 21:28:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4c6255eb-e356-44bc-9615-2b5ed8a12484",
    "entry": "<test>item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2</test>",
    "item-id": "item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2"
}

2020-11-26 21:28:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2"
}

2020-11-26 21:28:45 | [Mutex] waiting for: [published:item:notifieditem-56c250d0-33f7-44ef-a976-3f43d0bb9ff2:admin@test-domain.com]

2020-11-26 21:28:45 | [Mutex] received everything.

2020-11-26 21:28:45 | [Mutex] isItemNotified: published:item:notifieditem-56c250d0-33f7-44ef-a976-3f43d0bb9ff2:admin@test-domain.com :: true

retractItemsFromNodes 0.093s
2020-11-26 21:28:46 |

2020-11-26 21:28:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:46 | ------------------------------------

2020-11-26 21:28:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4c6255eb-e356-44bc-9615-2b5ed8a12484",
    "item-id": "item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2"
}

2020-11-26 21:28:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2"
}

2020-11-26 21:28:46 | [Mutex] received everything.

2020-11-26 21:28:46 | [Mutex] isItemNotified: retracted:item:notifieditem-56c250d0-33f7-44ef-a976-3f43d0bb9ff2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.051s
2020-11-26 21:28:45 |

2020-11-26 21:28:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:45 | ------------------------------------

2020-11-26 21:28:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4c6255eb-e356-44bc-9615-2b5ed8a12484",
    "item-id": "item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2"
}

2020-11-26 21:28:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4c6255eb-e356-44bc-9615-2b5ed8a12484",
    "item-id": "item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2",
    "item": [
        "<item id=\"item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2\"><test>item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2</test></item>"
    ]
}

2020-11-26 21:28:46 | [Mutex] notify: [retrieved:item:item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2:payload-matches:true:localhost]

2020-11-26 21:28:46 | [Mutex] received everything.

2020-11-26 21:28:46 | [Mutex] isItemNotified: retrieved:item:item-56c250d0-33f7-44ef-a976-3f43d0bb9ff2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.071s
2020-11-26 21:28:46 |

2020-11-26 21:28:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:46 | ------------------------------------

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

2020-11-26 21:28:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4c6255eb-e356-44bc-9615-2b5ed8a12484",
        "node-4acbe4f4-b775-4615-bb6b-79c95a0fd2c4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-11-26 21:28:46 |

2020-11-26 21:28:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:46 | ------------------------------------

2020-11-26 21:28:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4c6255eb-e356-44bc-9615-2b5ed8a12484)"
}

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

subscribeNodes 1.017s
2020-11-26 21:28:44 |

2020-11-26 21:28:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:44 | ------------------------------------

2020-11-26 21:28:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4c6255eb-e356-44bc-9615-2b5ed8a12484",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-11-26 21:28:46 |

2020-11-26 21:28:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:46 | ------------------------------------

2020-11-26 21:28:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4c6255eb-e356-44bc-9615-2b5ed8a12484",
    "jids": [
        "admin@test-domain.com"
    ]
}

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