Generated by TestNG with ReportNG at 22:42 PDT on Wednesday 28 April 2021
root@785cf647a4ab / 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.205s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.129s
2021-04-28 22:59:41 |

2021-04-28 22:59:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:41 | ------------------------------------

2021-04-28 22:59:41 | [Mutex] waiting for: [configured:node:node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524:node-1be44df9-2d0d-48f1-b0d9-7cbf816759df]

2021-04-28 22:59:41 | [Mutex] received everything.

2021-04-28 22:59:41 | [Mutex] isItemNotified: configured:node:node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524:node-1be44df9-2d0d-48f1-b0d9-7cbf816759df :: true

2021-04-28 22:59:42 | [Mutex] waiting for: [received:nodes:e0d6ef55-0782-46cf-bd6b-6a65166a4b8d:localhost]

2021-04-28 22:59:42 | [Mutex] received everything.

2021-04-28 22:59:42 | [Mutex] isItemNotified: received:node:e0d6ef55-0782-46cf-bd6b-6a65166a4b8d:localhost:node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524:Node 28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524 :: true

2021-04-28 22:59:42 | [Mutex] waiting for: [received:nodes:c29fe6bb-4039-4153-ac28-1e1d26b1d512:localhost]

2021-04-28 22:59:42 | [Mutex] received everything.

2021-04-28 22:59:42 | [Mutex] isItemNotified: received:node:c29fe6bb-4039-4153-ac28-1e1d26b1d512:localhost:node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524:Node 28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524 :: false

createNodes 1.676s
2021-04-28 22:59:39 |

2021-04-28 22:59:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:39 | ------------------------------------

2021-04-28 22:59:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524",
    "pubsub#title": "Node 28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524"
}

2021-04-28 22:59:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-28 22:59:40 | [Mutex] waiting for: [received:nodes:c1540c11-b767-45c0-88e1-fc359ce6725c:localhost]

2021-04-28 22:59:40 | [Mutex] received everything.

2021-04-28 22:59:40 | [Mutex] isItemNotified: received:node:c1540c11-b767-45c0-88e1-fc359ce6725c:localhost:node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524:Node 28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524 :: true

createSubnodes 1.034s
2021-04-28 22:59:40 |

2021-04-28 22:59:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:40 | ------------------------------------

2021-04-28 22:59:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1be44df9-2d0d-48f1-b0d9-7cbf816759df",
    "pubsub#title": "Node 1be44df9-2d0d-48f1-b0d9-7cbf816759df"
}

2021-04-28 22:59:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-28 22:59:41 | [Mutex] waiting for: [received:nodes:7f6297c0-b551-4dd0-b4b6-23d3b9633cd0:localhost]

2021-04-28 22:59:41 | [Mutex] received everything.

2021-04-28 22:59:41 | [Mutex] isItemNotified: received:node:7f6297c0-b551-4dd0-b4b6-23d3b9633cd0:localhost:node-1be44df9-2d0d-48f1-b0d9-7cbf816759df:Node 1be44df9-2d0d-48f1-b0d9-7cbf816759df :: true

deleteNodes 1.034s
2021-04-28 22:59:46 |

2021-04-28 22:59:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:46 | ------------------------------------

2021-04-28 22:59:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1be44df9-2d0d-48f1-b0d9-7cbf816759df"
}

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

2021-04-28 22:59:47 | [Mutex] waiting for: [received:nodes:32f8de60-0240-4cc6-8ffb-790f051fe7d1:localhost]

2021-04-28 22:59:47 | [Mutex] received everything.

2021-04-28 22:59:47 | [Mutex] isItemNotified: received:node:32f8de60-0240-4cc6-8ffb-790f051fe7d1:localhost:node-1be44df9-2d0d-48f1-b0d9-7cbf816759df:Node 1be44df9-2d0d-48f1-b0d9-7cbf816759df :: false

deleteSubnodes 1.037s
2021-04-28 22:59:45 |

2021-04-28 22:59:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:45 | ------------------------------------

2021-04-28 22:59:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524"
}

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

2021-04-28 22:59:46 | [Mutex] waiting for: [received:nodes:c49561c1-b054-4728-9208-aebb2ca535ce:localhost]

2021-04-28 22:59:46 | [Mutex] received everything.

2021-04-28 22:59:46 | [Mutex] isItemNotified: received:node:c49561c1-b054-4728-9208-aebb2ca535ce:localhost:node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524:Node 28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524 :: false

2021-04-28 22:59:46 | [Mutex] waiting for: [received:nodes:f49fa730-728e-4b15-972b-ba183b43cdeb:localhost]

2021-04-28 22:59:46 | [Mutex] received everything.

2021-04-28 22:59:46 | [Mutex] isItemNotified: received:node:f49fa730-728e-4b15-972b-ba183b43cdeb:localhost:node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524:Node 28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524 :: false

publishItemsToNodes 0.062s
2021-04-28 22:59:43 |

2021-04-28 22:59:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:43 | ------------------------------------

2021-04-28 22:59:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524",
    "entry": "<test>item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd</test>",
    "item-id": "item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd"
}

2021-04-28 22:59:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd"
}

2021-04-28 22:59:43 | [Mutex] waiting for: [published:item:notifieditem-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd:admin@test-domain.com]

2021-04-28 22:59:43 | [Mutex] received everything.

2021-04-28 22:59:43 | [Mutex] isItemNotified: published:item:notifieditem-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd:admin@test-domain.com :: true

retractItemsFromNodes 0.075s
2021-04-28 22:59:44 |

2021-04-28 22:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:44 | ------------------------------------

2021-04-28 22:59:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524",
    "item-id": "item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd"
}

2021-04-28 22:59:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd"
}

2021-04-28 22:59:44 | [Mutex] received everything.

2021-04-28 22:59:44 | [Mutex] isItemNotified: retracted:item:notifieditem-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2021-04-28 22:59:43 |

2021-04-28 22:59:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:43 | ------------------------------------

2021-04-28 22:59:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524",
    "item-id": "item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd"
}

2021-04-28 22:59:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524",
    "item-id": "item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd",
    "item": [
        "<item id=\"item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd\"><test>item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd</test></item>"
    ]
}

2021-04-28 22:59:44 | [Mutex] notify: [retrieved:item:item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd:payload-matches:true:localhost]

2021-04-28 22:59:44 | [Mutex] received everything.

2021-04-28 22:59:44 | [Mutex] isItemNotified: retrieved:item:item-d6f8dcec-7c04-4b2c-a1cd-6b74060412cd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2021-04-28 22:59:44 |

2021-04-28 22:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:44 | ------------------------------------

2021-04-28 22:59:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-28 22:59:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1be44df9-2d0d-48f1-b0d9-7cbf816759df",
        "node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-28 22:59:44 |

2021-04-28 22:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:44 | ------------------------------------

2021-04-28 22:59:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524)"
}

2021-04-28 22:59:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-04-28 22:59:42 |

2021-04-28 22:59:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:42 | ------------------------------------

2021-04-28 22:59:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-28 22:59:42 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-04-28 22:59:44 |

2021-04-28 22:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:59:44 | ------------------------------------

2021-04-28 22:59:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-28cdcf0e-37bd-4d4c-b8f6-0dd8803bb524",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-28 22:59:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}