Generated by TestNG with ReportNG at 22:14 PDT on Wednesday 24 March 2021
root@87f6aca6b6f2 / 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.043s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2021-03-24 22:29:55 |

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

2021-03-24 22:29:55 | ------------------------------------

2021-03-24 22:29:55 | [Mutex] waiting for: [configured:node:node-110152c7-b282-4343-9fe9-4dbd4a76e7be:node-e7d56307-d221-4821-946e-e65a05b90715]

2021-03-24 22:29:55 | [Mutex] received everything.

2021-03-24 22:29:55 | [Mutex] isItemNotified: configured:node:node-110152c7-b282-4343-9fe9-4dbd4a76e7be:node-e7d56307-d221-4821-946e-e65a05b90715 :: true

2021-03-24 22:29:56 | [Mutex] waiting for: [received:nodes:a2edfbbc-c34f-4e79-a7c7-903dd115c228:localhost]

2021-03-24 22:29:56 | [Mutex] waiting for: [received:nodes:a2edfbbc-c34f-4e79-a7c7-903dd115c228:localhost]

2021-03-24 22:29:56 | [Mutex] received everything.

2021-03-24 22:29:56 | [Mutex] isItemNotified: received:node:a2edfbbc-c34f-4e79-a7c7-903dd115c228:localhost:node-110152c7-b282-4343-9fe9-4dbd4a76e7be:Node 110152c7-b282-4343-9fe9-4dbd4a76e7be :: true

2021-03-24 22:29:56 | [Mutex] waiting for: [received:nodes:734ba7ba-1198-479c-a5fd-f42498d5da03:localhost]

2021-03-24 22:29:56 | [Mutex] waiting for: [received:nodes:734ba7ba-1198-479c-a5fd-f42498d5da03:localhost]

2021-03-24 22:29:56 | [Mutex] waiting for: [received:nodes:734ba7ba-1198-479c-a5fd-f42498d5da03:localhost]

2021-03-24 22:29:56 | [Mutex] received everything.

2021-03-24 22:29:56 | [Mutex] isItemNotified: received:node:734ba7ba-1198-479c-a5fd-f42498d5da03:localhost:node-110152c7-b282-4343-9fe9-4dbd4a76e7be:Node 110152c7-b282-4343-9fe9-4dbd4a76e7be :: false

createNodes 1.609s
2021-03-24 22:29:53 |

2021-03-24 22:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:29:53 | ------------------------------------

2021-03-24 22:29:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-110152c7-b282-4343-9fe9-4dbd4a76e7be",
    "pubsub#title": "Node 110152c7-b282-4343-9fe9-4dbd4a76e7be"
}

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

2021-03-24 22:29:54 | [Mutex] waiting for: [received:nodes:a2775db4-885c-427c-8209-f6f03699180c:localhost]

2021-03-24 22:29:54 | [Mutex] waiting for: [received:nodes:a2775db4-885c-427c-8209-f6f03699180c:localhost]

2021-03-24 22:29:54 | [Mutex] received everything.

2021-03-24 22:29:54 | [Mutex] isItemNotified: received:node:a2775db4-885c-427c-8209-f6f03699180c:localhost:node-110152c7-b282-4343-9fe9-4dbd4a76e7be:Node 110152c7-b282-4343-9fe9-4dbd4a76e7be :: true

createSubnodes 1.029s
2021-03-24 22:29:54 |

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

2021-03-24 22:29:54 | ------------------------------------

2021-03-24 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-e7d56307-d221-4821-946e-e65a05b90715",
    "pubsub#title": "Node e7d56307-d221-4821-946e-e65a05b90715"
}

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

2021-03-24 22:29:55 | [Mutex] waiting for: [received:nodes:741f2913-72a5-4da0-874d-07f1cf3554d2:localhost]

2021-03-24 22:29:55 | [Mutex] received everything.

2021-03-24 22:29:55 | [Mutex] isItemNotified: received:node:741f2913-72a5-4da0-874d-07f1cf3554d2:localhost:node-e7d56307-d221-4821-946e-e65a05b90715:Node e7d56307-d221-4821-946e-e65a05b90715 :: true

deleteNodes 1.029s
2021-03-24 22:30:00 |

2021-03-24 22:30:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:30:00 | ------------------------------------

2021-03-24 22:30:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e7d56307-d221-4821-946e-e65a05b90715"
}

2021-03-24 22:30:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-24 22:30:01 | [Mutex] waiting for: [received:nodes:16c20afe-c94d-4f53-9a73-7f1cfbce0134:localhost]

2021-03-24 22:30:01 | [Mutex] received everything.

2021-03-24 22:30:01 | [Mutex] isItemNotified: received:node:16c20afe-c94d-4f53-9a73-7f1cfbce0134:localhost:node-e7d56307-d221-4821-946e-e65a05b90715:Node e7d56307-d221-4821-946e-e65a05b90715 :: false

deleteSubnodes 1.031s
2021-03-24 22:29:59 |

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

2021-03-24 22:29:59 | ------------------------------------

