Generated by TestNG with ReportNG at 21:29 PST on Tuesday 16 November 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.898s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.169s
2021-11-16 21:45:33 |

2021-11-16 21:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:33 | ------------------------------------

2021-11-16 21:45:33 | [Mutex] waiting for: [configured:node:node-467a8df2-8075-4f59-978e-f47aba6e48bb:node-939fed3a-85a2-49b3-82a1-8a37ba5f2844]

2021-11-16 21:45:34 | [Mutex] received everything.

2021-11-16 21:45:34 | [Mutex] isItemNotified: configured:node:node-467a8df2-8075-4f59-978e-f47aba6e48bb:node-939fed3a-85a2-49b3-82a1-8a37ba5f2844 :: true

2021-11-16 21:45:35 | [Mutex] waiting for: [received:nodes:973a813c-e102-4e36-adbe-371a3db82c51:localhost]

2021-11-16 21:45:35 | [Mutex] received everything.

2021-11-16 21:45:35 | [Mutex] isItemNotified: received:node:973a813c-e102-4e36-adbe-371a3db82c51:localhost:node-467a8df2-8075-4f59-978e-f47aba6e48bb:Node 467a8df2-8075-4f59-978e-f47aba6e48bb :: true

2021-11-16 21:45:35 | [Mutex] waiting for: [received:nodes:cf61cd2c-ba4f-4e36-adc8-396583e69f2e:localhost]

2021-11-16 21:45:35 | [Mutex] received everything.

2021-11-16 21:45:35 | [Mutex] isItemNotified: received:node:cf61cd2c-ba4f-4e36-adc8-396583e69f2e:localhost:node-467a8df2-8075-4f59-978e-f47aba6e48bb:Node 467a8df2-8075-4f59-978e-f47aba6e48bb :: false

createNodes 1.514s
2021-11-16 21:45:31 |

2021-11-16 21:45:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:31 | ------------------------------------

2021-11-16 21:45: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-467a8df2-8075-4f59-978e-f47aba6e48bb",
    "pubsub#title": "Node 467a8df2-8075-4f59-978e-f47aba6e48bb"
}

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

2021-11-16 21:45:32 | [Mutex] waiting for: [received:nodes:cf3edcab-c584-4a3b-a23d-8b9699fab41d:localhost]

2021-11-16 21:45:32 | [Mutex] received everything.

2021-11-16 21:45:32 | [Mutex] isItemNotified: received:node:cf3edcab-c584-4a3b-a23d-8b9699fab41d:localhost:node-467a8df2-8075-4f59-978e-f47aba6e48bb:Node 467a8df2-8075-4f59-978e-f47aba6e48bb :: true

createSubnodes 1.032s
2021-11-16 21:45:32 |

2021-11-16 21:45:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:32 | ------------------------------------

2021-11-16 21:45: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-939fed3a-85a2-49b3-82a1-8a37ba5f2844",
    "pubsub#title": "Node 939fed3a-85a2-49b3-82a1-8a37ba5f2844"
}

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

2021-11-16 21:45:33 | [Mutex] waiting for: [received:nodes:42ac9a7e-c89b-4b5c-af5b-d1b76481838d:localhost]

2021-11-16 21:45:33 | [Mutex] received everything.

2021-11-16 21:45:33 | [Mutex] isItemNotified: received:node:42ac9a7e-c89b-4b5c-af5b-d1b76481838d:localhost:node-939fed3a-85a2-49b3-82a1-8a37ba5f2844:Node 939fed3a-85a2-49b3-82a1-8a37ba5f2844 :: true

deleteNodes 1.020s
2021-11-16 21:45:38 |

2021-11-16 21:45:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:38 | ------------------------------------

2021-11-16 21:45:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-939fed3a-85a2-49b3-82a1-8a37ba5f2844"
}

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

2021-11-16 21:45:39 | [Mutex] waiting for: [received:nodes:13f4cfc0-6c24-4c75-8a41-04ff029d1291:localhost]

2021-11-16 21:45:39 | [Mutex] received everything.

2021-11-16 21:45:39 | [Mutex] isItemNotified: received:node:13f4cfc0-6c24-4c75-8a41-04ff029d1291:localhost:node-939fed3a-85a2-49b3-82a1-8a37ba5f2844:Node 939fed3a-85a2-49b3-82a1-8a37ba5f2844 :: false

deleteSubnodes 1.031s
2021-11-16 21:45:37 |

2021-11-16 21:45:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:37 | ------------------------------------

2021-11-16 21:45:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-467a8df2-8075-4f59-978e-f47aba6e48bb"
}

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

2021-11-16 21:45:38 | [Mutex] waiting for: [received:nodes:1860adec-d8f0-46fb-adb4-06a7f5bc043a:localhost]

