Generated by TestNG with ReportNG at 21:13 PST on Monday 23 November 2020
root@43fec6d4badf / 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 : 8.966s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.033s
2020-11-23 21:30:34 |

2020-11-23 21:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:34 | ------------------------------------

2020-11-23 21:30:34 | [Mutex] waiting for: [configured:node:node-26029179-7d6e-4339-89fd-94662da58477:node-6127b7f2-8fb6-4bc1-9703-6d757a96a01f]

2020-11-23 21:30:34 | [Mutex] received everything.

2020-11-23 21:30:34 | [Mutex] isItemNotified: configured:node:node-26029179-7d6e-4339-89fd-94662da58477:node-6127b7f2-8fb6-4bc1-9703-6d757a96a01f :: true

2020-11-23 21:30:35 | [Mutex] waiting for: [received:nodes:649e5b72-d1f3-4e09-a397-05d03c240014:localhost]

2020-11-23 21:30:35 | [Mutex] waiting for: [received:nodes:649e5b72-d1f3-4e09-a397-05d03c240014:localhost]

2020-11-23 21:30:35 | [Mutex] received everything.

2020-11-23 21:30:35 | [Mutex] isItemNotified: received:node:649e5b72-d1f3-4e09-a397-05d03c240014:localhost:node-26029179-7d6e-4339-89fd-94662da58477:Node 26029179-7d6e-4339-89fd-94662da58477 :: true

2020-11-23 21:30:35 | [Mutex] waiting for: [received:nodes:77d7b29c-316a-4c3b-a1cd-691ea99f8443:localhost]

2020-11-23 21:30:35 | [Mutex] received everything.

2020-11-23 21:30:35 | [Mutex] isItemNotified: received:node:77d7b29c-316a-4c3b-a1cd-691ea99f8443:localhost:node-26029179-7d6e-4339-89fd-94662da58477:Node 26029179-7d6e-4339-89fd-94662da58477 :: false

createNodes 1.625s
2020-11-23 21:30:31 |

2020-11-23 21:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:31 | ------------------------------------

2020-11-23 21:30:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-26029179-7d6e-4339-89fd-94662da58477",
    "pubsub#title": "Node 26029179-7d6e-4339-89fd-94662da58477"
}

2020-11-23 21:30:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-23 21:30:32 | [Mutex] waiting for: [received:nodes:4bb831ad-5d57-47f0-ba5d-712e3cbf0047:localhost]

2020-11-23 21:30:32 | [Mutex] received everything.

2020-11-23 21:30:32 | [Mutex] isItemNotified: received:node:4bb831ad-5d57-47f0-ba5d-712e3cbf0047:localhost:node-26029179-7d6e-4339-89fd-94662da58477:Node 26029179-7d6e-4339-89fd-94662da58477 :: true

createSubnodes 1.031s
2020-11-23 21:30:32 |

2020-11-23 21:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:32 | ------------------------------------

2020-11-23 21:30:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6127b7f2-8fb6-4bc1-9703-6d757a96a01f",
    "pubsub#title": "Node 6127b7f2-8fb6-4bc1-9703-6d757a96a01f"
}

2020-11-23 21:30:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-23 21:30:34 | [Mutex] waiting for: [received:nodes:9b83c693-7d9d-4c0a-b4c5-98d503cc27d2:localhost]

2020-11-23 21:30:34 | [Mutex] waiting for: [received:nodes:9b83c693-7d9d-4c0a-b4c5-98d503cc27d2:localhost]

2020-11-23 21:30:34 | [Mutex] received everything.

2020-11-23 21:30:34 | [Mutex] isItemNotified: received:node:9b83c693-7d9d-4c0a-b4c5-98d503cc27d2:localhost:node-6127b7f2-8fb6-4bc1-9703-6d757a96a01f:Node 6127b7f2-8fb6-4bc1-9703-6d757a96a01f :: true

deleteNodes 1.025s
2020-11-23 21:30:38 |

2020-11-23 21:30:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:38 | ------------------------------------

2020-11-23 21:30:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6127b7f2-8fb6-4bc1-9703-6d757a96a01f"
}

2020-11-23 21:30:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-23 21:30:39 | [Mutex] waiting for: [received:nodes:d8e56d23-f7af-4d7c-a1ea-967b149f7021:localhost]

2020-11-23 21:30:39 | [Mutex] waiting for: [received:nodes:d8e56d23-f7af-4d7c-a1ea-967b149f7021:localhost]

2020-11-23 21:30:39 | [Mutex] waiting for: [received:nodes:d8e56d23-f7af-4d7c-a1ea-967b149f7021:localhost]

