Generated by TestNG with ReportNG at 21:17 PST on Wednesday 01 February 2023
root@ed1b7dd8a1b3 / 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.606s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2023-02-01 21:32:40 |

2023-02-01 21:32:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:40 | ------------------------------------

2023-02-01 21:32:40 | [Mutex] waiting for: [configured:node:node-bcaae07a-9044-4a57-bf62-7bd0bda790ef:node-ecc722bb-fe0a-4a03-b792-2d1da620e779]

2023-02-01 21:32:40 | [Mutex] received everything.

2023-02-01 21:32:40 | [Mutex] isItemNotified: configured:node:node-bcaae07a-9044-4a57-bf62-7bd0bda790ef:node-ecc722bb-fe0a-4a03-b792-2d1da620e779 :: true

2023-02-01 21:32:41 | [Mutex] waiting for: [received:nodes:d7c8a927-c364-4504-adc8-061a9f229ce2:localhost]

2023-02-01 21:32:41 | [Mutex] received everything.

2023-02-01 21:32:41 | [Mutex] isItemNotified: received:node:d7c8a927-c364-4504-adc8-061a9f229ce2:localhost:node-bcaae07a-9044-4a57-bf62-7bd0bda790ef:Node bcaae07a-9044-4a57-bf62-7bd0bda790ef :: true

2023-02-01 21:32:41 | [Mutex] waiting for: [received:nodes:a9776d20-b855-4eb5-a4a7-d307c2438c6a:localhost]

2023-02-01 21:32:41 | [Mutex] waiting for: [received:nodes:a9776d20-b855-4eb5-a4a7-d307c2438c6a:localhost]

2023-02-01 21:32:41 | [Mutex] waiting for: [received:nodes:a9776d20-b855-4eb5-a4a7-d307c2438c6a:localhost]

2023-02-01 21:32:41 | [Mutex] waiting for: [received:nodes:a9776d20-b855-4eb5-a4a7-d307c2438c6a:localhost]

2023-02-01 21:32:41 | [Mutex] received everything.

2023-02-01 21:32:41 | [Mutex] isItemNotified: received:node:a9776d20-b855-4eb5-a4a7-d307c2438c6a:localhost:node-bcaae07a-9044-4a57-bf62-7bd0bda790ef:Node bcaae07a-9044-4a57-bf62-7bd0bda790ef :: false

createNodes 1.561s
2023-02-01 21:32:37 |

2023-02-01 21:32:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:37 | ------------------------------------

2023-02-01 21:32:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bcaae07a-9044-4a57-bf62-7bd0bda790ef",
    "pubsub#title": "Node bcaae07a-9044-4a57-bf62-7bd0bda790ef"
}

2023-02-01 21:32:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:32:39 | [Mutex] waiting for: [received:nodes:d423f9e0-0137-4844-9528-47dde123cd04:localhost]

2023-02-01 21:32:39 | [Mutex] received everything.

2023-02-01 21:32:39 | [Mutex] isItemNotified: received:node:d423f9e0-0137-4844-9528-47dde123cd04:localhost:node-bcaae07a-9044-4a57-bf62-7bd0bda790ef:Node bcaae07a-9044-4a57-bf62-7bd0bda790ef :: true

createSubnodes 1.023s
2023-02-01 21:32:39 |

2023-02-01 21:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:39 | ------------------------------------

2023-02-01 21:32:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ecc722bb-fe0a-4a03-b792-2d1da620e779",
    "pubsub#title": "Node ecc722bb-fe0a-4a03-b792-2d1da620e779"
}

2023-02-01 21:32:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:32:40 | [Mutex] waiting for: [received:nodes:879b786d-fd26-4bae-9378-ab3858ef7a4a:localhost]

2023-02-01 21:32:40 | [Mutex] waiting for: [received:nodes:879b786d-fd26-4bae-9378-ab3858ef7a4a:localhost]

2023-02-01 21:32:40 | [Mutex] waiting for: [received:nodes:879b786d-fd26-4bae-9378-ab3858ef7a4a:localhost]

2023-02-01 21:32:40 | [Mutex] waiting for: [received:nodes:879b786d-fd26-4bae-9378-ab3858ef7a4a:localhost]

2023-02-01 21:32:40 | [Mutex] received everything.

2023-02-01 21:32:40 | [Mutex] isItemNotified: received:node:879b786d-fd26-4bae-9378-ab3858ef7a4a:localhost:node-ecc722bb-fe0a-4a03-b792-2d1da620e779:Node ecc722bb-fe0a-4a03-b792-2d1da620e779 :: true

deleteNodes 1.021s
2023-02-01 21:32:44 |

2023-02-01 21:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:44 | ------------------------------------

2023-02-01 21:32:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ecc722bb-fe0a-4a03-b792-2d1da620e779"
}

2023-02-01 21:32:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:32:45 | [Mutex] waiting for: [received:nodes:d54088ea-1b5a-4310-a14d-5a54b487047f:localhost]

2023-02-01 21:32:45 | [Mutex] waiting for: [received:nodes:d54088ea-1b5a-4310-a14d-5a54b487047f:localhost]

2023-02-01 21:32:45 | [Mutex] waiting for: [received:nodes:d54088ea-1b5a-4310-a14d-5a54b487047f:localhost]

2023-02-01 21:32:45 | [Mutex] received everything.

2023-02-01 21:32:45 | [Mutex] isItemNotified: received:node:d54088ea-1b5a-4310-a14d-5a54b487047f:localhost:node-ecc722bb-fe0a-4a03-b792-2d1da620e779:Node ecc722bb-fe0a-4a03-b792-2d1da620e779 :: false

