Generated by TestNG with ReportNG at 21:42 PST on Monday 07 February 2022
root@f29ef40080b5 / 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.989s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.149s
2022-02-07 21:57:52 |

2022-02-07 21:57:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:52 | ------------------------------------

2022-02-07 21:57:52 | [Mutex] waiting for: [configured:node:node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b:node-1d7a804f-2853-4561-b318-b82bbe7c174b]

2022-02-07 21:57:53 | [Mutex] received everything.

2022-02-07 21:57:53 | [Mutex] isItemNotified: configured:node:node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b:node-1d7a804f-2853-4561-b318-b82bbe7c174b :: true

2022-02-07 21:57:54 | [Mutex] waiting for: [received:nodes:9e961c91-af1f-4978-b097-c7c282a50938:localhost]

2022-02-07 21:57:54 | [Mutex] waiting for: [received:nodes:9e961c91-af1f-4978-b097-c7c282a50938:localhost]

2022-02-07 21:57:54 | [Mutex] received everything.

2022-02-07 21:57:54 | [Mutex] isItemNotified: received:node:9e961c91-af1f-4978-b097-c7c282a50938:localhost:node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b:Node e64fc6cf-f885-4c4c-b26d-3903d2c6b10b :: true

2022-02-07 21:57:54 | [Mutex] waiting for: [received:nodes:62230392-7d34-4ca2-a1c3-8983f32e07bb:localhost]

2022-02-07 21:57:54 | [Mutex] received everything.

2022-02-07 21:57:54 | [Mutex] isItemNotified: received:node:62230392-7d34-4ca2-a1c3-8983f32e07bb:localhost:node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b:Node e64fc6cf-f885-4c4c-b26d-3903d2c6b10b :: false

createNodes 1.690s
2022-02-07 21:57:50 |

2022-02-07 21:57:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:50 | ------------------------------------

2022-02-07 21:57:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b",
    "pubsub#title": "Node e64fc6cf-f885-4c4c-b26d-3903d2c6b10b"
}

2022-02-07 21:57:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-07 21:57:51 | [Mutex] waiting for: [received:nodes:0f6d37ca-e816-4de1-b3fc-cce7e12dcf11:localhost]

2022-02-07 21:57:51 | [Mutex] waiting for: [received:nodes:0f6d37ca-e816-4de1-b3fc-cce7e12dcf11:localhost]

2022-02-07 21:57:51 | [Mutex] received everything.

2022-02-07 21:57:51 | [Mutex] isItemNotified: received:node:0f6d37ca-e816-4de1-b3fc-cce7e12dcf11:localhost:node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b:Node e64fc6cf-f885-4c4c-b26d-3903d2c6b10b :: true

createSubnodes 1.023s
2022-02-07 21:57:51 |

2022-02-07 21:57:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:51 | ------------------------------------

2022-02-07 21:57:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1d7a804f-2853-4561-b318-b82bbe7c174b",
    "pubsub#title": "Node 1d7a804f-2853-4561-b318-b82bbe7c174b"
}

2022-02-07 21:57:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-07 21:57:52 | [Mutex] waiting for: [received:nodes:b7804d68-1eaa-4458-8861-5ce859231338:localhost]

2022-02-07 21:57:52 | [Mutex] received everything.

2022-02-07 21:57:52 | [Mutex] isItemNotified: received:node:b7804d68-1eaa-4458-8861-5ce859231338:localhost:node-1d7a804f-2853-4561-b318-b82bbe7c174b:Node 1d7a804f-2853-4561-b318-b82bbe7c174b :: true

deleteNodes 1.021s
2022-02-07 21:57:57 |

2022-02-07 21:57:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:57 | ------------------------------------

2022-02-07 21:57:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1d7a804f-2853-4561-b318-b82bbe7c174b"
}

2022-02-07 21:57:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-07 21:57:58 | [Mutex] waiting for: [received:nodes:7c21d13b-c91b-432d-aa0d-e78459c1cfe4:localhost]

2022-02-07 21:57:58 | [Mutex] received everything.

2022-02-07 21:57:58 | [Mutex] isItemNotified: received:node:7c21d13b-c91b-432d-aa0d-e78459c1cfe4:localhost:node-1d7a804f-2853-4561-b318-b82bbe7c174b:Node 1d7a804f-2853-4561-b318-b82bbe7c174b :: false

deleteSubnodes 1.033s
2022-02-07 21:57:56 |

2022-02-07 21:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:56 | ------------------------------------

