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

Test duration: 8,543s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1,131s
2020-07-23 11:58:22 |

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

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

2020-07-23 11:58:22 | [Mutex] waiting for: [configured:node:node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3:node-cd8da56c-6f6b-4545-a865-8a9579005c93]

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

2020-07-23 11:58:22 | [Mutex] isItemNotified: configured:node:node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3:node-cd8da56c-6f6b-4545-a865-8a9579005c93 :: true

2020-07-23 11:58:23 | [Mutex] waiting for: [received:nodes:d40e9ecf-53ea-4724-a814-af5e78520af2:localhost]

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

2020-07-23 11:58:23 | [Mutex] isItemNotified: received:node:d40e9ecf-53ea-4724-a814-af5e78520af2:localhost:node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3:Node 19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3 :: true

2020-07-23 11:58:23 | [Mutex] waiting for: [received:nodes:1c6b4cc7-9566-4296-8e28-35a11c0858d9:localhost]

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

2020-07-23 11:58:23 | [Mutex] isItemNotified: received:node:1c6b4cc7-9566-4296-8e28-35a11c0858d9:localhost:node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3:Node 19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3 :: false

createNodes 1,504s
2020-07-23 11:58:20 |

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

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

2020-07-23 11:58:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3",
    "pubsub#title": "Node 19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3"
}

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

2020-07-23 11:58:21 | [Mutex] waiting for: [received:nodes:3ff747a5-a544-4e4f-b277-5f377355fa3f:localhost]

2020-07-23 11:58:21 | [Mutex] waiting for: [received:nodes:3ff747a5-a544-4e4f-b277-5f377355fa3f:localhost]

2020-07-23 11:58:21 | [Mutex] waiting for: [received:nodes:3ff747a5-a544-4e4f-b277-5f377355fa3f:localhost]

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

2020-07-23 11:58:21 | [Mutex] isItemNotified: received:node:3ff747a5-a544-4e4f-b277-5f377355fa3f:localhost:node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3:Node 19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3 :: true

createSubnodes 1,038s
2020-07-23 11:58:21 |

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

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

2020-07-23 11:58:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cd8da56c-6f6b-4545-a865-8a9579005c93",
    "pubsub#title": "Node cd8da56c-6f6b-4545-a865-8a9579005c93"
}

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

2020-07-23 11:58:22 | [Mutex] waiting for: [received:nodes:2eff0914-48a9-4b95-a31a-edd2c290111f:localhost]

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

2020-07-23 11:58:22 | [Mutex] isItemNotified: received:node:2eff0914-48a9-4b95-a31a-edd2c290111f:localhost:node-cd8da56c-6f6b-4545-a865-8a9579005c93:Node cd8da56c-6f6b-4545-a865-8a9579005c93 :: true

deleteNodes 1,032s
2020-07-23 11:58:27 |

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

2020-07-23 11:58:27 | ------------------------------------

2020-07-23 11:58:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cd8da56c-6f6b-4545-a865-8a9579005c93"
}

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

2020-07-23 11:58:28 | [Mutex] waiting for: [received:nodes:87411da1-aafa-4739-9a73-ca9ba9d36ba1:localhost]

2020-07-23 11:58:28 | [Mutex] waiting for: [received:nodes:87411da1-aafa-4739-9a73-ca9ba9d36ba1:localhost]

2020-07-23 11:58:28 | [Mutex] received everything.

2020-07-23 11:58:28 | [Mutex] isItemNotified: received:node:87411da1-aafa-4739-9a73-ca9ba9d36ba1:localhost:node-cd8da56c-6f6b-4545-a865-8a9579005c93:Node cd8da56c-6f6b-4545-a865-8a9579005c93 :: false

deleteSubnodes 1,046s
2020-07-23 11:58:26 |

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

2020-07-23 11:58:26 | ------------------------------------

2020-07-23 11:58:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3"
}

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

2020-07-23 11:58:27 | [Mutex] waiting for: [received:nodes:0e5fc9a2-d0cf-4316-89f2-25fea83402ce:localhost]

2020-07-23 11:58:27 | [Mutex] waiting for: [received:nodes:0e5fc9a2-d0cf-4316-89f2-25fea83402ce:localhost]

