Generated by TestNG with ReportNG at 22:47 PDT on Thursday 11 August 2022
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.779s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2022-08-11 23:02:10 |

2022-08-11 23:02:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:10 | ------------------------------------

2022-08-11 23:02:10 | [Mutex] waiting for: [configured:node:node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4:node-85dae5d4-98eb-4192-ba2c-df07e31dcf8a]

2022-08-11 23:02:10 | [Mutex] received everything.

2022-08-11 23:02:10 | [Mutex] isItemNotified: configured:node:node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4:node-85dae5d4-98eb-4192-ba2c-df07e31dcf8a :: true

2022-08-11 23:02:11 | [Mutex] waiting for: [received:nodes:d6e1aa1d-0e33-4396-a7e1-7b84ac59a3de:localhost]

2022-08-11 23:02:11 | [Mutex] received everything.

2022-08-11 23:02:11 | [Mutex] isItemNotified: received:node:d6e1aa1d-0e33-4396-a7e1-7b84ac59a3de:localhost:node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4:Node 2f2f0f08-2183-4e81-9ec7-5979a35dfef4 :: true

2022-08-11 23:02:11 | [Mutex] waiting for: [received:nodes:ae7d8d43-0d32-4fea-88be-36966073888d:localhost]

2022-08-11 23:02:11 | [Mutex] waiting for: [received:nodes:ae7d8d43-0d32-4fea-88be-36966073888d:localhost]

2022-08-11 23:02:11 | [Mutex] received everything.

2022-08-11 23:02:11 | [Mutex] isItemNotified: received:node:ae7d8d43-0d32-4fea-88be-36966073888d:localhost:node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4:Node 2f2f0f08-2183-4e81-9ec7-5979a35dfef4 :: false

createNodes 1.669s
2022-08-11 23:02:08 |

2022-08-11 23:02:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:08 | ------------------------------------

2022-08-11 23:02: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-2f2f0f08-2183-4e81-9ec7-5979a35dfef4",
    "pubsub#title": "Node 2f2f0f08-2183-4e81-9ec7-5979a35dfef4"
}

2022-08-11 23:02:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-11 23:02:09 | [Mutex] waiting for: [received:nodes:92213b6e-6892-4a25-b4a2-6757d57b084e:localhost]

2022-08-11 23:02:09 | [Mutex] waiting for: [received:nodes:92213b6e-6892-4a25-b4a2-6757d57b084e:localhost]

2022-08-11 23:02:09 | [Mutex] received everything.

2022-08-11 23:02:09 | [Mutex] isItemNotified: received:node:92213b6e-6892-4a25-b4a2-6757d57b084e:localhost:node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4:Node 2f2f0f08-2183-4e81-9ec7-5979a35dfef4 :: true

createSubnodes 1.023s
2022-08-11 23:02:09 |

2022-08-11 23:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:09 | ------------------------------------

2022-08-11 23:02:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-85dae5d4-98eb-4192-ba2c-df07e31dcf8a",
    "pubsub#title": "Node 85dae5d4-98eb-4192-ba2c-df07e31dcf8a"
}

2022-08-11 23:02:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-11 23:02:10 | [Mutex] waiting for: [received:nodes:896a6264-b28d-4d7c-b3a8-702e6e6bc031:localhost]

2022-08-11 23:02:10 | [Mutex] waiting for: [received:nodes:896a6264-b28d-4d7c-b3a8-702e6e6bc031:localhost]

2022-08-11 23:02:10 | [Mutex] waiting for: [received:nodes:896a6264-b28d-4d7c-b3a8-702e6e6bc031:localhost]

2022-08-11 23:02:10 | [Mutex] waiting for: [received:nodes:896a6264-b28d-4d7c-b3a8-702e6e6bc031:localhost]

2022-08-11 23:02:10 | [Mutex] received everything.

2022-08-11 23:02:10 | [Mutex] isItemNotified: received:node:896a6264-b28d-4d7c-b3a8-702e6e6bc031:localhost:node-85dae5d4-98eb-4192-ba2c-df07e31dcf8a:Node 85dae5d4-98eb-4192-ba2c-df07e31dcf8a :: true

deleteNodes 1.021s
2022-08-11 23:02:15 |

2022-08-11 23:02:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:15 | ------------------------------------

2022-08-11 23:02:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-85dae5d4-98eb-4192-ba2c-df07e31dcf8a"
}

2022-08-11 23:02:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-11 23:02:16 | [Mutex] waiting for: [received:nodes:4a427e86-ec4e-49d7-8ac8-d4414916c2a9:localhost]

2022-08-11 23:02:16 | [Mutex] received everything.

