Generated by TestNG with ReportNG at 07:31 PDT on Friday 25 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.055s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2021-06-25 07:48:15 |

2021-06-25 07:48:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:15 | ------------------------------------

2021-06-25 07:48:15 | [Mutex] waiting for: [configured:node:node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2:node-2dc30ea4-85c6-4683-b55f-410c691005c7]

2021-06-25 07:48:15 | [Mutex] received everything.

2021-06-25 07:48:15 | [Mutex] isItemNotified: configured:node:node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2:node-2dc30ea4-85c6-4683-b55f-410c691005c7 :: true

2021-06-25 07:48:16 | [Mutex] waiting for: [received:nodes:c1147040-ff10-4352-bea9-f60cd6776139:localhost]

2021-06-25 07:48:16 | [Mutex] received everything.

2021-06-25 07:48:16 | [Mutex] isItemNotified: received:node:c1147040-ff10-4352-bea9-f60cd6776139:localhost:node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2:Node 31f7b6c4-e609-4fb4-9c13-3d818b588cb2 :: true

2021-06-25 07:48:16 | [Mutex] waiting for: [received:nodes:a1d6d7d0-47a6-4008-b4eb-4123d11e3315:localhost]

2021-06-25 07:48:16 | [Mutex] received everything.

2021-06-25 07:48:16 | [Mutex] isItemNotified: received:node:a1d6d7d0-47a6-4008-b4eb-4123d11e3315:localhost:node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2:Node 31f7b6c4-e609-4fb4-9c13-3d818b588cb2 :: false

createNodes 1.619s
2021-06-25 07:48:12 |

2021-06-25 07:48:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:12 | ------------------------------------

2021-06-25 07:48:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2",
    "pubsub#title": "Node 31f7b6c4-e609-4fb4-9c13-3d818b588cb2"
}

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

2021-06-25 07:48:14 | [Mutex] waiting for: [received:nodes:75baa1c6-1b6b-42b6-98dd-fbb2fe3d81ee:localhost]

2021-06-25 07:48:14 | [Mutex] received everything.

2021-06-25 07:48:14 | [Mutex] isItemNotified: received:node:75baa1c6-1b6b-42b6-98dd-fbb2fe3d81ee:localhost:node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2:Node 31f7b6c4-e609-4fb4-9c13-3d818b588cb2 :: true

createSubnodes 1.031s
2021-06-25 07:48:14 |

2021-06-25 07:48:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:14 | ------------------------------------

2021-06-25 07:48:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2dc30ea4-85c6-4683-b55f-410c691005c7",
    "pubsub#title": "Node 2dc30ea4-85c6-4683-b55f-410c691005c7"
}

2021-06-25 07:48:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 07:48:15 | [Mutex] waiting for: [received:nodes:6334a88e-6af1-4544-aad7-ba66c6d6a7ad:localhost]

2021-06-25 07:48:15 | [Mutex] waiting for: [received:nodes:6334a88e-6af1-4544-aad7-ba66c6d6a7ad:localhost]

2021-06-25 07:48:15 | [Mutex] received everything.

2021-06-25 07:48:15 | [Mutex] isItemNotified: received:node:6334a88e-6af1-4544-aad7-ba66c6d6a7ad:localhost:node-2dc30ea4-85c6-4683-b55f-410c691005c7:Node 2dc30ea4-85c6-4683-b55f-410c691005c7 :: true

deleteNodes 1.026s
2021-06-25 07:48:20 |

2021-06-25 07:48:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:20 | ------------------------------------

2021-06-25 07:48:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2dc30ea4-85c6-4683-b55f-410c691005c7"
}

2021-06-25 07:48:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 07:48:21 | [Mutex] waiting for: [received:nodes:efee21b6-5ed6-470e-bbda-716a4e2f669b:localhost]

2021-06-25 07:48:21 | [Mutex] received everything.

2021-06-25 07:48:21 | [Mutex] isItemNotified: received:node:efee21b6-5ed6-470e-bbda-716a4e2f669b:localhost:node-2dc30ea4-85c6-4683-b55f-410c691005c7:Node 2dc30ea4-85c6-4683-b55f-410c691005c7 :: false

deleteSubnodes 1.027s
2021-06-25 07:48:19 |

2021-06-25 07:48:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:19 | ------------------------------------

2021-06-25 07:48:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2"
}

2021-06-25 07:48:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-25 07:48:20 | [Mutex] waiting for: [received:nodes:b34a3531-05ea-4126-8945-e35bcda985ee:localhost]

2021-06-25 07:48:20 | [Mutex] waiting for: [received:nodes:b34a3531-05ea-4126-8945-e35bcda985ee:localhost]

