Generated by TestNG with ReportNG at 20:59 PDT on Wednesday 05 July 2023
root@1512af24e4a5 / Java 17.0.6 (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.596s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2023-07-05 21:13:39 |

2023-07-05 21:13:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:39 | ------------------------------------

2023-07-05 21:13:39 | [Mutex] waiting for: [configured:node:node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4:node-33465691-7931-44d7-9a18-be9e650d3226]

2023-07-05 21:13:39 | [Mutex] received everything.

2023-07-05 21:13:39 | [Mutex] isItemNotified: configured:node:node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4:node-33465691-7931-44d7-9a18-be9e650d3226 :: true

2023-07-05 21:13:40 | [Mutex] waiting for: [received:nodes:764014f1-e1a5-4a3b-b631-2ce78d01ae49:localhost]

2023-07-05 21:13:40 | [Mutex] received everything.

2023-07-05 21:13:40 | [Mutex] isItemNotified: received:node:764014f1-e1a5-4a3b-b631-2ce78d01ae49:localhost:node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4:Node a522e8ac-e60a-4cfc-abf2-38ea0017d2b4 :: true

2023-07-05 21:13:40 | [Mutex] waiting for: [received:nodes:676cde9f-2487-49ca-9deb-5f54d9747271:localhost]

2023-07-05 21:13:40 | [Mutex] waiting for: [received:nodes:676cde9f-2487-49ca-9deb-5f54d9747271:localhost]

2023-07-05 21:13:40 | [Mutex] waiting for: [received:nodes:676cde9f-2487-49ca-9deb-5f54d9747271:localhost]

2023-07-05 21:13:40 | [Mutex] received everything.

2023-07-05 21:13:40 | [Mutex] isItemNotified: received:node:676cde9f-2487-49ca-9deb-5f54d9747271:localhost:node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4:Node a522e8ac-e60a-4cfc-abf2-38ea0017d2b4 :: false

createNodes 1.576s
2023-07-05 21:13:36 |

2023-07-05 21:13:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:36 | ------------------------------------

2023-07-05 21:13: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-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4",
    "pubsub#title": "Node a522e8ac-e60a-4cfc-abf2-38ea0017d2b4"
}

2023-07-05 21:13:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 21:13:38 | [Mutex] waiting for: [received:nodes:3850b57f-bfbe-40df-a513-ce72c6c1f226:localhost]

2023-07-05 21:13:38 | [Mutex] waiting for: [received:nodes:3850b57f-bfbe-40df-a513-ce72c6c1f226:localhost]

2023-07-05 21:13:38 | [Mutex] waiting for: [received:nodes:3850b57f-bfbe-40df-a513-ce72c6c1f226:localhost]

2023-07-05 21:13:38 | [Mutex] waiting for: [received:nodes:3850b57f-bfbe-40df-a513-ce72c6c1f226:localhost]

2023-07-05 21:13:38 | [Mutex] received everything.

2023-07-05 21:13:38 | [Mutex] isItemNotified: received:node:3850b57f-bfbe-40df-a513-ce72c6c1f226:localhost:node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4:Node a522e8ac-e60a-4cfc-abf2-38ea0017d2b4 :: true

createSubnodes 1.028s
2023-07-05 21:13:38 |

2023-07-05 21:13:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:38 | ------------------------------------

2023-07-05 21:13:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-33465691-7931-44d7-9a18-be9e650d3226",
    "pubsub#title": "Node 33465691-7931-44d7-9a18-be9e650d3226"
}

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

2023-07-05 21:13:39 | [Mutex] waiting for: [received:nodes:8edaf2b4-f72a-4920-b1a8-a3a47f6df893:localhost]

2023-07-05 21:13:39 | [Mutex] waiting for: [received:nodes:8edaf2b4-f72a-4920-b1a8-a3a47f6df893:localhost]

2023-07-05 21:13:39 | [Mutex] waiting for: [received:nodes:8edaf2b4-f72a-4920-b1a8-a3a47f6df893:localhost]

2023-07-05 21:13:39 | [Mutex] waiting for: [received:nodes:8edaf2b4-f72a-4920-b1a8-a3a47f6df893:localhost]

2023-07-05 21:13:39 | [Mutex] received everything.

2023-07-05 21:13:39 | [Mutex] isItemNotified: received:node:8edaf2b4-f72a-4920-b1a8-a3a47f6df893:localhost:node-33465691-7931-44d7-9a18-be9e650d3226:Node 33465691-7931-44d7-9a18-be9e650d3226 :: true

deleteNodes 1.023s
2023-07-05 21:13:44 |

2023-07-05 21:13:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:44 | ------------------------------------

2023-07-05 21:13:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-33465691-7931-44d7-9a18-be9e650d3226"
}

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

2023-07-05 21:13:45 | [Mutex] waiting for: [received:nodes:bde1cc41-b4bb-4cd5-95a8-5c32583549de:localhost]

2023-07-05 21:13:45 | [Mutex] waiting for: [received:nodes:bde1cc41-b4bb-4cd5-95a8-5c32583549de:localhost]

2023-07-05 21:13:45 | [Mutex] waiting for: [received:nodes:bde1cc41-b4bb-4cd5-95a8-5c32583549de:localhost]

2023-07-05 21:13:45 | [Mutex] received everything.

