Generated by TestNG with ReportNG at 21:30 PST on Sunday 18 December 2022
root@7c41cec37518 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.717s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-12-18 21:47:21 |

2022-12-18 21:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:21 | ------------------------------------

2022-12-18 21:47:21 | [Mutex] waiting for: [configured:node:node-5870999c-f536-452f-b462-2dabce328405:node-ddd4e8e1-814d-4e87-b2c6-c58bcc571b91]

2022-12-18 21:47:21 | [Mutex] received everything.

2022-12-18 21:47:21 | [Mutex] isItemNotified: configured:node:node-5870999c-f536-452f-b462-2dabce328405:node-ddd4e8e1-814d-4e87-b2c6-c58bcc571b91 :: true

2022-12-18 21:47:22 | [Mutex] waiting for: [received:nodes:911dd008-051f-4628-88c5-a1665eabd3ff:localhost]

2022-12-18 21:47:22 | [Mutex] received everything.

2022-12-18 21:47:22 | [Mutex] isItemNotified: received:node:911dd008-051f-4628-88c5-a1665eabd3ff:localhost:node-5870999c-f536-452f-b462-2dabce328405:Node 5870999c-f536-452f-b462-2dabce328405 :: true

2022-12-18 21:47:22 | [Mutex] waiting for: [received:nodes:09e9feb6-5bbc-4ccb-bae2-0eb68df1ba87:localhost]

2022-12-18 21:47:22 | [Mutex] waiting for: [received:nodes:09e9feb6-5bbc-4ccb-bae2-0eb68df1ba87:localhost]

2022-12-18 21:47:22 | [Mutex] waiting for: [received:nodes:09e9feb6-5bbc-4ccb-bae2-0eb68df1ba87:localhost]

2022-12-18 21:47:22 | [Mutex] received everything.

2022-12-18 21:47:22 | [Mutex] isItemNotified: received:node:09e9feb6-5bbc-4ccb-bae2-0eb68df1ba87:localhost:node-5870999c-f536-452f-b462-2dabce328405:Node 5870999c-f536-452f-b462-2dabce328405 :: false

createNodes 1.650s
2022-12-18 21:47:18 |

2022-12-18 21:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:18 | ------------------------------------

2022-12-18 21:47:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5870999c-f536-452f-b462-2dabce328405",
    "pubsub#title": "Node 5870999c-f536-452f-b462-2dabce328405"
}

2022-12-18 21:47:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-18 21:47:20 | [Mutex] waiting for: [received:nodes:6d384576-a1fa-43e3-b64a-12590f56c94e:localhost]

2022-12-18 21:47:20 | [Mutex] waiting for: [received:nodes:6d384576-a1fa-43e3-b64a-12590f56c94e:localhost]

2022-12-18 21:47:20 | [Mutex] waiting for: [received:nodes:6d384576-a1fa-43e3-b64a-12590f56c94e:localhost]

2022-12-18 21:47:20 | [Mutex] waiting for: [received:nodes:6d384576-a1fa-43e3-b64a-12590f56c94e:localhost]

2022-12-18 21:47:20 | [Mutex] received everything.

2022-12-18 21:47:20 | [Mutex] isItemNotified: received:node:6d384576-a1fa-43e3-b64a-12590f56c94e:localhost:node-5870999c-f536-452f-b462-2dabce328405:Node 5870999c-f536-452f-b462-2dabce328405 :: true

createSubnodes 1.045s
2022-12-18 21:47:20 |

2022-12-18 21:47:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:20 | ------------------------------------

2022-12-18 21:47:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ddd4e8e1-814d-4e87-b2c6-c58bcc571b91",
    "pubsub#title": "Node ddd4e8e1-814d-4e87-b2c6-c58bcc571b91"
}

2022-12-18 21:47:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-18 21:47:21 | [Mutex] waiting for: [received:nodes:0a233fd1-66e1-471c-b230-013329c8dcd9:localhost]

2022-12-18 21:47:21 | [Mutex] received everything.

2022-12-18 21:47:21 | [Mutex] isItemNotified: received:node:0a233fd1-66e1-471c-b230-013329c8dcd9:localhost:node-ddd4e8e1-814d-4e87-b2c6-c58bcc571b91:Node ddd4e8e1-814d-4e87-b2c6-c58bcc571b91 :: true

deleteNodes 1.026s
2022-12-18 21:47:26 |

2022-12-18 21:47:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:26 | ------------------------------------

2022-12-18 21:47:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ddd4e8e1-814d-4e87-b2c6-c58bcc571b91"
}

2022-12-18 21:47:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-18 21:47:27 | [Mutex] waiting for: [received:nodes:a3110b92-1cf1-4a81-a9f2-c559877d33df:localhost]

2022-12-18 21:47:27 | [Mutex] waiting for: [received:nodes:a3110b92-1cf1-4a81-a9f2-c559877d33df:localhost]

2022-12-18 21:47:27 | [Mutex] waiting for: [received:nodes:a3110b92-1cf1-4a81-a9f2-c559877d33df:localhost]

2022-12-18 21:47:27 | [Mutex] received everything.

