Generated by TestNG with ReportNG at 02:19 PDT on Friday 18 September 2020
root@f53a97fae7d2 / 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.189s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2020-09-18 02:36:21 |

2020-09-18 02:36:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:21 | ------------------------------------

2020-09-18 02:36:21 | [Mutex] waiting for: [configured:node:node-8a16167e-6a63-45c7-9732-1fbbce38aea8:node-212341ab-209d-4b5e-aed0-d6f1a4c19ded]

2020-09-18 02:36:21 | [Mutex] received everything.

2020-09-18 02:36:21 | [Mutex] isItemNotified: configured:node:node-8a16167e-6a63-45c7-9732-1fbbce38aea8:node-212341ab-209d-4b5e-aed0-d6f1a4c19ded :: true

2020-09-18 02:36:22 | [Mutex] waiting for: [received:nodes:577acdd4-0646-4063-8c7f-a7b838dc5c78:localhost]

2020-09-18 02:36:22 | [Mutex] received everything.

2020-09-18 02:36:22 | [Mutex] isItemNotified: received:node:577acdd4-0646-4063-8c7f-a7b838dc5c78:localhost:node-8a16167e-6a63-45c7-9732-1fbbce38aea8:Node 8a16167e-6a63-45c7-9732-1fbbce38aea8 :: true

2020-09-18 02:36:22 | [Mutex] waiting for: [received:nodes:152e4c4e-bf98-4337-b4f8-5374816685ef:localhost]

2020-09-18 02:36:22 | [Mutex] received everything.

2020-09-18 02:36:22 | [Mutex] isItemNotified: received:node:152e4c4e-bf98-4337-b4f8-5374816685ef:localhost:node-8a16167e-6a63-45c7-9732-1fbbce38aea8:Node 8a16167e-6a63-45c7-9732-1fbbce38aea8 :: false

createNodes 1.827s
2020-09-18 02:36:18 |

2020-09-18 02:36:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:18 | ------------------------------------

2020-09-18 02:36:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8a16167e-6a63-45c7-9732-1fbbce38aea8",
    "pubsub#title": "Node 8a16167e-6a63-45c7-9732-1fbbce38aea8"
}

2020-09-18 02:36:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 02:36:20 | [Mutex] waiting for: [received:nodes:c40b378d-1f20-4314-94e6-9d62e04261bd:localhost]

2020-09-18 02:36:20 | [Mutex] received everything.

2020-09-18 02:36:20 | [Mutex] isItemNotified: received:node:c40b378d-1f20-4314-94e6-9d62e04261bd:localhost:node-8a16167e-6a63-45c7-9732-1fbbce38aea8:Node 8a16167e-6a63-45c7-9732-1fbbce38aea8 :: true

createSubnodes 1.028s
2020-09-18 02:36:20 |

2020-09-18 02:36:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:20 | ------------------------------------

2020-09-18 02:36:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-212341ab-209d-4b5e-aed0-d6f1a4c19ded",
    "pubsub#title": "Node 212341ab-209d-4b5e-aed0-d6f1a4c19ded"
}

2020-09-18 02:36:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 02:36:21 | [Mutex] waiting for: [received:nodes:8e131838-e685-4493-b4d2-da894efb9494:localhost]

2020-09-18 02:36:21 | [Mutex] received everything.

2020-09-18 02:36:21 | [Mutex] isItemNotified: received:node:8e131838-e685-4493-b4d2-da894efb9494:localhost:node-212341ab-209d-4b5e-aed0-d6f1a4c19ded:Node 212341ab-209d-4b5e-aed0-d6f1a4c19ded :: true

deleteNodes 1.024s
2020-09-18 02:36:25 |

2020-09-18 02:36:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:25 | ------------------------------------

2020-09-18 02:36:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-212341ab-209d-4b5e-aed0-d6f1a4c19ded"
}

2020-09-18 02:36:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 02:36:26 | [Mutex] waiting for: [received:nodes:6af83950-ff61-4274-a561-d4d2de77268d:localhost]

2020-09-18 02:36:26 | [Mutex] received everything.

2020-09-18 02:36:26 | [Mutex] isItemNotified: received:node:6af83950-ff61-4274-a561-d4d2de77268d:localhost:node-212341ab-209d-4b5e-aed0-d6f1a4c19ded:Node 212341ab-209d-4b5e-aed0-d6f1a4c19ded :: false

deleteSubnodes 1.028s
2020-09-18 02:36:24 |

2020-09-18 02:36:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:24 | ------------------------------------

2020-09-18 02:36:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8a16167e-6a63-45c7-9732-1fbbce38aea8"
}

2020-09-18 02:36:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 02:36:25 | [Mutex] waiting for: [received:nodes:156040b3-3901-47d0-8c5a-58588c5e1e7a:localhost]

