Generated by TestNG with ReportNG at 22:26 PDT on Sunday 25 April 2021
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 9.115s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2021-04-25 22:41:13 |

2021-04-25 22:41:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:13 | ------------------------------------

2021-04-25 22:41:13 | [Mutex] waiting for: [configured:node:node-824bf374-2096-4316-93a9-84d158d15731:node-cc5b99b8-108f-4904-bb2f-dcb35d0e07d7]

2021-04-25 22:41:13 | [Mutex] received everything.

2021-04-25 22:41:13 | [Mutex] isItemNotified: configured:node:node-824bf374-2096-4316-93a9-84d158d15731:node-cc5b99b8-108f-4904-bb2f-dcb35d0e07d7 :: true

2021-04-25 22:41:14 | [Mutex] waiting for: [received:nodes:69569965-9bf9-475a-96d3-1731a2e19317:localhost]

2021-04-25 22:41:14 | [Mutex] received everything.

2021-04-25 22:41:14 | [Mutex] isItemNotified: received:node:69569965-9bf9-475a-96d3-1731a2e19317:localhost:node-824bf374-2096-4316-93a9-84d158d15731:Node 824bf374-2096-4316-93a9-84d158d15731 :: true

2021-04-25 22:41:14 | [Mutex] waiting for: [received:nodes:c4eb0a48-447d-4acd-8343-3771f56ecb85:localhost]

2021-04-25 22:41:14 | [Mutex] received everything.

2021-04-25 22:41:14 | [Mutex] isItemNotified: received:node:c4eb0a48-447d-4acd-8343-3771f56ecb85:localhost:node-824bf374-2096-4316-93a9-84d158d15731:Node 824bf374-2096-4316-93a9-84d158d15731 :: false

createNodes 1.673s
2021-04-25 22:41:11 |

2021-04-25 22:41:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:11 | ------------------------------------

2021-04-25 22:41:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-824bf374-2096-4316-93a9-84d158d15731",
    "pubsub#title": "Node 824bf374-2096-4316-93a9-84d158d15731"
}

2021-04-25 22:41:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-25 22:41:12 | [Mutex] waiting for: [received:nodes:073da3c4-dadb-4aae-a9ff-cb04d6c3f847:localhost]

2021-04-25 22:41:12 | [Mutex] received everything.

2021-04-25 22:41:12 | [Mutex] isItemNotified: received:node:073da3c4-dadb-4aae-a9ff-cb04d6c3f847:localhost:node-824bf374-2096-4316-93a9-84d158d15731:Node 824bf374-2096-4316-93a9-84d158d15731 :: true

createSubnodes 1.029s
2021-04-25 22:41:12 |

2021-04-25 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:12 | ------------------------------------

2021-04-25 22:41:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cc5b99b8-108f-4904-bb2f-dcb35d0e07d7",
    "pubsub#title": "Node cc5b99b8-108f-4904-bb2f-dcb35d0e07d7"
}

2021-04-25 22:41:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-25 22:41:13 | [Mutex] waiting for: [received:nodes:7a15decc-97e7-4a08-9da9-f9fdfe3b4b46:localhost]

2021-04-25 22:41:13 | [Mutex] received everything.

2021-04-25 22:41:13 | [Mutex] isItemNotified: received:node:7a15decc-97e7-4a08-9da9-f9fdfe3b4b46:localhost:node-cc5b99b8-108f-4904-bb2f-dcb35d0e07d7:Node cc5b99b8-108f-4904-bb2f-dcb35d0e07d7 :: true

deleteNodes 1.028s
2021-04-25 22:41:18 |

2021-04-25 22:41:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:18 | ------------------------------------

2021-04-25 22:41:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cc5b99b8-108f-4904-bb2f-dcb35d0e07d7"
}

2021-04-25 22:41:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-25 22:41:19 | [Mutex] waiting for: [received:nodes:5d646acb-570d-4981-8213-f744d7cf9158:localhost]

2021-04-25 22:41:19 | [Mutex] received everything.

2021-04-25 22:41:19 | [Mutex] isItemNotified: received:node:5d646acb-570d-4981-8213-f744d7cf9158:localhost:node-cc5b99b8-108f-4904-bb2f-dcb35d0e07d7:Node cc5b99b8-108f-4904-bb2f-dcb35d0e07d7 :: false

deleteSubnodes 1.036s
2021-04-25 22:41:17 |

2021-04-25 22:41:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:17 | ------------------------------------

2021-04-25 22:41:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-824bf374-2096-4316-93a9-84d158d15731"
}

2021-04-25 22:41:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-25 22:41:18 | [Mutex] waiting for: [received:nodes:956ee9f7-c447-4571-998e-f426e162ff5c:localhost]

