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

Test duration: 8,904s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1,149s
2020-07-23 11:29:46 |

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

2020-07-23 11:29:46 | ------------------------------------

2020-07-23 11:29:46 | [Mutex] waiting for: [configured:node:node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e:node-3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc]

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

2020-07-23 11:29:46 | [Mutex] isItemNotified: configured:node:node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e:node-3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc :: true

2020-07-23 11:29:47 | [Mutex] waiting for: [received:nodes:0ddd8bd6-a8b1-4ea2-854d-2022f28b9360:localhost]

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

2020-07-23 11:29:47 | [Mutex] isItemNotified: received:node:0ddd8bd6-a8b1-4ea2-854d-2022f28b9360:localhost:node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e:Node 36d09068-46e8-40f8-ac13-4e6c8ed4f76e :: true

2020-07-23 11:29:47 | [Mutex] waiting for: [received:nodes:6f0cabf3-a127-4367-9b40-4a79d5ce9e11:localhost]

2020-07-23 11:29:47 | [Mutex] waiting for: [received:nodes:6f0cabf3-a127-4367-9b40-4a79d5ce9e11:localhost]

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

2020-07-23 11:29:47 | [Mutex] isItemNotified: received:node:6f0cabf3-a127-4367-9b40-4a79d5ce9e11:localhost:node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e:Node 36d09068-46e8-40f8-ac13-4e6c8ed4f76e :: false

createNodes 1,529s
2020-07-23 11:29:43 |

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

2020-07-23 11:29:43 | ------------------------------------

2020-07-23 11:29:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e",
    "pubsub#title": "Node 36d09068-46e8-40f8-ac13-4e6c8ed4f76e"
}

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

2020-07-23 11:29:45 | [Mutex] waiting for: [received:nodes:1f051b2f-ee70-4560-87d0-7ba238c6442a:localhost]

2020-07-23 11:29:45 | [Mutex] waiting for: [received:nodes:1f051b2f-ee70-4560-87d0-7ba238c6442a:localhost]

2020-07-23 11:29:45 | [Mutex] waiting for: [received:nodes:1f051b2f-ee70-4560-87d0-7ba238c6442a:localhost]

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

2020-07-23 11:29:45 | [Mutex] isItemNotified: received:node:1f051b2f-ee70-4560-87d0-7ba238c6442a:localhost:node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e:Node 36d09068-46e8-40f8-ac13-4e6c8ed4f76e :: true

createSubnodes 1,047s
2020-07-23 11:29:45 |

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

2020-07-23 11:29:45 | ------------------------------------

2020-07-23 11:29:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc",
    "pubsub#title": "Node 3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc"
}

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

2020-07-23 11:29:46 | [Mutex] waiting for: [received:nodes:a60aeb64-7410-4144-a654-05d16d0883a7:localhost]

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

2020-07-23 11:29:46 | [Mutex] isItemNotified: received:node:a60aeb64-7410-4144-a654-05d16d0883a7:localhost:node-3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc:Node 3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc :: true

deleteNodes 1,052s
2020-07-23 11:29:50 |

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

2020-07-23 11:29:50 | ------------------------------------

2020-07-23 11:29:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc"
}

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

2020-07-23 11:29:51 | [Mutex] waiting for: [received:nodes:cec28330-3eb8-4042-bef5-bf663a9d372e:localhost]

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

2020-07-23 11:29:51 | [Mutex] isItemNotified: received:node:cec28330-3eb8-4042-bef5-bf663a9d372e:localhost:node-3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc:Node 3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc :: false

deleteSubnodes 1,062s
2020-07-23 11:29:49 |

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

2020-07-23 11:29:49 | ------------------------------------

2020-07-23 11:29:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e"
}

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

2020-07-23 11:29:50 | [Mutex] waiting for: [received:nodes:d1868d16-2df6-401e-afd2-1aafa086848b:localhost]

2020-07-23 11:29:50 | [Mutex] waiting for: [received:nodes:d1868d16-2df6-401e-afd2-1aafa086848b:localhost]

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

