Generated by TestNG with ReportNG at 22:20 PDT on Thursday 15 September 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.651s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2022-09-15 22:41:49 |

2022-09-15 22:41:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:49 | ------------------------------------

2022-09-15 22:41:49 | [Mutex] waiting for: [configured:node:node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3:node-8bed80dc-8b05-474d-adb4-8441b0c06e5c]

2022-09-15 22:41:49 | [Mutex] received everything.

2022-09-15 22:41:49 | [Mutex] isItemNotified: configured:node:node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3:node-8bed80dc-8b05-474d-adb4-8441b0c06e5c :: true

2022-09-15 22:41:50 | [Mutex] waiting for: [received:nodes:12e36ea4-49a4-4338-9552-922ce0c9b91c:localhost]

2022-09-15 22:41:50 | [Mutex] received everything.

2022-09-15 22:41:50 | [Mutex] isItemNotified: received:node:12e36ea4-49a4-4338-9552-922ce0c9b91c:localhost:node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3:Node 49ee4ae7-7bc3-40ce-86e2-b3528698f7b3 :: true

2022-09-15 22:41:50 | [Mutex] waiting for: [received:nodes:b041fdc2-8e22-4508-9fda-7b08bff79a60:localhost]

2022-09-15 22:41:50 | [Mutex] waiting for: [received:nodes:b041fdc2-8e22-4508-9fda-7b08bff79a60:localhost]

2022-09-15 22:41:50 | [Mutex] received everything.

2022-09-15 22:41:50 | [Mutex] isItemNotified: received:node:b041fdc2-8e22-4508-9fda-7b08bff79a60:localhost:node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3:Node 49ee4ae7-7bc3-40ce-86e2-b3528698f7b3 :: false

createNodes 1.573s
2022-09-15 22:41:46 |

2022-09-15 22:41:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:46 | ------------------------------------

2022-09-15 22:41:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3",
    "pubsub#title": "Node 49ee4ae7-7bc3-40ce-86e2-b3528698f7b3"
}

2022-09-15 22:41:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-15 22:41:48 | [Mutex] waiting for: [received:nodes:8b52a06f-5ef6-48e1-811f-2bce4f96cdf7:localhost]

2022-09-15 22:41:48 | [Mutex] received everything.

2022-09-15 22:41:48 | [Mutex] isItemNotified: received:node:8b52a06f-5ef6-48e1-811f-2bce4f96cdf7:localhost:node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3:Node 49ee4ae7-7bc3-40ce-86e2-b3528698f7b3 :: true

createSubnodes 1.023s
2022-09-15 22:41:48 |

2022-09-15 22:41:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:48 | ------------------------------------

2022-09-15 22:41:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8bed80dc-8b05-474d-adb4-8441b0c06e5c",
    "pubsub#title": "Node 8bed80dc-8b05-474d-adb4-8441b0c06e5c"
}

2022-09-15 22:41:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-15 22:41:49 | [Mutex] waiting for: [received:nodes:9daae23e-5ada-491d-b85d-16775afe656c:localhost]

2022-09-15 22:41:49 | [Mutex] received everything.

2022-09-15 22:41:49 | [Mutex] isItemNotified: received:node:9daae23e-5ada-491d-b85d-16775afe656c:localhost:node-8bed80dc-8b05-474d-adb4-8441b0c06e5c:Node 8bed80dc-8b05-474d-adb4-8441b0c06e5c :: true

deleteNodes 1.030s
2022-09-15 22:41:53 |

2022-09-15 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:53 | ------------------------------------

2022-09-15 22:41:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8bed80dc-8b05-474d-adb4-8441b0c06e5c"
}

2022-09-15 22:41:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-15 22:41:54 | [Mutex] waiting for: [received:nodes:0154a880-58b7-4329-9c04-cfbdb940d0d0:localhost]

2022-09-15 22:41:54 | [Mutex] received everything.

2022-09-15 22:41:54 | [Mutex] isItemNotified: received:node:0154a880-58b7-4329-9c04-cfbdb940d0d0:localhost:node-8bed80dc-8b05-474d-adb4-8441b0c06e5c:Node 8bed80dc-8b05-474d-adb4-8441b0c06e5c :: false

deleteSubnodes 1.028s
2022-09-15 22:41:52 |

2022-09-15 22:41:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:52 | ------------------------------------

2022-09-15 22:41:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3"
}

2022-09-15 22:41:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-15 22:41:53 | [Mutex] waiting for: [received:nodes:e3b5601e-b29a-41ff-8d87-a79699601b72:localhost]

