Generated by TestNG with ReportNG at 22:59 PDT on Wednesday 16 September 2020
root@e2a92dd2f4be / 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.252s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2020-09-16 23:14:59 |

2020-09-16 23:14:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:14:59 | ------------------------------------

2020-09-16 23:14:59 | [Mutex] waiting for: [configured:node:node-d0f1f164-de51-4035-ba24-b2862ce05e6e:node-4ef1c187-a4d4-4a26-8a5a-7d624f3d039b]

2020-09-16 23:14:59 | [Mutex] received everything.

2020-09-16 23:14:59 | [Mutex] isItemNotified: configured:node:node-d0f1f164-de51-4035-ba24-b2862ce05e6e:node-4ef1c187-a4d4-4a26-8a5a-7d624f3d039b :: true

2020-09-16 23:15:00 | [Mutex] waiting for: [received:nodes:5caa5ac3-7269-41e2-a09f-37ee61e095d5:localhost]

2020-09-16 23:15:00 | [Mutex] received everything.

2020-09-16 23:15:00 | [Mutex] isItemNotified: received:node:5caa5ac3-7269-41e2-a09f-37ee61e095d5:localhost:node-d0f1f164-de51-4035-ba24-b2862ce05e6e:Node d0f1f164-de51-4035-ba24-b2862ce05e6e :: true

2020-09-16 23:15:00 | [Mutex] waiting for: [received:nodes:f80f47b2-b9f6-499a-bde9-06e3f9adc81f:localhost]

2020-09-16 23:15:00 | [Mutex] waiting for: [received:nodes:f80f47b2-b9f6-499a-bde9-06e3f9adc81f:localhost]

2020-09-16 23:15:00 | [Mutex] received everything.

2020-09-16 23:15:00 | [Mutex] isItemNotified: received:node:f80f47b2-b9f6-499a-bde9-06e3f9adc81f:localhost:node-d0f1f164-de51-4035-ba24-b2862ce05e6e:Node d0f1f164-de51-4035-ba24-b2862ce05e6e :: false

createNodes 1.873s
2020-09-16 23:14:56 |

2020-09-16 23:14:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:14:56 | ------------------------------------

2020-09-16 23:14:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d0f1f164-de51-4035-ba24-b2862ce05e6e",
    "pubsub#title": "Node d0f1f164-de51-4035-ba24-b2862ce05e6e"
}

2020-09-16 23:14:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-16 23:14:58 | [Mutex] waiting for: [received:nodes:2237f3d7-2ed4-42a2-b6a1-379cb78aa275:localhost]

2020-09-16 23:14:58 | [Mutex] received everything.

2020-09-16 23:14:58 | [Mutex] isItemNotified: received:node:2237f3d7-2ed4-42a2-b6a1-379cb78aa275:localhost:node-d0f1f164-de51-4035-ba24-b2862ce05e6e:Node d0f1f164-de51-4035-ba24-b2862ce05e6e :: true

createSubnodes 1.031s
2020-09-16 23:14:58 |

2020-09-16 23:14:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:14:58 | ------------------------------------

2020-09-16 23:14:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4ef1c187-a4d4-4a26-8a5a-7d624f3d039b",
    "pubsub#title": "Node 4ef1c187-a4d4-4a26-8a5a-7d624f3d039b"
}

2020-09-16 23:14:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-16 23:14:59 | [Mutex] waiting for: [received:nodes:c04b0e8a-99f8-4afc-925d-daf3be65ceb7:localhost]

2020-09-16 23:14:59 | [Mutex] received everything.

2020-09-16 23:14:59 | [Mutex] isItemNotified: received:node:c04b0e8a-99f8-4afc-925d-daf3be65ceb7:localhost:node-4ef1c187-a4d4-4a26-8a5a-7d624f3d039b:Node 4ef1c187-a4d4-4a26-8a5a-7d624f3d039b :: true

deleteNodes 1.030s
2020-09-16 23:15:04 |

2020-09-16 23:15:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:15:04 | ------------------------------------

2020-09-16 23:15:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4ef1c187-a4d4-4a26-8a5a-7d624f3d039b"
}

2020-09-16 23:15:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-16 23:15:05 | [Mutex] waiting for: [received:nodes:8f2eb08d-557f-47c1-9a83-07b3a99ab08c:localhost]

2020-09-16 23:15:05 | [Mutex] waiting for: [received:nodes:8f2eb08d-557f-47c1-9a83-07b3a99ab08c:localhost]

2020-09-16 23:15:05 | [Mutex] received everything.

2020-09-16 23:15:05 | [Mutex] isItemNotified: received:node:8f2eb08d-557f-47c1-9a83-07b3a99ab08c:localhost:node-4ef1c187-a4d4-4a26-8a5a-7d624f3d039b:Node 4ef1c187-a4d4-4a26-8a5a-7d624f3d039b :: false

deleteSubnodes 1.027s
2020-09-16 23:15:03 |

2020-09-16 23:15:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:15:03 | ------------------------------------

