Generated by TestNG with ReportNG at 22:19 PDT on Friday 17 June 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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 : 8.650s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2022-06-17 22:35:14 |

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

2022-06-17 22:35:14 | ------------------------------------

2022-06-17 22:35:14 | [Mutex] waiting for: [configured:node:node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4:node-50e48634-76fe-45f8-8b54-50ad4005de56]

2022-06-17 22:35:14 | [Mutex] received everything.

2022-06-17 22:35:14 | [Mutex] isItemNotified: configured:node:node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4:node-50e48634-76fe-45f8-8b54-50ad4005de56 :: true

2022-06-17 22:35:15 | [Mutex] waiting for: [received:nodes:6124801a-803b-41a5-987f-ddf5286bc948:localhost]

2022-06-17 22:35:15 | [Mutex] received everything.

2022-06-17 22:35:15 | [Mutex] isItemNotified: received:node:6124801a-803b-41a5-987f-ddf5286bc948:localhost:node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4:Node 23e4c2ed-9dc4-4746-bb15-881d8fe48eb4 :: true

2022-06-17 22:35:15 | [Mutex] waiting for: [received:nodes:aff08524-36aa-4d5c-bf2a-f4b6730ac204:localhost]

2022-06-17 22:35:15 | [Mutex] waiting for: [received:nodes:aff08524-36aa-4d5c-bf2a-f4b6730ac204:localhost]

2022-06-17 22:35:15 | [Mutex] received everything.

2022-06-17 22:35:15 | [Mutex] isItemNotified: received:node:aff08524-36aa-4d5c-bf2a-f4b6730ac204:localhost:node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4:Node 23e4c2ed-9dc4-4746-bb15-881d8fe48eb4 :: false

createNodes 1.581s
2022-06-17 22:35:12 |

2022-06-17 22:35:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:12 | ------------------------------------

2022-06-17 22:35:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4",
    "pubsub#title": "Node 23e4c2ed-9dc4-4746-bb15-881d8fe48eb4"
}

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

2022-06-17 22:35:13 | [Mutex] waiting for: [received:nodes:bda0431c-3bd8-4327-ace2-ec0c7f0cdaee:localhost]

2022-06-17 22:35:13 | [Mutex] received everything.

2022-06-17 22:35:13 | [Mutex] isItemNotified: received:node:bda0431c-3bd8-4327-ace2-ec0c7f0cdaee:localhost:node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4:Node 23e4c2ed-9dc4-4746-bb15-881d8fe48eb4 :: true

createSubnodes 1.031s
2022-06-17 22:35:13 |

2022-06-17 22:35:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:13 | ------------------------------------

2022-06-17 22:35:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-50e48634-76fe-45f8-8b54-50ad4005de56",
    "pubsub#title": "Node 50e48634-76fe-45f8-8b54-50ad4005de56"
}

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

2022-06-17 22:35:14 | [Mutex] waiting for: [received:nodes:20b45690-505c-4dbd-a06e-588a4bef8ee8:localhost]

2022-06-17 22:35:14 | [Mutex] waiting for: [received:nodes:20b45690-505c-4dbd-a06e-588a4bef8ee8:localhost]

2022-06-17 22:35:14 | [Mutex] received everything.

2022-06-17 22:35:14 | [Mutex] isItemNotified: received:node:20b45690-505c-4dbd-a06e-588a4bef8ee8:localhost:node-50e48634-76fe-45f8-8b54-50ad4005de56:Node 50e48634-76fe-45f8-8b54-50ad4005de56 :: true

deleteNodes 1.023s
2022-06-17 22:35:19 |

2022-06-17 22:35:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:19 | ------------------------------------

2022-06-17 22:35:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-50e48634-76fe-45f8-8b54-50ad4005de56"
}

2022-06-17 22:35:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-17 22:35:20 | [Mutex] waiting for: [received:nodes:68ca8d24-149b-488a-afdc-2ae41baa22ef:localhost]

2022-06-17 22:35:20 | [Mutex] waiting for: [received:nodes:68ca8d24-149b-488a-afdc-2ae41baa22ef:localhost]

2022-06-17 22:35:20 | [Mutex] received everything.

2022-06-17 22:35:20 | [Mutex] isItemNotified: received:node:68ca8d24-149b-488a-afdc-2ae41baa22ef:localhost:node-50e48634-76fe-45f8-8b54-50ad4005de56:Node 50e48634-76fe-45f8-8b54-50ad4005de56 :: false

deleteSubnodes 1.029s
2022-06-17 22:35:18 |

2022-06-17 22:35:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:18 | ------------------------------------

