Generated by TestNG with ReportNG at 22:13 PDT on Thursday 29 October 2020
root@eaa73862192b / 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.182s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2020-10-29 22:30:15 |

2020-10-29 22:30:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:15 | ------------------------------------

2020-10-29 22:30:15 | [Mutex] waiting for: [configured:node:node-fd2d8dbd-68f6-47e5-b495-66424ed0baae:node-a4caaee1-2074-4d7e-8943-cc44affc52a0]

2020-10-29 22:30:15 | [Mutex] received everything.

2020-10-29 22:30:15 | [Mutex] isItemNotified: configured:node:node-fd2d8dbd-68f6-47e5-b495-66424ed0baae:node-a4caaee1-2074-4d7e-8943-cc44affc52a0 :: true

2020-10-29 22:30:16 | [Mutex] waiting for: [received:nodes:247e2bb7-08ac-4ae4-8adc-111f94ce90f5:localhost]

2020-10-29 22:30:16 | [Mutex] received everything.

2020-10-29 22:30:16 | [Mutex] isItemNotified: received:node:247e2bb7-08ac-4ae4-8adc-111f94ce90f5:localhost:node-fd2d8dbd-68f6-47e5-b495-66424ed0baae:Node fd2d8dbd-68f6-47e5-b495-66424ed0baae :: true

2020-10-29 22:30:16 | [Mutex] waiting for: [received:nodes:97baefda-c873-4bb6-b9de-87155d38ea25:localhost]

2020-10-29 22:30:16 | [Mutex] received everything.

2020-10-29 22:30:16 | [Mutex] isItemNotified: received:node:97baefda-c873-4bb6-b9de-87155d38ea25:localhost:node-fd2d8dbd-68f6-47e5-b495-66424ed0baae:Node fd2d8dbd-68f6-47e5-b495-66424ed0baae :: false

createNodes 1.761s
2020-10-29 22:30:12 |

2020-10-29 22:30:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:12 | ------------------------------------

2020-10-29 22:30:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fd2d8dbd-68f6-47e5-b495-66424ed0baae",
    "pubsub#title": "Node fd2d8dbd-68f6-47e5-b495-66424ed0baae"
}

2020-10-29 22:30:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-29 22:30:14 | [Mutex] waiting for: [received:nodes:cbae8005-921a-45a7-89d8-1989a52b57e0:localhost]

2020-10-29 22:30:14 | [Mutex] received everything.

2020-10-29 22:30:14 | [Mutex] isItemNotified: received:node:cbae8005-921a-45a7-89d8-1989a52b57e0:localhost:node-fd2d8dbd-68f6-47e5-b495-66424ed0baae:Node fd2d8dbd-68f6-47e5-b495-66424ed0baae :: true

createSubnodes 1.027s
2020-10-29 22:30:14 |

2020-10-29 22:30:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:14 | ------------------------------------

2020-10-29 22:30:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a4caaee1-2074-4d7e-8943-cc44affc52a0",
    "pubsub#title": "Node a4caaee1-2074-4d7e-8943-cc44affc52a0"
}

2020-10-29 22:30:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-29 22:30:15 | [Mutex] waiting for: [received:nodes:4c6e1b49-75fc-45ce-baee-69a65c718178:localhost]

2020-10-29 22:30:15 | [Mutex] received everything.

2020-10-29 22:30:15 | [Mutex] isItemNotified: received:node:4c6e1b49-75fc-45ce-baee-69a65c718178:localhost:node-a4caaee1-2074-4d7e-8943-cc44affc52a0:Node a4caaee1-2074-4d7e-8943-cc44affc52a0 :: true

deleteNodes 1.026s
2020-10-29 22:30:20 |

2020-10-29 22:30:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:20 | ------------------------------------

2020-10-29 22:30:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a4caaee1-2074-4d7e-8943-cc44affc52a0"
}

2020-10-29 22:30:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-29 22:30:21 | [Mutex] waiting for: [received:nodes:61e522a4-22a4-4f01-9569-c11e283f0cc1:localhost]

2020-10-29 22:30:21 | [Mutex] received everything.

2020-10-29 22:30:21 | [Mutex] isItemNotified: received:node:61e522a4-22a4-4f01-9569-c11e283f0cc1:localhost:node-a4caaee1-2074-4d7e-8943-cc44affc52a0:Node a4caaee1-2074-4d7e-8943-cc44affc52a0 :: false

deleteSubnodes 1.027s
2020-10-29 22:30:19 |

2020-10-29 22:30:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:19 | ------------------------------------

2020-10-29 22:30:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fd2d8dbd-68f6-47e5-b495-66424ed0baae"
}

2020-10-29 22:30:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-29 22:30:20 | [Mutex] waiting for: [received:nodes:8b40e634-1870-4167-8481-101c6a0ad3df:localhost]

