Generated by TestNG with ReportNG at 22:14 PDT on Sunday 13 June 2021
root@b2c2a8eba6e6 / Java 11.0.8 (Ubuntu) / 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 : 9.017s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2021-06-13 22:29:55 |

2021-06-13 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:55 | ------------------------------------

2021-06-13 22:29:55 | [Mutex] waiting for: [configured:node:node-73ed7667-09db-43c8-a74d-410c426ab4ed:node-73fb931f-2ade-4228-950a-d73ba00c990e]

2021-06-13 22:29:55 | [Mutex] received everything.

2021-06-13 22:29:55 | [Mutex] isItemNotified: configured:node:node-73ed7667-09db-43c8-a74d-410c426ab4ed:node-73fb931f-2ade-4228-950a-d73ba00c990e :: true

2021-06-13 22:29:56 | [Mutex] waiting for: [received:nodes:0d1d99af-b0e1-4f95-a3e4-48d22b19c26c:localhost]

2021-06-13 22:29:56 | [Mutex] received everything.

2021-06-13 22:29:56 | [Mutex] isItemNotified: received:node:0d1d99af-b0e1-4f95-a3e4-48d22b19c26c:localhost:node-73ed7667-09db-43c8-a74d-410c426ab4ed:Node 73ed7667-09db-43c8-a74d-410c426ab4ed :: true

2021-06-13 22:29:56 | [Mutex] waiting for: [received:nodes:93fc51ae-9d24-4e6b-a456-55b709b3e09e:localhost]

2021-06-13 22:29:56 | [Mutex] waiting for: [received:nodes:93fc51ae-9d24-4e6b-a456-55b709b3e09e:localhost]

2021-06-13 22:29:56 | [Mutex] received everything.

2021-06-13 22:29:56 | [Mutex] isItemNotified: received:node:93fc51ae-9d24-4e6b-a456-55b709b3e09e:localhost:node-73ed7667-09db-43c8-a74d-410c426ab4ed:Node 73ed7667-09db-43c8-a74d-410c426ab4ed :: false

createNodes 1.702s
2021-06-13 22:29:52 |

2021-06-13 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:52 | ------------------------------------

2021-06-13 22:29:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-73ed7667-09db-43c8-a74d-410c426ab4ed",
    "pubsub#title": "Node 73ed7667-09db-43c8-a74d-410c426ab4ed"
}

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

2021-06-13 22:29:54 | [Mutex] waiting for: [received:nodes:92aabe63-0c7a-4a2e-8c81-26b55b4d6d17:localhost]

2021-06-13 22:29:54 | [Mutex] received everything.

2021-06-13 22:29:54 | [Mutex] isItemNotified: received:node:92aabe63-0c7a-4a2e-8c81-26b55b4d6d17:localhost:node-73ed7667-09db-43c8-a74d-410c426ab4ed:Node 73ed7667-09db-43c8-a74d-410c426ab4ed :: true

createSubnodes 1.027s
2021-06-13 22:29:54 |

2021-06-13 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:54 | ------------------------------------

2021-06-13 22:29:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-73fb931f-2ade-4228-950a-d73ba00c990e",
    "pubsub#title": "Node 73fb931f-2ade-4228-950a-d73ba00c990e"
}

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

2021-06-13 22:29:55 | [Mutex] waiting for: [received:nodes:f54c0d88-a522-4310-a479-f2810b28cabb:localhost]

2021-06-13 22:29:55 | [Mutex] received everything.

2021-06-13 22:29:55 | [Mutex] isItemNotified: received:node:f54c0d88-a522-4310-a479-f2810b28cabb:localhost:node-73fb931f-2ade-4228-950a-d73ba00c990e:Node 73fb931f-2ade-4228-950a-d73ba00c990e :: true

deleteNodes 1.018s
2021-06-13 22:29:59 |

2021-06-13 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:59 | ------------------------------------

2021-06-13 22:29:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-73fb931f-2ade-4228-950a-d73ba00c990e"
}

2021-06-13 22:29:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 22:30:00 | [Mutex] waiting for: [received:nodes:62e836ac-b3b8-4bfa-892f-2357d2ca5fc5:localhost]

2021-06-13 22:30:00 | [Mutex] received everything.

2021-06-13 22:30:00 | [Mutex] isItemNotified: received:node:62e836ac-b3b8-4bfa-892f-2357d2ca5fc5:localhost:node-73fb931f-2ade-4228-950a-d73ba00c990e:Node 73fb931f-2ade-4228-950a-d73ba00c990e :: false

deleteSubnodes 1.026s
2021-06-13 22:29:58 |