2021-06-25 07:48:20 | [Mutex] waiting for: [received:nodes:b34a3531-05ea-4126-8945-e35bcda985ee:localhost]

2021-06-25 07:48:20 | [Mutex] waiting for: [received:nodes:b34a3531-05ea-4126-8945-e35bcda985ee:localhost]

2021-06-25 07:48:20 | [Mutex] received everything.

2021-06-25 07:48:20 | [Mutex] isItemNotified: received:node:b34a3531-05ea-4126-8945-e35bcda985ee:localhost:node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2:Node 31f7b6c4-e609-4fb4-9c13-3d818b588cb2 :: false

2021-06-25 07:48:20 | [Mutex] waiting for: [received:nodes:c3e4f3ce-b7fc-4575-9eef-4f252a70db6b:localhost]

2021-06-25 07:48:20 | [Mutex] received everything.

2021-06-25 07:48:20 | [Mutex] isItemNotified: received:node:c3e4f3ce-b7fc-4575-9eef-4f252a70db6b:localhost:node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2:Node 31f7b6c4-e609-4fb4-9c13-3d818b588cb2 :: false

publishItemsToNodes 0.053s
2021-06-25 07:48:17 |

2021-06-25 07:48:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:17 | ------------------------------------

2021-06-25 07:48:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2",
    "entry": "<test>item-c6347ec6-2e38-47a0-afe2-6bc0363930eb</test>",
    "item-id": "item-c6347ec6-2e38-47a0-afe2-6bc0363930eb"
}

2021-06-25 07:48:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6347ec6-2e38-47a0-afe2-6bc0363930eb"
}

2021-06-25 07:48:17 | [Mutex] waiting for: [published:item:notifieditem-c6347ec6-2e38-47a0-afe2-6bc0363930eb:admin@test-domain.com]

2021-06-25 07:48:17 | [Mutex] received everything.

2021-06-25 07:48:17 | [Mutex] isItemNotified: published:item:notifieditem-c6347ec6-2e38-47a0-afe2-6bc0363930eb:admin@test-domain.com :: true

retractItemsFromNodes 0.123s
2021-06-25 07:48:17 |

2021-06-25 07:48:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:17 | ------------------------------------

2021-06-25 07:48:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2",
    "item-id": "item-c6347ec6-2e38-47a0-afe2-6bc0363930eb"
}

2021-06-25 07:48:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6347ec6-2e38-47a0-afe2-6bc0363930eb"
}

2021-06-25 07:48:18 | [Mutex] waiting for: [retracted:item:notifieditem-c6347ec6-2e38-47a0-afe2-6bc0363930eb:admin@test-domain.com]

2021-06-25 07:48:18 | [Mutex] received everything.

2021-06-25 07:48:18 | [Mutex] isItemNotified: retracted:item:notifieditem-c6347ec6-2e38-47a0-afe2-6bc0363930eb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.052s
2021-06-25 07:48:17 |

2021-06-25 07:48:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:17 | ------------------------------------

2021-06-25 07:48:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2",
    "item-id": "item-c6347ec6-2e38-47a0-afe2-6bc0363930eb"
}

2021-06-25 07:48:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2",
    "item-id": "item-c6347ec6-2e38-47a0-afe2-6bc0363930eb",
    "item": [
        "<item id=\"item-c6347ec6-2e38-47a0-afe2-6bc0363930eb\"><test>item-c6347ec6-2e38-47a0-afe2-6bc0363930eb</test></item>"
    ]
}

2021-06-25 07:48:17 | [Mutex] notify: [retrieved:item:item-c6347ec6-2e38-47a0-afe2-6bc0363930eb:payload-matches:true:localhost]

2021-06-25 07:48:17 | [Mutex] received everything.

2021-06-25 07:48:17 | [Mutex] isItemNotified: retrieved:item:item-c6347ec6-2e38-47a0-afe2-6bc0363930eb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2021-06-25 07:48:17 |

2021-06-25 07:48:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:17 | ------------------------------------

2021-06-25 07:48:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-25 07:48:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2",
        "test",
        "node-2dc30ea4-85c6-4683-b55f-410c691005c7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-06-25 07:48:17 |

2021-06-25 07:48:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:17 | ------------------------------------

2021-06-25 07:48:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2)"
}

2021-06-25 07:48:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-06-25 07:48:16 |

2021-06-25 07:48:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:16 | ------------------------------------

2021-06-25 07:48:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-25 07:48:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2021-06-25 07:48:18 |

2021-06-25 07:48:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-25 07:48:18 | ------------------------------------

2021-06-25 07:48:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-31f7b6c4-e609-4fb4-9c13-3d818b588cb2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-25 07:48:18 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}