2020-10-29 22:30:20 | [Mutex] received everything.

2020-10-29 22:30:20 | [Mutex] isItemNotified: received:node:8b40e634-1870-4167-8481-101c6a0ad3df:localhost:node-fd2d8dbd-68f6-47e5-b495-66424ed0baae:Node fd2d8dbd-68f6-47e5-b495-66424ed0baae :: false

2020-10-29 22:30:20 | [Mutex] waiting for: [received:nodes:94ff9fbb-53be-4e05-84e1-b5938b77a16a:localhost]

2020-10-29 22:30:20 | [Mutex] received everything.

2020-10-29 22:30:20 | [Mutex] isItemNotified: received:node:94ff9fbb-53be-4e05-84e1-b5938b77a16a:localhost:node-fd2d8dbd-68f6-47e5-b495-66424ed0baae:Node fd2d8dbd-68f6-47e5-b495-66424ed0baae :: false

publishItemsToNodes 0.051s
2020-10-29 22:30:17 |

2020-10-29 22:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:17 | ------------------------------------

2020-10-29 22:30:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fd2d8dbd-68f6-47e5-b495-66424ed0baae",
    "entry": "<test>item-ca50718c-5bde-4bf5-8eed-e67e9b262d60</test>",
    "item-id": "item-ca50718c-5bde-4bf5-8eed-e67e9b262d60"
}

2020-10-29 22:30:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca50718c-5bde-4bf5-8eed-e67e9b262d60"
}

2020-10-29 22:30:17 | [Mutex] waiting for: [published:item:notifieditem-ca50718c-5bde-4bf5-8eed-e67e9b262d60:admin@test-domain.com]

2020-10-29 22:30:17 | [Mutex] received everything.

2020-10-29 22:30:17 | [Mutex] isItemNotified: published:item:notifieditem-ca50718c-5bde-4bf5-8eed-e67e9b262d60:admin@test-domain.com :: true

retractItemsFromNodes 0.107s
2020-10-29 22:30:18 |

2020-10-29 22:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:18 | ------------------------------------

2020-10-29 22:30:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fd2d8dbd-68f6-47e5-b495-66424ed0baae",
    "item-id": "item-ca50718c-5bde-4bf5-8eed-e67e9b262d60"
}

2020-10-29 22:30:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca50718c-5bde-4bf5-8eed-e67e9b262d60"
}

2020-10-29 22:30:18 | [Mutex] received everything.

2020-10-29 22:30:18 | [Mutex] isItemNotified: retracted:item:notifieditem-ca50718c-5bde-4bf5-8eed-e67e9b262d60:admin@test-domain.com :: true

retrieveItemsFromNodes 0.029s
2020-10-29 22:30:17 |

2020-10-29 22:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:17 | ------------------------------------

2020-10-29 22:30:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fd2d8dbd-68f6-47e5-b495-66424ed0baae",
    "item-id": "item-ca50718c-5bde-4bf5-8eed-e67e9b262d60"
}

2020-10-29 22:30:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fd2d8dbd-68f6-47e5-b495-66424ed0baae",
    "item-id": "item-ca50718c-5bde-4bf5-8eed-e67e9b262d60",
    "item": [
        "<item id=\"item-ca50718c-5bde-4bf5-8eed-e67e9b262d60\"><test>item-ca50718c-5bde-4bf5-8eed-e67e9b262d60</test></item>"
    ]
}

2020-10-29 22:30:17 | [Mutex] notify: [retrieved:item:item-ca50718c-5bde-4bf5-8eed-e67e9b262d60:payload-matches:true:localhost]

2020-10-29 22:30:17 | [Mutex] received everything.

2020-10-29 22:30:17 | [Mutex] isItemNotified: retrieved:item:item-ca50718c-5bde-4bf5-8eed-e67e9b262d60:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.061s
2020-10-29 22:30:17 |

2020-10-29 22:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:17 | ------------------------------------

2020-10-29 22:30:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-29 22:30:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fd2d8dbd-68f6-47e5-b495-66424ed0baae",
        "node-a4caaee1-2074-4d7e-8943-cc44affc52a0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-10-29 22:30:17 |

2020-10-29 22:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:17 | ------------------------------------

2020-10-29 22:30:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fd2d8dbd-68f6-47e5-b495-66424ed0baae)"
}

2020-10-29 22:30:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2020-10-29 22:30:16 |

2020-10-29 22:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:16 | ------------------------------------

2020-10-29 22:30:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fd2d8dbd-68f6-47e5-b495-66424ed0baae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-29 22:30:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-10-29 22:30:18 |

2020-10-29 22:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:30:18 | ------------------------------------

2020-10-29 22:30:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fd2d8dbd-68f6-47e5-b495-66424ed0baae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-29 22:30:18 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}