2021-04-25 22:41:18 | [Mutex] received everything.

2021-04-25 22:41:18 | [Mutex] isItemNotified: received:node:956ee9f7-c447-4571-998e-f426e162ff5c:localhost:node-824bf374-2096-4316-93a9-84d158d15731:Node 824bf374-2096-4316-93a9-84d158d15731 :: false

2021-04-25 22:41:18 | [Mutex] waiting for: [received:nodes:927b7bd3-4810-4b8a-935c-dbd9ff4b5a71:localhost]

2021-04-25 22:41:18 | [Mutex] received everything.

2021-04-25 22:41:18 | [Mutex] isItemNotified: received:node:927b7bd3-4810-4b8a-935c-dbd9ff4b5a71:localhost:node-824bf374-2096-4316-93a9-84d158d15731:Node 824bf374-2096-4316-93a9-84d158d15731 :: false

publishItemsToNodes 0.097s
2021-04-25 22:41:15 |

2021-04-25 22:41:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:15 | ------------------------------------

2021-04-25 22:41:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-824bf374-2096-4316-93a9-84d158d15731",
    "entry": "<test>item-118abd0d-762a-47cb-869f-2065860e4361</test>",
    "item-id": "item-118abd0d-762a-47cb-869f-2065860e4361"
}

2021-04-25 22:41:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-118abd0d-762a-47cb-869f-2065860e4361"
}

2021-04-25 22:41:15 | [Mutex] waiting for: [published:item:notifieditem-118abd0d-762a-47cb-869f-2065860e4361:admin@test-domain.com]

2021-04-25 22:41:15 | [Mutex] received everything.

2021-04-25 22:41:15 | [Mutex] isItemNotified: published:item:notifieditem-118abd0d-762a-47cb-869f-2065860e4361:admin@test-domain.com :: true

retractItemsFromNodes 0.157s
2021-04-25 22:41:16 |

2021-04-25 22:41:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:16 | ------------------------------------

2021-04-25 22:41:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-824bf374-2096-4316-93a9-84d158d15731",
    "item-id": "item-118abd0d-762a-47cb-869f-2065860e4361"
}

2021-04-25 22:41:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-118abd0d-762a-47cb-869f-2065860e4361"
}

2021-04-25 22:41:16 | [Mutex] waiting for: [retracted:item:notifieditem-118abd0d-762a-47cb-869f-2065860e4361:admin@test-domain.com]

2021-04-25 22:41:16 | [Mutex] received everything.

2021-04-25 22:41:16 | [Mutex] isItemNotified: retracted:item:notifieditem-118abd0d-762a-47cb-869f-2065860e4361:admin@test-domain.com :: true

retrieveItemsFromNodes 0.052s
2021-04-25 22:41:15 |

2021-04-25 22:41:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:15 | ------------------------------------

2021-04-25 22:41:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-824bf374-2096-4316-93a9-84d158d15731",
    "item-id": "item-118abd0d-762a-47cb-869f-2065860e4361"
}

2021-04-25 22:41:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-824bf374-2096-4316-93a9-84d158d15731",
    "item-id": "item-118abd0d-762a-47cb-869f-2065860e4361",
    "item": [
        "<item id=\"item-118abd0d-762a-47cb-869f-2065860e4361\"><test>item-118abd0d-762a-47cb-869f-2065860e4361</test></item>"
    ]
}

2021-04-25 22:41:15 | [Mutex] notify: [retrieved:item:item-118abd0d-762a-47cb-869f-2065860e4361:payload-matches:true:localhost]

2021-04-25 22:41:15 | [Mutex] received everything.

2021-04-25 22:41:15 | [Mutex] isItemNotified: retrieved:item:item-118abd0d-762a-47cb-869f-2065860e4361:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2021-04-25 22:41:15 |

2021-04-25 22:41:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:15 | ------------------------------------

2021-04-25 22:41:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-25 22:41:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-824bf374-2096-4316-93a9-84d158d15731",
        "node-cc5b99b8-108f-4904-bb2f-dcb35d0e07d7",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-25 22:41:16 |

2021-04-25 22:41:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:16 | ------------------------------------

2021-04-25 22:41:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-824bf374-2096-4316-93a9-84d158d15731)"
}

2021-04-25 22:41:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-04-25 22:41:14 |

2021-04-25 22:41:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:14 | ------------------------------------

2021-04-25 22:41:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-824bf374-2096-4316-93a9-84d158d15731",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-25 22:41:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.018s
2021-04-25 22:41:16 |

2021-04-25 22:41:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:41:16 | ------------------------------------

2021-04-25 22:41:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-824bf374-2096-4316-93a9-84d158d15731",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-25 22:41:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}