Generated by TestNG with ReportNG at 13:20 PDT on Monday 10 July 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.690s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2023-07-10 13:35:02 |

2023-07-10 13:35:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:02 | ------------------------------------

2023-07-10 13:35:02 | [Mutex] waiting for: [configured:node:node-621cfb6c-688f-46de-928b-67ff557a04fd:node-20ee9680-9797-4eb9-95a0-b6e35d80bc14]

2023-07-10 13:35:02 | [Mutex] received everything.

2023-07-10 13:35:02 | [Mutex] isItemNotified: configured:node:node-621cfb6c-688f-46de-928b-67ff557a04fd:node-20ee9680-9797-4eb9-95a0-b6e35d80bc14 :: true

2023-07-10 13:35:03 | [Mutex] waiting for: [received:nodes:cd804054-32cc-43e4-8349-d05a560283d3:localhost]

2023-07-10 13:35:03 | [Mutex] received everything.

2023-07-10 13:35:03 | [Mutex] isItemNotified: received:node:cd804054-32cc-43e4-8349-d05a560283d3:localhost:node-621cfb6c-688f-46de-928b-67ff557a04fd:Node 621cfb6c-688f-46de-928b-67ff557a04fd :: true

2023-07-10 13:35:03 | [Mutex] waiting for: [received:nodes:8fa97fb2-b026-423e-b670-49f787afc9a5:localhost]

2023-07-10 13:35:04 | [Mutex] waiting for: [received:nodes:8fa97fb2-b026-423e-b670-49f787afc9a5:localhost]

2023-07-10 13:35:04 | [Mutex] waiting for: [received:nodes:8fa97fb2-b026-423e-b670-49f787afc9a5:localhost]

2023-07-10 13:35:04 | [Mutex] received everything.

2023-07-10 13:35:04 | [Mutex] isItemNotified: received:node:8fa97fb2-b026-423e-b670-49f787afc9a5:localhost:node-621cfb6c-688f-46de-928b-67ff557a04fd:Node 621cfb6c-688f-46de-928b-67ff557a04fd :: false

createNodes 1.666s
2023-07-10 13:35:00 |

2023-07-10 13:35:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:00 | ------------------------------------

2023-07-10 13:35:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-621cfb6c-688f-46de-928b-67ff557a04fd",
    "pubsub#title": "Node 621cfb6c-688f-46de-928b-67ff557a04fd"
}

2023-07-10 13:35:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 13:35:01 | [Mutex] waiting for: [received:nodes:54fbc543-375f-40f2-91c5-13e35174f22a:localhost]

2023-07-10 13:35:01 | [Mutex] waiting for: [received:nodes:54fbc543-375f-40f2-91c5-13e35174f22a:localhost]

2023-07-10 13:35:01 | [Mutex] waiting for: [received:nodes:54fbc543-375f-40f2-91c5-13e35174f22a:localhost]

2023-07-10 13:35:01 | [Mutex] waiting for: [received:nodes:54fbc543-375f-40f2-91c5-13e35174f22a:localhost]

2023-07-10 13:35:01 | [Mutex] received everything.

2023-07-10 13:35:01 | [Mutex] isItemNotified: received:node:54fbc543-375f-40f2-91c5-13e35174f22a:localhost:node-621cfb6c-688f-46de-928b-67ff557a04fd:Node 621cfb6c-688f-46de-928b-67ff557a04fd :: true

createSubnodes 1.023s
2023-07-10 13:35:01 |

2023-07-10 13:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:01 | ------------------------------------

2023-07-10 13:35:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-20ee9680-9797-4eb9-95a0-b6e35d80bc14",
    "pubsub#title": "Node 20ee9680-9797-4eb9-95a0-b6e35d80bc14"
}

2023-07-10 13:35:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 13:35:02 | [Mutex] waiting for: [received:nodes:94d24a41-3c8d-449e-93cb-22042b3f066c:localhost]

2023-07-10 13:35:02 | [Mutex] waiting for: [received:nodes:94d24a41-3c8d-449e-93cb-22042b3f066c:localhost]

2023-07-10 13:35:02 | [Mutex] waiting for: [received:nodes:94d24a41-3c8d-449e-93cb-22042b3f066c:localhost]

2023-07-10 13:35:02 | [Mutex] waiting for: [received:nodes:94d24a41-3c8d-449e-93cb-22042b3f066c:localhost]

2023-07-10 13:35:02 | [Mutex] received everything.

2023-07-10 13:35:02 | [Mutex] isItemNotified: received:node:94d24a41-3c8d-449e-93cb-22042b3f066c:localhost:node-20ee9680-9797-4eb9-95a0-b6e35d80bc14:Node 20ee9680-9797-4eb9-95a0-b6e35d80bc14 :: true

deleteNodes 1.020s
2023-07-10 13:35:07 |

2023-07-10 13:35:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:07 | ------------------------------------

2023-07-10 13:35:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20ee9680-9797-4eb9-95a0-b6e35d80bc14"
}

2023-07-10 13:35:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 13:35:08 | [Mutex] waiting for: [received:nodes:7e5027c4-16da-43fa-b80a-0d6171f80f2e:localhost]

2023-07-10 13:35:08 | [Mutex] waiting for: [received:nodes:7e5027c4-16da-43fa-b80a-0d6171f80f2e:localhost]

2023-07-10 13:35:08 | [Mutex] waiting for: [received:nodes:7e5027c4-16da-43fa-b80a-0d6171f80f2e:localhost]

2023-07-10 13:35:08 | [Mutex] received everything.