2020-07-23 11:58:27 | [Mutex] received everything.

2020-07-23 11:58:27 | [Mutex] isItemNotified: received:node:0e5fc9a2-d0cf-4316-89f2-25fea83402ce:localhost:node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3:Node 19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3 :: false

2020-07-23 11:58:27 | [Mutex] waiting for: [received:nodes:712d04a6-d93d-4131-b1d5-6b1e60993622:localhost]

2020-07-23 11:58:27 | [Mutex] received everything.

2020-07-23 11:58:27 | [Mutex] isItemNotified: received:node:712d04a6-d93d-4131-b1d5-6b1e60993622:localhost:node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3:Node 19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3 :: false

publishItemsToNodes 0,075s
2020-07-23 11:58:24 |

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

2020-07-23 11:58:24 | ------------------------------------

2020-07-23 11:58:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3",
    "entry": "<test>item-24b11bda-6204-4b54-8866-41b9388e8a22</test>",
    "item-id": "item-24b11bda-6204-4b54-8866-41b9388e8a22"
}

2020-07-23 11:58:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-24b11bda-6204-4b54-8866-41b9388e8a22"
}

2020-07-23 11:58:24 | [Mutex] waiting for: [published:item:notifieditem-24b11bda-6204-4b54-8866-41b9388e8a22:admin@test-domain.com]

2020-07-23 11:58:24 | [Mutex] received everything.

2020-07-23 11:58:24 | [Mutex] isItemNotified: published:item:notifieditem-24b11bda-6204-4b54-8866-41b9388e8a22:admin@test-domain.com :: true

retractItemsFromNodes 0,079s
2020-07-23 11:58:24 |

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

2020-07-23 11:58:24 | ------------------------------------

2020-07-23 11:58:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3",
    "item-id": "item-24b11bda-6204-4b54-8866-41b9388e8a22"
}

2020-07-23 11:58:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-24b11bda-6204-4b54-8866-41b9388e8a22"
}

2020-07-23 11:58:24 | [Mutex] waiting for: [retracted:item:notifieditem-24b11bda-6204-4b54-8866-41b9388e8a22:admin@test-domain.com]

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

2020-07-23 11:58:25 | [Mutex] isItemNotified: retracted:item:notifieditem-24b11bda-6204-4b54-8866-41b9388e8a22:admin@test-domain.com :: true

retrieveItemsFromNodes 0,016s
2020-07-23 11:58:24 |

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

2020-07-23 11:58:24 | ------------------------------------

2020-07-23 11:58:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3",
    "item-id": "item-24b11bda-6204-4b54-8866-41b9388e8a22"
}

2020-07-23 11:58:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3",
    "item-id": "item-24b11bda-6204-4b54-8866-41b9388e8a22",
    "item": [
        "<item id=\"item-24b11bda-6204-4b54-8866-41b9388e8a22\"><test>item-24b11bda-6204-4b54-8866-41b9388e8a22</test></item>"
    ]
}

2020-07-23 11:58:24 | [Mutex] notify: [retrieved:item:item-24b11bda-6204-4b54-8866-41b9388e8a22:payload-matches:true:localhost]

2020-07-23 11:58:24 | [Mutex] received everything.

2020-07-23 11:58:24 | [Mutex] isItemNotified: retrieved:item:item-24b11bda-6204-4b54-8866-41b9388e8a22:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0,008s
2020-07-23 11:58:24 |

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

2020-07-23 11:58:24 | ------------------------------------

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

2020-07-23 11:58:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-cd8da56c-6f6b-4545-a865-8a9579005c93",
        "test",
        "node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3"
    ]
}

retrieveUserSubscriptionsWithRegex 0,009s
2020-07-23 11:58:24 |

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

2020-07-23 11:58:24 | ------------------------------------

2020-07-23 11:58:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3)"
}

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

subscribeNodes 1,024s
2020-07-23 11:58:23 |

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

2020-07-23 11:58:23 | ------------------------------------

2020-07-23 11:58:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1,025s
2020-07-23 11:58:25 |

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

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

2020-07-23 11:58:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-19f1b2a0-d6c5-4c1d-8263-44d31ccbe8c3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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