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

Test duration: 8,683s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1,139s
2020-07-23 11:06:20 |

2020-07-23 11:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:20 | ------------------------------------

2020-07-23 11:06:20 | [Mutex] waiting for: [configured:node:node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6:node-59e13428-4bde-420c-8340-dd236d122f43]

2020-07-23 11:06:20 | [Mutex] received everything.

2020-07-23 11:06:20 | [Mutex] isItemNotified: configured:node:node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6:node-59e13428-4bde-420c-8340-dd236d122f43 :: true

2020-07-23 11:06:21 | [Mutex] waiting for: [received:nodes:f4f7b949-1984-4953-a119-b59a1d164495:localhost]

2020-07-23 11:06:21 | [Mutex] received everything.

2020-07-23 11:06:21 | [Mutex] isItemNotified: received:node:f4f7b949-1984-4953-a119-b59a1d164495:localhost:node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6:Node 713b6df4-bd23-46df-96b1-2f9bfd0b02a6 :: true

2020-07-23 11:06:21 | [Mutex] waiting for: [received:nodes:f10f7db2-d89c-4428-b087-6c47778b2882:localhost]

2020-07-23 11:06:21 | [Mutex] received everything.

2020-07-23 11:06:21 | [Mutex] isItemNotified: received:node:f10f7db2-d89c-4428-b087-6c47778b2882:localhost:node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6:Node 713b6df4-bd23-46df-96b1-2f9bfd0b02a6 :: false

createNodes 1,502s
2020-07-23 11:06:17 |

2020-07-23 11:06:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:17 | ------------------------------------

2020-07-23 11:06:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6",
    "pubsub#title": "Node 713b6df4-bd23-46df-96b1-2f9bfd0b02a6"
}

2020-07-23 11:06:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-07-23 11:06:19 | [Mutex] waiting for: [received:nodes:ece46de2-8f42-403b-b9fa-b2bc090f431b:localhost]

2020-07-23 11:06:19 | [Mutex] waiting for: [received:nodes:ece46de2-8f42-403b-b9fa-b2bc090f431b:localhost]

2020-07-23 11:06:19 | [Mutex] received everything.

2020-07-23 11:06:19 | [Mutex] isItemNotified: received:node:ece46de2-8f42-403b-b9fa-b2bc090f431b:localhost:node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6:Node 713b6df4-bd23-46df-96b1-2f9bfd0b02a6 :: true

createSubnodes 1,048s
2020-07-23 11:06:19 |

2020-07-23 11:06:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:19 | ------------------------------------

2020-07-23 11:06:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-59e13428-4bde-420c-8340-dd236d122f43",
    "pubsub#title": "Node 59e13428-4bde-420c-8340-dd236d122f43"
}

2020-07-23 11:06:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-07-23 11:06:20 | [Mutex] waiting for: [received:nodes:668d7261-060e-473e-9832-a527c13a4213:localhost]

2020-07-23 11:06:20 | [Mutex] waiting for: [received:nodes:668d7261-060e-473e-9832-a527c13a4213:localhost]

2020-07-23 11:06:20 | [Mutex] waiting for: [received:nodes:668d7261-060e-473e-9832-a527c13a4213:localhost]

2020-07-23 11:06:20 | [Mutex] received everything.

2020-07-23 11:06:20 | [Mutex] isItemNotified: received:node:668d7261-060e-473e-9832-a527c13a4213:localhost:node-59e13428-4bde-420c-8340-dd236d122f43:Node 59e13428-4bde-420c-8340-dd236d122f43 :: true

deleteNodes 1,040s
2020-07-23 11:06:25 |

2020-07-23 11:06:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:25 | ------------------------------------

2020-07-23 11:06:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-59e13428-4bde-420c-8340-dd236d122f43"
}

2020-07-23 11:06:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-07-23 11:06:26 | [Mutex] waiting for: [received:nodes:3d0b2f34-48bb-4f60-a4b0-a51f837976b6:localhost]

2020-07-23 11:06:26 | [Mutex] received everything.

2020-07-23 11:06:26 | [Mutex] isItemNotified: received:node:3d0b2f34-48bb-4f60-a4b0-a51f837976b6:localhost:node-59e13428-4bde-420c-8340-dd236d122f43:Node 59e13428-4bde-420c-8340-dd236d122f43 :: false