2023-07-10 13:35:08 | [Mutex] isItemNotified: received:node:7e5027c4-16da-43fa-b80a-0d6171f80f2e:localhost:node-20ee9680-9797-4eb9-95a0-b6e35d80bc14:Node 20ee9680-9797-4eb9-95a0-b6e35d80bc14 :: false

deleteSubnodes 1.023s
2023-07-10 13:35:06 |

2023-07-10 13:35:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:06 | ------------------------------------

2023-07-10 13:35:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-621cfb6c-688f-46de-928b-67ff557a04fd"
}

2023-07-10 13:35:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 13:35:07 | [Mutex] waiting for: [received:nodes:cb4ec51f-f6e9-4b4c-9068-f721252fb589:localhost]

2023-07-10 13:35:07 | [Mutex] waiting for: [received:nodes:cb4ec51f-f6e9-4b4c-9068-f721252fb589:localhost]

2023-07-10 13:35:07 | [Mutex] waiting for: [received:nodes:cb4ec51f-f6e9-4b4c-9068-f721252fb589:localhost]

2023-07-10 13:35:07 | [Mutex] waiting for: [received:nodes:cb4ec51f-f6e9-4b4c-9068-f721252fb589:localhost]

2023-07-10 13:35:07 | [Mutex] received everything.

2023-07-10 13:35:07 | [Mutex] isItemNotified: received:node:cb4ec51f-f6e9-4b4c-9068-f721252fb589:localhost:node-621cfb6c-688f-46de-928b-67ff557a04fd:Node 621cfb6c-688f-46de-928b-67ff557a04fd :: false

2023-07-10 13:35:07 | [Mutex] waiting for: [received:nodes:b84b013d-7d4a-4ea9-8a1a-9613f152388b:localhost]

2023-07-10 13:35:07 | [Mutex] received everything.

2023-07-10 13:35:07 | [Mutex] isItemNotified: received:node:b84b013d-7d4a-4ea9-8a1a-9613f152388b:localhost:node-621cfb6c-688f-46de-928b-67ff557a04fd:Node 621cfb6c-688f-46de-928b-67ff557a04fd :: false

publishItemsToNodes 0.036s
2023-07-10 13:35:05 |

2023-07-10 13:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:05 | ------------------------------------

2023-07-10 13:35:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-621cfb6c-688f-46de-928b-67ff557a04fd",
    "entry": "<test>item-cbbd5d21-d423-447b-a854-40ed7f5339df</test>",
    "item-id": "item-cbbd5d21-d423-447b-a854-40ed7f5339df"
}

2023-07-10 13:35:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cbbd5d21-d423-447b-a854-40ed7f5339df"
}

2023-07-10 13:35:05 | [Mutex] received everything.

2023-07-10 13:35:05 | [Mutex] isItemNotified: published:item:notifieditem-cbbd5d21-d423-447b-a854-40ed7f5339df:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2023-07-10 13:35:05 |

2023-07-10 13:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:05 | ------------------------------------

2023-07-10 13:35:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-621cfb6c-688f-46de-928b-67ff557a04fd",
    "item-id": "item-cbbd5d21-d423-447b-a854-40ed7f5339df"
}

2023-07-10 13:35:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cbbd5d21-d423-447b-a854-40ed7f5339df"
}

2023-07-10 13:35:05 | [Mutex] waiting for: [retracted:item:notifieditem-cbbd5d21-d423-447b-a854-40ed7f5339df:admin@test-domain.com]

2023-07-10 13:35:05 | [Mutex] received everything.

2023-07-10 13:35:05 | [Mutex] isItemNotified: retracted:item:notifieditem-cbbd5d21-d423-447b-a854-40ed7f5339df:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2023-07-10 13:35:05 |

2023-07-10 13:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:05 | ------------------------------------

2023-07-10 13:35:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-621cfb6c-688f-46de-928b-67ff557a04fd",
    "item-id": "item-cbbd5d21-d423-447b-a854-40ed7f5339df"
}

2023-07-10 13:35:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-621cfb6c-688f-46de-928b-67ff557a04fd",
    "item-id": "item-cbbd5d21-d423-447b-a854-40ed7f5339df",
    "item": [
        "<item id=\"item-cbbd5d21-d423-447b-a854-40ed7f5339df\"><test>item-cbbd5d21-d423-447b-a854-40ed7f5339df</test></item>"
    ]
}

2023-07-10 13:35:05 | [Mutex] notify: [retrieved:item:item-cbbd5d21-d423-447b-a854-40ed7f5339df:payload-matches:true:localhost]

2023-07-10 13:35:05 | [Mutex] received everything.

2023-07-10 13:35:05 | [Mutex] isItemNotified: retrieved:item:item-cbbd5d21-d423-447b-a854-40ed7f5339df:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2023-07-10 13:35:05 |

2023-07-10 13:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:05 | ------------------------------------

2023-07-10 13:35:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-10 13:35:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-20ee9680-9797-4eb9-95a0-b6e35d80bc14",
        "node-621cfb6c-688f-46de-928b-67ff557a04fd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-07-10 13:35:05 |

2023-07-10 13:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:05 | ------------------------------------

2023-07-10 13:35:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-621cfb6c-688f-46de-928b-67ff557a04fd)"
}

2023-07-10 13:35:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2023-07-10 13:35:04 |

2023-07-10 13:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:04 | ------------------------------------

2023-07-10 13:35:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-621cfb6c-688f-46de-928b-67ff557a04fd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-10 13:35:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.049s
2023-07-10 13:35:05 |

2023-07-10 13:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:35:05 | ------------------------------------

2023-07-10 13:35:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-621cfb6c-688f-46de-928b-67ff557a04fd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-10 13:35:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}