Generated by TestNG with ReportNG at 22:46 PDT on Monday 27 March 2023
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.626s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2023-03-27 23:01:11 |

2023-03-27 23:01:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:11 | ------------------------------------

2023-03-27 23:01:11 | [Mutex] waiting for: [configured:node:node-a4e45043-d6b5-459e-91df-8d241ec6d015:node-27739ace-7c99-4920-9f7b-69cc3b45aa16]

2023-03-27 23:01:11 | [Mutex] received everything.

2023-03-27 23:01:11 | [Mutex] isItemNotified: configured:node:node-a4e45043-d6b5-459e-91df-8d241ec6d015:node-27739ace-7c99-4920-9f7b-69cc3b45aa16 :: true

2023-03-27 23:01:12 | [Mutex] waiting for: [received:nodes:8f1d5348-053c-4a03-98f5-39297de75460:localhost]

2023-03-27 23:01:12 | [Mutex] received everything.

2023-03-27 23:01:12 | [Mutex] isItemNotified: received:node:8f1d5348-053c-4a03-98f5-39297de75460:localhost:node-a4e45043-d6b5-459e-91df-8d241ec6d015:Node a4e45043-d6b5-459e-91df-8d241ec6d015 :: true

2023-03-27 23:01:12 | [Mutex] waiting for: [received:nodes:9da9c9df-6546-4e2c-8c88-c8c1e4c7e843:localhost]

2023-03-27 23:01:12 | [Mutex] waiting for: [received:nodes:9da9c9df-6546-4e2c-8c88-c8c1e4c7e843:localhost]

2023-03-27 23:01:12 | [Mutex] waiting for: [received:nodes:9da9c9df-6546-4e2c-8c88-c8c1e4c7e843:localhost]

2023-03-27 23:01:12 | [Mutex] waiting for: [received:nodes:9da9c9df-6546-4e2c-8c88-c8c1e4c7e843:localhost]

2023-03-27 23:01:12 | [Mutex] received everything.

2023-03-27 23:01:12 | [Mutex] isItemNotified: received:node:9da9c9df-6546-4e2c-8c88-c8c1e4c7e843:localhost:node-a4e45043-d6b5-459e-91df-8d241ec6d015:Node a4e45043-d6b5-459e-91df-8d241ec6d015 :: false

createNodes 1.587s
2023-03-27 23:01:08 |

2023-03-27 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:08 | ------------------------------------

2023-03-27 23:01:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a4e45043-d6b5-459e-91df-8d241ec6d015",
    "pubsub#title": "Node a4e45043-d6b5-459e-91df-8d241ec6d015"
}

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

2023-03-27 23:01:09 | [Mutex] waiting for: [received:nodes:6cfc838c-5154-4ad2-8321-75fe257837f1:localhost]

2023-03-27 23:01:09 | [Mutex] waiting for: [received:nodes:6cfc838c-5154-4ad2-8321-75fe257837f1:localhost]

2023-03-27 23:01:09 | [Mutex] waiting for: [received:nodes:6cfc838c-5154-4ad2-8321-75fe257837f1:localhost]

2023-03-27 23:01:09 | [Mutex] received everything.

2023-03-27 23:01:09 | [Mutex] isItemNotified: received:node:6cfc838c-5154-4ad2-8321-75fe257837f1:localhost:node-a4e45043-d6b5-459e-91df-8d241ec6d015:Node a4e45043-d6b5-459e-91df-8d241ec6d015 :: true

createSubnodes 1.021s
2023-03-27 23:01:10 |

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

2023-03-27 23:01:10 | ------------------------------------

2023-03-27 23:01:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-27739ace-7c99-4920-9f7b-69cc3b45aa16",
    "pubsub#title": "Node 27739ace-7c99-4920-9f7b-69cc3b45aa16"
}

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

2023-03-27 23:01:11 | [Mutex] waiting for: [received:nodes:a7077ffe-e8bd-4630-bf58-5842108850f9:localhost]

2023-03-27 23:01:11 | [Mutex] waiting for: [received:nodes:a7077ffe-e8bd-4630-bf58-5842108850f9:localhost]

2023-03-27 23:01:11 | [Mutex] waiting for: [received:nodes:a7077ffe-e8bd-4630-bf58-5842108850f9:localhost]

2023-03-27 23:01:11 | [Mutex] waiting for: [received:nodes:a7077ffe-e8bd-4630-bf58-5842108850f9:localhost]

2023-03-27 23:01:11 | [Mutex] waiting for: [received:nodes:a7077ffe-e8bd-4630-bf58-5842108850f9:localhost]

2023-03-27 23:01:11 | [Mutex] received everything.

2023-03-27 23:01:11 | [Mutex] isItemNotified: received:node:a7077ffe-e8bd-4630-bf58-5842108850f9:localhost:node-27739ace-7c99-4920-9f7b-69cc3b45aa16:Node 27739ace-7c99-4920-9f7b-69cc3b45aa16 :: true

deleteNodes 1.020s
2023-03-27 23:01:15 |

2023-03-27 23:01:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:15 | ------------------------------------

2023-03-27 23:01:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-27739ace-7c99-4920-9f7b-69cc3b45aa16"
}

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

2023-03-27 23:01:16 | [Mutex] waiting for: [received:nodes:6192fdd1-c2bc-4bce-9726-bb4ff0105888:localhost]

2023-03-27 23:01:16 | [Mutex] received everything.

2023-03-27 23:01:16 | [Mutex] isItemNotified: received:node:6192fdd1-c2bc-4bce-9726-bb4ff0105888:localhost:node-27739ace-7c99-4920-9f7b-69cc3b45aa16:Node 27739ace-7c99-4920-9f7b-69cc3b45aa16 :: false

