Generated by TestNG with ReportNG at 22:46 PDT on Monday 31 July 2023
root@7962bf290299 / Java 17.0.7 (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.477s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2023-07-31 23:00:48 |

2023-07-31 23:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:48 | ------------------------------------

2023-07-31 23:00:48 | [Mutex] waiting for: [configured:node:node-1e353217-704a-4174-8112-a9aa6158dcf1:node-811bebff-e683-4747-855e-693488b89e68]

2023-07-31 23:00:48 | [Mutex] received everything.

2023-07-31 23:00:48 | [Mutex] isItemNotified: configured:node:node-1e353217-704a-4174-8112-a9aa6158dcf1:node-811bebff-e683-4747-855e-693488b89e68 :: true

2023-07-31 23:00:49 | [Mutex] waiting for: [received:nodes:9aee362d-3a48-47a9-b01f-66c6867bddfd:localhost]

2023-07-31 23:00:49 | [Mutex] received everything.

2023-07-31 23:00:49 | [Mutex] isItemNotified: received:node:9aee362d-3a48-47a9-b01f-66c6867bddfd:localhost:node-1e353217-704a-4174-8112-a9aa6158dcf1:Node 1e353217-704a-4174-8112-a9aa6158dcf1 :: true

2023-07-31 23:00:49 | [Mutex] waiting for: [received:nodes:93d24a0b-719b-4e92-91f7-747e393a5633:localhost]

2023-07-31 23:00:49 | [Mutex] waiting for: [received:nodes:93d24a0b-719b-4e92-91f7-747e393a5633:localhost]

2023-07-31 23:00:49 | [Mutex] waiting for: [received:nodes:93d24a0b-719b-4e92-91f7-747e393a5633:localhost]

2023-07-31 23:00:49 | [Mutex] received everything.

2023-07-31 23:00:49 | [Mutex] isItemNotified: received:node:93d24a0b-719b-4e92-91f7-747e393a5633:localhost:node-1e353217-704a-4174-8112-a9aa6158dcf1:Node 1e353217-704a-4174-8112-a9aa6158dcf1 :: false

createNodes 1.524s
2023-07-31 23:00:46 |

2023-07-31 23:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:46 | ------------------------------------

2023-07-31 23:00:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1e353217-704a-4174-8112-a9aa6158dcf1",
    "pubsub#title": "Node 1e353217-704a-4174-8112-a9aa6158dcf1"
}

2023-07-31 23:00:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-31 23:00:47 | [Mutex] waiting for: [received:nodes:11aa7765-67af-41f1-b802-b74e5bcb9463:localhost]

2023-07-31 23:00:47 | [Mutex] waiting for: [received:nodes:11aa7765-67af-41f1-b802-b74e5bcb9463:localhost]

2023-07-31 23:00:47 | [Mutex] waiting for: [received:nodes:11aa7765-67af-41f1-b802-b74e5bcb9463:localhost]

2023-07-31 23:00:47 | [Mutex] received everything.

2023-07-31 23:00:47 | [Mutex] isItemNotified: received:node:11aa7765-67af-41f1-b802-b74e5bcb9463:localhost:node-1e353217-704a-4174-8112-a9aa6158dcf1:Node 1e353217-704a-4174-8112-a9aa6158dcf1 :: true

createSubnodes 1.020s
2023-07-31 23:00:47 |

2023-07-31 23:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:47 | ------------------------------------

2023-07-31 23:00:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-811bebff-e683-4747-855e-693488b89e68",
    "pubsub#title": "Node 811bebff-e683-4747-855e-693488b89e68"
}

2023-07-31 23:00:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-31 23:00:48 | [Mutex] waiting for: [received:nodes:5f6e8e4e-af16-4971-a41f-a9d0a17ce3e9:localhost]

2023-07-31 23:00:48 | [Mutex] waiting for: [received:nodes:5f6e8e4e-af16-4971-a41f-a9d0a17ce3e9:localhost]

2023-07-31 23:00:48 | [Mutex] waiting for: [received:nodes:5f6e8e4e-af16-4971-a41f-a9d0a17ce3e9:localhost]

2023-07-31 23:00:48 | [Mutex] received everything.

2023-07-31 23:00:48 | [Mutex] isItemNotified: received:node:5f6e8e4e-af16-4971-a41f-a9d0a17ce3e9:localhost:node-811bebff-e683-4747-855e-693488b89e68:Node 811bebff-e683-4747-855e-693488b89e68 :: true

deleteNodes 1.026s
2023-07-31 23:00:52 |

2023-07-31 23:00:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:52 | ------------------------------------

2023-07-31 23:00:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-811bebff-e683-4747-855e-693488b89e68"
}

2023-07-31 23:00:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-31 23:00:53 | [Mutex] waiting for: [received:nodes:1b733482-ad6c-4367-a5c9-e7265c9a9688:localhost]

2023-07-31 23:00:54 | [Mutex] waiting for: [received:nodes:1b733482-ad6c-4367-a5c9-e7265c9a9688:localhost]

2023-07-31 23:00:54 | [Mutex] waiting for: [received:nodes:1b733482-ad6c-4367-a5c9-e7265c9a9688:localhost]

2023-07-31 23:00:54 | [Mutex] received everything.

2023-07-31 23:00:54 | [Mutex] isItemNotified: received:node:1b733482-ad6c-4367-a5c9-e7265c9a9688:localhost:node-811bebff-e683-4747-855e-693488b89e68:Node 811bebff-e683-4747-855e-693488b89e68 :: false

