Generated by TestNG with ReportNG at 22:19 PDT on Sunday 14 August 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.727s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2022-08-14 22:33:18 |

2022-08-14 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:18 | ------------------------------------

2022-08-14 22:33:18 | [Mutex] waiting for: [configured:node:node-946ae3b6-3585-4229-8fc7-30b1618e651e:node-12a39026-21a5-4bae-a481-5abbbe373145]

2022-08-14 22:33:18 | [Mutex] received everything.

2022-08-14 22:33:18 | [Mutex] isItemNotified: configured:node:node-946ae3b6-3585-4229-8fc7-30b1618e651e:node-12a39026-21a5-4bae-a481-5abbbe373145 :: true

2022-08-14 22:33:19 | [Mutex] waiting for: [received:nodes:072f32e7-57de-4169-8f6b-09c895c9e150:localhost]

2022-08-14 22:33:19 | [Mutex] received everything.

2022-08-14 22:33:19 | [Mutex] isItemNotified: received:node:072f32e7-57de-4169-8f6b-09c895c9e150:localhost:node-946ae3b6-3585-4229-8fc7-30b1618e651e:Node 946ae3b6-3585-4229-8fc7-30b1618e651e :: true

2022-08-14 22:33:19 | [Mutex] waiting for: [received:nodes:5c74defb-149f-48d0-9cda-cd97da73afff:localhost]

2022-08-14 22:33:19 | [Mutex] waiting for: [received:nodes:5c74defb-149f-48d0-9cda-cd97da73afff:localhost]

2022-08-14 22:33:19 | [Mutex] received everything.

2022-08-14 22:33:19 | [Mutex] isItemNotified: received:node:5c74defb-149f-48d0-9cda-cd97da73afff:localhost:node-946ae3b6-3585-4229-8fc7-30b1618e651e:Node 946ae3b6-3585-4229-8fc7-30b1618e651e :: false

createNodes 1.533s
2022-08-14 22:33:15 |

2022-08-14 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:15 | ------------------------------------

2022-08-14 22:33:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-946ae3b6-3585-4229-8fc7-30b1618e651e",
    "pubsub#title": "Node 946ae3b6-3585-4229-8fc7-30b1618e651e"
}

2022-08-14 22:33:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-14 22:33:17 | [Mutex] waiting for: [received:nodes:1dea148b-6724-4955-89d6-23f8e463b8c0:localhost]

2022-08-14 22:33:17 | [Mutex] received everything.

2022-08-14 22:33:17 | [Mutex] isItemNotified: received:node:1dea148b-6724-4955-89d6-23f8e463b8c0:localhost:node-946ae3b6-3585-4229-8fc7-30b1618e651e:Node 946ae3b6-3585-4229-8fc7-30b1618e651e :: true

createSubnodes 1.022s
2022-08-14 22:33:17 |

2022-08-14 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:17 | ------------------------------------

2022-08-14 22:33:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-12a39026-21a5-4bae-a481-5abbbe373145",
    "pubsub#title": "Node 12a39026-21a5-4bae-a481-5abbbe373145"
}

2022-08-14 22:33:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-14 22:33:18 | [Mutex] waiting for: [received:nodes:cd96e764-900a-4488-a2aa-0f3f9091c3b1:localhost]

2022-08-14 22:33:18 | [Mutex] waiting for: [received:nodes:cd96e764-900a-4488-a2aa-0f3f9091c3b1:localhost]

2022-08-14 22:33:18 | [Mutex] received everything.

2022-08-14 22:33:18 | [Mutex] isItemNotified: received:node:cd96e764-900a-4488-a2aa-0f3f9091c3b1:localhost:node-12a39026-21a5-4bae-a481-5abbbe373145:Node 12a39026-21a5-4bae-a481-5abbbe373145 :: true

deleteNodes 1.032s
2022-08-14 22:33:22 |

2022-08-14 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:22 | ------------------------------------

2022-08-14 22:33:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-12a39026-21a5-4bae-a481-5abbbe373145"
}

2022-08-14 22:33:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-14 22:33:23 | [Mutex] waiting for: [received:nodes:0e34c8ed-4608-42a0-8e8f-7f226650b43a:localhost]

2022-08-14 22:33:23 | [Mutex] received everything.

2022-08-14 22:33:23 | [Mutex] isItemNotified: received:node:0e34c8ed-4608-42a0-8e8f-7f226650b43a:localhost:node-12a39026-21a5-4bae-a481-5abbbe373145:Node 12a39026-21a5-4bae-a481-5abbbe373145 :: false

deleteSubnodes 1.035s
2022-08-14 22:33:21 |

2022-08-14 22:33:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:21 | ------------------------------------