deleteSubnodes 1.031s
2023-02-01 21:32:43 |

2023-02-01 21:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:43 | ------------------------------------

2023-02-01 21:32:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bcaae07a-9044-4a57-bf62-7bd0bda790ef"
}

2023-02-01 21:32:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:32:44 | [Mutex] waiting for: [received:nodes:8a7c6ee1-1813-459b-908b-39ebfc15d4c2:localhost]

2023-02-01 21:32:44 | [Mutex] waiting for: [received:nodes:8a7c6ee1-1813-459b-908b-39ebfc15d4c2:localhost]

2023-02-01 21:32:44 | [Mutex] waiting for: [received:nodes:8a7c6ee1-1813-459b-908b-39ebfc15d4c2:localhost]

2023-02-01 21:32:44 | [Mutex] received everything.

2023-02-01 21:32:44 | [Mutex] isItemNotified: received:node:8a7c6ee1-1813-459b-908b-39ebfc15d4c2:localhost:node-bcaae07a-9044-4a57-bf62-7bd0bda790ef:Node bcaae07a-9044-4a57-bf62-7bd0bda790ef :: false

2023-02-01 21:32:44 | [Mutex] waiting for: [received:nodes:dbbe4335-2de4-4508-8723-f5c108a45db9:localhost]

2023-02-01 21:32:44 | [Mutex] received everything.

2023-02-01 21:32:44 | [Mutex] isItemNotified: received:node:dbbe4335-2de4-4508-8723-f5c108a45db9:localhost:node-bcaae07a-9044-4a57-bf62-7bd0bda790ef:Node bcaae07a-9044-4a57-bf62-7bd0bda790ef :: false

publishItemsToNodes 0.025s
2023-02-01 21:32:42 |

2023-02-01 21:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:42 | ------------------------------------

2023-02-01 21:32:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bcaae07a-9044-4a57-bf62-7bd0bda790ef",
    "entry": "<test>item-40425b0e-a1b1-4227-9f21-fb844de84232</test>",
    "item-id": "item-40425b0e-a1b1-4227-9f21-fb844de84232"
}

2023-02-01 21:32:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-40425b0e-a1b1-4227-9f21-fb844de84232"
}

2023-02-01 21:32:42 | [Mutex] waiting for: [published:item:notifieditem-40425b0e-a1b1-4227-9f21-fb844de84232:admin@test-domain.com]

2023-02-01 21:32:42 | [Mutex] received everything.

2023-02-01 21:32:42 | [Mutex] isItemNotified: published:item:notifieditem-40425b0e-a1b1-4227-9f21-fb844de84232:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2023-02-01 21:32:42 |

2023-02-01 21:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:42 | ------------------------------------

2023-02-01 21:32:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bcaae07a-9044-4a57-bf62-7bd0bda790ef",
    "item-id": "item-40425b0e-a1b1-4227-9f21-fb844de84232"
}

2023-02-01 21:32:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-40425b0e-a1b1-4227-9f21-fb844de84232"
}

2023-02-01 21:32:42 | [Mutex] waiting for: [retracted:item:notifieditem-40425b0e-a1b1-4227-9f21-fb844de84232:admin@test-domain.com]

2023-02-01 21:32:42 | [Mutex] received everything.

2023-02-01 21:32:42 | [Mutex] isItemNotified: retracted:item:notifieditem-40425b0e-a1b1-4227-9f21-fb844de84232:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2023-02-01 21:32:42 |

2023-02-01 21:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:42 | ------------------------------------

2023-02-01 21:32:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bcaae07a-9044-4a57-bf62-7bd0bda790ef",
    "item-id": "item-40425b0e-a1b1-4227-9f21-fb844de84232"
}

2023-02-01 21:32:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bcaae07a-9044-4a57-bf62-7bd0bda790ef",
    "item-id": "item-40425b0e-a1b1-4227-9f21-fb844de84232",
    "item": [
        "<item id=\"item-40425b0e-a1b1-4227-9f21-fb844de84232\"><test>item-40425b0e-a1b1-4227-9f21-fb844de84232</test></item>"
    ]
}

2023-02-01 21:32:42 | [Mutex] notify: [retrieved:item:item-40425b0e-a1b1-4227-9f21-fb844de84232:payload-matches:true:localhost]

2023-02-01 21:32:42 | [Mutex] received everything.

2023-02-01 21:32:42 | [Mutex] isItemNotified: retrieved:item:item-40425b0e-a1b1-4227-9f21-fb844de84232:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-02-01 21:32:42 |

2023-02-01 21:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:42 | ------------------------------------

2023-02-01 21:32:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-01 21:32:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-bcaae07a-9044-4a57-bf62-7bd0bda790ef",
        "test",
        "node-ecc722bb-fe0a-4a03-b792-2d1da620e779"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-02-01 21:32:42 |

2023-02-01 21:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:42 | ------------------------------------

2023-02-01 21:32:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bcaae07a-9044-4a57-bf62-7bd0bda790ef)"
}

2023-02-01 21:32:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-02-01 21:32:41 |

2023-02-01 21:32:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:41 | ------------------------------------

2023-02-01 21:32:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bcaae07a-9044-4a57-bf62-7bd0bda790ef",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-01 21:32:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-02-01 21:32:42 |

2023-02-01 21:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:42 | ------------------------------------

2023-02-01 21:32:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bcaae07a-9044-4a57-bf62-7bd0bda790ef",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-01 21:32:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}