2023-07-05 21:13:45 | [Mutex] isItemNotified: received:node:bde1cc41-b4bb-4cd5-95a8-5c32583549de:localhost:node-33465691-7931-44d7-9a18-be9e650d3226:Node 33465691-7931-44d7-9a18-be9e650d3226 :: false

deleteSubnodes 1.024s
2023-07-05 21:13:43 |

2023-07-05 21:13:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:43 | ------------------------------------

2023-07-05 21:13:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4"
}

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

2023-07-05 21:13:44 | [Mutex] waiting for: [received:nodes:e7210ece-686b-4247-8b1a-9f64fa1fc7fa:localhost]

2023-07-05 21:13:44 | [Mutex] waiting for: [received:nodes:e7210ece-686b-4247-8b1a-9f64fa1fc7fa:localhost]

2023-07-05 21:13:44 | [Mutex] waiting for: [received:nodes:e7210ece-686b-4247-8b1a-9f64fa1fc7fa:localhost]

2023-07-05 21:13:44 | [Mutex] waiting for: [received:nodes:e7210ece-686b-4247-8b1a-9f64fa1fc7fa:localhost]

2023-07-05 21:13:44 | [Mutex] received everything.

2023-07-05 21:13:44 | [Mutex] isItemNotified: received:node:e7210ece-686b-4247-8b1a-9f64fa1fc7fa:localhost:node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4:Node a522e8ac-e60a-4cfc-abf2-38ea0017d2b4 :: false

2023-07-05 21:13:44 | [Mutex] waiting for: [received:nodes:727bb8d7-092a-42d5-b12b-2e1b2c409fcc:localhost]

2023-07-05 21:13:44 | [Mutex] received everything.

2023-07-05 21:13:44 | [Mutex] isItemNotified: received:node:727bb8d7-092a-42d5-b12b-2e1b2c409fcc:localhost:node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4:Node a522e8ac-e60a-4cfc-abf2-38ea0017d2b4 :: false

publishItemsToNodes 0.051s
2023-07-05 21:13:41 |

2023-07-05 21:13:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:41 | ------------------------------------

2023-07-05 21:13:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4",
    "entry": "<test>item-999f7eb5-8176-4911-8fc8-87763f8db795</test>",
    "item-id": "item-999f7eb5-8176-4911-8fc8-87763f8db795"
}

2023-07-05 21:13:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-999f7eb5-8176-4911-8fc8-87763f8db795"
}

2023-07-05 21:13:41 | [Mutex] waiting for: [published:item:notifieditem-999f7eb5-8176-4911-8fc8-87763f8db795:admin@test-domain.com]

2023-07-05 21:13:41 | [Mutex] received everything.

2023-07-05 21:13:41 | [Mutex] isItemNotified: published:item:notifieditem-999f7eb5-8176-4911-8fc8-87763f8db795:admin@test-domain.com :: true

retractItemsFromNodes 0.053s
2023-07-05 21:13:41 |

2023-07-05 21:13:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:41 | ------------------------------------

2023-07-05 21:13:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4",
    "item-id": "item-999f7eb5-8176-4911-8fc8-87763f8db795"
}

2023-07-05 21:13:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-999f7eb5-8176-4911-8fc8-87763f8db795"
}

2023-07-05 21:13:41 | [Mutex] waiting for: [retracted:item:notifieditem-999f7eb5-8176-4911-8fc8-87763f8db795:admin@test-domain.com]

2023-07-05 21:13:41 | [Mutex] received everything.

2023-07-05 21:13:41 | [Mutex] isItemNotified: retracted:item:notifieditem-999f7eb5-8176-4911-8fc8-87763f8db795:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2023-07-05 21:13:41 |

2023-07-05 21:13:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:41 | ------------------------------------

2023-07-05 21:13:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4",
    "item-id": "item-999f7eb5-8176-4911-8fc8-87763f8db795"
}

2023-07-05 21:13:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4",
    "item-id": "item-999f7eb5-8176-4911-8fc8-87763f8db795",
    "item": [
        "<item id=\"item-999f7eb5-8176-4911-8fc8-87763f8db795\"><test>item-999f7eb5-8176-4911-8fc8-87763f8db795</test></item>"
    ]
}

2023-07-05 21:13:41 | [Mutex] notify: [retrieved:item:item-999f7eb5-8176-4911-8fc8-87763f8db795:payload-matches:true:localhost]

2023-07-05 21:13:41 | [Mutex] received everything.

2023-07-05 21:13:41 | [Mutex] isItemNotified: retrieved:item:item-999f7eb5-8176-4911-8fc8-87763f8db795:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-05 21:13:41 |

2023-07-05 21:13:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:41 | ------------------------------------

2023-07-05 21:13:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-05 21:13:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-33465691-7931-44d7-9a18-be9e650d3226",
        "test",
        "node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-05 21:13:41 |

2023-07-05 21:13:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:41 | ------------------------------------

2023-07-05 21:13:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4)"
}

2023-07-05 21:13:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-07-05 21:13:40 |

2023-07-05 21:13:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:40 | ------------------------------------

2023-07-05 21:13:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-05 21:13:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.069s
2023-07-05 21:13:41 |

2023-07-05 21:13:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 21:13:41 | ------------------------------------

2023-07-05 21:13:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a522e8ac-e60a-4cfc-abf2-38ea0017d2b4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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