Generated by TestNG with ReportNG at 23:14 PDT on Wednesday 25 October 2023
root@8dfa9d99ff97 / Java 17.0.8 (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.537s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2023-10-25 23:29:24 |

2023-10-25 23:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:24 | ------------------------------------

2023-10-25 23:29:24 | [Mutex] waiting for: [configured:node:node-c929cd97-c568-43d4-b874-74bf4970191a:node-4d3ce089-0895-4213-9b9a-9a308b0e281d]

2023-10-25 23:29:24 | [Mutex] received everything.

2023-10-25 23:29:24 | [Mutex] isItemNotified: configured:node:node-c929cd97-c568-43d4-b874-74bf4970191a:node-4d3ce089-0895-4213-9b9a-9a308b0e281d :: true

2023-10-25 23:29:25 | [Mutex] waiting for: [received:nodes:c7a50286-def7-4b5f-89b6-bf4ea3158e8a:localhost]

2023-10-25 23:29:25 | [Mutex] received everything.

2023-10-25 23:29:25 | [Mutex] isItemNotified: received:node:c7a50286-def7-4b5f-89b6-bf4ea3158e8a:localhost:node-c929cd97-c568-43d4-b874-74bf4970191a:Node c929cd97-c568-43d4-b874-74bf4970191a :: true

2023-10-25 23:29:25 | [Mutex] waiting for: [received:nodes:b2e73718-7957-4630-afc2-5a6ff715cc0d:localhost]

2023-10-25 23:29:25 | [Mutex] waiting for: [received:nodes:b2e73718-7957-4630-afc2-5a6ff715cc0d:localhost]

2023-10-25 23:29:25 | [Mutex] waiting for: [received:nodes:b2e73718-7957-4630-afc2-5a6ff715cc0d:localhost]

2023-10-25 23:29:25 | [Mutex] received everything.

2023-10-25 23:29:25 | [Mutex] isItemNotified: received:node:b2e73718-7957-4630-afc2-5a6ff715cc0d:localhost:node-c929cd97-c568-43d4-b874-74bf4970191a:Node c929cd97-c568-43d4-b874-74bf4970191a :: false

createNodes 1.596s
2023-10-25 23:29:21 |

2023-10-25 23:29:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:21 | ------------------------------------

2023-10-25 23:29:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c929cd97-c568-43d4-b874-74bf4970191a",
    "pubsub#title": "Node c929cd97-c568-43d4-b874-74bf4970191a"
}

2023-10-25 23:29:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-25 23:29:23 | [Mutex] waiting for: [received:nodes:a5495eaa-1aa5-4d99-8ec7-63c356b94eef:localhost]

2023-10-25 23:29:23 | [Mutex] waiting for: [received:nodes:a5495eaa-1aa5-4d99-8ec7-63c356b94eef:localhost]

2023-10-25 23:29:23 | [Mutex] waiting for: [received:nodes:a5495eaa-1aa5-4d99-8ec7-63c356b94eef:localhost]

2023-10-25 23:29:23 | [Mutex] waiting for: [received:nodes:a5495eaa-1aa5-4d99-8ec7-63c356b94eef:localhost]

2023-10-25 23:29:23 | [Mutex] received everything.

2023-10-25 23:29:23 | [Mutex] isItemNotified: received:node:a5495eaa-1aa5-4d99-8ec7-63c356b94eef:localhost:node-c929cd97-c568-43d4-b874-74bf4970191a:Node c929cd97-c568-43d4-b874-74bf4970191a :: true

createSubnodes 1.027s
2023-10-25 23:29:23 |

2023-10-25 23:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:23 | ------------------------------------

2023-10-25 23:29:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4d3ce089-0895-4213-9b9a-9a308b0e281d",
    "pubsub#title": "Node 4d3ce089-0895-4213-9b9a-9a308b0e281d"
}

