Generated by TestNG with ReportNG at 22:46 PDT on Monday 29 May 2023
root@cc7d7fbb25f7 / Java 17.0.6 (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.654s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.036s
2023-05-29 23:01:22 |

2023-05-29 23:01:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:22 | ------------------------------------

2023-05-29 23:01:22 | [Mutex] waiting for: [configured:node:node-20019405-d4a8-4ce8-a1f4-e4d896bd1011:node-8e138371-fda3-45e3-bf44-b38b24c8272d]

2023-05-29 23:01:22 | [Mutex] received everything.

2023-05-29 23:01:22 | [Mutex] isItemNotified: configured:node:node-20019405-d4a8-4ce8-a1f4-e4d896bd1011:node-8e138371-fda3-45e3-bf44-b38b24c8272d :: true

2023-05-29 23:01:23 | [Mutex] waiting for: [received:nodes:3412690a-466c-4588-ad74-d05e21ffc41e:localhost]

2023-05-29 23:01:23 | [Mutex] received everything.

2023-05-29 23:01:23 | [Mutex] isItemNotified: received:node:3412690a-466c-4588-ad74-d05e21ffc41e:localhost:node-20019405-d4a8-4ce8-a1f4-e4d896bd1011:Node 20019405-d4a8-4ce8-a1f4-e4d896bd1011 :: true

2023-05-29 23:01:23 | [Mutex] waiting for: [received:nodes:099009cc-a0bf-4b13-a4a4-d60bb2ff3b43:localhost]

2023-05-29 23:01:23 | [Mutex] waiting for: [received:nodes:099009cc-a0bf-4b13-a4a4-d60bb2ff3b43:localhost]

2023-05-29 23:01:23 | [Mutex] waiting for: [received:nodes:099009cc-a0bf-4b13-a4a4-d60bb2ff3b43:localhost]

2023-05-29 23:01:23 | [Mutex] received everything.

2023-05-29 23:01:23 | [Mutex] isItemNotified: received:node:099009cc-a0bf-4b13-a4a4-d60bb2ff3b43:localhost:node-20019405-d4a8-4ce8-a1f4-e4d896bd1011:Node 20019405-d4a8-4ce8-a1f4-e4d896bd1011 :: false

createNodes 1.718s
2023-05-29 23:01:19 |

2023-05-29 23:01:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:19 | ------------------------------------

2023-05-29 23:01:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-20019405-d4a8-4ce8-a1f4-e4d896bd1011",
    "pubsub#title": "Node 20019405-d4a8-4ce8-a1f4-e4d896bd1011"
}

2023-05-29 23:01:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 23:01:21 | [Mutex] waiting for: [received:nodes:63ae5d5a-2f1c-472f-bd2a-9c6ef95fff15:localhost]

2023-05-29 23:01:21 | [Mutex] waiting for: [received:nodes:63ae5d5a-2f1c-472f-bd2a-9c6ef95fff15:localhost]

2023-05-29 23:01:21 | [Mutex] waiting for: [received:nodes:63ae5d5a-2f1c-472f-bd2a-9c6ef95fff15:localhost]

2023-05-29 23:01:21 | [Mutex] waiting for: [received:nodes:63ae5d5a-2f1c-472f-bd2a-9c6ef95fff15:localhost]

2023-05-29 23:01:21 | [Mutex] received everything.

2023-05-29 23:01:21 | [Mutex] isItemNotified: received:node:63ae5d5a-2f1c-472f-bd2a-9c6ef95fff15:localhost:node-20019405-d4a8-4ce8-a1f4-e4d896bd1011:Node 20019405-d4a8-4ce8-a1f4-e4d896bd1011 :: true

createSubnodes 1.021s
2023-05-29 23:01:21 |

2023-05-29 23:01:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:21 | ------------------------------------

2023-05-29 23:01:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8e138371-fda3-45e3-bf44-b38b24c8272d",
    "pubsub#title": "Node 8e138371-fda3-45e3-bf44-b38b24c8272d"
}

2023-05-29 23:01:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 23:01:22 | [Mutex] waiting for: [received:nodes:b0d1fb85-2e09-49ae-9a5e-d18c1a2562ad:localhost]

2023-05-29 23:01:22 | [Mutex] waiting for: [received:nodes:b0d1fb85-2e09-49ae-9a5e-d18c1a2562ad:localhost]

2023-05-29 23:01:22 | [Mutex] waiting for: [received:nodes:b0d1fb85-2e09-49ae-9a5e-d18c1a2562ad:localhost]

2023-05-29 23:01:22 | [Mutex] waiting for: [received:nodes:b0d1fb85-2e09-49ae-9a5e-d18c1a2562ad:localhost]

2023-05-29 23:01:22 | [Mutex] received everything.

2023-05-29 23:01:22 | [Mutex] isItemNotified: received:node:b0d1fb85-2e09-49ae-9a5e-d18c1a2562ad:localhost:node-8e138371-fda3-45e3-bf44-b38b24c8272d:Node 8e138371-fda3-45e3-bf44-b38b24c8272d :: true

deleteNodes 1.019s
2023-05-29 23:01:26 |

2023-05-29 23:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:26 | ------------------------------------

2023-05-29 23:01:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8e138371-fda3-45e3-bf44-b38b24c8272d"
}