deleteSubnodes 1,066s
2020-07-23 11:06:23 |

2020-07-23 11:06:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:23 | ------------------------------------

2020-07-23 11:06:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6"
}

2020-07-23 11:06:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-07-23 11:06:24 | [Mutex] waiting for: [received:nodes:0cf9f467-6c79-44c9-883c-ebcc28d9bdc0:localhost]

2020-07-23 11:06:25 | [Mutex] received everything.

2020-07-23 11:06:25 | [Mutex] isItemNotified: received:node:0cf9f467-6c79-44c9-883c-ebcc28d9bdc0:localhost:node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6:Node 713b6df4-bd23-46df-96b1-2f9bfd0b02a6 :: false

2020-07-23 11:06:25 | [Mutex] waiting for: [received:nodes:c641afa8-7511-4f6f-a0d1-9c7c01dc59e1:localhost]

2020-07-23 11:06:25 | [Mutex] received everything.

2020-07-23 11:06:25 | [Mutex] isItemNotified: received:node:c641afa8-7511-4f6f-a0d1-9c7c01dc59e1:localhost:node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6:Node 713b6df4-bd23-46df-96b1-2f9bfd0b02a6 :: false

publishItemsToNodes 0,076s
2020-07-23 11:06:22 |

2020-07-23 11:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:22 | ------------------------------------

2020-07-23 11:06:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6",
    "entry": "<test>item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0</test>",
    "item-id": "item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0"
}

2020-07-23 11:06:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0"
}

2020-07-23 11:06:22 | [Mutex] waiting for: [published:item:notifieditem-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0:admin@test-domain.com]

2020-07-23 11:06:22 | [Mutex] received everything.

2020-07-23 11:06:22 | [Mutex] isItemNotified: published:item:notifieditem-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0:admin@test-domain.com :: true

retractItemsFromNodes 0,089s
2020-07-23 11:06:22 |

2020-07-23 11:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:22 | ------------------------------------

2020-07-23 11:06:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6",
    "item-id": "item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0"
}

2020-07-23 11:06:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0"
}

2020-07-23 11:06:22 | [Mutex] waiting for: [retracted:item:notifieditem-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0:admin@test-domain.com]

2020-07-23 11:06:22 | [Mutex] received everything.

2020-07-23 11:06:22 | [Mutex] isItemNotified: retracted:item:notifieditem-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0:admin@test-domain.com :: true

retrieveItemsFromNodes 0,021s
2020-07-23 11:06:22 |

2020-07-23 11:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:22 | ------------------------------------

2020-07-23 11:06:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6",
    "item-id": "item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0"
}

2020-07-23 11:06:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6",
    "item-id": "item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0",
    "item": [
        "<item id=\"item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0\"><test>item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0</test></item>"
    ]
}

2020-07-23 11:06:22 | [Mutex] notify: [retrieved:item:item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0:payload-matches:true:localhost]

2020-07-23 11:06:22 | [Mutex] received everything.

2020-07-23 11:06:22 | [Mutex] isItemNotified: retrieved:item:item-e2bc2f89-f3fb-4cbc-91c0-8878c8c4bfa0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0,013s
2020-07-23 11:06:22 |

2020-07-23 11:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:22 | ------------------------------------

2020-07-23 11:06:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-07-23 11:06:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-59e13428-4bde-420c-8340-dd236d122f43",
        "test",
        "node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6"
    ]
}

retrieveUserSubscriptionsWithRegex 0,016s
2020-07-23 11:06:22 |

2020-07-23 11:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:22 | ------------------------------------

2020-07-23 11:06:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6)"
}

2020-07-23 11:06:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1,023s
2020-07-23 11:06:21 |

2020-07-23 11:06:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:21 | ------------------------------------

2020-07-23 11:06:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-07-23 11:06:21 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1,085s
2020-07-23 11:06:22 |

2020-07-23 11:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-07-23 11:06:22 | ------------------------------------

2020-07-23 11:06:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-713b6df4-bd23-46df-96b1-2f9bfd0b02a6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-07-23 11:06:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}