2020-09-16 23:15:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d0f1f164-de51-4035-ba24-b2862ce05e6e"
}

2020-09-16 23:15:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-16 23:15:04 | [Mutex] waiting for: [received:nodes:73e6c062-0bdd-40f1-b94e-929ea03f22ea:localhost]

2020-09-16 23:15:04 | [Mutex] waiting for: [received:nodes:73e6c062-0bdd-40f1-b94e-929ea03f22ea:localhost]

2020-09-16 23:15:04 | [Mutex] received everything.

2020-09-16 23:15:04 | [Mutex] isItemNotified: received:node:73e6c062-0bdd-40f1-b94e-929ea03f22ea:localhost:node-d0f1f164-de51-4035-ba24-b2862ce05e6e:Node d0f1f164-de51-4035-ba24-b2862ce05e6e :: false

2020-09-16 23:15:04 | [Mutex] waiting for: [received:nodes:b8c68f16-dd8c-4386-8590-a89d6b8fa1a4:localhost]

2020-09-16 23:15:04 | [Mutex] received everything.

2020-09-16 23:15:04 | [Mutex] isItemNotified: received:node:b8c68f16-dd8c-4386-8590-a89d6b8fa1a4:localhost:node-d0f1f164-de51-4035-ba24-b2862ce05e6e:Node d0f1f164-de51-4035-ba24-b2862ce05e6e :: false

publishItemsToNodes 0.051s
2020-09-16 23:15:01 |

2020-09-16 23:15:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:15:01 | ------------------------------------

2020-09-16 23:15:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d0f1f164-de51-4035-ba24-b2862ce05e6e",
    "entry": "<test>item-60033d49-674f-4f7e-94a9-835e02c5c57d</test>",
    "item-id": "item-60033d49-674f-4f7e-94a9-835e02c5c57d"
}

2020-09-16 23:15:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-60033d49-674f-4f7e-94a9-835e02c5c57d"
}

2020-09-16 23:15:01 | [Mutex] waiting for: [published:item:notifieditem-60033d49-674f-4f7e-94a9-835e02c5c57d:admin@test-domain.com]

2020-09-16 23:15:01 | [Mutex] received everything.

2020-09-16 23:15:01 | [Mutex] isItemNotified: published:item:notifieditem-60033d49-674f-4f7e-94a9-835e02c5c57d:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2020-09-16 23:15:02 |

2020-09-16 23:15:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:15:02 | ------------------------------------

2020-09-16 23:15:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d0f1f164-de51-4035-ba24-b2862ce05e6e",
    "item-id": "item-60033d49-674f-4f7e-94a9-835e02c5c57d"
}

2020-09-16 23:15:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-60033d49-674f-4f7e-94a9-835e02c5c57d"
}

2020-09-16 23:15:02 | [Mutex] received everything.

2020-09-16 23:15:02 | [Mutex] isItemNotified: retracted:item:notifieditem-60033d49-674f-4f7e-94a9-835e02c5c57d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2020-09-16 23:15:01 |

2020-09-16 23:15:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:15:01 | ------------------------------------

2020-09-16 23:15:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d0f1f164-de51-4035-ba24-b2862ce05e6e",
    "item-id": "item-60033d49-674f-4f7e-94a9-835e02c5c57d"
}

2020-09-16 23:15:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d0f1f164-de51-4035-ba24-b2862ce05e6e",
    "item-id": "item-60033d49-674f-4f7e-94a9-835e02c5c57d",
    "item": [
        "<item id=\"item-60033d49-674f-4f7e-94a9-835e02c5c57d\"><test>item-60033d49-674f-4f7e-94a9-835e02c5c57d</test></item>"
    ]
}

2020-09-16 23:15:02 | [Mutex] notify: [retrieved:item:item-60033d49-674f-4f7e-94a9-835e02c5c57d:payload-matches:true:localhost]

2020-09-16 23:15:02 | [Mutex] received everything.

2020-09-16 23:15:02 | [Mutex] isItemNotified: retrieved:item:item-60033d49-674f-4f7e-94a9-835e02c5c57d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-16 23:15:02 |

2020-09-16 23:15:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:15:02 | ------------------------------------

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

2020-09-16 23:15:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d0f1f164-de51-4035-ba24-b2862ce05e6e",
        "node-4ef1c187-a4d4-4a26-8a5a-7d624f3d039b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-16 23:15:02 |

2020-09-16 23:15:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:15:02 | ------------------------------------

2020-09-16 23:15:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d0f1f164-de51-4035-ba24-b2862ce05e6e)"
}

2020-09-16 23:15:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-09-16 23:15:00 |

2020-09-16 23:15:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:15:00 | ------------------------------------

2020-09-16 23:15:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d0f1f164-de51-4035-ba24-b2862ce05e6e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-16 23:15:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2020-09-16 23:15:02 |

2020-09-16 23:15:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-16 23:15:02 | ------------------------------------

2020-09-16 23:15:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d0f1f164-de51-4035-ba24-b2862ce05e6e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-16 23:15:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}