2021-06-13 22:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:58 | ------------------------------------

2021-06-13 22:29:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-73ed7667-09db-43c8-a74d-410c426ab4ed"
}

2021-06-13 22:29:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 22:29:59 | [Mutex] waiting for: [received:nodes:7f638d24-03c0-43cb-bf54-1abe5bb308b7:localhost]

2021-06-13 22:29:59 | [Mutex] waiting for: [received:nodes:7f638d24-03c0-43cb-bf54-1abe5bb308b7:localhost]

2021-06-13 22:29:59 | [Mutex] waiting for: [received:nodes:7f638d24-03c0-43cb-bf54-1abe5bb308b7:localhost]

2021-06-13 22:29:59 | [Mutex] received everything.

2021-06-13 22:29:59 | [Mutex] isItemNotified: received:node:7f638d24-03c0-43cb-bf54-1abe5bb308b7:localhost:node-73ed7667-09db-43c8-a74d-410c426ab4ed:Node 73ed7667-09db-43c8-a74d-410c426ab4ed :: false

2021-06-13 22:29:59 | [Mutex] waiting for: [received:nodes:dcb1342c-822b-4161-9c97-b13ab2b8fb68:localhost]

2021-06-13 22:29:59 | [Mutex] received everything.

2021-06-13 22:29:59 | [Mutex] isItemNotified: received:node:dcb1342c-822b-4161-9c97-b13ab2b8fb68:localhost:node-73ed7667-09db-43c8-a74d-410c426ab4ed:Node 73ed7667-09db-43c8-a74d-410c426ab4ed :: false

publishItemsToNodes 0.053s
2021-06-13 22:29:57 |

2021-06-13 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:57 | ------------------------------------

2021-06-13 22:29:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-73ed7667-09db-43c8-a74d-410c426ab4ed",
    "entry": "<test>item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a</test>",
    "item-id": "item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a"
}

2021-06-13 22:29:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a"
}

2021-06-13 22:29:57 | [Mutex] waiting for: [published:item:notifieditem-00c4424e-6a37-45b4-8cc1-af13c23d2d8a:admin@test-domain.com]

2021-06-13 22:29:57 | [Mutex] received everything.

2021-06-13 22:29:57 | [Mutex] isItemNotified: published:item:notifieditem-00c4424e-6a37-45b4-8cc1-af13c23d2d8a:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-06-13 22:29:57 |

2021-06-13 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:57 | ------------------------------------

2021-06-13 22:29:57 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-73ed7667-09db-43c8-a74d-410c426ab4ed",
    "item-id": "item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a"
}

2021-06-13 22:29:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a"
}

2021-06-13 22:29:57 | [Mutex] received everything.

2021-06-13 22:29:57 | [Mutex] isItemNotified: retracted:item:notifieditem-00c4424e-6a37-45b4-8cc1-af13c23d2d8a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.131s
2021-06-13 22:29:57 |

2021-06-13 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:57 | ------------------------------------

2021-06-13 22:29:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-73ed7667-09db-43c8-a74d-410c426ab4ed",
    "item-id": "item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a"
}

2021-06-13 22:29:57 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-73ed7667-09db-43c8-a74d-410c426ab4ed",
    "item-id": "item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a",
    "item": [
        "<item id=\"item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a\"><test>item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a</test></item>"
    ]
}

2021-06-13 22:29:57 | [Mutex] notify: [retrieved:item:item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a:payload-matches:true:localhost]

2021-06-13 22:29:57 | [Mutex] received everything.

2021-06-13 22:29:57 | [Mutex] isItemNotified: retrieved:item:item-00c4424e-6a37-45b4-8cc1-af13c23d2d8a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-06-13 22:29:57 |

2021-06-13 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:57 | ------------------------------------

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

2021-06-13 22:29:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-73fb931f-2ade-4228-950a-d73ba00c990e",
        "node-73ed7667-09db-43c8-a74d-410c426ab4ed",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-06-13 22:29:57 |

2021-06-13 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:57 | ------------------------------------

2021-06-13 22:29:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-73ed7667-09db-43c8-a74d-410c426ab4ed)"
}

2021-06-13 22:29:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-06-13 22:29:56 |

2021-06-13 22:29:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:56 | ------------------------------------

2021-06-13 22:29:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-73ed7667-09db-43c8-a74d-410c426ab4ed",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-13 22:29:56 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2021-06-13 22:29:57 |

2021-06-13 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 22:29:57 | ------------------------------------

2021-06-13 22:29:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-73ed7667-09db-43c8-a74d-410c426ab4ed",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-13 22:29:57 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}