Generated by TestNG with ReportNG at 21:18 PST on Monday 14 November 2022
root@f9c07ffec79b / 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.720s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2022-11-14 21:33:33 |

2022-11-14 21:33:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:33 | ------------------------------------

2022-11-14 21:33:33 | [Mutex] waiting for: [configured:node:node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c:node-335f7c07-612e-4422-9abd-7db3786ebb0a]

2022-11-14 21:33:33 | [Mutex] received everything.

2022-11-14 21:33:33 | [Mutex] isItemNotified: configured:node:node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c:node-335f7c07-612e-4422-9abd-7db3786ebb0a :: true

2022-11-14 21:33:34 | [Mutex] waiting for: [received:nodes:c4431c6d-f71f-427b-89fe-f20e63019750:localhost]

2022-11-14 21:33:34 | [Mutex] received everything.

2022-11-14 21:33:34 | [Mutex] isItemNotified: received:node:c4431c6d-f71f-427b-89fe-f20e63019750:localhost:node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c:Node 0d1b66f3-2063-4bf2-ad4f-6e0309b8626c :: true

2022-11-14 21:33:34 | [Mutex] waiting for: [received:nodes:d0a5415c-951f-41ca-8286-138b9bc401ac:localhost]

2022-11-14 21:33:34 | [Mutex] received everything.

2022-11-14 21:33:34 | [Mutex] isItemNotified: received:node:d0a5415c-951f-41ca-8286-138b9bc401ac:localhost:node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c:Node 0d1b66f3-2063-4bf2-ad4f-6e0309b8626c :: false

createNodes 1.671s
2022-11-14 21:33:30 |

2022-11-14 21:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:30 | ------------------------------------

2022-11-14 21:33: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-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c",
    "pubsub#title": "Node 0d1b66f3-2063-4bf2-ad4f-6e0309b8626c"
}

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

2022-11-14 21:33:32 | [Mutex] waiting for: [received:nodes:ba48ef66-6e49-4ca6-bfa9-6c36847b7e75:localhost]

2022-11-14 21:33:32 | [Mutex] waiting for: [received:nodes:ba48ef66-6e49-4ca6-bfa9-6c36847b7e75:localhost]

2022-11-14 21:33:32 | [Mutex] received everything.

2022-11-14 21:33:32 | [Mutex] isItemNotified: received:node:ba48ef66-6e49-4ca6-bfa9-6c36847b7e75:localhost:node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c:Node 0d1b66f3-2063-4bf2-ad4f-6e0309b8626c :: true

createSubnodes 1.022s
2022-11-14 21:33:32 |

2022-11-14 21:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:32 | ------------------------------------

2022-11-14 21:33: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-335f7c07-612e-4422-9abd-7db3786ebb0a",
    "pubsub#title": "Node 335f7c07-612e-4422-9abd-7db3786ebb0a"
}

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

2022-11-14 21:33:33 | [Mutex] waiting for: [received:nodes:ba1af463-37a3-4086-956f-a7cd26154f2e:localhost]

2022-11-14 21:33:33 | [Mutex] waiting for: [received:nodes:ba1af463-37a3-4086-956f-a7cd26154f2e:localhost]

2022-11-14 21:33:33 | [Mutex] received everything.

2022-11-14 21:33:33 | [Mutex] isItemNotified: received:node:ba1af463-37a3-4086-956f-a7cd26154f2e:localhost:node-335f7c07-612e-4422-9abd-7db3786ebb0a:Node 335f7c07-612e-4422-9abd-7db3786ebb0a :: true

deleteNodes 1.022s
2022-11-14 21:33:37 |

2022-11-14 21:33:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:37 | ------------------------------------

2022-11-14 21:33:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-335f7c07-612e-4422-9abd-7db3786ebb0a"
}

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

2022-11-14 21:33:38 | [Mutex] waiting for: [received:nodes:fed2dc45-5fed-4f29-b969-393994bff899:localhost]

2022-11-14 21:33:38 | [Mutex] waiting for: [received:nodes:fed2dc45-5fed-4f29-b969-393994bff899:localhost]

2022-11-14 21:33:38 | [Mutex] received everything.

2022-11-14 21:33:38 | [Mutex] isItemNotified: received:node:fed2dc45-5fed-4f29-b969-393994bff899:localhost:node-335f7c07-612e-4422-9abd-7db3786ebb0a:Node 335f7c07-612e-4422-9abd-7db3786ebb0a :: false

