Generated by TestNG with ReportNG at 05:26 PST on Wednesday 27 January 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.403s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2021-01-27 05:43:34 |

2021-01-27 05:43:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:34 | ------------------------------------

2021-01-27 05:43:34 | [Mutex] waiting for: [configured:node:node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595:node-a8afbde2-50ad-4953-a9f2-4b917be2cdef]

2021-01-27 05:43:34 | [Mutex] received everything.

2021-01-27 05:43:34 | [Mutex] isItemNotified: configured:node:node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595:node-a8afbde2-50ad-4953-a9f2-4b917be2cdef :: true

2021-01-27 05:43:35 | [Mutex] waiting for: [received:nodes:4f24ff96-08fd-489e-ade1-4fca0ebdaa2b:localhost]

2021-01-27 05:43:35 | [Mutex] received everything.

2021-01-27 05:43:35 | [Mutex] isItemNotified: received:node:4f24ff96-08fd-489e-ade1-4fca0ebdaa2b:localhost:node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595:Node 02b1a4b7-33c8-4d44-a1a4-6bfd59d13595 :: true

2021-01-27 05:43:35 | [Mutex] waiting for: [received:nodes:481a2748-90a9-4a4b-b8ad-d690c8853f8d:localhost]

2021-01-27 05:43:35 | [Mutex] received everything.

2021-01-27 05:43:35 | [Mutex] isItemNotified: received:node:481a2748-90a9-4a4b-b8ad-d690c8853f8d:localhost:node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595:Node 02b1a4b7-33c8-4d44-a1a4-6bfd59d13595 :: false

createNodes 2.027s
2021-01-27 05:43:30 |

2021-01-27 05:43:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:30 | ------------------------------------

2021-01-27 05:43: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-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595",
    "pubsub#title": "Node 02b1a4b7-33c8-4d44-a1a4-6bfd59d13595"
}

2021-01-27 05:43:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:43:32 | [Mutex] waiting for: [received:nodes:05311a20-f180-415a-bd77-e5e2b75b98ca:localhost]

2021-01-27 05:43:32 | [Mutex] waiting for: [received:nodes:05311a20-f180-415a-bd77-e5e2b75b98ca:localhost]

2021-01-27 05:43:32 | [Mutex] received everything.

2021-01-27 05:43:32 | [Mutex] isItemNotified: received:node:05311a20-f180-415a-bd77-e5e2b75b98ca:localhost:node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595:Node 02b1a4b7-33c8-4d44-a1a4-6bfd59d13595 :: true

createSubnodes 1.034s
2021-01-27 05:43:32 |

2021-01-27 05:43:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:32 | ------------------------------------

2021-01-27 05:43: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-a8afbde2-50ad-4953-a9f2-4b917be2cdef",
    "pubsub#title": "Node a8afbde2-50ad-4953-a9f2-4b917be2cdef"
}

2021-01-27 05:43:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:43:34 | [Mutex] waiting for: [received:nodes:805c672d-5c05-465c-b619-78ccab3b79b5:localhost]

2021-01-27 05:43:34 | [Mutex] received everything.

2021-01-27 05:43:34 | [Mutex] isItemNotified: received:node:805c672d-5c05-465c-b619-78ccab3b79b5:localhost:node-a8afbde2-50ad-4953-a9f2-4b917be2cdef:Node a8afbde2-50ad-4953-a9f2-4b917be2cdef :: true

deleteNodes 1.042s
2021-01-27 05:43:38 |

2021-01-27 05:43:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:38 | ------------------------------------

2021-01-27 05:43:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a8afbde2-50ad-4953-a9f2-4b917be2cdef"
}

2021-01-27 05:43:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:43:39 | [Mutex] waiting for: [received:nodes:9ab51457-7a2a-4edf-a104-7f33e7bdcf47:localhost]

2021-01-27 05:43:39 | [Mutex] received everything.

2021-01-27 05:43:39 | [Mutex] isItemNotified: received:node:9ab51457-7a2a-4edf-a104-7f33e7bdcf47:localhost:node-a8afbde2-50ad-4953-a9f2-4b917be2cdef:Node a8afbde2-50ad-4953-a9f2-4b917be2cdef :: false

deleteSubnodes 1.040s
2021-01-27 05:43:37 |

2021-01-27 05:43:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:37 | ------------------------------------

2021-01-27 05:43:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595"
}

