Generated by TestNG with ReportNG at 23:45 PDT on Sunday 19 September 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 : 8.911s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2021-09-20 00:01:03 |

2021-09-20 00:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:03 | ------------------------------------

2021-09-20 00:01:03 | [Mutex] waiting for: [configured:node:node-37cf5f6d-859c-473b-a350-8a73b69d5fde:node-898c3ba3-99c9-420c-b597-69fbec3eca06]

2021-09-20 00:01:03 | [Mutex] received everything.

2021-09-20 00:01:03 | [Mutex] isItemNotified: configured:node:node-37cf5f6d-859c-473b-a350-8a73b69d5fde:node-898c3ba3-99c9-420c-b597-69fbec3eca06 :: true

2021-09-20 00:01:04 | [Mutex] waiting for: [received:nodes:37b7f9e0-0702-46b1-a92c-483db1fa7554:localhost]

2021-09-20 00:01:04 | [Mutex] received everything.

2021-09-20 00:01:04 | [Mutex] isItemNotified: received:node:37b7f9e0-0702-46b1-a92c-483db1fa7554:localhost:node-37cf5f6d-859c-473b-a350-8a73b69d5fde:Node 37cf5f6d-859c-473b-a350-8a73b69d5fde :: true

2021-09-20 00:01:04 | [Mutex] waiting for: [received:nodes:0143cd00-1d48-4475-9d2c-386a2370478b:localhost]

2021-09-20 00:01:04 | [Mutex] received everything.

2021-09-20 00:01:04 | [Mutex] isItemNotified: received:node:0143cd00-1d48-4475-9d2c-386a2370478b:localhost:node-37cf5f6d-859c-473b-a350-8a73b69d5fde:Node 37cf5f6d-859c-473b-a350-8a73b69d5fde :: false

createNodes 1.603s
2021-09-20 00:01:00 |

2021-09-20 00:01:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:00 | ------------------------------------

2021-09-20 00:01:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-37cf5f6d-859c-473b-a350-8a73b69d5fde",
    "pubsub#title": "Node 37cf5f6d-859c-473b-a350-8a73b69d5fde"
}

2021-09-20 00:01:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 00:01:02 | [Mutex] waiting for: [received:nodes:b9d42838-b16d-4019-8f8a-603dd830d217:localhost]

2021-09-20 00:01:02 | [Mutex] received everything.

2021-09-20 00:01:02 | [Mutex] isItemNotified: received:node:b9d42838-b16d-4019-8f8a-603dd830d217:localhost:node-37cf5f6d-859c-473b-a350-8a73b69d5fde:Node 37cf5f6d-859c-473b-a350-8a73b69d5fde :: true

createSubnodes 1.022s
2021-09-20 00:01:02 |

2021-09-20 00:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:02 | ------------------------------------

2021-09-20 00:01:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-898c3ba3-99c9-420c-b597-69fbec3eca06",
    "pubsub#title": "Node 898c3ba3-99c9-420c-b597-69fbec3eca06"
}

2021-09-20 00:01:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 00:01:03 | [Mutex] waiting for: [received:nodes:5a607c9b-0cc0-47fb-94b7-6c4666100e42:localhost]

2021-09-20 00:01:03 | [Mutex] received everything.

2021-09-20 00:01:03 | [Mutex] isItemNotified: received:node:5a607c9b-0cc0-47fb-94b7-6c4666100e42:localhost:node-898c3ba3-99c9-420c-b597-69fbec3eca06:Node 898c3ba3-99c9-420c-b597-69fbec3eca06 :: true

deleteNodes 1.021s
2021-09-20 00:01:08 |

2021-09-20 00:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:08 | ------------------------------------

2021-09-20 00:01:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-898c3ba3-99c9-420c-b597-69fbec3eca06"
}

2021-09-20 00:01:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 00:01:09 | [Mutex] waiting for: [received:nodes:b4de2aec-deb3-4579-b20a-39836f49f4fa:localhost]

2021-09-20 00:01:09 | [Mutex] waiting for: [received:nodes:b4de2aec-deb3-4579-b20a-39836f49f4fa:localhost]

2021-09-20 00:01:09 | [Mutex] received everything.

2021-09-20 00:01:09 | [Mutex] isItemNotified: received:node:b4de2aec-deb3-4579-b20a-39836f49f4fa:localhost:node-898c3ba3-99c9-420c-b597-69fbec3eca06:Node 898c3ba3-99c9-420c-b597-69fbec3eca06 :: false

deleteSubnodes 1.026s
2021-09-20 00:01:07 |

2021-09-20 00:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:07 | ------------------------------------

2021-09-20 00:01:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-37cf5f6d-859c-473b-a350-8a73b69d5fde"
}

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

