Generated by TestNG with ReportNG at 22:18 PDT on Sunday 24 July 2022
root@f9c07ffec79b / 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.660s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2022-07-24 22:32:40 |

2022-07-24 22:32:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:40 | ------------------------------------

2022-07-24 22:32:40 | [Mutex] waiting for: [configured:node:node-ad0801cb-c02b-4972-bb0f-404f5c729ef6:node-897cafa3-719d-42ea-9207-f33798170f38]

2022-07-24 22:32:40 | [Mutex] received everything.

2022-07-24 22:32:40 | [Mutex] isItemNotified: configured:node:node-ad0801cb-c02b-4972-bb0f-404f5c729ef6:node-897cafa3-719d-42ea-9207-f33798170f38 :: true

2022-07-24 22:32:41 | [Mutex] waiting for: [received:nodes:03557683-51d6-4f94-badc-80d1735c878c:localhost]

2022-07-24 22:32:41 | [Mutex] received everything.

2022-07-24 22:32:41 | [Mutex] isItemNotified: received:node:03557683-51d6-4f94-badc-80d1735c878c:localhost:node-ad0801cb-c02b-4972-bb0f-404f5c729ef6:Node ad0801cb-c02b-4972-bb0f-404f5c729ef6 :: true

2022-07-24 22:32:41 | [Mutex] waiting for: [received:nodes:d71e91d7-6d57-4f79-8367-5baf74b5b6fb:localhost]

2022-07-24 22:32:41 | [Mutex] received everything.

2022-07-24 22:32:41 | [Mutex] isItemNotified: received:node:d71e91d7-6d57-4f79-8367-5baf74b5b6fb:localhost:node-ad0801cb-c02b-4972-bb0f-404f5c729ef6:Node ad0801cb-c02b-4972-bb0f-404f5c729ef6 :: false

createNodes 1.565s
2022-07-24 22:32:37 |

2022-07-24 22:32:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:37 | ------------------------------------

2022-07-24 22:32:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ad0801cb-c02b-4972-bb0f-404f5c729ef6",
    "pubsub#title": "Node ad0801cb-c02b-4972-bb0f-404f5c729ef6"
}

2022-07-24 22:32:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-24 22:32:39 | [Mutex] received everything.

2022-07-24 22:32:39 | [Mutex] isItemNotified: received:node:691bcf72-35b4-4782-a4ba-a64124f66b4c:localhost:node-ad0801cb-c02b-4972-bb0f-404f5c729ef6:Node ad0801cb-c02b-4972-bb0f-404f5c729ef6 :: true

createSubnodes 1.024s
2022-07-24 22:32:39 |

2022-07-24 22:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:39 | ------------------------------------

2022-07-24 22:32:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-897cafa3-719d-42ea-9207-f33798170f38",
    "pubsub#title": "Node 897cafa3-719d-42ea-9207-f33798170f38"
}

2022-07-24 22:32:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-24 22:32:40 | [Mutex] waiting for: [received:nodes:513796be-f94e-41d3-a232-3b4d8a89e544:localhost]

2022-07-24 22:32:40 | [Mutex] received everything.

2022-07-24 22:32:40 | [Mutex] isItemNotified: received:node:513796be-f94e-41d3-a232-3b4d8a89e544:localhost:node-897cafa3-719d-42ea-9207-f33798170f38:Node 897cafa3-719d-42ea-9207-f33798170f38 :: true

deleteNodes 1.022s
2022-07-24 22:32:44 |

2022-07-24 22:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:44 | ------------------------------------

2022-07-24 22:32:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-897cafa3-719d-42ea-9207-f33798170f38"
}

2022-07-24 22:32:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-24 22:32:46 | [Mutex] waiting for: [received:nodes:b8e7597f-ae6d-4235-b074-6bf214bb4ad4:localhost]

2022-07-24 22:32:46 | [Mutex] received everything.

2022-07-24 22:32:46 | [Mutex] isItemNotified: received:node:b8e7597f-ae6d-4235-b074-6bf214bb4ad4:localhost:node-897cafa3-719d-42ea-9207-f33798170f38:Node 897cafa3-719d-42ea-9207-f33798170f38 :: false

deleteSubnodes 1.030s
2022-07-24 22:32:43 |

2022-07-24 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:43 | ------------------------------------

2022-07-24 22:32:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ad0801cb-c02b-4972-bb0f-404f5c729ef6"
}

