Generated by TestNG with ReportNG at 07:14 PDT on Wednesday 09 September 2020
root@1c7098e4120c / 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.187s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2020-09-09 07:30:51 |

2020-09-09 07:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:51 | ------------------------------------

2020-09-09 07:30:51 | [Mutex] waiting for: [configured:node:node-ce332e56-2dc9-476e-80d1-35e4052efe00:node-e65f7043-38df-4ef3-a587-6bb010edebc5]

2020-09-09 07:30:51 | [Mutex] received everything.

2020-09-09 07:30:51 | [Mutex] isItemNotified: configured:node:node-ce332e56-2dc9-476e-80d1-35e4052efe00:node-e65f7043-38df-4ef3-a587-6bb010edebc5 :: true

2020-09-09 07:30:52 | [Mutex] waiting for: [received:nodes:177d3e5b-b5fb-4d0f-a752-103c6e72a7b8:localhost]

2020-09-09 07:30:52 | [Mutex] received everything.

2020-09-09 07:30:52 | [Mutex] isItemNotified: received:node:177d3e5b-b5fb-4d0f-a752-103c6e72a7b8:localhost:node-ce332e56-2dc9-476e-80d1-35e4052efe00:Node ce332e56-2dc9-476e-80d1-35e4052efe00 :: true

2020-09-09 07:30:52 | [Mutex] waiting for: [received:nodes:352c8807-a64d-4547-bdca-16987c2515f7:localhost]

2020-09-09 07:30:52 | [Mutex] received everything.

2020-09-09 07:30:52 | [Mutex] isItemNotified: received:node:352c8807-a64d-4547-bdca-16987c2515f7:localhost:node-ce332e56-2dc9-476e-80d1-35e4052efe00:Node ce332e56-2dc9-476e-80d1-35e4052efe00 :: false

createNodes 1.731s
2020-09-09 07:30:48 |

2020-09-09 07:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:48 | ------------------------------------

2020-09-09 07:30:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ce332e56-2dc9-476e-80d1-35e4052efe00",
    "pubsub#title": "Node ce332e56-2dc9-476e-80d1-35e4052efe00"
}

2020-09-09 07:30:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 07:30:50 | [Mutex] waiting for: [received:nodes:5854594a-a594-4abd-8f77-3c203d4e768b:localhost]

2020-09-09 07:30:50 | [Mutex] received everything.

2020-09-09 07:30:50 | [Mutex] isItemNotified: received:node:5854594a-a594-4abd-8f77-3c203d4e768b:localhost:node-ce332e56-2dc9-476e-80d1-35e4052efe00:Node ce332e56-2dc9-476e-80d1-35e4052efe00 :: true

createSubnodes 1.023s
2020-09-09 07:30:50 |

2020-09-09 07:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:50 | ------------------------------------

2020-09-09 07:30:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e65f7043-38df-4ef3-a587-6bb010edebc5",
    "pubsub#title": "Node e65f7043-38df-4ef3-a587-6bb010edebc5"
}

2020-09-09 07:30:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 07:30:51 | [Mutex] waiting for: [received:nodes:c2c81017-eb2c-4d04-a0c5-2bf8f2756e41:localhost]

2020-09-09 07:30:51 | [Mutex] received everything.

2020-09-09 07:30:51 | [Mutex] isItemNotified: received:node:c2c81017-eb2c-4d04-a0c5-2bf8f2756e41:localhost:node-e65f7043-38df-4ef3-a587-6bb010edebc5:Node e65f7043-38df-4ef3-a587-6bb010edebc5 :: true

deleteNodes 1.030s
2020-09-09 07:30:56 |

2020-09-09 07:30:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:56 | ------------------------------------

2020-09-09 07:30:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e65f7043-38df-4ef3-a587-6bb010edebc5"
}

2020-09-09 07:30:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 07:30:57 | [Mutex] waiting for: [received:nodes:b9eb5395-bdae-4828-ad9c-8ac0dfbd9b88:localhost]

2020-09-09 07:30:57 | [Mutex] received everything.

2020-09-09 07:30:57 | [Mutex] isItemNotified: received:node:b9eb5395-bdae-4828-ad9c-8ac0dfbd9b88:localhost:node-e65f7043-38df-4ef3-a587-6bb010edebc5:Node e65f7043-38df-4ef3-a587-6bb010edebc5 :: false

deleteSubnodes 1.030s
2020-09-09 07:30:54 |

2020-09-09 07:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:54 | ------------------------------------

2020-09-09 07:30:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ce332e56-2dc9-476e-80d1-35e4052efe00"
}

2020-09-09 07:30:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 07:30:55 | [Mutex] waiting for: [received:nodes:1d0acf57-514a-4188-a6dd-9d1c1afbe2e8:localhost]

2020-09-09 07:30:55 | [Mutex] waiting for: [received:nodes:1d0acf57-514a-4188-a6dd-9d1c1afbe2e8:localhost]

