Generated by TestNG with ReportNG at 23:04 PDT on Sunday 01 May 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 : 9.057s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.151s
2022-05-01 23:20:05 |

2022-05-01 23:20:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:05 | ------------------------------------

2022-05-01 23:20:05 | [Mutex] waiting for: [configured:node:node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f:node-37f1cdcc-448c-49ce-9294-6ebacbfdc790]

2022-05-01 23:20:05 | [Mutex] received everything.

2022-05-01 23:20:05 | [Mutex] isItemNotified: configured:node:node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f:node-37f1cdcc-448c-49ce-9294-6ebacbfdc790 :: true

2022-05-01 23:20:06 | [Mutex] waiting for: [received:nodes:bf7dd74b-d907-447e-a1c8-9a5644293aa2:localhost]

2022-05-01 23:20:06 | [Mutex] received everything.

2022-05-01 23:20:06 | [Mutex] isItemNotified: received:node:bf7dd74b-d907-447e-a1c8-9a5644293aa2:localhost:node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f:Node 3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f :: true

2022-05-01 23:20:06 | [Mutex] waiting for: [received:nodes:6f27b025-5454-43cb-bc04-cf5d2ae93f0c:localhost]

2022-05-01 23:20:06 | [Mutex] waiting for: [received:nodes:6f27b025-5454-43cb-bc04-cf5d2ae93f0c:localhost]

2022-05-01 23:20:06 | [Mutex] received everything.

2022-05-01 23:20:06 | [Mutex] isItemNotified: received:node:6f27b025-5454-43cb-bc04-cf5d2ae93f0c:localhost:node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f:Node 3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f :: false

createNodes 1.878s
2022-05-01 23:20:02 |

2022-05-01 23:20:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:02 | ------------------------------------

2022-05-01 23:20:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f",
    "pubsub#title": "Node 3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f"
}

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

2022-05-01 23:20:04 | [Mutex] waiting for: [received:nodes:6a1a1ac7-7f4a-47c0-8a47-3538ffc0dc46:localhost]

2022-05-01 23:20:04 | [Mutex] received everything.

2022-05-01 23:20:04 | [Mutex] isItemNotified: received:node:6a1a1ac7-7f4a-47c0-8a47-3538ffc0dc46:localhost:node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f:Node 3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f :: true

createSubnodes 1.028s
2022-05-01 23:20:04 |

2022-05-01 23:20:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:04 | ------------------------------------

2022-05-01 23:20:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-37f1cdcc-448c-49ce-9294-6ebacbfdc790",
    "pubsub#title": "Node 37f1cdcc-448c-49ce-9294-6ebacbfdc790"
}

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

2022-05-01 23:20:05 | [Mutex] waiting for: [received:nodes:ac6031c7-d167-4b08-999b-698862b72930:localhost]

2022-05-01 23:20:05 | [Mutex] received everything.

2022-05-01 23:20:05 | [Mutex] isItemNotified: received:node:ac6031c7-d167-4b08-999b-698862b72930:localhost:node-37f1cdcc-448c-49ce-9294-6ebacbfdc790:Node 37f1cdcc-448c-49ce-9294-6ebacbfdc790 :: true

deleteNodes 1.022s
2022-05-01 23:20:09 |

2022-05-01 23:20:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:09 | ------------------------------------

2022-05-01 23:20:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-37f1cdcc-448c-49ce-9294-6ebacbfdc790"
}

2022-05-01 23:20:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 23:20:10 | [Mutex] waiting for: [received:nodes:4aacf5d4-d483-46e8-8af3-0d257235bb80:localhost]

2022-05-01 23:20:10 | [Mutex] waiting for: [received:nodes:4aacf5d4-d483-46e8-8af3-0d257235bb80:localhost]

2022-05-01 23:20:10 | [Mutex] waiting for: [received:nodes:4aacf5d4-d483-46e8-8af3-0d257235bb80:localhost]

2022-05-01 23:20:10 | [Mutex] received everything.

2022-05-01 23:20:10 | [Mutex] isItemNotified: received:node:4aacf5d4-d483-46e8-8af3-0d257235bb80:localhost:node-37f1cdcc-448c-49ce-9294-6ebacbfdc790:Node 37f1cdcc-448c-49ce-9294-6ebacbfdc790 :: false

deleteSubnodes 1.026s
2022-05-01 23:20:08 |

2022-05-01 23:20:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:08 | ------------------------------------