2022-02-07 21:57:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b"
}

2022-02-07 21:57:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-07 21:57:57 | [Mutex] waiting for: [received:nodes:bcd028d6-c2be-4e4a-b389-4739fafc5aa2:localhost]

2022-02-07 21:57:57 | [Mutex] received everything.

2022-02-07 21:57:57 | [Mutex] isItemNotified: received:node:bcd028d6-c2be-4e4a-b389-4739fafc5aa2:localhost:node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b:Node e64fc6cf-f885-4c4c-b26d-3903d2c6b10b :: false

2022-02-07 21:57:57 | [Mutex] waiting for: [received:nodes:fea56d17-5e5d-4852-9faa-52c663479820:localhost]

2022-02-07 21:57:57 | [Mutex] received everything.

2022-02-07 21:57:57 | [Mutex] isItemNotified: received:node:fea56d17-5e5d-4852-9faa-52c663479820:localhost:node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b:Node e64fc6cf-f885-4c4c-b26d-3903d2c6b10b :: false

publishItemsToNodes 0.061s
2022-02-07 21:57:55 |

2022-02-07 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:55 | ------------------------------------

2022-02-07 21:57:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b",
    "entry": "<test>item-70ba59f2-01d8-48f1-bbeb-9d24781321c5</test>",
    "item-id": "item-70ba59f2-01d8-48f1-bbeb-9d24781321c5"
}

2022-02-07 21:57:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-70ba59f2-01d8-48f1-bbeb-9d24781321c5"
}

2022-02-07 21:57:55 | [Mutex] waiting for: [published:item:notifieditem-70ba59f2-01d8-48f1-bbeb-9d24781321c5:admin@test-domain.com]

2022-02-07 21:57:55 | [Mutex] received everything.

2022-02-07 21:57:55 | [Mutex] isItemNotified: published:item:notifieditem-70ba59f2-01d8-48f1-bbeb-9d24781321c5:admin@test-domain.com :: true

retractItemsFromNodes 0.099s
2022-02-07 21:57:55 |

2022-02-07 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:55 | ------------------------------------

2022-02-07 21:57:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b",
    "item-id": "item-70ba59f2-01d8-48f1-bbeb-9d24781321c5"
}

2022-02-07 21:57:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-70ba59f2-01d8-48f1-bbeb-9d24781321c5"
}

2022-02-07 21:57:55 | [Mutex] waiting for: [retracted:item:notifieditem-70ba59f2-01d8-48f1-bbeb-9d24781321c5:admin@test-domain.com]

2022-02-07 21:57:55 | [Mutex] received everything.

2022-02-07 21:57:55 | [Mutex] isItemNotified: retracted:item:notifieditem-70ba59f2-01d8-48f1-bbeb-9d24781321c5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.026s
2022-02-07 21:57:55 |

2022-02-07 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:55 | ------------------------------------

2022-02-07 21:57:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b",
    "item-id": "item-70ba59f2-01d8-48f1-bbeb-9d24781321c5"
}

2022-02-07 21:57:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b",
    "item-id": "item-70ba59f2-01d8-48f1-bbeb-9d24781321c5",
    "item": [
        "<item id=\"item-70ba59f2-01d8-48f1-bbeb-9d24781321c5\"><test>item-70ba59f2-01d8-48f1-bbeb-9d24781321c5</test></item>"
    ]
}

2022-02-07 21:57:55 | [Mutex] notify: [retrieved:item:item-70ba59f2-01d8-48f1-bbeb-9d24781321c5:payload-matches:true:localhost]

2022-02-07 21:57:55 | [Mutex] received everything.

2022-02-07 21:57:55 | [Mutex] isItemNotified: retrieved:item:item-70ba59f2-01d8-48f1-bbeb-9d24781321c5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.058s
2022-02-07 21:57:55 |

2022-02-07 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:55 | ------------------------------------

2022-02-07 21:57:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-07 21:57:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b",
        "node-1d7a804f-2853-4561-b318-b82bbe7c174b",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-02-07 21:57:55 |

2022-02-07 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:55 | ------------------------------------

2022-02-07 21:57:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b)"
}

2022-02-07 21:57:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-02-07 21:57:54 |

2022-02-07 21:57:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:54 | ------------------------------------

2022-02-07 21:57:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-07 21:57:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-02-07 21:57:55 |

2022-02-07 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 21:57:55 | ------------------------------------

2022-02-07 21:57:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e64fc6cf-f885-4c4c-b26d-3903d2c6b10b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-07 21:57:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}