Generated by TestNG with ReportNG at 21:13 PST on Sunday 03 January 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.304s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2021-01-03 21:30:43 |

2021-01-03 21:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:30:43 | ------------------------------------

2021-01-03 21:30:43 | [Mutex] waiting for: [configured:node:node-75c56008-c8c0-492e-adcc-9b48275a730b:node-290c5068-4750-49a2-9182-f01327f8d762]

2021-01-03 21:30:43 | [Mutex] received everything.

2021-01-03 21:30:43 | [Mutex] isItemNotified: configured:node:node-75c56008-c8c0-492e-adcc-9b48275a730b:node-290c5068-4750-49a2-9182-f01327f8d762 :: true

2021-01-03 21:30:44 | [Mutex] waiting for: [received:nodes:d745481d-ed1b-4f67-90ea-7b134cbe55ce:localhost]

2021-01-03 21:30:44 | [Mutex] received everything.

2021-01-03 21:30:44 | [Mutex] isItemNotified: received:node:d745481d-ed1b-4f67-90ea-7b134cbe55ce:localhost:node-75c56008-c8c0-492e-adcc-9b48275a730b:Node 75c56008-c8c0-492e-adcc-9b48275a730b :: true

2021-01-03 21:30:44 | [Mutex] waiting for: [received:nodes:f158e2d8-0d57-434d-833c-e55a089e0ab7:localhost]

2021-01-03 21:30:44 | [Mutex] received everything.

2021-01-03 21:30:44 | [Mutex] isItemNotified: received:node:f158e2d8-0d57-434d-833c-e55a089e0ab7:localhost:node-75c56008-c8c0-492e-adcc-9b48275a730b:Node 75c56008-c8c0-492e-adcc-9b48275a730b :: false

createNodes 1.868s
2021-01-03 21:30:40 |

2021-01-03 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:30:40 | ------------------------------------

2021-01-03 21:30: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-75c56008-c8c0-492e-adcc-9b48275a730b",
    "pubsub#title": "Node 75c56008-c8c0-492e-adcc-9b48275a730b"
}

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

2021-01-03 21:30:42 | [Mutex] waiting for: [received:nodes:5bcb535a-bf4b-4f81-bb28-488c51680117:localhost]

2021-01-03 21:30:42 | [Mutex] received everything.

2021-01-03 21:30:42 | [Mutex] isItemNotified: received:node:5bcb535a-bf4b-4f81-bb28-488c51680117:localhost:node-75c56008-c8c0-492e-adcc-9b48275a730b:Node 75c56008-c8c0-492e-adcc-9b48275a730b :: true

createSubnodes 1.038s
2021-01-03 21:30:42 |

2021-01-03 21:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:30:42 | ------------------------------------

2021-01-03 21:30: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-290c5068-4750-49a2-9182-f01327f8d762",
    "pubsub#title": "Node 290c5068-4750-49a2-9182-f01327f8d762"
}

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

2021-01-03 21:30:43 | [Mutex] waiting for: [received:nodes:7ccb010f-ce0f-4343-b7c4-4a7d6a30f99a:localhost]

2021-01-03 21:30:43 | [Mutex] received everything.

2021-01-03 21:30:43 | [Mutex] isItemNotified: received:node:7ccb010f-ce0f-4343-b7c4-4a7d6a30f99a:localhost:node-290c5068-4750-49a2-9182-f01327f8d762:Node 290c5068-4750-49a2-9182-f01327f8d762 :: true

deleteNodes 1.030s
2021-01-03 21:30:48 |

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

2021-01-03 21:30:48 | ------------------------------------

2021-01-03 21:30:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-290c5068-4750-49a2-9182-f01327f8d762"
}

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

2021-01-03 21:30:49 | [Mutex] waiting for: [received:nodes:8b42b7df-151f-453a-8238-3bc75fbd48de:localhost]

2021-01-03 21:30:49 | [Mutex] waiting for: [received:nodes:8b42b7df-151f-453a-8238-3bc75fbd48de:localhost]

2021-01-03 21:30:49 | [Mutex] received everything.

2021-01-03 21:30:49 | [Mutex] isItemNotified: received:node:8b42b7df-151f-453a-8238-3bc75fbd48de:localhost:node-290c5068-4750-49a2-9182-f01327f8d762:Node 290c5068-4750-49a2-9182-f01327f8d762 :: false

deleteSubnodes 1.032s
2021-01-03 21:30:47 |

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

2021-01-03 21:30:47 | ------------------------------------

2021-01-03 21:30:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-75c56008-c8c0-492e-adcc-9b48275a730b"
}

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