deleteSubnodes 1.025s
2023-03-27 23:01:14 |

2023-03-27 23:01:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:14 | ------------------------------------

2023-03-27 23:01:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a4e45043-d6b5-459e-91df-8d241ec6d015"
}

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

2023-03-27 23:01:15 | [Mutex] waiting for: [received:nodes:722b291a-0723-4f1a-8a7e-a5d66b03df0b:localhost]

2023-03-27 23:01:15 | [Mutex] waiting for: [received:nodes:722b291a-0723-4f1a-8a7e-a5d66b03df0b:localhost]

2023-03-27 23:01:15 | [Mutex] waiting for: [received:nodes:722b291a-0723-4f1a-8a7e-a5d66b03df0b:localhost]

2023-03-27 23:01:15 | [Mutex] waiting for: [received:nodes:722b291a-0723-4f1a-8a7e-a5d66b03df0b:localhost]

2023-03-27 23:01:15 | [Mutex] received everything.

2023-03-27 23:01:15 | [Mutex] isItemNotified: received:node:722b291a-0723-4f1a-8a7e-a5d66b03df0b:localhost:node-a4e45043-d6b5-459e-91df-8d241ec6d015:Node a4e45043-d6b5-459e-91df-8d241ec6d015 :: false

2023-03-27 23:01:15 | [Mutex] waiting for: [received:nodes:8063350f-ac35-4fc4-8d64-7f54ed1bc348:localhost]

2023-03-27 23:01:15 | [Mutex] received everything.

2023-03-27 23:01:15 | [Mutex] isItemNotified: received:node:8063350f-ac35-4fc4-8d64-7f54ed1bc348:localhost:node-a4e45043-d6b5-459e-91df-8d241ec6d015:Node a4e45043-d6b5-459e-91df-8d241ec6d015 :: false

publishItemsToNodes 0.049s
2023-03-27 23:01:13 |

2023-03-27 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:13 | ------------------------------------

2023-03-27 23:01:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a4e45043-d6b5-459e-91df-8d241ec6d015",
    "entry": "<test>item-81155b4c-7ab0-43df-ba56-6fa127def036</test>",
    "item-id": "item-81155b4c-7ab0-43df-ba56-6fa127def036"
}

2023-03-27 23:01:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-81155b4c-7ab0-43df-ba56-6fa127def036"
}

2023-03-27 23:01:13 | [Mutex] waiting for: [published:item:notifieditem-81155b4c-7ab0-43df-ba56-6fa127def036:admin@test-domain.com]

2023-03-27 23:01:13 | [Mutex] received everything.

2023-03-27 23:01:13 | [Mutex] isItemNotified: published:item:notifieditem-81155b4c-7ab0-43df-ba56-6fa127def036:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2023-03-27 23:01:13 |

2023-03-27 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:13 | ------------------------------------

2023-03-27 23:01:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a4e45043-d6b5-459e-91df-8d241ec6d015",
    "item-id": "item-81155b4c-7ab0-43df-ba56-6fa127def036"
}

2023-03-27 23:01:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-81155b4c-7ab0-43df-ba56-6fa127def036"
}

2023-03-27 23:01:13 | [Mutex] waiting for: [retracted:item:notifieditem-81155b4c-7ab0-43df-ba56-6fa127def036:admin@test-domain.com]

2023-03-27 23:01:13 | [Mutex] received everything.

2023-03-27 23:01:13 | [Mutex] isItemNotified: retracted:item:notifieditem-81155b4c-7ab0-43df-ba56-6fa127def036:admin@test-domain.com :: true

retrieveItemsFromNodes 0.112s
2023-03-27 23:01:13 |

2023-03-27 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:13 | ------------------------------------

2023-03-27 23:01:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a4e45043-d6b5-459e-91df-8d241ec6d015",
    "item-id": "item-81155b4c-7ab0-43df-ba56-6fa127def036"
}

2023-03-27 23:01:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a4e45043-d6b5-459e-91df-8d241ec6d015",
    "item-id": "item-81155b4c-7ab0-43df-ba56-6fa127def036",
    "item": [
        "<item id=\"item-81155b4c-7ab0-43df-ba56-6fa127def036\"><test>item-81155b4c-7ab0-43df-ba56-6fa127def036</test></item>"
    ]
}

2023-03-27 23:01:13 | [Mutex] notify: [retrieved:item:item-81155b4c-7ab0-43df-ba56-6fa127def036:payload-matches:true:localhost]

2023-03-27 23:01:13 | [Mutex] received everything.

2023-03-27 23:01:13 | [Mutex] isItemNotified: retrieved:item:item-81155b4c-7ab0-43df-ba56-6fa127def036:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2023-03-27 23:01:13 |

2023-03-27 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:13 | ------------------------------------

2023-03-27 23:01:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-27 23:01:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a4e45043-d6b5-459e-91df-8d241ec6d015",
        "node-27739ace-7c99-4920-9f7b-69cc3b45aa16"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2023-03-27 23:01:13 |

2023-03-27 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:13 | ------------------------------------

2023-03-27 23:01:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a4e45043-d6b5-459e-91df-8d241ec6d015)"
}

2023-03-27 23:01:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-03-27 23:01:12 |

2023-03-27 23:01:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:12 | ------------------------------------

2023-03-27 23:01:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a4e45043-d6b5-459e-91df-8d241ec6d015",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-27 23:01:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2023-03-27 23:01:13 |

2023-03-27 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 23:01:13 | ------------------------------------

2023-03-27 23:01:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a4e45043-d6b5-459e-91df-8d241ec6d015",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-27 23:01:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}