2023-10-25 23:29:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-25 23:29:24 | [Mutex] waiting for: [received:nodes:e0aa3841-c63d-4a9a-a168-d1b4d2adaf99:localhost]

2023-10-25 23:29:24 | [Mutex] waiting for: [received:nodes:e0aa3841-c63d-4a9a-a168-d1b4d2adaf99:localhost]

2023-10-25 23:29:24 | [Mutex] waiting for: [received:nodes:e0aa3841-c63d-4a9a-a168-d1b4d2adaf99:localhost]

2023-10-25 23:29:24 | [Mutex] waiting for: [received:nodes:e0aa3841-c63d-4a9a-a168-d1b4d2adaf99:localhost]

2023-10-25 23:29:24 | [Mutex] waiting for: [received:nodes:e0aa3841-c63d-4a9a-a168-d1b4d2adaf99:localhost]

2023-10-25 23:29:24 | [Mutex] received everything.

2023-10-25 23:29:24 | [Mutex] isItemNotified: received:node:e0aa3841-c63d-4a9a-a168-d1b4d2adaf99:localhost:node-4d3ce089-0895-4213-9b9a-9a308b0e281d:Node 4d3ce089-0895-4213-9b9a-9a308b0e281d :: true

deleteNodes 1.021s
2023-10-25 23:29:28 |

2023-10-25 23:29:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:28 | ------------------------------------

2023-10-25 23:29:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4d3ce089-0895-4213-9b9a-9a308b0e281d"
}

2023-10-25 23:29:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-25 23:29:29 | [Mutex] waiting for: [received:nodes:4d09cccd-6a49-42b9-bbc2-5d7584a38851:localhost]

2023-10-25 23:29:29 | [Mutex] waiting for: [received:nodes:4d09cccd-6a49-42b9-bbc2-5d7584a38851:localhost]

2023-10-25 23:29:29 | [Mutex] waiting for: [received:nodes:4d09cccd-6a49-42b9-bbc2-5d7584a38851:localhost]

2023-10-25 23:29:29 | [Mutex] received everything.

2023-10-25 23:29:29 | [Mutex] isItemNotified: received:node:4d09cccd-6a49-42b9-bbc2-5d7584a38851:localhost:node-4d3ce089-0895-4213-9b9a-9a308b0e281d:Node 4d3ce089-0895-4213-9b9a-9a308b0e281d :: false

deleteSubnodes 1.027s
2023-10-25 23:29:27 |

2023-10-25 23:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:27 | ------------------------------------

2023-10-25 23:29:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c929cd97-c568-43d4-b874-74bf4970191a"
}

2023-10-25 23:29:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-25 23:29:28 | [Mutex] waiting for: [received:nodes:0bbae8b2-5a33-4265-8c22-f86ebadae2a8:localhost]

2023-10-25 23:29:28 | [Mutex] waiting for: [received:nodes:0bbae8b2-5a33-4265-8c22-f86ebadae2a8:localhost]

2023-10-25 23:29:28 | [Mutex] waiting for: [received:nodes:0bbae8b2-5a33-4265-8c22-f86ebadae2a8:localhost]

2023-10-25 23:29:28 | [Mutex] waiting for: [received:nodes:0bbae8b2-5a33-4265-8c22-f86ebadae2a8:localhost]

2023-10-25 23:29:28 | [Mutex] received everything.

2023-10-25 23:29:28 | [Mutex] isItemNotified: received:node:0bbae8b2-5a33-4265-8c22-f86ebadae2a8:localhost:node-c929cd97-c568-43d4-b874-74bf4970191a:Node c929cd97-c568-43d4-b874-74bf4970191a :: false

2023-10-25 23:29:28 | [Mutex] waiting for: [received:nodes:02b83cc8-032a-4c30-8eeb-d2fd54e903d9:localhost]

2023-10-25 23:29:28 | [Mutex] received everything.