2022-05-01 23:20:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f"
}

2022-05-01 23:20:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 23:20:09 | [Mutex] waiting for: [received:nodes:63f60257-a098-4881-aac8-50b353a101c3:localhost]

2022-05-01 23:20:09 | [Mutex] waiting for: [received:nodes:63f60257-a098-4881-aac8-50b353a101c3:localhost]

2022-05-01 23:20:09 | [Mutex] received everything.

2022-05-01 23:20:09 | [Mutex] isItemNotified: received:node:63f60257-a098-4881-aac8-50b353a101c3:localhost:node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f:Node 3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f :: false

2022-05-01 23:20:09 | [Mutex] waiting for: [received:nodes:013461bd-7928-40ee-8dc1-8b6028c6fad5:localhost]

2022-05-01 23:20:09 | [Mutex] received everything.

2022-05-01 23:20:09 | [Mutex] isItemNotified: received:node:013461bd-7928-40ee-8dc1-8b6028c6fad5:localhost:node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f:Node 3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f :: false

publishItemsToNodes 0.052s
2022-05-01 23:20:07 |

2022-05-01 23:20:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:07 | ------------------------------------

2022-05-01 23:20:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f",
    "entry": "<test>item-d8332fa9-3f50-46df-ac3a-e70b746bec90</test>",
    "item-id": "item-d8332fa9-3f50-46df-ac3a-e70b746bec90"
}

2022-05-01 23:20:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8332fa9-3f50-46df-ac3a-e70b746bec90"
}

2022-05-01 23:20:07 | [Mutex] waiting for: [published:item:notifieditem-d8332fa9-3f50-46df-ac3a-e70b746bec90:admin@test-domain.com]

2022-05-01 23:20:07 | [Mutex] received everything.

2022-05-01 23:20:07 | [Mutex] isItemNotified: published:item:notifieditem-d8332fa9-3f50-46df-ac3a-e70b746bec90:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-05-01 23:20:07 |

2022-05-01 23:20:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:07 | ------------------------------------

2022-05-01 23:20:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f",
    "item-id": "item-d8332fa9-3f50-46df-ac3a-e70b746bec90"
}

2022-05-01 23:20:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8332fa9-3f50-46df-ac3a-e70b746bec90"
}

2022-05-01 23:20:07 | [Mutex] waiting for: [retracted:item:notifieditem-d8332fa9-3f50-46df-ac3a-e70b746bec90:admin@test-domain.com]

2022-05-01 23:20:07 | [Mutex] received everything.

2022-05-01 23:20:07 | [Mutex] isItemNotified: retracted:item:notifieditem-d8332fa9-3f50-46df-ac3a-e70b746bec90:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-05-01 23:20:07 |

2022-05-01 23:20:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:07 | ------------------------------------

2022-05-01 23:20:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f",
    "item-id": "item-d8332fa9-3f50-46df-ac3a-e70b746bec90"
}

2022-05-01 23:20:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f",
    "item-id": "item-d8332fa9-3f50-46df-ac3a-e70b746bec90",
    "item": [
        "<item id=\"item-d8332fa9-3f50-46df-ac3a-e70b746bec90\"><test>item-d8332fa9-3f50-46df-ac3a-e70b746bec90</test></item>"
    ]
}

2022-05-01 23:20:07 | [Mutex] notify: [retrieved:item:item-d8332fa9-3f50-46df-ac3a-e70b746bec90:payload-matches:true:localhost]

2022-05-01 23:20:07 | [Mutex] received everything.

2022-05-01 23:20:07 | [Mutex] isItemNotified: retrieved:item:item-d8332fa9-3f50-46df-ac3a-e70b746bec90:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2022-05-01 23:20:07 |

2022-05-01 23:20:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:07 | ------------------------------------

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

2022-05-01 23:20:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-37f1cdcc-448c-49ce-9294-6ebacbfdc790",
        "node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-05-01 23:20:07 |

2022-05-01 23:20:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:07 | ------------------------------------

2022-05-01 23:20:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f)"
}

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

subscribeNodes 1.010s
2022-05-01 23:20:06 |

2022-05-01 23:20:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:06 | ------------------------------------

2022-05-01 23:20:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-05-01 23:20:07 |

2022-05-01 23:20:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 23:20:07 | ------------------------------------

2022-05-01 23:20:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3c251d5f-2148-47c5-b8a9-3ab91b4e2e7f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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