2021-11-16 21:45:38 | [Mutex] waiting for: [received:nodes:1860adec-d8f0-46fb-adb4-06a7f5bc043a:localhost]

2021-11-16 21:45:38 | [Mutex] received everything.

2021-11-16 21:45:38 | [Mutex] isItemNotified: received:node:1860adec-d8f0-46fb-adb4-06a7f5bc043a:localhost:node-467a8df2-8075-4f59-978e-f47aba6e48bb:Node 467a8df2-8075-4f59-978e-f47aba6e48bb :: false

2021-11-16 21:45:38 | [Mutex] waiting for: [received:nodes:67a9822a-a915-44d5-83df-483cc8c00cb4:localhost]

2021-11-16 21:45:38 | [Mutex] received everything.

2021-11-16 21:45:38 | [Mutex] isItemNotified: received:node:67a9822a-a915-44d5-83df-483cc8c00cb4:localhost:node-467a8df2-8075-4f59-978e-f47aba6e48bb:Node 467a8df2-8075-4f59-978e-f47aba6e48bb :: false

publishItemsToNodes 0.040s
2021-11-16 21:45:36 |

2021-11-16 21:45:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:36 | ------------------------------------

2021-11-16 21:45:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-467a8df2-8075-4f59-978e-f47aba6e48bb",
    "entry": "<test>item-c37bee48-bc98-48d1-876e-ce1a308502bc</test>",
    "item-id": "item-c37bee48-bc98-48d1-876e-ce1a308502bc"
}

2021-11-16 21:45:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c37bee48-bc98-48d1-876e-ce1a308502bc"
}

2021-11-16 21:45:36 | [Mutex] waiting for: [published:item:notifieditem-c37bee48-bc98-48d1-876e-ce1a308502bc:admin@test-domain.com]

2021-11-16 21:45:36 | [Mutex] received everything.

2021-11-16 21:45:36 | [Mutex] isItemNotified: published:item:notifieditem-c37bee48-bc98-48d1-876e-ce1a308502bc:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-11-16 21:45:36 |

2021-11-16 21:45:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:36 | ------------------------------------

2021-11-16 21:45:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-467a8df2-8075-4f59-978e-f47aba6e48bb",
    "item-id": "item-c37bee48-bc98-48d1-876e-ce1a308502bc"
}

2021-11-16 21:45:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c37bee48-bc98-48d1-876e-ce1a308502bc"
}

2021-11-16 21:45:36 | [Mutex] waiting for: [retracted:item:notifieditem-c37bee48-bc98-48d1-876e-ce1a308502bc:admin@test-domain.com]

2021-11-16 21:45:36 | [Mutex] received everything.

2021-11-16 21:45:36 | [Mutex] isItemNotified: retracted:item:notifieditem-c37bee48-bc98-48d1-876e-ce1a308502bc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2021-11-16 21:45:36 |

2021-11-16 21:45:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:36 | ------------------------------------

2021-11-16 21:45:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-467a8df2-8075-4f59-978e-f47aba6e48bb",
    "item-id": "item-c37bee48-bc98-48d1-876e-ce1a308502bc"
}

2021-11-16 21:45:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-467a8df2-8075-4f59-978e-f47aba6e48bb",
    "item-id": "item-c37bee48-bc98-48d1-876e-ce1a308502bc",
    "item": [
        "<item id=\"item-c37bee48-bc98-48d1-876e-ce1a308502bc\"><test>item-c37bee48-bc98-48d1-876e-ce1a308502bc</test></item>"
    ]
}

2021-11-16 21:45:36 | [Mutex] notify: [retrieved:item:item-c37bee48-bc98-48d1-876e-ce1a308502bc:payload-matches:true:localhost]

2021-11-16 21:45:36 | [Mutex] received everything.

2021-11-16 21:45:36 | [Mutex] isItemNotified: retrieved:item:item-c37bee48-bc98-48d1-876e-ce1a308502bc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-11-16 21:45:36 |

2021-11-16 21:45:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:36 | ------------------------------------

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

2021-11-16 21:45:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-939fed3a-85a2-49b3-82a1-8a37ba5f2844",
        "node-467a8df2-8075-4f59-978e-f47aba6e48bb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-11-16 21:45:36 |

2021-11-16 21:45:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:36 | ------------------------------------

2021-11-16 21:45:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-467a8df2-8075-4f59-978e-f47aba6e48bb)"
}

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

subscribeNodes 1.011s
2021-11-16 21:45:35 |

2021-11-16 21:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:35 | ------------------------------------

2021-11-16 21:45:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-467a8df2-8075-4f59-978e-f47aba6e48bb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2021-11-16 21:45:36 |

2021-11-16 21:45:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 21:45:36 | ------------------------------------

2021-11-16 21:45:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-467a8df2-8075-4f59-978e-f47aba6e48bb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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