2021-03-24 22:29:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-110152c7-b282-4343-9fe9-4dbd4a76e7be"
}

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

2021-03-24 22:30:00 | [Mutex] waiting for: [received:nodes:6681050f-60d8-44e6-94d5-34ead1872a50:localhost]

2021-03-24 22:30:00 | [Mutex] waiting for: [received:nodes:6681050f-60d8-44e6-94d5-34ead1872a50:localhost]

2021-03-24 22:30:00 | [Mutex] received everything.

2021-03-24 22:30:00 | [Mutex] isItemNotified: received:node:6681050f-60d8-44e6-94d5-34ead1872a50:localhost:node-110152c7-b282-4343-9fe9-4dbd4a76e7be:Node 110152c7-b282-4343-9fe9-4dbd4a76e7be :: false

2021-03-24 22:30:00 | [Mutex] waiting for: [received:nodes:df50e052-b7fa-4da4-afd0-c4c9aa01a866:localhost]

2021-03-24 22:30:00 | [Mutex] received everything.

2021-03-24 22:30:00 | [Mutex] isItemNotified: received:node:df50e052-b7fa-4da4-afd0-c4c9aa01a866:localhost:node-110152c7-b282-4343-9fe9-4dbd4a76e7be:Node 110152c7-b282-4343-9fe9-4dbd4a76e7be :: false

publishItemsToNodes 0.042s
2021-03-24 22:29:58 |

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

2021-03-24 22:29:58 | ------------------------------------

2021-03-24 22:29:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-110152c7-b282-4343-9fe9-4dbd4a76e7be",
    "entry": "<test>item-3027a159-dde7-48f4-a04b-5ac28c16725a</test>",
    "item-id": "item-3027a159-dde7-48f4-a04b-5ac28c16725a"
}

2021-03-24 22:29:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3027a159-dde7-48f4-a04b-5ac28c16725a"
}

2021-03-24 22:29:58 | [Mutex] waiting for: [published:item:notifieditem-3027a159-dde7-48f4-a04b-5ac28c16725a:admin@test-domain.com]

2021-03-24 22:29:58 | [Mutex] received everything.

2021-03-24 22:29:58 | [Mutex] isItemNotified: published:item:notifieditem-3027a159-dde7-48f4-a04b-5ac28c16725a:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2021-03-24 22:29:58 |

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

2021-03-24 22:29:58 | ------------------------------------

2021-03-24 22:29:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-110152c7-b282-4343-9fe9-4dbd4a76e7be",
    "item-id": "item-3027a159-dde7-48f4-a04b-5ac28c16725a"
}

2021-03-24 22:29:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3027a159-dde7-48f4-a04b-5ac28c16725a"
}

2021-03-24 22:29:58 | [Mutex] received everything.

2021-03-24 22:29:58 | [Mutex] isItemNotified: retracted:item:notifieditem-3027a159-dde7-48f4-a04b-5ac28c16725a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.116s
2021-03-24 22:29:58 |

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

2021-03-24 22:29:58 | ------------------------------------

2021-03-24 22:29:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-110152c7-b282-4343-9fe9-4dbd4a76e7be",
    "item-id": "item-3027a159-dde7-48f4-a04b-5ac28c16725a"
}

2021-03-24 22:29:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-110152c7-b282-4343-9fe9-4dbd4a76e7be",
    "item-id": "item-3027a159-dde7-48f4-a04b-5ac28c16725a",
    "item": [
        "<item id=\"item-3027a159-dde7-48f4-a04b-5ac28c16725a\"><test>item-3027a159-dde7-48f4-a04b-5ac28c16725a</test></item>"
    ]
}

2021-03-24 22:29:58 | [Mutex] notify: [retrieved:item:item-3027a159-dde7-48f4-a04b-5ac28c16725a:payload-matches:true:localhost]

2021-03-24 22:29:58 | [Mutex] received everything.

2021-03-24 22:29:58 | [Mutex] isItemNotified: retrieved:item:item-3027a159-dde7-48f4-a04b-5ac28c16725a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-03-24 22:29:58 |

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

2021-03-24 22:29:58 | ------------------------------------

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

2021-03-24 22:29:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e7d56307-d221-4821-946e-e65a05b90715",
        "test",
        "node-110152c7-b282-4343-9fe9-4dbd4a76e7be"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-03-24 22:29:58 |

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

2021-03-24 22:29:58 | ------------------------------------

2021-03-24 22:29:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-110152c7-b282-4343-9fe9-4dbd4a76e7be)"
}

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

subscribeNodes 1.013s
2021-03-24 22:29:56 |

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

2021-03-24 22:29:56 | ------------------------------------

2021-03-24 22:29:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-110152c7-b282-4343-9fe9-4dbd4a76e7be",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2021-03-24 22:29:58 |

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

2021-03-24 22:29:58 | ------------------------------------

2021-03-24 22:29:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-110152c7-b282-4343-9fe9-4dbd4a76e7be",
    "jids": [
        "admin@test-domain.com"
    ]
}

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