2023-05-29 23:01:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 23:01:27 | [Mutex] waiting for: [received:nodes:074ecd38-fa94-438e-ab91-273d3f506d49:localhost]

2023-05-29 23:01:27 | [Mutex] waiting for: [received:nodes:074ecd38-fa94-438e-ab91-273d3f506d49:localhost]

2023-05-29 23:01:27 | [Mutex] waiting for: [received:nodes:074ecd38-fa94-438e-ab91-273d3f506d49:localhost]

2023-05-29 23:01:27 | [Mutex] received everything.

2023-05-29 23:01:27 | [Mutex] isItemNotified: received:node:074ecd38-fa94-438e-ab91-273d3f506d49:localhost:node-8e138371-fda3-45e3-bf44-b38b24c8272d:Node 8e138371-fda3-45e3-bf44-b38b24c8272d :: false

deleteSubnodes 1.026s
2023-05-29 23:01:25 |

2023-05-29 23:01:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:25 | ------------------------------------

2023-05-29 23:01:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20019405-d4a8-4ce8-a1f4-e4d896bd1011"
}

2023-05-29 23:01:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 23:01:26 | [Mutex] waiting for: [received:nodes:e3ddea9b-3fc5-4d2d-8a84-cd78c2c01eaa:localhost]

2023-05-29 23:01:26 | [Mutex] received everything.

2023-05-29 23:01:26 | [Mutex] isItemNotified: received:node:e3ddea9b-3fc5-4d2d-8a84-cd78c2c01eaa:localhost:node-20019405-d4a8-4ce8-a1f4-e4d896bd1011:Node 20019405-d4a8-4ce8-a1f4-e4d896bd1011 :: false

2023-05-29 23:01:26 | [Mutex] waiting for: [received:nodes:e7acc80c-70a4-4aac-9f9f-7b208b7f66b2:localhost]

2023-05-29 23:01:26 | [Mutex] received everything.

2023-05-29 23:01:26 | [Mutex] isItemNotified: received:node:e7acc80c-70a4-4aac-9f9f-7b208b7f66b2:localhost:node-20019405-d4a8-4ce8-a1f4-e4d896bd1011:Node 20019405-d4a8-4ce8-a1f4-e4d896bd1011 :: false

publishItemsToNodes 0.043s
2023-05-29 23:01:24 |

2023-05-29 23:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:24 | ------------------------------------

2023-05-29 23:01:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-20019405-d4a8-4ce8-a1f4-e4d896bd1011",
    "entry": "<test>item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca</test>",
    "item-id": "item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca"
}

2023-05-29 23:01:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca"
}

2023-05-29 23:01:24 | [Mutex] waiting for: [published:item:notifieditem-f2d3291c-00e8-41ca-b582-3dc2b815e8ca:admin@test-domain.com]

2023-05-29 23:01:24 | [Mutex] received everything.

2023-05-29 23:01:24 | [Mutex] isItemNotified: published:item:notifieditem-f2d3291c-00e8-41ca-b582-3dc2b815e8ca:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2023-05-29 23:01:24 |

2023-05-29 23:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:24 | ------------------------------------

2023-05-29 23:01:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-20019405-d4a8-4ce8-a1f4-e4d896bd1011",
    "item-id": "item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca"
}

2023-05-29 23:01:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca"
}

2023-05-29 23:01:24 | [Mutex] received everything.

2023-05-29 23:01:24 | [Mutex] isItemNotified: retracted:item:notifieditem-f2d3291c-00e8-41ca-b582-3dc2b815e8ca:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2023-05-29 23:01:24 |

2023-05-29 23:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:24 | ------------------------------------

2023-05-29 23:01:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-20019405-d4a8-4ce8-a1f4-e4d896bd1011",
    "item-id": "item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca"
}

2023-05-29 23:01:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-20019405-d4a8-4ce8-a1f4-e4d896bd1011",
    "item-id": "item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca",
    "item": [
        "<item id=\"item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca\"><test>item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca</test></item>"
    ]
}

2023-05-29 23:01:24 | [Mutex] notify: [retrieved:item:item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca:payload-matches:true:localhost]

2023-05-29 23:01:24 | [Mutex] received everything.

2023-05-29 23:01:24 | [Mutex] isItemNotified: retrieved:item:item-f2d3291c-00e8-41ca-b582-3dc2b815e8ca:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-05-29 23:01:24 |

2023-05-29 23:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:24 | ------------------------------------

2023-05-29 23:01:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-05-29 23:01:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-8e138371-fda3-45e3-bf44-b38b24c8272d",
        "test",
        "node-20019405-d4a8-4ce8-a1f4-e4d896bd1011"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-05-29 23:01:24 |

2023-05-29 23:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:24 | ------------------------------------

2023-05-29 23:01:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-20019405-d4a8-4ce8-a1f4-e4d896bd1011)"
}

2023-05-29 23:01:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2023-05-29 23:01:23 |

2023-05-29 23:01:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:23 | ------------------------------------

2023-05-29 23:01:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-20019405-d4a8-4ce8-a1f4-e4d896bd1011",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-29 23:01:23 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.049s
2023-05-29 23:01:24 |

2023-05-29 23:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 23:01:24 | ------------------------------------

2023-05-29 23:01:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-20019405-d4a8-4ce8-a1f4-e4d896bd1011",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-29 23:01:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}