2020-07-23 11:29:50 | [Mutex] isItemNotified: received:node:d1868d16-2df6-401e-afd2-1aafa086848b:localhost:node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e:Node 36d09068-46e8-40f8-ac13-4e6c8ed4f76e :: false

2020-07-23 11:29:50 | [Mutex] waiting for: [received:nodes:0ce398fe-68ca-446f-864f-455076d4dbba:localhost]

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

2020-07-23 11:29:50 | [Mutex] isItemNotified: received:node:0ce398fe-68ca-446f-864f-455076d4dbba:localhost:node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e:Node 36d09068-46e8-40f8-ac13-4e6c8ed4f76e :: false

publishItemsToNodes 0,096s
2020-07-23 11:29:48 |

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

2020-07-23 11:29:48 | ------------------------------------

2020-07-23 11:29:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e",
    "entry": "<test>item-b1bf2ada-60a9-4563-86e3-adf2b5489db2</test>",
    "item-id": "item-b1bf2ada-60a9-4563-86e3-adf2b5489db2"
}

2020-07-23 11:29:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b1bf2ada-60a9-4563-86e3-adf2b5489db2"
}

2020-07-23 11:29:48 | [Mutex] waiting for: [published:item:notifieditem-b1bf2ada-60a9-4563-86e3-adf2b5489db2:admin@test-domain.com]

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

2020-07-23 11:29:48 | [Mutex] isItemNotified: published:item:notifieditem-b1bf2ada-60a9-4563-86e3-adf2b5489db2:admin@test-domain.com :: true

retractItemsFromNodes 0,091s
2020-07-23 11:29:48 |

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

2020-07-23 11:29:48 | ------------------------------------

2020-07-23 11:29:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e",
    "item-id": "item-b1bf2ada-60a9-4563-86e3-adf2b5489db2"
}

2020-07-23 11:29:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b1bf2ada-60a9-4563-86e3-adf2b5489db2"
}

2020-07-23 11:29:48 | [Mutex] waiting for: [retracted:item:notifieditem-b1bf2ada-60a9-4563-86e3-adf2b5489db2:admin@test-domain.com]

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

2020-07-23 11:29:48 | [Mutex] isItemNotified: retracted:item:notifieditem-b1bf2ada-60a9-4563-86e3-adf2b5489db2:admin@test-domain.com :: true

retrieveItemsFromNodes 0,019s
2020-07-23 11:29:48 |

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

2020-07-23 11:29:48 | ------------------------------------

2020-07-23 11:29:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e",
    "item-id": "item-b1bf2ada-60a9-4563-86e3-adf2b5489db2"
}

2020-07-23 11:29:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e",
    "item-id": "item-b1bf2ada-60a9-4563-86e3-adf2b5489db2",
    "item": [
        "<item id=\"item-b1bf2ada-60a9-4563-86e3-adf2b5489db2\"><test>item-b1bf2ada-60a9-4563-86e3-adf2b5489db2</test></item>"
    ]
}

2020-07-23 11:29:48 | [Mutex] notify: [retrieved:item:item-b1bf2ada-60a9-4563-86e3-adf2b5489db2:payload-matches:true:localhost]

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

2020-07-23 11:29:48 | [Mutex] isItemNotified: retrieved:item:item-b1bf2ada-60a9-4563-86e3-adf2b5489db2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0,012s
2020-07-23 11:29:48 |

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

2020-07-23 11:29:48 | ------------------------------------

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

2020-07-23 11:29:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3014f8e3-7b1b-480a-ae81-1dbd0b68e2bc",
        "node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e"
    ]
}

retrieveUserSubscriptionsWithRegex 0,012s
2020-07-23 11:29:48 |

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

2020-07-23 11:29:48 | ------------------------------------

2020-07-23 11:29:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e)"
}

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

subscribeNodes 1,018s
2020-07-23 11:29:47 |

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

2020-07-23 11:29:47 | ------------------------------------

2020-07-23 11:29:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1,071s
2020-07-23 11:29:48 |

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

2020-07-23 11:29:48 | ------------------------------------

2020-07-23 11:29:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-36d09068-46e8-40f8-ac13-4e6c8ed4f76e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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