2020-09-09 07:30:55 | [Mutex] received everything.

2020-09-09 07:30:55 | [Mutex] isItemNotified: received:node:1d0acf57-514a-4188-a6dd-9d1c1afbe2e8:localhost:node-ce332e56-2dc9-476e-80d1-35e4052efe00:Node ce332e56-2dc9-476e-80d1-35e4052efe00 :: false

2020-09-09 07:30:55 | [Mutex] waiting for: [received:nodes:2bb8577a-8859-4e6e-b640-9a4a48d9a1b6:localhost]

2020-09-09 07:30:56 | [Mutex] received everything.

2020-09-09 07:30:56 | [Mutex] isItemNotified: received:node:2bb8577a-8859-4e6e-b640-9a4a48d9a1b6:localhost:node-ce332e56-2dc9-476e-80d1-35e4052efe00:Node ce332e56-2dc9-476e-80d1-35e4052efe00 :: false

publishItemsToNodes 0.052s
2020-09-09 07:30:53 |

2020-09-09 07:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:53 | ------------------------------------

2020-09-09 07:30:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ce332e56-2dc9-476e-80d1-35e4052efe00",
    "entry": "<test>item-036d6518-e82a-49b4-b6f4-eb36984a7c2d</test>",
    "item-id": "item-036d6518-e82a-49b4-b6f4-eb36984a7c2d"
}

2020-09-09 07:30:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-036d6518-e82a-49b4-b6f4-eb36984a7c2d"
}

2020-09-09 07:30:53 | [Mutex] waiting for: [published:item:notifieditem-036d6518-e82a-49b4-b6f4-eb36984a7c2d:admin@test-domain.com]

2020-09-09 07:30:53 | [Mutex] received everything.

2020-09-09 07:30:53 | [Mutex] isItemNotified: published:item:notifieditem-036d6518-e82a-49b4-b6f4-eb36984a7c2d:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2020-09-09 07:30:53 |

2020-09-09 07:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:53 | ------------------------------------

2020-09-09 07:30:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ce332e56-2dc9-476e-80d1-35e4052efe00",
    "item-id": "item-036d6518-e82a-49b4-b6f4-eb36984a7c2d"
}

2020-09-09 07:30:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-036d6518-e82a-49b4-b6f4-eb36984a7c2d"
}

2020-09-09 07:30:53 | [Mutex] waiting for: [retracted:item:notifieditem-036d6518-e82a-49b4-b6f4-eb36984a7c2d:admin@test-domain.com]

2020-09-09 07:30:53 | [Mutex] received everything.

2020-09-09 07:30:53 | [Mutex] isItemNotified: retracted:item:notifieditem-036d6518-e82a-49b4-b6f4-eb36984a7c2d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2020-09-09 07:30:53 |

2020-09-09 07:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:53 | ------------------------------------

2020-09-09 07:30:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ce332e56-2dc9-476e-80d1-35e4052efe00",
    "item-id": "item-036d6518-e82a-49b4-b6f4-eb36984a7c2d"
}

2020-09-09 07:30:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ce332e56-2dc9-476e-80d1-35e4052efe00",
    "item-id": "item-036d6518-e82a-49b4-b6f4-eb36984a7c2d",
    "item": [
        "<item id=\"item-036d6518-e82a-49b4-b6f4-eb36984a7c2d\"><test>item-036d6518-e82a-49b4-b6f4-eb36984a7c2d</test></item>"
    ]
}

2020-09-09 07:30:53 | [Mutex] notify: [retrieved:item:item-036d6518-e82a-49b4-b6f4-eb36984a7c2d:payload-matches:true:localhost]

2020-09-09 07:30:53 | [Mutex] received everything.

2020-09-09 07:30:53 | [Mutex] isItemNotified: retrieved:item:item-036d6518-e82a-49b4-b6f4-eb36984a7c2d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-09 07:30:53 |

2020-09-09 07:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:53 | ------------------------------------

2020-09-09 07:30:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-09 07:30:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ce332e56-2dc9-476e-80d1-35e4052efe00",
        "node-e65f7043-38df-4ef3-a587-6bb010edebc5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-09-09 07:30:53 |

2020-09-09 07:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:53 | ------------------------------------

2020-09-09 07:30:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ce332e56-2dc9-476e-80d1-35e4052efe00)"
}

2020-09-09 07:30:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.024s
2020-09-09 07:30:52 |

2020-09-09 07:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:52 | ------------------------------------

2020-09-09 07:30:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ce332e56-2dc9-476e-80d1-35e4052efe00",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-09 07:30:52 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2020-09-09 07:30:53 |

2020-09-09 07:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:30:53 | ------------------------------------

2020-09-09 07:30:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ce332e56-2dc9-476e-80d1-35e4052efe00",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-09 07:30:53 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}