2022-09-15 22:41:53 | [Mutex] waiting for: [received:nodes:e3b5601e-b29a-41ff-8d87-a79699601b72:localhost]

2022-09-15 22:41:53 | [Mutex] waiting for: [received:nodes:e3b5601e-b29a-41ff-8d87-a79699601b72:localhost]

2022-09-15 22:41:53 | [Mutex] received everything.

2022-09-15 22:41:53 | [Mutex] isItemNotified: received:node:e3b5601e-b29a-41ff-8d87-a79699601b72:localhost:node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3:Node 49ee4ae7-7bc3-40ce-86e2-b3528698f7b3 :: false

2022-09-15 22:41:53 | [Mutex] waiting for: [received:nodes:3a5ba189-b47c-4bac-93ce-7ada7f4e7908:localhost]

2022-09-15 22:41:53 | [Mutex] received everything.

2022-09-15 22:41:53 | [Mutex] isItemNotified: received:node:3a5ba189-b47c-4bac-93ce-7ada7f4e7908:localhost:node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3:Node 49ee4ae7-7bc3-40ce-86e2-b3528698f7b3 :: false

publishItemsToNodes 0.059s
2022-09-15 22:41:51 |

2022-09-15 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:51 | ------------------------------------

2022-09-15 22:41:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3",
    "entry": "<test>item-476fdc56-08c2-4a7d-9621-9617584a2b94</test>",
    "item-id": "item-476fdc56-08c2-4a7d-9621-9617584a2b94"
}

2022-09-15 22:41:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-476fdc56-08c2-4a7d-9621-9617584a2b94"
}

2022-09-15 22:41:51 | [Mutex] waiting for: [published:item:notifieditem-476fdc56-08c2-4a7d-9621-9617584a2b94:admin@test-domain.com]

2022-09-15 22:41:51 | [Mutex] received everything.

2022-09-15 22:41:51 | [Mutex] isItemNotified: published:item:notifieditem-476fdc56-08c2-4a7d-9621-9617584a2b94:admin@test-domain.com :: true

retractItemsFromNodes 0.158s
2022-09-15 22:41:51 |

2022-09-15 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:51 | ------------------------------------

2022-09-15 22:41:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3",
    "item-id": "item-476fdc56-08c2-4a7d-9621-9617584a2b94"
}

2022-09-15 22:41:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-476fdc56-08c2-4a7d-9621-9617584a2b94"
}

2022-09-15 22:41:51 | [Mutex] waiting for: [retracted:item:notifieditem-476fdc56-08c2-4a7d-9621-9617584a2b94:admin@test-domain.com]

2022-09-15 22:41:51 | [Mutex] received everything.

2022-09-15 22:41:51 | [Mutex] isItemNotified: retracted:item:notifieditem-476fdc56-08c2-4a7d-9621-9617584a2b94:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2022-09-15 22:41:51 |

2022-09-15 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:51 | ------------------------------------

2022-09-15 22:41:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3",
    "item-id": "item-476fdc56-08c2-4a7d-9621-9617584a2b94"
}

2022-09-15 22:41:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3",
    "item-id": "item-476fdc56-08c2-4a7d-9621-9617584a2b94",
    "item": [
        "<item id=\"item-476fdc56-08c2-4a7d-9621-9617584a2b94\"><test>item-476fdc56-08c2-4a7d-9621-9617584a2b94</test></item>"
    ]
}

2022-09-15 22:41:51 | [Mutex] notify: [retrieved:item:item-476fdc56-08c2-4a7d-9621-9617584a2b94:payload-matches:true:localhost]

2022-09-15 22:41:51 | [Mutex] received everything.

2022-09-15 22:41:51 | [Mutex] isItemNotified: retrieved:item:item-476fdc56-08c2-4a7d-9621-9617584a2b94:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.075s
2022-09-15 22:41:51 |

2022-09-15 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:51 | ------------------------------------

2022-09-15 22:41:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-15 22:41:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-8bed80dc-8b05-474d-adb4-8441b0c06e5c",
        "test",
        "node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-15 22:41:51 |

2022-09-15 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:51 | ------------------------------------

2022-09-15 22:41:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3)"
}

2022-09-15 22:41:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-09-15 22:41:50 |

2022-09-15 22:41:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:50 | ------------------------------------

2022-09-15 22:41:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-15 22:41:50 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.014s
2022-09-15 22:41:51 |

2022-09-15 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-15 22:41:51 | ------------------------------------

2022-09-15 22:41:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-49ee4ae7-7bc3-40ce-86e2-b3528698f7b3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-15 22:41:51 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}