2021-01-03 21:30:48 | [Mutex] waiting for: [received:nodes:c4de3c5f-809e-4888-ba93-cb6bd0104f0d:localhost]

2021-01-03 21:30:48 | [Mutex] received everything.

2021-01-03 21:30:48 | [Mutex] isItemNotified: received:node:c4de3c5f-809e-4888-ba93-cb6bd0104f0d:localhost:node-75c56008-c8c0-492e-adcc-9b48275a730b:Node 75c56008-c8c0-492e-adcc-9b48275a730b :: false

2021-01-03 21:30:48 | [Mutex] waiting for: [received:nodes:993a5bbc-5e30-4012-a006-c2a86caead0a:localhost]

2021-01-03 21:30:48 | [Mutex] received everything.

2021-01-03 21:30:48 | [Mutex] isItemNotified: received:node:993a5bbc-5e30-4012-a006-c2a86caead0a:localhost:node-75c56008-c8c0-492e-adcc-9b48275a730b:Node 75c56008-c8c0-492e-adcc-9b48275a730b :: false

publishItemsToNodes 0.048s
2021-01-03 21:30:45 |

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

2021-01-03 21:30:45 | ------------------------------------

2021-01-03 21:30:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-75c56008-c8c0-492e-adcc-9b48275a730b",
    "entry": "<test>item-042bf171-8cbf-484b-982a-f225f4a328c0</test>",
    "item-id": "item-042bf171-8cbf-484b-982a-f225f4a328c0"
}

2021-01-03 21:30:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-042bf171-8cbf-484b-982a-f225f4a328c0"
}

2021-01-03 21:30:45 | [Mutex] waiting for: [published:item:notifieditem-042bf171-8cbf-484b-982a-f225f4a328c0:admin@test-domain.com]

2021-01-03 21:30:45 | [Mutex] received everything.

2021-01-03 21:30:45 | [Mutex] isItemNotified: published:item:notifieditem-042bf171-8cbf-484b-982a-f225f4a328c0:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2021-01-03 21:30:46 |

2021-01-03 21:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:30:46 | ------------------------------------

2021-01-03 21:30:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-75c56008-c8c0-492e-adcc-9b48275a730b",
    "item-id": "item-042bf171-8cbf-484b-982a-f225f4a328c0"
}

2021-01-03 21:30:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-042bf171-8cbf-484b-982a-f225f4a328c0"
}

2021-01-03 21:30:46 | [Mutex] received everything.

2021-01-03 21:30:46 | [Mutex] isItemNotified: retracted:item:notifieditem-042bf171-8cbf-484b-982a-f225f4a328c0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2021-01-03 21:30:45 |

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

2021-01-03 21:30:45 | ------------------------------------

2021-01-03 21:30:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-75c56008-c8c0-492e-adcc-9b48275a730b",
    "item-id": "item-042bf171-8cbf-484b-982a-f225f4a328c0"
}

2021-01-03 21:30:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-75c56008-c8c0-492e-adcc-9b48275a730b",
    "item-id": "item-042bf171-8cbf-484b-982a-f225f4a328c0",
    "item": [
        "<item id=\"item-042bf171-8cbf-484b-982a-f225f4a328c0\"><test>item-042bf171-8cbf-484b-982a-f225f4a328c0</test></item>"
    ]
}

2021-01-03 21:30:46 | [Mutex] notify: [retrieved:item:item-042bf171-8cbf-484b-982a-f225f4a328c0:payload-matches:true:localhost]

2021-01-03 21:30:46 | [Mutex] received everything.

2021-01-03 21:30:46 | [Mutex] isItemNotified: retrieved:item:item-042bf171-8cbf-484b-982a-f225f4a328c0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.083s
2021-01-03 21:30:46 |

2021-01-03 21:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:30:46 | ------------------------------------

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

2021-01-03 21:30:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-75c56008-c8c0-492e-adcc-9b48275a730b",
        "test",
        "node-290c5068-4750-49a2-9182-f01327f8d762"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-01-03 21:30:46 |

2021-01-03 21:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:30:46 | ------------------------------------

2021-01-03 21:30:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-75c56008-c8c0-492e-adcc-9b48275a730b)"
}

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

subscribeNodes 1.013s
2021-01-03 21:30:44 |

2021-01-03 21:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:30:44 | ------------------------------------

2021-01-03 21:30:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-75c56008-c8c0-492e-adcc-9b48275a730b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.106s
2021-01-03 21:30:46 |

2021-01-03 21:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:30:46 | ------------------------------------

2021-01-03 21:30:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-75c56008-c8c0-492e-adcc-9b48275a730b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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