Generated by TestNG with ReportNG at 22:48 PDT on Friday 17 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / 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.587s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2022-06-17 23:10:07 |

2022-06-17 23:10:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:07 | ------------------------------------

2022-06-17 23:10:07 | [Mutex] waiting for: [configured:node:node-4295ed93-0a66-45e1-981c-e34875e205e7:node-76b613c5-1a05-4f3f-9453-fb50465b7ac6]

2022-06-17 23:10:07 | [Mutex] received everything.

2022-06-17 23:10:07 | [Mutex] isItemNotified: configured:node:node-4295ed93-0a66-45e1-981c-e34875e205e7:node-76b613c5-1a05-4f3f-9453-fb50465b7ac6 :: true

2022-06-17 23:10:08 | [Mutex] waiting for: [received:nodes:e3b154b6-00fc-4f0b-88c8-07d965c4833f:localhost]

2022-06-17 23:10:08 | [Mutex] received everything.

2022-06-17 23:10:08 | [Mutex] isItemNotified: received:node:e3b154b6-00fc-4f0b-88c8-07d965c4833f:localhost:node-4295ed93-0a66-45e1-981c-e34875e205e7:Node 4295ed93-0a66-45e1-981c-e34875e205e7 :: true

2022-06-17 23:10:08 | [Mutex] waiting for: [received:nodes:21bf2753-5020-4507-88a3-d2f6c7eafa30:localhost]

2022-06-17 23:10:08 | [Mutex] received everything.

2022-06-17 23:10:08 | [Mutex] isItemNotified: received:node:21bf2753-5020-4507-88a3-d2f6c7eafa30:localhost:node-4295ed93-0a66-45e1-981c-e34875e205e7:Node 4295ed93-0a66-45e1-981c-e34875e205e7 :: false

createNodes 1.573s
2022-06-17 23:10:04 |

2022-06-17 23:10:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:04 | ------------------------------------

2022-06-17 23:10:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4295ed93-0a66-45e1-981c-e34875e205e7",
    "pubsub#title": "Node 4295ed93-0a66-45e1-981c-e34875e205e7"
}

2022-06-17 23:10:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-17 23:10:06 | [Mutex] waiting for: [received:nodes:45e870af-ffcf-463b-8a24-93d7d3e48b71:localhost]

2022-06-17 23:10:06 | [Mutex] waiting for: [received:nodes:45e870af-ffcf-463b-8a24-93d7d3e48b71:localhost]

2022-06-17 23:10:06 | [Mutex] received everything.

2022-06-17 23:10:06 | [Mutex] isItemNotified: received:node:45e870af-ffcf-463b-8a24-93d7d3e48b71:localhost:node-4295ed93-0a66-45e1-981c-e34875e205e7:Node 4295ed93-0a66-45e1-981c-e34875e205e7 :: true

createSubnodes 1.021s
2022-06-17 23:10:06 |

2022-06-17 23:10:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:06 | ------------------------------------

2022-06-17 23:10:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-76b613c5-1a05-4f3f-9453-fb50465b7ac6",
    "pubsub#title": "Node 76b613c5-1a05-4f3f-9453-fb50465b7ac6"
}

2022-06-17 23:10:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-17 23:10:07 | [Mutex] waiting for: [received:nodes:432e1e7f-5e46-4d22-bbe7-97e86c56e593:localhost]

2022-06-17 23:10:07 | [Mutex] received everything.

2022-06-17 23:10:07 | [Mutex] isItemNotified: received:node:432e1e7f-5e46-4d22-bbe7-97e86c56e593:localhost:node-76b613c5-1a05-4f3f-9453-fb50465b7ac6:Node 76b613c5-1a05-4f3f-9453-fb50465b7ac6 :: true

deleteNodes 1.016s
2022-06-17 23:10:11 |

2022-06-17 23:10:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:11 | ------------------------------------

2022-06-17 23:10:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-76b613c5-1a05-4f3f-9453-fb50465b7ac6"
}

2022-06-17 23:10:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-17 23:10:12 | [Mutex] waiting for: [received:nodes:1ebd5d48-3845-4a9b-bac0-59527632bccd:localhost]

2022-06-17 23:10:12 | [Mutex] received everything.

2022-06-17 23:10:12 | [Mutex] isItemNotified: received:node:1ebd5d48-3845-4a9b-bac0-59527632bccd:localhost:node-76b613c5-1a05-4f3f-9453-fb50465b7ac6:Node 76b613c5-1a05-4f3f-9453-fb50465b7ac6 :: false

deleteSubnodes 1.022s
2022-06-17 23:10:10 |

2022-06-17 23:10:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:10 | ------------------------------------

2022-06-17 23:10:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4295ed93-0a66-45e1-981c-e34875e205e7"
}