2022-08-14 22:33:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-946ae3b6-3585-4229-8fc7-30b1618e651e"
}

2022-08-14 22:33:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-14 22:33:22 | [Mutex] waiting for: [received:nodes:a24f781b-e8cd-4c89-a995-41f418f6aa01:localhost]

2022-08-14 22:33:22 | [Mutex] received everything.

2022-08-14 22:33:22 | [Mutex] isItemNotified: received:node:a24f781b-e8cd-4c89-a995-41f418f6aa01:localhost:node-946ae3b6-3585-4229-8fc7-30b1618e651e:Node 946ae3b6-3585-4229-8fc7-30b1618e651e :: false

2022-08-14 22:33:22 | [Mutex] waiting for: [received:nodes:c616fd9b-83b2-4a8f-8153-1a6904c5e93a:localhost]

2022-08-14 22:33:22 | [Mutex] received everything.

2022-08-14 22:33:22 | [Mutex] isItemNotified: received:node:c616fd9b-83b2-4a8f-8153-1a6904c5e93a:localhost:node-946ae3b6-3585-4229-8fc7-30b1618e651e:Node 946ae3b6-3585-4229-8fc7-30b1618e651e :: false

publishItemsToNodes 0.050s
2022-08-14 22:33:20 |

2022-08-14 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:20 | ------------------------------------

2022-08-14 22:33:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-946ae3b6-3585-4229-8fc7-30b1618e651e",
    "entry": "<test>item-182c3bda-3901-490d-9ae0-66cc3b0d04d5</test>",
    "item-id": "item-182c3bda-3901-490d-9ae0-66cc3b0d04d5"
}

2022-08-14 22:33:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-182c3bda-3901-490d-9ae0-66cc3b0d04d5"
}

2022-08-14 22:33:20 | [Mutex] received everything.

2022-08-14 22:33:20 | [Mutex] isItemNotified: published:item:notifieditem-182c3bda-3901-490d-9ae0-66cc3b0d04d5:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-08-14 22:33:20 |

2022-08-14 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:20 | ------------------------------------

2022-08-14 22:33:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-946ae3b6-3585-4229-8fc7-30b1618e651e",
    "item-id": "item-182c3bda-3901-490d-9ae0-66cc3b0d04d5"
}

2022-08-14 22:33:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-182c3bda-3901-490d-9ae0-66cc3b0d04d5"
}

2022-08-14 22:33:20 | [Mutex] received everything.

2022-08-14 22:33:20 | [Mutex] isItemNotified: retracted:item:notifieditem-182c3bda-3901-490d-9ae0-66cc3b0d04d5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2022-08-14 22:33:20 |

2022-08-14 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:20 | ------------------------------------

2022-08-14 22:33:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-946ae3b6-3585-4229-8fc7-30b1618e651e",
    "item-id": "item-182c3bda-3901-490d-9ae0-66cc3b0d04d5"
}

2022-08-14 22:33:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-946ae3b6-3585-4229-8fc7-30b1618e651e",
    "item-id": "item-182c3bda-3901-490d-9ae0-66cc3b0d04d5",
    "item": [
        "<item id=\"item-182c3bda-3901-490d-9ae0-66cc3b0d04d5\"><test>item-182c3bda-3901-490d-9ae0-66cc3b0d04d5</test></item>"
    ]
}

2022-08-14 22:33:20 | [Mutex] notify: [retrieved:item:item-182c3bda-3901-490d-9ae0-66cc3b0d04d5:payload-matches:true:localhost]

2022-08-14 22:33:20 | [Mutex] received everything.

2022-08-14 22:33:20 | [Mutex] isItemNotified: retrieved:item:item-182c3bda-3901-490d-9ae0-66cc3b0d04d5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-08-14 22:33:20 |

2022-08-14 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:20 | ------------------------------------

2022-08-14 22:33:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-14 22:33:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-946ae3b6-3585-4229-8fc7-30b1618e651e",
        "test",
        "node-12a39026-21a5-4bae-a481-5abbbe373145"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-14 22:33:20 |

2022-08-14 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:20 | ------------------------------------

2022-08-14 22:33:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-946ae3b6-3585-4229-8fc7-30b1618e651e)"
}

2022-08-14 22:33:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-08-14 22:33:19 |

2022-08-14 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:19 | ------------------------------------

2022-08-14 22:33:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-946ae3b6-3585-4229-8fc7-30b1618e651e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-14 22:33:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-08-14 22:33:20 |

2022-08-14 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-14 22:33:20 | ------------------------------------

2022-08-14 22:33:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-946ae3b6-3585-4229-8fc7-30b1618e651e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-14 22:33:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}