Generated by TestNG with ReportNG at 22:06 PST on Monday 07 February 2022
root@785cf647a4ab / 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.079s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-02-07 22:20:34 |

2022-02-07 22:20:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:34 | ------------------------------------

2022-02-07 22:20:34 | [Mutex] waiting for: [configured:node:node-67d5df4f-ae69-488d-a714-11fc36c90ef5:node-c28dfc1e-2e96-42fd-99a6-fecef139b4e2]

2022-02-07 22:20:34 | [Mutex] received everything.

2022-02-07 22:20:34 | [Mutex] isItemNotified: configured:node:node-67d5df4f-ae69-488d-a714-11fc36c90ef5:node-c28dfc1e-2e96-42fd-99a6-fecef139b4e2 :: true

2022-02-07 22:20:35 | [Mutex] waiting for: [received:nodes:36739c17-38a2-4e27-895b-c94ae872374b:localhost]

2022-02-07 22:20:35 | [Mutex] received everything.

2022-02-07 22:20:35 | [Mutex] isItemNotified: received:node:36739c17-38a2-4e27-895b-c94ae872374b:localhost:node-67d5df4f-ae69-488d-a714-11fc36c90ef5:Node 67d5df4f-ae69-488d-a714-11fc36c90ef5 :: true

2022-02-07 22:20:35 | [Mutex] waiting for: [received:nodes:0534731e-f3ba-425c-aadb-59a745e807ad:localhost]

2022-02-07 22:20:35 | [Mutex] waiting for: [received:nodes:0534731e-f3ba-425c-aadb-59a745e807ad:localhost]

2022-02-07 22:20:35 | [Mutex] received everything.

2022-02-07 22:20:35 | [Mutex] isItemNotified: received:node:0534731e-f3ba-425c-aadb-59a745e807ad:localhost:node-67d5df4f-ae69-488d-a714-11fc36c90ef5:Node 67d5df4f-ae69-488d-a714-11fc36c90ef5 :: false

createNodes 1.768s
2022-02-07 22:20:31 |

2022-02-07 22:20:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:31 | ------------------------------------

2022-02-07 22:20:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-67d5df4f-ae69-488d-a714-11fc36c90ef5",
    "pubsub#title": "Node 67d5df4f-ae69-488d-a714-11fc36c90ef5"
}

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

2022-02-07 22:20:33 | [Mutex] waiting for: [received:nodes:11c25b91-bebf-471a-ac1d-45898e1c31d3:localhost]

2022-02-07 22:20:33 | [Mutex] received everything.

2022-02-07 22:20:33 | [Mutex] isItemNotified: received:node:11c25b91-bebf-471a-ac1d-45898e1c31d3:localhost:node-67d5df4f-ae69-488d-a714-11fc36c90ef5:Node 67d5df4f-ae69-488d-a714-11fc36c90ef5 :: true

createSubnodes 1.023s
2022-02-07 22:20:33 |

2022-02-07 22:20:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:33 | ------------------------------------

2022-02-07 22:20:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c28dfc1e-2e96-42fd-99a6-fecef139b4e2",
    "pubsub#title": "Node c28dfc1e-2e96-42fd-99a6-fecef139b4e2"
}

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

2022-02-07 22:20:34 | [Mutex] waiting for: [received:nodes:b99babf6-8f33-4d9b-a72e-259522c850b7:localhost]

2022-02-07 22:20:34 | [Mutex] received everything.

2022-02-07 22:20:34 | [Mutex] isItemNotified: received:node:b99babf6-8f33-4d9b-a72e-259522c850b7:localhost:node-c28dfc1e-2e96-42fd-99a6-fecef139b4e2:Node c28dfc1e-2e96-42fd-99a6-fecef139b4e2 :: true

deleteNodes 1.025s
2022-02-07 22:20:39 |

2022-02-07 22:20:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:39 | ------------------------------------

2022-02-07 22:20:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c28dfc1e-2e96-42fd-99a6-fecef139b4e2"
}

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

2022-02-07 22:20:40 | [Mutex] waiting for: [received:nodes:b506601d-bdf9-4e7d-9755-897c986c60b3:localhost]

2022-02-07 22:20:40 | [Mutex] waiting for: [received:nodes:b506601d-bdf9-4e7d-9755-897c986c60b3:localhost]

2022-02-07 22:20:40 | [Mutex] received everything.

2022-02-07 22:20:40 | [Mutex] isItemNotified: received:node:b506601d-bdf9-4e7d-9755-897c986c60b3:localhost:node-c28dfc1e-2e96-42fd-99a6-fecef139b4e2:Node c28dfc1e-2e96-42fd-99a6-fecef139b4e2 :: false

deleteSubnodes 1.039s
2022-02-07 22:20:38 |

2022-02-07 22:20:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:38 | ------------------------------------