2020-09-18 02:36:25 | [Mutex] received everything.

2020-09-18 02:36:25 | [Mutex] isItemNotified: received:node:156040b3-3901-47d0-8c5a-58588c5e1e7a:localhost:node-8a16167e-6a63-45c7-9732-1fbbce38aea8:Node 8a16167e-6a63-45c7-9732-1fbbce38aea8 :: false

2020-09-18 02:36:25 | [Mutex] waiting for: [received:nodes:fcbe6f83-fc8b-46d3-b264-d5838ac63fa7:localhost]

2020-09-18 02:36:25 | [Mutex] received everything.

2020-09-18 02:36:25 | [Mutex] isItemNotified: received:node:fcbe6f83-fc8b-46d3-b264-d5838ac63fa7:localhost:node-8a16167e-6a63-45c7-9732-1fbbce38aea8:Node 8a16167e-6a63-45c7-9732-1fbbce38aea8 :: false

publishItemsToNodes 0.044s
2020-09-18 02:36:23 |

2020-09-18 02:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:23 | ------------------------------------

2020-09-18 02:36:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8a16167e-6a63-45c7-9732-1fbbce38aea8",
    "entry": "<test>item-ffea7db3-b6d3-4060-a41f-0b6de9787b01</test>",
    "item-id": "item-ffea7db3-b6d3-4060-a41f-0b6de9787b01"
}

2020-09-18 02:36:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ffea7db3-b6d3-4060-a41f-0b6de9787b01"
}

2020-09-18 02:36:23 | [Mutex] waiting for: [published:item:notifieditem-ffea7db3-b6d3-4060-a41f-0b6de9787b01:admin@test-domain.com]

2020-09-18 02:36:23 | [Mutex] received everything.

2020-09-18 02:36:23 | [Mutex] isItemNotified: published:item:notifieditem-ffea7db3-b6d3-4060-a41f-0b6de9787b01:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2020-09-18 02:36:23 |

2020-09-18 02:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:23 | ------------------------------------

2020-09-18 02:36:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8a16167e-6a63-45c7-9732-1fbbce38aea8",
    "item-id": "item-ffea7db3-b6d3-4060-a41f-0b6de9787b01"
}

2020-09-18 02:36:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ffea7db3-b6d3-4060-a41f-0b6de9787b01"
}

2020-09-18 02:36:23 | [Mutex] received everything.

2020-09-18 02:36:23 | [Mutex] isItemNotified: retracted:item:notifieditem-ffea7db3-b6d3-4060-a41f-0b6de9787b01:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2020-09-18 02:36:23 |

2020-09-18 02:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:23 | ------------------------------------

2020-09-18 02:36:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8a16167e-6a63-45c7-9732-1fbbce38aea8",
    "item-id": "item-ffea7db3-b6d3-4060-a41f-0b6de9787b01"
}

2020-09-18 02:36:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8a16167e-6a63-45c7-9732-1fbbce38aea8",
    "item-id": "item-ffea7db3-b6d3-4060-a41f-0b6de9787b01",
    "item": [
        "<item id=\"item-ffea7db3-b6d3-4060-a41f-0b6de9787b01\"><test>item-ffea7db3-b6d3-4060-a41f-0b6de9787b01</test></item>"
    ]
}

2020-09-18 02:36:23 | [Mutex] notify: [retrieved:item:item-ffea7db3-b6d3-4060-a41f-0b6de9787b01:payload-matches:true:localhost]

2020-09-18 02:36:23 | [Mutex] received everything.

2020-09-18 02:36:23 | [Mutex] isItemNotified: retrieved:item:item-ffea7db3-b6d3-4060-a41f-0b6de9787b01:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-18 02:36:23 |

2020-09-18 02:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:23 | ------------------------------------

2020-09-18 02:36:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-18 02:36:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-212341ab-209d-4b5e-aed0-d6f1a4c19ded",
        "test",
        "node-8a16167e-6a63-45c7-9732-1fbbce38aea8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-18 02:36:23 |

2020-09-18 02:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:23 | ------------------------------------

2020-09-18 02:36:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8a16167e-6a63-45c7-9732-1fbbce38aea8)"
}

2020-09-18 02:36:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.022s
2020-09-18 02:36:22 |

2020-09-18 02:36:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:22 | ------------------------------------

2020-09-18 02:36:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8a16167e-6a63-45c7-9732-1fbbce38aea8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 02:36:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.115s
2020-09-18 02:36:23 |

2020-09-18 02:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:36:23 | ------------------------------------

2020-09-18 02:36:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8a16167e-6a63-45c7-9732-1fbbce38aea8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 02:36:23 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}