Generated by TestNG with ReportNG at 22:20 PDT on Sunday 18 September 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.654s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2022-09-18 22:35:30 |

2022-09-18 22:35:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:30 | ------------------------------------

2022-09-18 22:35:30 | [Mutex] waiting for: [configured:node:node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74:node-d33402f6-cc8e-4319-9d04-1fec965df8ac]

2022-09-18 22:35:30 | [Mutex] received everything.

2022-09-18 22:35:30 | [Mutex] isItemNotified: configured:node:node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74:node-d33402f6-cc8e-4319-9d04-1fec965df8ac :: true

2022-09-18 22:35:31 | [Mutex] waiting for: [received:nodes:8175f9d1-ad8b-4430-b345-bd8e11401506:localhost]

2022-09-18 22:35:31 | [Mutex] received everything.

2022-09-18 22:35:31 | [Mutex] isItemNotified: received:node:8175f9d1-ad8b-4430-b345-bd8e11401506:localhost:node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74:Node bfdf618a-04e2-4db5-ab5e-6ad1813a7d74 :: true

2022-09-18 22:35:31 | [Mutex] waiting for: [received:nodes:991923e4-ed6a-4474-b20d-6fc766ab8677:localhost]

2022-09-18 22:35:31 | [Mutex] received everything.

2022-09-18 22:35:31 | [Mutex] isItemNotified: received:node:991923e4-ed6a-4474-b20d-6fc766ab8677:localhost:node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74:Node bfdf618a-04e2-4db5-ab5e-6ad1813a7d74 :: false

createNodes 1.619s
2022-09-18 22:35:27 |

2022-09-18 22:35:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:27 | ------------------------------------

2022-09-18 22:35:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74",
    "pubsub#title": "Node bfdf618a-04e2-4db5-ab5e-6ad1813a7d74"
}

2022-09-18 22:35:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-18 22:35:28 | [Mutex] waiting for: [received:nodes:a4f68574-e109-486d-9d45-4a11a9b9b6f8:localhost]

2022-09-18 22:35:29 | [Mutex] waiting for: [received:nodes:a4f68574-e109-486d-9d45-4a11a9b9b6f8:localhost]

2022-09-18 22:35:29 | [Mutex] received everything.

2022-09-18 22:35:29 | [Mutex] isItemNotified: received:node:a4f68574-e109-486d-9d45-4a11a9b9b6f8:localhost:node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74:Node bfdf618a-04e2-4db5-ab5e-6ad1813a7d74 :: true

createSubnodes 1.024s
2022-09-18 22:35:29 |

2022-09-18 22:35:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:29 | ------------------------------------

2022-09-18 22:35:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d33402f6-cc8e-4319-9d04-1fec965df8ac",
    "pubsub#title": "Node d33402f6-cc8e-4319-9d04-1fec965df8ac"
}

2022-09-18 22:35:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-18 22:35:30 | [Mutex] waiting for: [received:nodes:8d6fe12c-83b6-486e-95e5-5cfc07bad7be:localhost]

2022-09-18 22:35:30 | [Mutex] waiting for: [received:nodes:8d6fe12c-83b6-486e-95e5-5cfc07bad7be:localhost]

2022-09-18 22:35:30 | [Mutex] received everything.

2022-09-18 22:35:30 | [Mutex] isItemNotified: received:node:8d6fe12c-83b6-486e-95e5-5cfc07bad7be:localhost:node-d33402f6-cc8e-4319-9d04-1fec965df8ac:Node d33402f6-cc8e-4319-9d04-1fec965df8ac :: true

deleteNodes 1.020s
2022-09-18 22:35:34 |

2022-09-18 22:35:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:34 | ------------------------------------

2022-09-18 22:35:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d33402f6-cc8e-4319-9d04-1fec965df8ac"
}

2022-09-18 22:35:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-18 22:35:35 | [Mutex] waiting for: [received:nodes:0b8bb20a-3ddd-465c-9d91-9f78a9ee4e13:localhost]

2022-09-18 22:35:35 | [Mutex] waiting for: [received:nodes:0b8bb20a-3ddd-465c-9d91-9f78a9ee4e13:localhost]

2022-09-18 22:35:35 | [Mutex] waiting for: [received:nodes:0b8bb20a-3ddd-465c-9d91-9f78a9ee4e13:localhost]

2022-09-18 22:35:35 | [Mutex] received everything.

2022-09-18 22:35:35 | [Mutex] isItemNotified: received:node:0b8bb20a-3ddd-465c-9d91-9f78a9ee4e13:localhost:node-d33402f6-cc8e-4319-9d04-1fec965df8ac:Node d33402f6-cc8e-4319-9d04-1fec965df8ac :: false