2022-02-07 22:20:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-67d5df4f-ae69-488d-a714-11fc36c90ef5"
}

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

2022-02-07 22:20:39 | [Mutex] waiting for: [received:nodes:db7d9add-88c1-4a05-95ec-0425889dac2e:localhost]

2022-02-07 22:20:39 | [Mutex] received everything.

2022-02-07 22:20:39 | [Mutex] isItemNotified: received:node:db7d9add-88c1-4a05-95ec-0425889dac2e:localhost:node-67d5df4f-ae69-488d-a714-11fc36c90ef5:Node 67d5df4f-ae69-488d-a714-11fc36c90ef5 :: false

2022-02-07 22:20:39 | [Mutex] waiting for: [received:nodes:a4948def-5ab5-470c-a2e0-9f5a7354b789:localhost]

2022-02-07 22:20:39 | [Mutex] received everything.

2022-02-07 22:20:39 | [Mutex] isItemNotified: received:node:a4948def-5ab5-470c-a2e0-9f5a7354b789:localhost:node-67d5df4f-ae69-488d-a714-11fc36c90ef5:Node 67d5df4f-ae69-488d-a714-11fc36c90ef5 :: false

publishItemsToNodes 0.062s
2022-02-07 22:20:36 |

2022-02-07 22:20:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:36 | ------------------------------------

2022-02-07 22:20:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-67d5df4f-ae69-488d-a714-11fc36c90ef5",
    "entry": "<test>item-f0e6498e-47e4-46c5-8b59-ef7de176e42c</test>",
    "item-id": "item-f0e6498e-47e4-46c5-8b59-ef7de176e42c"
}

2022-02-07 22:20:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f0e6498e-47e4-46c5-8b59-ef7de176e42c"
}

2022-02-07 22:20:36 | [Mutex] waiting for: [published:item:notifieditem-f0e6498e-47e4-46c5-8b59-ef7de176e42c:admin@test-domain.com]

2022-02-07 22:20:36 | [Mutex] received everything.

2022-02-07 22:20:36 | [Mutex] isItemNotified: published:item:notifieditem-f0e6498e-47e4-46c5-8b59-ef7de176e42c:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2022-02-07 22:20:36 |

2022-02-07 22:20:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:36 | ------------------------------------

2022-02-07 22:20:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-67d5df4f-ae69-488d-a714-11fc36c90ef5",
    "item-id": "item-f0e6498e-47e4-46c5-8b59-ef7de176e42c"
}

2022-02-07 22:20:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f0e6498e-47e4-46c5-8b59-ef7de176e42c"
}

2022-02-07 22:20:37 | [Mutex] received everything.

2022-02-07 22:20:37 | [Mutex] isItemNotified: retracted:item:notifieditem-f0e6498e-47e4-46c5-8b59-ef7de176e42c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2022-02-07 22:20:36 |

2022-02-07 22:20:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:36 | ------------------------------------

2022-02-07 22:20:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-67d5df4f-ae69-488d-a714-11fc36c90ef5",
    "item-id": "item-f0e6498e-47e4-46c5-8b59-ef7de176e42c"
}

2022-02-07 22:20:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-67d5df4f-ae69-488d-a714-11fc36c90ef5",
    "item-id": "item-f0e6498e-47e4-46c5-8b59-ef7de176e42c",
    "item": [
        "<item id=\"item-f0e6498e-47e4-46c5-8b59-ef7de176e42c\"><test>item-f0e6498e-47e4-46c5-8b59-ef7de176e42c</test></item>"
    ]
}

2022-02-07 22:20:36 | [Mutex] notify: [retrieved:item:item-f0e6498e-47e4-46c5-8b59-ef7de176e42c:payload-matches:true:localhost]

2022-02-07 22:20:36 | [Mutex] received everything.

2022-02-07 22:20:36 | [Mutex] isItemNotified: retrieved:item:item-f0e6498e-47e4-46c5-8b59-ef7de176e42c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.078s
2022-02-07 22:20:36 |

2022-02-07 22:20:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:36 | ------------------------------------

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

2022-02-07 22:20:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-67d5df4f-ae69-488d-a714-11fc36c90ef5",
        "node-c28dfc1e-2e96-42fd-99a6-fecef139b4e2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2022-02-07 22:20:36 |

2022-02-07 22:20:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:36 | ------------------------------------

2022-02-07 22:20:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-67d5df4f-ae69-488d-a714-11fc36c90ef5)"
}

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

subscribeNodes 1.010s
2022-02-07 22:20:35 |

2022-02-07 22:20:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:35 | ------------------------------------

2022-02-07 22:20:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-67d5df4f-ae69-488d-a714-11fc36c90ef5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2022-02-07 22:20:37 |

2022-02-07 22:20:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-07 22:20:37 | ------------------------------------

2022-02-07 22:20:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-67d5df4f-ae69-488d-a714-11fc36c90ef5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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