2022-06-17 23:10:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-17 23:10:11 | [Mutex] waiting for: [received:nodes:ff66b5e6-7d13-4ef3-8112-c4c46bdbdefd:localhost]

2022-06-17 23:10:11 | [Mutex] received everything.

2022-06-17 23:10:11 | [Mutex] isItemNotified: received:node:ff66b5e6-7d13-4ef3-8112-c4c46bdbdefd:localhost:node-4295ed93-0a66-45e1-981c-e34875e205e7:Node 4295ed93-0a66-45e1-981c-e34875e205e7 :: false

2022-06-17 23:10:11 | [Mutex] waiting for: [received:nodes:92b29b8f-6ee7-44da-af7a-4a7fe7ddc503:localhost]

2022-06-17 23:10:11 | [Mutex] received everything.

2022-06-17 23:10:11 | [Mutex] isItemNotified: received:node:92b29b8f-6ee7-44da-af7a-4a7fe7ddc503:localhost:node-4295ed93-0a66-45e1-981c-e34875e205e7:Node 4295ed93-0a66-45e1-981c-e34875e205e7 :: false

publishItemsToNodes 0.037s
2022-06-17 23:10:09 |

2022-06-17 23:10:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:09 | ------------------------------------

2022-06-17 23:10:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4295ed93-0a66-45e1-981c-e34875e205e7",
    "entry": "<test>item-5ef42324-72d1-4f13-ad94-b067d16bb690</test>",
    "item-id": "item-5ef42324-72d1-4f13-ad94-b067d16bb690"
}

2022-06-17 23:10:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ef42324-72d1-4f13-ad94-b067d16bb690"
}

2022-06-17 23:10:09 | [Mutex] received everything.

2022-06-17 23:10:09 | [Mutex] isItemNotified: published:item:notifieditem-5ef42324-72d1-4f13-ad94-b067d16bb690:admin@test-domain.com :: true

retractItemsFromNodes 0.088s
2022-06-17 23:10:09 |

2022-06-17 23:10:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:09 | ------------------------------------

2022-06-17 23:10:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4295ed93-0a66-45e1-981c-e34875e205e7",
    "item-id": "item-5ef42324-72d1-4f13-ad94-b067d16bb690"
}

2022-06-17 23:10:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ef42324-72d1-4f13-ad94-b067d16bb690"
}

2022-06-17 23:10:09 | [Mutex] waiting for: [retracted:item:notifieditem-5ef42324-72d1-4f13-ad94-b067d16bb690:admin@test-domain.com]

2022-06-17 23:10:09 | [Mutex] received everything.

2022-06-17 23:10:09 | [Mutex] isItemNotified: retracted:item:notifieditem-5ef42324-72d1-4f13-ad94-b067d16bb690:admin@test-domain.com :: true

retrieveItemsFromNodes 0.054s
2022-06-17 23:10:09 |

2022-06-17 23:10:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:09 | ------------------------------------

2022-06-17 23:10:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4295ed93-0a66-45e1-981c-e34875e205e7",
    "item-id": "item-5ef42324-72d1-4f13-ad94-b067d16bb690"
}

2022-06-17 23:10:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4295ed93-0a66-45e1-981c-e34875e205e7",
    "item-id": "item-5ef42324-72d1-4f13-ad94-b067d16bb690",
    "item": [
        "<item id=\"item-5ef42324-72d1-4f13-ad94-b067d16bb690\"><test>item-5ef42324-72d1-4f13-ad94-b067d16bb690</test></item>"
    ]
}

2022-06-17 23:10:09 | [Mutex] notify: [retrieved:item:item-5ef42324-72d1-4f13-ad94-b067d16bb690:payload-matches:true:localhost]

2022-06-17 23:10:09 | [Mutex] received everything.

2022-06-17 23:10:09 | [Mutex] isItemNotified: retrieved:item:item-5ef42324-72d1-4f13-ad94-b067d16bb690:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-06-17 23:10:09 |

2022-06-17 23:10:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:09 | ------------------------------------

2022-06-17 23:10:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-17 23:10:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4295ed93-0a66-45e1-981c-e34875e205e7",
        "node-76b613c5-1a05-4f3f-9453-fb50465b7ac6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-06-17 23:10:09 |

2022-06-17 23:10:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:09 | ------------------------------------

2022-06-17 23:10:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4295ed93-0a66-45e1-981c-e34875e205e7)"
}

2022-06-17 23:10:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-06-17 23:10:08 |

2022-06-17 23:10:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:08 | ------------------------------------

2022-06-17 23:10:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4295ed93-0a66-45e1-981c-e34875e205e7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-17 23:10:08 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2022-06-17 23:10:09 |

2022-06-17 23:10:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-17 23:10:09 | ------------------------------------

2022-06-17 23:10:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4295ed93-0a66-45e1-981c-e34875e205e7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-17 23:10:09 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}