2022-07-24 22:32:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-24 22:32:44 | [Mutex] waiting for: [received:nodes:54e843a4-040c-4314-8024-f885d3f17dcc:localhost]

2022-07-24 22:32:44 | [Mutex] received everything.

2022-07-24 22:32:44 | [Mutex] isItemNotified: received:node:54e843a4-040c-4314-8024-f885d3f17dcc:localhost:node-ad0801cb-c02b-4972-bb0f-404f5c729ef6:Node ad0801cb-c02b-4972-bb0f-404f5c729ef6 :: false

2022-07-24 22:32:44 | [Mutex] waiting for: [received:nodes:f9081f4e-db87-4d52-af80-897e19121d6d:localhost]

2022-07-24 22:32:44 | [Mutex] received everything.

2022-07-24 22:32:44 | [Mutex] isItemNotified: received:node:f9081f4e-db87-4d52-af80-897e19121d6d:localhost:node-ad0801cb-c02b-4972-bb0f-404f5c729ef6:Node ad0801cb-c02b-4972-bb0f-404f5c729ef6 :: false

publishItemsToNodes 0.035s
2022-07-24 22:32:42 |

2022-07-24 22:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:42 | ------------------------------------

2022-07-24 22:32:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ad0801cb-c02b-4972-bb0f-404f5c729ef6",
    "entry": "<test>item-c86c7ee7-13bd-4add-b681-2adebf63aebb</test>",
    "item-id": "item-c86c7ee7-13bd-4add-b681-2adebf63aebb"
}

2022-07-24 22:32:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c86c7ee7-13bd-4add-b681-2adebf63aebb"
}

2022-07-24 22:32:42 | [Mutex] received everything.

2022-07-24 22:32:42 | [Mutex] isItemNotified: published:item:notifieditem-c86c7ee7-13bd-4add-b681-2adebf63aebb:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-24 22:32:42 |

2022-07-24 22:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:42 | ------------------------------------

2022-07-24 22:32:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ad0801cb-c02b-4972-bb0f-404f5c729ef6",
    "item-id": "item-c86c7ee7-13bd-4add-b681-2adebf63aebb"
}

2022-07-24 22:32:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c86c7ee7-13bd-4add-b681-2adebf63aebb"
}

2022-07-24 22:32:42 | [Mutex] received everything.

2022-07-24 22:32:42 | [Mutex] isItemNotified: retracted:item:notifieditem-c86c7ee7-13bd-4add-b681-2adebf63aebb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2022-07-24 22:32:42 |

2022-07-24 22:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:42 | ------------------------------------

2022-07-24 22:32:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ad0801cb-c02b-4972-bb0f-404f5c729ef6",
    "item-id": "item-c86c7ee7-13bd-4add-b681-2adebf63aebb"
}

2022-07-24 22:32:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ad0801cb-c02b-4972-bb0f-404f5c729ef6",
    "item-id": "item-c86c7ee7-13bd-4add-b681-2adebf63aebb",
    "item": [
        "<item id=\"item-c86c7ee7-13bd-4add-b681-2adebf63aebb\"><test>item-c86c7ee7-13bd-4add-b681-2adebf63aebb</test></item>"
    ]
}

2022-07-24 22:32:42 | [Mutex] notify: [retrieved:item:item-c86c7ee7-13bd-4add-b681-2adebf63aebb:payload-matches:true:localhost]

2022-07-24 22:32:42 | [Mutex] received everything.

2022-07-24 22:32:42 | [Mutex] isItemNotified: retrieved:item:item-c86c7ee7-13bd-4add-b681-2adebf63aebb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-07-24 22:32:42 |

2022-07-24 22:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:42 | ------------------------------------

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

2022-07-24 22:32:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-897cafa3-719d-42ea-9207-f33798170f38",
        "test",
        "node-ad0801cb-c02b-4972-bb0f-404f5c729ef6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-24 22:32:42 |

2022-07-24 22:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:42 | ------------------------------------

2022-07-24 22:32:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ad0801cb-c02b-4972-bb0f-404f5c729ef6)"
}

2022-07-24 22:32:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-07-24 22:32:41 |

2022-07-24 22:32:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:41 | ------------------------------------

2022-07-24 22:32:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ad0801cb-c02b-4972-bb0f-404f5c729ef6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.067s
2022-07-24 22:32:42 |

2022-07-24 22:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 22:32:42 | ------------------------------------

2022-07-24 22:32:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ad0801cb-c02b-4972-bb0f-404f5c729ef6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-24 22:32:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}