2022-08-11 23:02:16 | [Mutex] isItemNotified: received:node:4a427e86-ec4e-49d7-8ac8-d4414916c2a9:localhost:node-85dae5d4-98eb-4192-ba2c-df07e31dcf8a:Node 85dae5d4-98eb-4192-ba2c-df07e31dcf8a :: false

deleteSubnodes 1.030s
2022-08-11 23:02:14 |

2022-08-11 23:02:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:14 | ------------------------------------

2022-08-11 23:02:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4"
}

2022-08-11 23:02:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-11 23:02:15 | [Mutex] waiting for: [received:nodes:a68bfbd6-3a50-4f97-8db5-2451a2911c15:localhost]

2022-08-11 23:02:15 | [Mutex] received everything.

2022-08-11 23:02:15 | [Mutex] isItemNotified: received:node:a68bfbd6-3a50-4f97-8db5-2451a2911c15:localhost:node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4:Node 2f2f0f08-2183-4e81-9ec7-5979a35dfef4 :: false

2022-08-11 23:02:15 | [Mutex] waiting for: [received:nodes:6921c355-e032-46b5-b21c-d5331e4657a0:localhost]

2022-08-11 23:02:15 | [Mutex] received everything.

2022-08-11 23:02:15 | [Mutex] isItemNotified: received:node:6921c355-e032-46b5-b21c-d5331e4657a0:localhost:node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4:Node 2f2f0f08-2183-4e81-9ec7-5979a35dfef4 :: false

publishItemsToNodes 0.052s
2022-08-11 23:02:12 |

2022-08-11 23:02:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:12 | ------------------------------------

2022-08-11 23:02:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4",
    "entry": "<test>item-42b9c453-4bdc-48a5-ba14-2f823725982f</test>",
    "item-id": "item-42b9c453-4bdc-48a5-ba14-2f823725982f"
}

2022-08-11 23:02:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-42b9c453-4bdc-48a5-ba14-2f823725982f"
}

2022-08-11 23:02:12 | [Mutex] waiting for: [published:item:notifieditem-42b9c453-4bdc-48a5-ba14-2f823725982f:admin@test-domain.com]

2022-08-11 23:02:12 | [Mutex] received everything.

2022-08-11 23:02:12 | [Mutex] isItemNotified: published:item:notifieditem-42b9c453-4bdc-48a5-ba14-2f823725982f:admin@test-domain.com :: true

retractItemsFromNodes 0.086s
2022-08-11 23:02:13 |

2022-08-11 23:02:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:13 | ------------------------------------

2022-08-11 23:02:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4",
    "item-id": "item-42b9c453-4bdc-48a5-ba14-2f823725982f"
}

2022-08-11 23:02:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-42b9c453-4bdc-48a5-ba14-2f823725982f"
}

2022-08-11 23:02:13 | [Mutex] received everything.

2022-08-11 23:02:13 | [Mutex] isItemNotified: retracted:item:notifieditem-42b9c453-4bdc-48a5-ba14-2f823725982f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2022-08-11 23:02:12 |

2022-08-11 23:02:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:12 | ------------------------------------

2022-08-11 23:02:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4",
    "item-id": "item-42b9c453-4bdc-48a5-ba14-2f823725982f"
}

2022-08-11 23:02:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4",
    "item-id": "item-42b9c453-4bdc-48a5-ba14-2f823725982f",
    "item": [
        "<item id=\"item-42b9c453-4bdc-48a5-ba14-2f823725982f\"><test>item-42b9c453-4bdc-48a5-ba14-2f823725982f</test></item>"
    ]
}

2022-08-11 23:02:12 | [Mutex] notify: [retrieved:item:item-42b9c453-4bdc-48a5-ba14-2f823725982f:payload-matches:true:localhost]

2022-08-11 23:02:12 | [Mutex] received everything.

2022-08-11 23:02:12 | [Mutex] isItemNotified: retrieved:item:item-42b9c453-4bdc-48a5-ba14-2f823725982f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-11 23:02:12 |

2022-08-11 23:02:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:12 | ------------------------------------

2022-08-11 23:02:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-11 23:02:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-85dae5d4-98eb-4192-ba2c-df07e31dcf8a",
        "test",
        "node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-11 23:02:13 |

2022-08-11 23:02:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:13 | ------------------------------------

2022-08-11 23:02:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4)"
}

2022-08-11 23:02:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-08-11 23:02:11 |

2022-08-11 23:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:11 | ------------------------------------

2022-08-11 23:02:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-11 23:02:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-08-11 23:02:13 |

2022-08-11 23:02:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-11 23:02:13 | ------------------------------------

2022-08-11 23:02:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2f2f0f08-2183-4e81-9ec7-5979a35dfef4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-11 23:02:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}