Generated by TestNG with ReportNG at 21:57 PST on Sunday 05 December 2021
root@f29ef40080b5 / 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.075s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2021-12-05 22:12:57 |

2021-12-05 22:12:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:57 | ------------------------------------

2021-12-05 22:12:57 | [Mutex] waiting for: [configured:node:node-67803be4-4500-46b4-bf96-ccc76e2575ce:node-d4bf28be-f063-43c7-b31b-9cf817470046]

2021-12-05 22:12:57 | [Mutex] received everything.

2021-12-05 22:12:57 | [Mutex] isItemNotified: configured:node:node-67803be4-4500-46b4-bf96-ccc76e2575ce:node-d4bf28be-f063-43c7-b31b-9cf817470046 :: true

2021-12-05 22:12:58 | [Mutex] waiting for: [received:nodes:25b58bfc-e5d0-4eab-975f-eb2db447c038:localhost]

2021-12-05 22:12:58 | [Mutex] received everything.

2021-12-05 22:12:58 | [Mutex] isItemNotified: received:node:25b58bfc-e5d0-4eab-975f-eb2db447c038:localhost:node-67803be4-4500-46b4-bf96-ccc76e2575ce:Node 67803be4-4500-46b4-bf96-ccc76e2575ce :: true

2021-12-05 22:12:58 | [Mutex] waiting for: [received:nodes:8037231a-e444-41f9-bcf3-5068d62a631f:localhost]

2021-12-05 22:12:58 | [Mutex] received everything.

2021-12-05 22:12:58 | [Mutex] isItemNotified: received:node:8037231a-e444-41f9-bcf3-5068d62a631f:localhost:node-67803be4-4500-46b4-bf96-ccc76e2575ce:Node 67803be4-4500-46b4-bf96-ccc76e2575ce :: false

createNodes 1.684s
2021-12-05 22:12:54 |

2021-12-05 22:12:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:54 | ------------------------------------

2021-12-05 22:12:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-67803be4-4500-46b4-bf96-ccc76e2575ce",
    "pubsub#title": "Node 67803be4-4500-46b4-bf96-ccc76e2575ce"
}

2021-12-05 22:12:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-05 22:12:55 | [Mutex] waiting for: [received:nodes:0579045b-3530-466d-8a9d-1dc24649fb2a:localhost]

2021-12-05 22:12:56 | [Mutex] received everything.

2021-12-05 22:12:56 | [Mutex] isItemNotified: received:node:0579045b-3530-466d-8a9d-1dc24649fb2a:localhost:node-67803be4-4500-46b4-bf96-ccc76e2575ce:Node 67803be4-4500-46b4-bf96-ccc76e2575ce :: true

createSubnodes 1.033s
2021-12-05 22:12:56 |

2021-12-05 22:12:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:56 | ------------------------------------

2021-12-05 22:12:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d4bf28be-f063-43c7-b31b-9cf817470046",
    "pubsub#title": "Node d4bf28be-f063-43c7-b31b-9cf817470046"
}

2021-12-05 22:12:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-05 22:12:57 | [Mutex] waiting for: [received:nodes:ba052de2-ecbe-4efa-9c07-7c21e7873833:localhost]

2021-12-05 22:12:57 | [Mutex] received everything.

2021-12-05 22:12:57 | [Mutex] isItemNotified: received:node:ba052de2-ecbe-4efa-9c07-7c21e7873833:localhost:node-d4bf28be-f063-43c7-b31b-9cf817470046:Node d4bf28be-f063-43c7-b31b-9cf817470046 :: true

deleteNodes 1.017s
2021-12-05 22:13:01 |

2021-12-05 22:13:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:13:01 | ------------------------------------

2021-12-05 22:13:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d4bf28be-f063-43c7-b31b-9cf817470046"
}

2021-12-05 22:13:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-05 22:13:02 | [Mutex] waiting for: [received:nodes:3b33f95d-1dd2-4919-bffb-f7ac9a7ae93b:localhost]

2021-12-05 22:13:02 | [Mutex] received everything.

2021-12-05 22:13:02 | [Mutex] isItemNotified: received:node:3b33f95d-1dd2-4919-bffb-f7ac9a7ae93b:localhost:node-d4bf28be-f063-43c7-b31b-9cf817470046:Node d4bf28be-f063-43c7-b31b-9cf817470046 :: false

deleteSubnodes 1.028s
2021-12-05 22:13:00 |

2021-12-05 22:13:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:13:00 | ------------------------------------

2021-12-05 22:13:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-67803be4-4500-46b4-bf96-ccc76e2575ce"
}

2021-12-05 22:13:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-05 22:13:01 | [Mutex] waiting for: [received:nodes:2f40650e-c4ab-4a99-9785-3a1ba1da2ce4:localhost]