deleteSubnodes 1.021s
2023-07-31 23:00:51 |

2023-07-31 23:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:51 | ------------------------------------

2023-07-31 23:00:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1e353217-704a-4174-8112-a9aa6158dcf1"
}

2023-07-31 23:00:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-31 23:00:52 | [Mutex] waiting for: [received:nodes:26ca5a84-87d6-4ef1-b21d-61d9944b42be:localhost]

2023-07-31 23:00:52 | [Mutex] waiting for: [received:nodes:26ca5a84-87d6-4ef1-b21d-61d9944b42be:localhost]

2023-07-31 23:00:52 | [Mutex] waiting for: [received:nodes:26ca5a84-87d6-4ef1-b21d-61d9944b42be:localhost]

2023-07-31 23:00:52 | [Mutex] waiting for: [received:nodes:26ca5a84-87d6-4ef1-b21d-61d9944b42be:localhost]

2023-07-31 23:00:52 | [Mutex] received everything.

2023-07-31 23:00:52 | [Mutex] isItemNotified: received:node:26ca5a84-87d6-4ef1-b21d-61d9944b42be:localhost:node-1e353217-704a-4174-8112-a9aa6158dcf1:Node 1e353217-704a-4174-8112-a9aa6158dcf1 :: false

2023-07-31 23:00:52 | [Mutex] waiting for: [received:nodes:aacb02a3-ea90-4c3a-b869-8befbbd8e70d:localhost]

2023-07-31 23:00:52 | [Mutex] received everything.

2023-07-31 23:00:52 | [Mutex] isItemNotified: received:node:aacb02a3-ea90-4c3a-b869-8befbbd8e70d:localhost:node-1e353217-704a-4174-8112-a9aa6158dcf1:Node 1e353217-704a-4174-8112-a9aa6158dcf1 :: false

publishItemsToNodes 0.052s
2023-07-31 23:00:50 |

2023-07-31 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:50 | ------------------------------------

2023-07-31 23:00:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1e353217-704a-4174-8112-a9aa6158dcf1",
    "entry": "<test>item-c2f69798-b9a9-418b-bbd7-c969efc35daf</test>",
    "item-id": "item-c2f69798-b9a9-418b-bbd7-c969efc35daf"
}

2023-07-31 23:00:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c2f69798-b9a9-418b-bbd7-c969efc35daf"
}

2023-07-31 23:00:50 | [Mutex] waiting for: [published:item:notifieditem-c2f69798-b9a9-418b-bbd7-c969efc35daf:admin@test-domain.com]

2023-07-31 23:00:50 | [Mutex] received everything.

2023-07-31 23:00:50 | [Mutex] isItemNotified: published:item:notifieditem-c2f69798-b9a9-418b-bbd7-c969efc35daf:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-07-31 23:00:50 |

2023-07-31 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:50 | ------------------------------------

2023-07-31 23:00:50 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1e353217-704a-4174-8112-a9aa6158dcf1",
    "item-id": "item-c2f69798-b9a9-418b-bbd7-c969efc35daf"
}

2023-07-31 23:00:50 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c2f69798-b9a9-418b-bbd7-c969efc35daf"
}

2023-07-31 23:00:50 | [Mutex] received everything.

2023-07-31 23:00:50 | [Mutex] isItemNotified: retracted:item:notifieditem-c2f69798-b9a9-418b-bbd7-c969efc35daf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.034s
2023-07-31 23:00:50 |

2023-07-31 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:50 | ------------------------------------

2023-07-31 23:00:50 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1e353217-704a-4174-8112-a9aa6158dcf1",
    "item-id": "item-c2f69798-b9a9-418b-bbd7-c969efc35daf"
}

2023-07-31 23:00:50 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1e353217-704a-4174-8112-a9aa6158dcf1",
    "item-id": "item-c2f69798-b9a9-418b-bbd7-c969efc35daf",
    "item": [
        "<item id=\"item-c2f69798-b9a9-418b-bbd7-c969efc35daf\"><test>item-c2f69798-b9a9-418b-bbd7-c969efc35daf</test></item>"
    ]
}

2023-07-31 23:00:50 | [Mutex] notify: [retrieved:item:item-c2f69798-b9a9-418b-bbd7-c969efc35daf:payload-matches:true:localhost]

2023-07-31 23:00:50 | [Mutex] received everything.

2023-07-31 23:00:50 | [Mutex] isItemNotified: retrieved:item:item-c2f69798-b9a9-418b-bbd7-c969efc35daf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-31 23:00:50 |

2023-07-31 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:50 | ------------------------------------

2023-07-31 23:00:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-31 23:00:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-811bebff-e683-4747-855e-693488b89e68",
        "node-1e353217-704a-4174-8112-a9aa6158dcf1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-31 23:00:50 |

2023-07-31 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:50 | ------------------------------------

2023-07-31 23:00:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1e353217-704a-4174-8112-a9aa6158dcf1)"
}

2023-07-31 23:00:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2023-07-31 23:00:49 |

2023-07-31 23:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:49 | ------------------------------------

2023-07-31 23:00:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1e353217-704a-4174-8112-a9aa6158dcf1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-31 23:00:49 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2023-07-31 23:00:50 |

2023-07-31 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 23:00:50 | ------------------------------------

2023-07-31 23:00:50 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1e353217-704a-4174-8112-a9aa6158dcf1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-31 23:00:50 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}