2021-01-27 05:43:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:43:38 | [Mutex] waiting for: [received:nodes:5e0bb47e-5671-4d99-b051-2f0caf4c3771:localhost]

2021-01-27 05:43:38 | [Mutex] received everything.

2021-01-27 05:43:38 | [Mutex] isItemNotified: received:node:5e0bb47e-5671-4d99-b051-2f0caf4c3771:localhost:node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595:Node 02b1a4b7-33c8-4d44-a1a4-6bfd59d13595 :: false

2021-01-27 05:43:38 | [Mutex] waiting for: [received:nodes:74c84538-a1c4-4ffe-8031-43c368df1367:localhost]

2021-01-27 05:43:38 | [Mutex] received everything.

2021-01-27 05:43:38 | [Mutex] isItemNotified: received:node:74c84538-a1c4-4ffe-8031-43c368df1367:localhost:node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595:Node 02b1a4b7-33c8-4d44-a1a4-6bfd59d13595 :: false

publishItemsToNodes 0.078s
2021-01-27 05:43:36 |

2021-01-27 05:43:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:36 | ------------------------------------

2021-01-27 05:43:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595",
    "entry": "<test>item-999ed82f-e658-4f52-9836-4e27db23c2cb</test>",
    "item-id": "item-999ed82f-e658-4f52-9836-4e27db23c2cb"
}

2021-01-27 05:43:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-999ed82f-e658-4f52-9836-4e27db23c2cb"
}

2021-01-27 05:43:36 | [Mutex] waiting for: [published:item:notifieditem-999ed82f-e658-4f52-9836-4e27db23c2cb:admin@test-domain.com]

2021-01-27 05:43:36 | [Mutex] received everything.

2021-01-27 05:43:36 | [Mutex] isItemNotified: published:item:notifieditem-999ed82f-e658-4f52-9836-4e27db23c2cb:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-01-27 05:43:36 |

2021-01-27 05:43:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:36 | ------------------------------------

2021-01-27 05:43:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595",
    "item-id": "item-999ed82f-e658-4f52-9836-4e27db23c2cb"
}

2021-01-27 05:43:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-999ed82f-e658-4f52-9836-4e27db23c2cb"
}

2021-01-27 05:43:36 | [Mutex] waiting for: [retracted:item:notifieditem-999ed82f-e658-4f52-9836-4e27db23c2cb:admin@test-domain.com]

2021-01-27 05:43:36 | [Mutex] received everything.

2021-01-27 05:43:36 | [Mutex] isItemNotified: retracted:item:notifieditem-999ed82f-e658-4f52-9836-4e27db23c2cb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2021-01-27 05:43:36 |

2021-01-27 05:43:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:36 | ------------------------------------

2021-01-27 05:43:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595",
    "item-id": "item-999ed82f-e658-4f52-9836-4e27db23c2cb"
}

2021-01-27 05:43:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595",
    "item-id": "item-999ed82f-e658-4f52-9836-4e27db23c2cb",
    "item": [
        "<item id=\"item-999ed82f-e658-4f52-9836-4e27db23c2cb\"><test>item-999ed82f-e658-4f52-9836-4e27db23c2cb</test></item>"
    ]
}

2021-01-27 05:43:36 | [Mutex] notify: [retrieved:item:item-999ed82f-e658-4f52-9836-4e27db23c2cb:payload-matches:true:localhost]

2021-01-27 05:43:36 | [Mutex] received everything.

2021-01-27 05:43:36 | [Mutex] isItemNotified: retrieved:item:item-999ed82f-e658-4f52-9836-4e27db23c2cb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-01-27 05:43:36 |

2021-01-27 05:43:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:36 | ------------------------------------

2021-01-27 05:43:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-27 05:43:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a8afbde2-50ad-4953-a9f2-4b917be2cdef",
        "node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-01-27 05:43:36 |

2021-01-27 05:43:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:36 | ------------------------------------

2021-01-27 05:43:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595)"
}

2021-01-27 05:43:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-01-27 05:43:35 |

2021-01-27 05:43:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:35 | ------------------------------------

2021-01-27 05:43:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 05:43:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2021-01-27 05:43:36 |

2021-01-27 05:43:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:43:36 | ------------------------------------

2021-01-27 05:43:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-02b1a4b7-33c8-4d44-a1a4-6bfd59d13595",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 05:43:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}