2021-12-05 22:13:01 | [Mutex] received everything.

2021-12-05 22:13:01 | [Mutex] isItemNotified: received:node:2f40650e-c4ab-4a99-9785-3a1ba1da2ce4:localhost:node-67803be4-4500-46b4-bf96-ccc76e2575ce:Node 67803be4-4500-46b4-bf96-ccc76e2575ce :: false

2021-12-05 22:13:01 | [Mutex] waiting for: [received:nodes:e8f82124-f4da-4ad2-a84b-1675b1a98db8:localhost]

2021-12-05 22:13:01 | [Mutex] received everything.

2021-12-05 22:13:01 | [Mutex] isItemNotified: received:node:e8f82124-f4da-4ad2-a84b-1675b1a98db8:localhost:node-67803be4-4500-46b4-bf96-ccc76e2575ce:Node 67803be4-4500-46b4-bf96-ccc76e2575ce :: false

publishItemsToNodes 0.045s
2021-12-05 22:12:59 |

2021-12-05 22:12:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:59 | ------------------------------------

2021-12-05 22:12:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-67803be4-4500-46b4-bf96-ccc76e2575ce",
    "entry": "<test>item-38d10e3c-446a-4626-9cee-0807009e72b3</test>",
    "item-id": "item-38d10e3c-446a-4626-9cee-0807009e72b3"
}

2021-12-05 22:12:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-38d10e3c-446a-4626-9cee-0807009e72b3"
}

2021-12-05 22:12:59 | [Mutex] waiting for: [published:item:notifieditem-38d10e3c-446a-4626-9cee-0807009e72b3:admin@test-domain.com]

2021-12-05 22:12:59 | [Mutex] received everything.

2021-12-05 22:12:59 | [Mutex] isItemNotified: published:item:notifieditem-38d10e3c-446a-4626-9cee-0807009e72b3:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2021-12-05 22:12:59 |

2021-12-05 22:12:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:59 | ------------------------------------

2021-12-05 22:12:59 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-67803be4-4500-46b4-bf96-ccc76e2575ce",
    "item-id": "item-38d10e3c-446a-4626-9cee-0807009e72b3"
}

2021-12-05 22:12:59 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-38d10e3c-446a-4626-9cee-0807009e72b3"
}

2021-12-05 22:12:59 | [Mutex] waiting for: [retracted:item:notifieditem-38d10e3c-446a-4626-9cee-0807009e72b3:admin@test-domain.com]

2021-12-05 22:12:59 | [Mutex] received everything.

2021-12-05 22:12:59 | [Mutex] isItemNotified: retracted:item:notifieditem-38d10e3c-446a-4626-9cee-0807009e72b3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2021-12-05 22:12:59 |

2021-12-05 22:12:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:59 | ------------------------------------

2021-12-05 22:12:59 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-67803be4-4500-46b4-bf96-ccc76e2575ce",
    "item-id": "item-38d10e3c-446a-4626-9cee-0807009e72b3"
}

2021-12-05 22:12:59 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-67803be4-4500-46b4-bf96-ccc76e2575ce",
    "item-id": "item-38d10e3c-446a-4626-9cee-0807009e72b3",
    "item": [
        "<item id=\"item-38d10e3c-446a-4626-9cee-0807009e72b3\"><test>item-38d10e3c-446a-4626-9cee-0807009e72b3</test></item>"
    ]
}

2021-12-05 22:12:59 | [Mutex] notify: [retrieved:item:item-38d10e3c-446a-4626-9cee-0807009e72b3:payload-matches:true:localhost]

2021-12-05 22:12:59 | [Mutex] received everything.

2021-12-05 22:12:59 | [Mutex] isItemNotified: retrieved:item:item-38d10e3c-446a-4626-9cee-0807009e72b3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.115s
2021-12-05 22:12:59 |

2021-12-05 22:12:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:59 | ------------------------------------

2021-12-05 22:12:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-12-05 22:12:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d4bf28be-f063-43c7-b31b-9cf817470046",
        "node-67803be4-4500-46b4-bf96-ccc76e2575ce",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-12-05 22:12:59 |

2021-12-05 22:12:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:59 | ------------------------------------

2021-12-05 22:12:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-67803be4-4500-46b4-bf96-ccc76e2575ce)"
}

2021-12-05 22:12:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2021-12-05 22:12:58 |

2021-12-05 22:12:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:58 | ------------------------------------

2021-12-05 22:12:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-67803be4-4500-46b4-bf96-ccc76e2575ce",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-05 22:12:58 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2021-12-05 22:12:59 |

2021-12-05 22:12:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:12:59 | ------------------------------------

2021-12-05 22:12:59 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-67803be4-4500-46b4-bf96-ccc76e2575ce",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-05 22:12:59 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}