2022-06-17 22:35:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4"
}

2022-06-17 22:35:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-17 22:35:19 | [Mutex] waiting for: [received:nodes:3b6ab840-81f6-4916-8c01-ced1f02506bd:localhost]

2022-06-17 22:35:19 | [Mutex] waiting for: [received:nodes:3b6ab840-81f6-4916-8c01-ced1f02506bd:localhost]

2022-06-17 22:35:19 | [Mutex] received everything.

2022-06-17 22:35:19 | [Mutex] isItemNotified: received:node:3b6ab840-81f6-4916-8c01-ced1f02506bd:localhost:node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4:Node 23e4c2ed-9dc4-4746-bb15-881d8fe48eb4 :: false

2022-06-17 22:35:19 | [Mutex] waiting for: [received:nodes:3cd8aa74-4440-4b43-8f3d-6641084fb8fa:localhost]

2022-06-17 22:35:19 | [Mutex] received everything.

2022-06-17 22:35:19 | [Mutex] isItemNotified: received:node:3cd8aa74-4440-4b43-8f3d-6641084fb8fa:localhost:node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4:Node 23e4c2ed-9dc4-4746-bb15-881d8fe48eb4 :: false

publishItemsToNodes 0.099s
2022-06-17 22:35:16 |

2022-06-17 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:16 | ------------------------------------

2022-06-17 22:35:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4",
    "entry": "<test>item-7e3f44c2-75f7-43bf-ac11-e83d649798e5</test>",
    "item-id": "item-7e3f44c2-75f7-43bf-ac11-e83d649798e5"
}

2022-06-17 22:35:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e3f44c2-75f7-43bf-ac11-e83d649798e5"
}

2022-06-17 22:35:16 | [Mutex] waiting for: [published:item:notifieditem-7e3f44c2-75f7-43bf-ac11-e83d649798e5:admin@test-domain.com]

2022-06-17 22:35:16 | [Mutex] received everything.

2022-06-17 22:35:16 | [Mutex] isItemNotified: published:item:notifieditem-7e3f44c2-75f7-43bf-ac11-e83d649798e5:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2022-06-17 22:35:17 |

2022-06-17 22:35:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:17 | ------------------------------------

2022-06-17 22:35:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4",
    "item-id": "item-7e3f44c2-75f7-43bf-ac11-e83d649798e5"
}

2022-06-17 22:35:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e3f44c2-75f7-43bf-ac11-e83d649798e5"
}

2022-06-17 22:35:17 | [Mutex] waiting for: [retracted:item:notifieditem-7e3f44c2-75f7-43bf-ac11-e83d649798e5:admin@test-domain.com]

2022-06-17 22:35:17 | [Mutex] received everything.

2022-06-17 22:35:17 | [Mutex] isItemNotified: retracted:item:notifieditem-7e3f44c2-75f7-43bf-ac11-e83d649798e5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.045s
2022-06-17 22:35:16 |

2022-06-17 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:16 | ------------------------------------

2022-06-17 22:35:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4",
    "item-id": "item-7e3f44c2-75f7-43bf-ac11-e83d649798e5"
}

2022-06-17 22:35:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4",
    "item-id": "item-7e3f44c2-75f7-43bf-ac11-e83d649798e5",
    "item": [
        "<item id=\"item-7e3f44c2-75f7-43bf-ac11-e83d649798e5\"><test>item-7e3f44c2-75f7-43bf-ac11-e83d649798e5</test></item>"
    ]
}

2022-06-17 22:35:17 | [Mutex] notify: [retrieved:item:item-7e3f44c2-75f7-43bf-ac11-e83d649798e5:payload-matches:true:localhost]

2022-06-17 22:35:17 | [Mutex] received everything.

2022-06-17 22:35:17 | [Mutex] isItemNotified: retrieved:item:item-7e3f44c2-75f7-43bf-ac11-e83d649798e5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-06-17 22:35:17 |

2022-06-17 22:35:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:17 | ------------------------------------

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

2022-06-17 22:35:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-50e48634-76fe-45f8-8b54-50ad4005de56",
        "node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-17 22:35:17 |

2022-06-17 22:35:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:17 | ------------------------------------

2022-06-17 22:35:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4)"
}

2022-06-17 22:35:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2022-06-17 22:35:15 |

2022-06-17 22:35:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:15 | ------------------------------------

2022-06-17 22:35:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-06-17 22:35:17 |

2022-06-17 22:35:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 22:35:17 | ------------------------------------

2022-06-17 22:35:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-23e4c2ed-9dc4-4746-bb15-881d8fe48eb4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-17 22:35:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}