deleteSubnodes 1.028s
2022-09-18 22:35:33 |

2022-09-18 22:35:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:33 | ------------------------------------

2022-09-18 22:35:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74"
}

2022-09-18 22:35:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-18 22:35:34 | [Mutex] waiting for: [received:nodes:fd939af8-7a1e-42b9-befa-40fc39171eb3:localhost]

2022-09-18 22:35:34 | [Mutex] received everything.

2022-09-18 22:35:34 | [Mutex] isItemNotified: received:node:fd939af8-7a1e-42b9-befa-40fc39171eb3:localhost:node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74:Node bfdf618a-04e2-4db5-ab5e-6ad1813a7d74 :: false

2022-09-18 22:35:34 | [Mutex] waiting for: [received:nodes:c859fb68-4a88-4557-9ef2-61ad2c03ffe0:localhost]

2022-09-18 22:35:34 | [Mutex] received everything.

2022-09-18 22:35:34 | [Mutex] isItemNotified: received:node:c859fb68-4a88-4557-9ef2-61ad2c03ffe0:localhost:node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74:Node bfdf618a-04e2-4db5-ab5e-6ad1813a7d74 :: false

publishItemsToNodes 0.051s
2022-09-18 22:35:32 |

2022-09-18 22:35:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:32 | ------------------------------------

2022-09-18 22:35:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74",
    "entry": "<test>item-c993c083-b09a-4cda-a267-993a3cd53c0a</test>",
    "item-id": "item-c993c083-b09a-4cda-a267-993a3cd53c0a"
}

2022-09-18 22:35:32 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c993c083-b09a-4cda-a267-993a3cd53c0a"
}

2022-09-18 22:35:32 | [Mutex] waiting for: [published:item:notifieditem-c993c083-b09a-4cda-a267-993a3cd53c0a:admin@test-domain.com]

2022-09-18 22:35:32 | [Mutex] received everything.

2022-09-18 22:35:32 | [Mutex] isItemNotified: published:item:notifieditem-c993c083-b09a-4cda-a267-993a3cd53c0a:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2022-09-18 22:35:32 |

2022-09-18 22:35:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:32 | ------------------------------------

2022-09-18 22:35:32 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74",
    "item-id": "item-c993c083-b09a-4cda-a267-993a3cd53c0a"
}

2022-09-18 22:35:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c993c083-b09a-4cda-a267-993a3cd53c0a"
}

2022-09-18 22:35:32 | [Mutex] received everything.

2022-09-18 22:35:32 | [Mutex] isItemNotified: retracted:item:notifieditem-c993c083-b09a-4cda-a267-993a3cd53c0a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2022-09-18 22:35:32 |

2022-09-18 22:35:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:32 | ------------------------------------

2022-09-18 22:35:32 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74",
    "item-id": "item-c993c083-b09a-4cda-a267-993a3cd53c0a"
}

2022-09-18 22:35:32 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74",
    "item-id": "item-c993c083-b09a-4cda-a267-993a3cd53c0a",
    "item": [
        "<item id=\"item-c993c083-b09a-4cda-a267-993a3cd53c0a\"><test>item-c993c083-b09a-4cda-a267-993a3cd53c0a</test></item>"
    ]
}

2022-09-18 22:35:32 | [Mutex] notify: [retrieved:item:item-c993c083-b09a-4cda-a267-993a3cd53c0a:payload-matches:true:localhost]

2022-09-18 22:35:32 | [Mutex] received everything.

2022-09-18 22:35:32 | [Mutex] isItemNotified: retrieved:item:item-c993c083-b09a-4cda-a267-993a3cd53c0a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.069s
2022-09-18 22:35:32 |

2022-09-18 22:35:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:32 | ------------------------------------

2022-09-18 22:35:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-18 22:35:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74",
        "test",
        "node-d33402f6-cc8e-4319-9d04-1fec965df8ac"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-09-18 22:35:32 |

2022-09-18 22:35:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:32 | ------------------------------------

2022-09-18 22:35:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74)"
}

2022-09-18 22:35:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-09-18 22:35:31 |

2022-09-18 22:35:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:31 | ------------------------------------

2022-09-18 22:35:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-18 22:35:31 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2022-09-18 22:35:32 |

2022-09-18 22:35:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 22:35:32 | ------------------------------------

2022-09-18 22:35:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bfdf618a-04e2-4db5-ab5e-6ad1813a7d74",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-18 22:35:32 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}