2021-09-20 00:01:08 | [Mutex] waiting for: [received:nodes:d1b15661-d58a-4e0f-8769-e2509f5688fc:localhost]

2021-09-20 00:01:08 | [Mutex] waiting for: [received:nodes:d1b15661-d58a-4e0f-8769-e2509f5688fc:localhost]

2021-09-20 00:01:08 | [Mutex] received everything.

2021-09-20 00:01:08 | [Mutex] isItemNotified: received:node:d1b15661-d58a-4e0f-8769-e2509f5688fc:localhost:node-37cf5f6d-859c-473b-a350-8a73b69d5fde:Node 37cf5f6d-859c-473b-a350-8a73b69d5fde :: false

2021-09-20 00:01:08 | [Mutex] waiting for: [received:nodes:50bba7ec-cb18-44e7-801b-96d6653205ac:localhost]

2021-09-20 00:01:08 | [Mutex] received everything.

2021-09-20 00:01:08 | [Mutex] isItemNotified: received:node:50bba7ec-cb18-44e7-801b-96d6653205ac:localhost:node-37cf5f6d-859c-473b-a350-8a73b69d5fde:Node 37cf5f6d-859c-473b-a350-8a73b69d5fde :: false

publishItemsToNodes 0.056s
2021-09-20 00:01:05 |

2021-09-20 00:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:05 | ------------------------------------

2021-09-20 00:01:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-37cf5f6d-859c-473b-a350-8a73b69d5fde",
    "entry": "<test>item-3700df78-f6ac-4faa-8bf4-2119df763e01</test>",
    "item-id": "item-3700df78-f6ac-4faa-8bf4-2119df763e01"
}

2021-09-20 00:01:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3700df78-f6ac-4faa-8bf4-2119df763e01"
}

2021-09-20 00:01:05 | [Mutex] waiting for: [published:item:notifieditem-3700df78-f6ac-4faa-8bf4-2119df763e01:admin@test-domain.com]

2021-09-20 00:01:05 | [Mutex] received everything.

2021-09-20 00:01:05 | [Mutex] isItemNotified: published:item:notifieditem-3700df78-f6ac-4faa-8bf4-2119df763e01:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-09-20 00:01:05 |

2021-09-20 00:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:05 | ------------------------------------

2021-09-20 00:01:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-37cf5f6d-859c-473b-a350-8a73b69d5fde",
    "item-id": "item-3700df78-f6ac-4faa-8bf4-2119df763e01"
}

2021-09-20 00:01:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3700df78-f6ac-4faa-8bf4-2119df763e01"
}

2021-09-20 00:01:06 | [Mutex] received everything.

2021-09-20 00:01:06 | [Mutex] isItemNotified: retracted:item:notifieditem-3700df78-f6ac-4faa-8bf4-2119df763e01:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2021-09-20 00:01:05 |

2021-09-20 00:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:05 | ------------------------------------

2021-09-20 00:01:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-37cf5f6d-859c-473b-a350-8a73b69d5fde",
    "item-id": "item-3700df78-f6ac-4faa-8bf4-2119df763e01"
}

2021-09-20 00:01:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-37cf5f6d-859c-473b-a350-8a73b69d5fde",
    "item-id": "item-3700df78-f6ac-4faa-8bf4-2119df763e01",
    "item": [
        "<item id=\"item-3700df78-f6ac-4faa-8bf4-2119df763e01\"><test>item-3700df78-f6ac-4faa-8bf4-2119df763e01</test></item>"
    ]
}

2021-09-20 00:01:05 | [Mutex] notify: [retrieved:item:item-3700df78-f6ac-4faa-8bf4-2119df763e01:payload-matches:true:localhost]

2021-09-20 00:01:05 | [Mutex] received everything.

2021-09-20 00:01:05 | [Mutex] isItemNotified: retrieved:item:item-3700df78-f6ac-4faa-8bf4-2119df763e01:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.088s
2021-09-20 00:01:05 |

2021-09-20 00:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:05 | ------------------------------------

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

2021-09-20 00:01:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-37cf5f6d-859c-473b-a350-8a73b69d5fde",
        "node-898c3ba3-99c9-420c-b597-69fbec3eca06"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-09-20 00:01:05 |

2021-09-20 00:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:05 | ------------------------------------

2021-09-20 00:01:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-37cf5f6d-859c-473b-a350-8a73b69d5fde)"
}

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

subscribeNodes 1.009s
2021-09-20 00:01:04 |

2021-09-20 00:01:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:04 | ------------------------------------

2021-09-20 00:01:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-37cf5f6d-859c-473b-a350-8a73b69d5fde",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 00:01:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.052s
2021-09-20 00:01:06 |

2021-09-20 00:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 00:01:06 | ------------------------------------

2021-09-20 00:01:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-37cf5f6d-859c-473b-a350-8a73b69d5fde",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 00:01:06 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}