2023-10-25 23:29:28 | [Mutex] isItemNotified: received:node:02b83cc8-032a-4c30-8eeb-d2fd54e903d9:localhost:node-c929cd97-c568-43d4-b874-74bf4970191a:Node c929cd97-c568-43d4-b874-74bf4970191a :: false

publishItemsToNodes 0.037s
2023-10-25 23:29:26 |

2023-10-25 23:29:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:26 | ------------------------------------

2023-10-25 23:29:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c929cd97-c568-43d4-b874-74bf4970191a",
    "entry": "<test>item-5ef6fe11-7803-42f1-a236-658fcb8537a8</test>",
    "item-id": "item-5ef6fe11-7803-42f1-a236-658fcb8537a8"
}

2023-10-25 23:29:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ef6fe11-7803-42f1-a236-658fcb8537a8"
}

2023-10-25 23:29:26 | [Mutex] waiting for: [published:item:notifieditem-5ef6fe11-7803-42f1-a236-658fcb8537a8:admin@test-domain.com]

2023-10-25 23:29:26 | [Mutex] received everything.

2023-10-25 23:29:26 | [Mutex] isItemNotified: published:item:notifieditem-5ef6fe11-7803-42f1-a236-658fcb8537a8:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2023-10-25 23:29:26 |

2023-10-25 23:29:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:26 | ------------------------------------

2023-10-25 23:29:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c929cd97-c568-43d4-b874-74bf4970191a",
    "item-id": "item-5ef6fe11-7803-42f1-a236-658fcb8537a8"
}

2023-10-25 23:29:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ef6fe11-7803-42f1-a236-658fcb8537a8"
}

2023-10-25 23:29:26 | [Mutex] received everything.

2023-10-25 23:29:26 | [Mutex] isItemNotified: retracted:item:notifieditem-5ef6fe11-7803-42f1-a236-658fcb8537a8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.057s
2023-10-25 23:29:26 |

2023-10-25 23:29:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:26 | ------------------------------------

2023-10-25 23:29:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c929cd97-c568-43d4-b874-74bf4970191a",
    "item-id": "item-5ef6fe11-7803-42f1-a236-658fcb8537a8"
}

2023-10-25 23:29:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c929cd97-c568-43d4-b874-74bf4970191a",
    "item-id": "item-5ef6fe11-7803-42f1-a236-658fcb8537a8",
    "item": [
        "<item id=\"item-5ef6fe11-7803-42f1-a236-658fcb8537a8\"><test>item-5ef6fe11-7803-42f1-a236-658fcb8537a8</test></item>"
    ]
}

2023-10-25 23:29:26 | [Mutex] notify: [retrieved:item:item-5ef6fe11-7803-42f1-a236-658fcb8537a8:payload-matches:true:localhost]

2023-10-25 23:29:26 | [Mutex] received everything.

2023-10-25 23:29:26 | [Mutex] isItemNotified: retrieved:item:item-5ef6fe11-7803-42f1-a236-658fcb8537a8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-10-25 23:29:26 |

2023-10-25 23:29:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:26 | ------------------------------------

2023-10-25 23:29:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-10-25 23:29:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-4d3ce089-0895-4213-9b9a-9a308b0e281d",
        "test",
        "node-c929cd97-c568-43d4-b874-74bf4970191a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-10-25 23:29:26 |

2023-10-25 23:29:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:26 | ------------------------------------

2023-10-25 23:29:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c929cd97-c568-43d4-b874-74bf4970191a)"
}

2023-10-25 23:29:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-10-25 23:29:25 |

2023-10-25 23:29:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:25 | ------------------------------------

2023-10-25 23:29:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c929cd97-c568-43d4-b874-74bf4970191a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-25 23:29:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2023-10-25 23:29:26 |

2023-10-25 23:29:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 23:29:26 | ------------------------------------

2023-10-25 23:29:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c929cd97-c568-43d4-b874-74bf4970191a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-25 23:29:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}