2020-11-23 21:30:39 | [Mutex] received everything.

2020-11-23 21:30:39 | [Mutex] isItemNotified: received:node:d8e56d23-f7af-4d7c-a1ea-967b149f7021:localhost:node-6127b7f2-8fb6-4bc1-9703-6d757a96a01f:Node 6127b7f2-8fb6-4bc1-9703-6d757a96a01f :: false

deleteSubnodes 1.032s
2020-11-23 21:30:37 |

2020-11-23 21:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:37 | ------------------------------------

2020-11-23 21:30:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-26029179-7d6e-4339-89fd-94662da58477"
}

2020-11-23 21:30:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-23 21:30:38 | [Mutex] waiting for: [received:nodes:4e08d965-ec05-45c4-a4f1-86c8a71799c4:localhost]

2020-11-23 21:30:38 | [Mutex] received everything.

2020-11-23 21:30:38 | [Mutex] isItemNotified: received:node:4e08d965-ec05-45c4-a4f1-86c8a71799c4:localhost:node-26029179-7d6e-4339-89fd-94662da58477:Node 26029179-7d6e-4339-89fd-94662da58477 :: false

2020-11-23 21:30:38 | [Mutex] waiting for: [received:nodes:13aff7c8-8c3b-490c-8269-082e808bd8e2:localhost]

2020-11-23 21:30:38 | [Mutex] received everything.

2020-11-23 21:30:38 | [Mutex] isItemNotified: received:node:13aff7c8-8c3b-490c-8269-082e808bd8e2:localhost:node-26029179-7d6e-4339-89fd-94662da58477:Node 26029179-7d6e-4339-89fd-94662da58477 :: false

publishItemsToNodes 0.042s
2020-11-23 21:30:36 |

2020-11-23 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:36 | ------------------------------------

2020-11-23 21:30:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-26029179-7d6e-4339-89fd-94662da58477",
    "entry": "<test>item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d</test>",
    "item-id": "item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d"
}

2020-11-23 21:30:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d"
}

2020-11-23 21:30:36 | [Mutex] waiting for: [published:item:notifieditem-86c3db0b-d200-4a42-80b7-a0ee01cbda8d:admin@test-domain.com]

2020-11-23 21:30:36 | [Mutex] received everything.

2020-11-23 21:30:36 | [Mutex] isItemNotified: published:item:notifieditem-86c3db0b-d200-4a42-80b7-a0ee01cbda8d:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2020-11-23 21:30:36 |

2020-11-23 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:36 | ------------------------------------

2020-11-23 21:30:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-26029179-7d6e-4339-89fd-94662da58477",
    "item-id": "item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d"
}

2020-11-23 21:30:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d"
}

2020-11-23 21:30:36 | [Mutex] received everything.

2020-11-23 21:30:36 | [Mutex] isItemNotified: retracted:item:notifieditem-86c3db0b-d200-4a42-80b7-a0ee01cbda8d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2020-11-23 21:30:36 |

2020-11-23 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:36 | ------------------------------------

2020-11-23 21:30:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-26029179-7d6e-4339-89fd-94662da58477",
    "item-id": "item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d"
}

2020-11-23 21:30:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-26029179-7d6e-4339-89fd-94662da58477",
    "item-id": "item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d",
    "item": [
        "<item id=\"item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d\"><test>item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d</test></item>"
    ]
}

2020-11-23 21:30:36 | [Mutex] notify: [retrieved:item:item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d:payload-matches:true:localhost]

2020-11-23 21:30:36 | [Mutex] received everything.

2020-11-23 21:30:36 | [Mutex] isItemNotified: retrieved:item:item-86c3db0b-d200-4a42-80b7-a0ee01cbda8d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-11-23 21:30:36 |

2020-11-23 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:36 | ------------------------------------

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

2020-11-23 21:30:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6127b7f2-8fb6-4bc1-9703-6d757a96a01f",
        "test",
        "node-26029179-7d6e-4339-89fd-94662da58477"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-11-23 21:30:36 |

2020-11-23 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:36 | ------------------------------------

2020-11-23 21:30:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-26029179-7d6e-4339-89fd-94662da58477)"
}

2020-11-23 21:30:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.034s
2020-11-23 21:30:35 |

2020-11-23 21:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:35 | ------------------------------------

2020-11-23 21:30:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-26029179-7d6e-4339-89fd-94662da58477",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-23 21:30:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2020-11-23 21:30:36 |

2020-11-23 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:30:36 | ------------------------------------

2020-11-23 21:30:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-26029179-7d6e-4339-89fd-94662da58477",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-23 21:30:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}