deleteSubnodes 1.029s
2022-11-14 21:33:36 |

2022-11-14 21:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:36 | ------------------------------------

2022-11-14 21:33:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c"
}

2022-11-14 21:33:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-14 21:33:37 | [Mutex] waiting for: [received:nodes:4c822645-ca41-4911-966c-f264c20fbc16:localhost]

2022-11-14 21:33:37 | [Mutex] received everything.

2022-11-14 21:33:37 | [Mutex] isItemNotified: received:node:4c822645-ca41-4911-966c-f264c20fbc16:localhost:node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c:Node 0d1b66f3-2063-4bf2-ad4f-6e0309b8626c :: false

2022-11-14 21:33:37 | [Mutex] waiting for: [received:nodes:cb9f364e-036d-4bd2-85ca-f29514d02a55:localhost]

2022-11-14 21:33:37 | [Mutex] received everything.

2022-11-14 21:33:37 | [Mutex] isItemNotified: received:node:cb9f364e-036d-4bd2-85ca-f29514d02a55:localhost:node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c:Node 0d1b66f3-2063-4bf2-ad4f-6e0309b8626c :: false

publishItemsToNodes 0.047s
2022-11-14 21:33:35 |

2022-11-14 21:33:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:35 | ------------------------------------

2022-11-14 21:33:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c",
    "entry": "<test>item-227a88a6-487f-47be-9b20-c6f01bc461ee</test>",
    "item-id": "item-227a88a6-487f-47be-9b20-c6f01bc461ee"
}

2022-11-14 21:33:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-227a88a6-487f-47be-9b20-c6f01bc461ee"
}

2022-11-14 21:33:35 | [Mutex] waiting for: [published:item:notifieditem-227a88a6-487f-47be-9b20-c6f01bc461ee:admin@test-domain.com]

2022-11-14 21:33:35 | [Mutex] received everything.

2022-11-14 21:33:35 | [Mutex] isItemNotified: published:item:notifieditem-227a88a6-487f-47be-9b20-c6f01bc461ee:admin@test-domain.com :: true

retractItemsFromNodes 0.050s
2022-11-14 21:33:35 |

2022-11-14 21:33:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:35 | ------------------------------------

2022-11-14 21:33:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c",
    "item-id": "item-227a88a6-487f-47be-9b20-c6f01bc461ee"
}

2022-11-14 21:33:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-227a88a6-487f-47be-9b20-c6f01bc461ee"
}

2022-11-14 21:33:35 | [Mutex] received everything.

2022-11-14 21:33:35 | [Mutex] isItemNotified: retracted:item:notifieditem-227a88a6-487f-47be-9b20-c6f01bc461ee:admin@test-domain.com :: true

retrieveItemsFromNodes 0.080s
2022-11-14 21:33:35 |

2022-11-14 21:33:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:35 | ------------------------------------

2022-11-14 21:33:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c",
    "item-id": "item-227a88a6-487f-47be-9b20-c6f01bc461ee"
}

2022-11-14 21:33:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c",
    "item-id": "item-227a88a6-487f-47be-9b20-c6f01bc461ee",
    "item": [
        "<item id=\"item-227a88a6-487f-47be-9b20-c6f01bc461ee\"><test>item-227a88a6-487f-47be-9b20-c6f01bc461ee</test></item>"
    ]
}

2022-11-14 21:33:35 | [Mutex] notify: [retrieved:item:item-227a88a6-487f-47be-9b20-c6f01bc461ee:payload-matches:true:localhost]

2022-11-14 21:33:35 | [Mutex] received everything.

2022-11-14 21:33:35 | [Mutex] isItemNotified: retrieved:item:item-227a88a6-487f-47be-9b20-c6f01bc461ee:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-11-14 21:33:35 |

2022-11-14 21:33:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:35 | ------------------------------------

2022-11-14 21:33:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-14 21:33:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-335f7c07-612e-4422-9abd-7db3786ebb0a",
        "node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-11-14 21:33:35 |

2022-11-14 21:33:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:35 | ------------------------------------

2022-11-14 21:33:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c)"
}

2022-11-14 21:33:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-11-14 21:33:34 |

2022-11-14 21:33:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:34 | ------------------------------------

2022-11-14 21:33:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-14 21:33:34 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2022-11-14 21:33:35 |

2022-11-14 21:33:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-14 21:33:35 | ------------------------------------

2022-11-14 21:33:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0d1b66f3-2063-4bf2-ad4f-6e0309b8626c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-14 21:33:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}