2022-12-18 21:47:27 | [Mutex] isItemNotified: received:node:a3110b92-1cf1-4a81-a9f2-c559877d33df:localhost:node-ddd4e8e1-814d-4e87-b2c6-c58bcc571b91:Node ddd4e8e1-814d-4e87-b2c6-c58bcc571b91 :: false

deleteSubnodes 1.033s
2022-12-18 21:47:25 |

2022-12-18 21:47:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:25 | ------------------------------------

2022-12-18 21:47:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5870999c-f536-452f-b462-2dabce328405"
}

2022-12-18 21:47:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-18 21:47:26 | [Mutex] waiting for: [received:nodes:8a680ed4-9f0f-4739-a0cd-079d489ee6ad:localhost]

2022-12-18 21:47:26 | [Mutex] waiting for: [received:nodes:8a680ed4-9f0f-4739-a0cd-079d489ee6ad:localhost]

2022-12-18 21:47:26 | [Mutex] waiting for: [received:nodes:8a680ed4-9f0f-4739-a0cd-079d489ee6ad:localhost]

2022-12-18 21:47:26 | [Mutex] waiting for: [received:nodes:8a680ed4-9f0f-4739-a0cd-079d489ee6ad:localhost]

2022-12-18 21:47:26 | [Mutex] received everything.

2022-12-18 21:47:26 | [Mutex] isItemNotified: received:node:8a680ed4-9f0f-4739-a0cd-079d489ee6ad:localhost:node-5870999c-f536-452f-b462-2dabce328405:Node 5870999c-f536-452f-b462-2dabce328405 :: false

2022-12-18 21:47:26 | [Mutex] waiting for: [received:nodes:76cb4943-9c8b-452b-aaef-fd474bf9564f:localhost]

2022-12-18 21:47:26 | [Mutex] received everything.

2022-12-18 21:47:26 | [Mutex] isItemNotified: received:node:76cb4943-9c8b-452b-aaef-fd474bf9564f:localhost:node-5870999c-f536-452f-b462-2dabce328405:Node 5870999c-f536-452f-b462-2dabce328405 :: false

publishItemsToNodes 0.046s
2022-12-18 21:47:23 |

2022-12-18 21:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:23 | ------------------------------------

2022-12-18 21:47:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5870999c-f536-452f-b462-2dabce328405",
    "entry": "<test>item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285</test>",
    "item-id": "item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285"
}

2022-12-18 21:47:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285"
}

2022-12-18 21:47:23 | [Mutex] waiting for: [published:item:notifieditem-17f15b9c-1a87-4d5a-a490-5ffa76bcb285:admin@test-domain.com]

2022-12-18 21:47:23 | [Mutex] received everything.

2022-12-18 21:47:23 | [Mutex] isItemNotified: published:item:notifieditem-17f15b9c-1a87-4d5a-a490-5ffa76bcb285:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-12-18 21:47:23 |

2022-12-18 21:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:23 | ------------------------------------

2022-12-18 21:47:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5870999c-f536-452f-b462-2dabce328405",
    "item-id": "item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285"
}

2022-12-18 21:47:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285"
}

2022-12-18 21:47:24 | [Mutex] received everything.

2022-12-18 21:47:24 | [Mutex] isItemNotified: retracted:item:notifieditem-17f15b9c-1a87-4d5a-a490-5ffa76bcb285:admin@test-domain.com :: true

retrieveItemsFromNodes 0.054s
2022-12-18 21:47:23 |

2022-12-18 21:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:23 | ------------------------------------

2022-12-18 21:47:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5870999c-f536-452f-b462-2dabce328405",
    "item-id": "item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285"
}

2022-12-18 21:47:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5870999c-f536-452f-b462-2dabce328405",
    "item-id": "item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285",
    "item": [
        "<item id=\"item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285\"><test>item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285</test></item>"
    ]
}

2022-12-18 21:47:23 | [Mutex] notify: [retrieved:item:item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285:payload-matches:true:localhost]

2022-12-18 21:47:23 | [Mutex] received everything.

2022-12-18 21:47:23 | [Mutex] isItemNotified: retrieved:item:item-17f15b9c-1a87-4d5a-a490-5ffa76bcb285:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-12-18 21:47:23 |

2022-12-18 21:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:23 | ------------------------------------

2022-12-18 21:47:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-18 21:47:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5870999c-f536-452f-b462-2dabce328405",
        "test",
        "node-ddd4e8e1-814d-4e87-b2c6-c58bcc571b91"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-12-18 21:47:23 |

2022-12-18 21:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:23 | ------------------------------------

2022-12-18 21:47:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5870999c-f536-452f-b462-2dabce328405)"
}

2022-12-18 21:47:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-12-18 21:47:22 |

2022-12-18 21:47:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:22 | ------------------------------------

2022-12-18 21:47:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5870999c-f536-452f-b462-2dabce328405",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-18 21:47:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.116s
2022-12-18 21:47:24 |

2022-12-18 21:47:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-18 21:47:24 | ------------------------------------

2022-12-18 21:47:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5870999c-f536-452f-b462-2dabce328405",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-18 21:47:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}