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

Test duration: 9.200s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.124s
2019-11-22 19:44:03 |

2019-11-22 19:44:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:03 | ------------------------------------

2019-11-22 19:44:03 | [Mutex] waiting for: [configured:node:node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c:node-43dc7c84-8053-4708-8492-e35f0d925a89]

2019-11-22 19:44:03 | [Mutex] received everything.

2019-11-22 19:44:03 | [Mutex] isItemNotified: configured:node:node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c:node-43dc7c84-8053-4708-8492-e35f0d925a89 :: true

2019-11-22 19:44:04 | [Mutex] waiting for: [received:nodes:9ea37df0-c231-4d90-a3cb-13248e195f73:localhost]

2019-11-22 19:44:04 | [Mutex] received everything.

2019-11-22 19:44:04 | [Mutex] isItemNotified: received:node:9ea37df0-c231-4d90-a3cb-13248e195f73:localhost:node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c:Node 0bfcd700-3b30-46b1-aaf2-96ebb6aea57c :: true

2019-11-22 19:44:04 | [Mutex] waiting for: [received:nodes:b1eb74f6-07b3-4851-a1b0-dc68ec2509b6:localhost]

2019-11-22 19:44:04 | [Mutex] received everything.

2019-11-22 19:44:04 | [Mutex] isItemNotified: received:node:b1eb74f6-07b3-4851-a1b0-dc68ec2509b6:localhost:node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c:Node 0bfcd700-3b30-46b1-aaf2-96ebb6aea57c :: false

createNodes 1.912s
2019-11-22 19:44:00 |

2019-11-22 19:44:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:00 | ------------------------------------

2019-11-22 19:44:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "leaf",
    "node": "node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c",
    "pubsub#title": "Node 0bfcd700-3b30-46b1-aaf2-96ebb6aea57c"
}

2019-11-22 19:44:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-11-22 19:44:02 | [Mutex] waiting for: [received:nodes:8d62b0f7-3c3b-4062-b573-d7625472aa38:localhost]

2019-11-22 19:44:02 | [Mutex] received everything.

2019-11-22 19:44:02 | [Mutex] isItemNotified: received:node:8d62b0f7-3c3b-4062-b573-d7625472aa38:localhost:node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c:Node 0bfcd700-3b30-46b1-aaf2-96ebb6aea57c :: true

createSubnodes 1.032s
2019-11-22 19:44:02 |

2019-11-22 19:44:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:02 | ------------------------------------

2019-11-22 19:44:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "collection",
    "node": "node-43dc7c84-8053-4708-8492-e35f0d925a89",
    "pubsub#title": "Node 43dc7c84-8053-4708-8492-e35f0d925a89"
}

2019-11-22 19:44:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-11-22 19:44:03 | [Mutex] waiting for: [received:nodes:6af8f8b0-d4be-430e-b83f-43a20b7cf6bd:localhost]

2019-11-22 19:44:03 | [Mutex] received everything.

2019-11-22 19:44:03 | [Mutex] isItemNotified: received:node:6af8f8b0-d4be-430e-b83f-43a20b7cf6bd:localhost:node-43dc7c84-8053-4708-8492-e35f0d925a89:Node 43dc7c84-8053-4708-8492-e35f0d925a89 :: true

deleteNodes 1.023s
2019-11-22 19:44:08 |

2019-11-22 19:44:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:08 | ------------------------------------

2019-11-22 19:44:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-43dc7c84-8053-4708-8492-e35f0d925a89"
}

2019-11-22 19:44:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-11-22 19:44:09 | [Mutex] waiting for: [received:nodes:d11821a6-a756-427e-8238-20593b6d9390:localhost]

2019-11-22 19:44:09 | [Mutex] received everything.

2019-11-22 19:44:09 | [Mutex] isItemNotified: received:node:d11821a6-a756-427e-8238-20593b6d9390:localhost:node-43dc7c84-8053-4708-8492-e35f0d925a89:Node 43dc7c84-8053-4708-8492-e35f0d925a89 :: false

deleteSubnodes 1.029s
2019-11-22 19:44:06 |

2019-11-22 19:44:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:06 | ------------------------------------

2019-11-22 19:44:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c"
}

2019-11-22 19:44:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-11-22 19:44:08 | [Mutex] waiting for: [received:nodes:cf7bc46b-9451-41bc-97f8-cdd1bf9c8544:localhost]

2019-11-22 19:44:08 | [Mutex] waiting for: [received:nodes:cf7bc46b-9451-41bc-97f8-cdd1bf9c8544:localhost]

2019-11-22 19:44:08 | [Mutex] received everything.

2019-11-22 19:44:08 | [Mutex] isItemNotified: received:node:cf7bc46b-9451-41bc-97f8-cdd1bf9c8544:localhost:node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c:Node 0bfcd700-3b30-46b1-aaf2-96ebb6aea57c :: false

2019-11-22 19:44:08 | [Mutex] waiting for: [received:nodes:809baf9f-b351-41a1-ab38-9d37e8eb259d:localhost]

2019-11-22 19:44:08 | [Mutex] received everything.

2019-11-22 19:44:08 | [Mutex] isItemNotified: received:node:809baf9f-b351-41a1-ab38-9d37e8eb259d:localhost:node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c:Node 0bfcd700-3b30-46b1-aaf2-96ebb6aea57c :: false

publishItemsToNodes 0.037s
2019-11-22 19:44:05 |

2019-11-22 19:44:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:05 | ------------------------------------

2019-11-22 19:44:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c",
    "entry": "<test>item-85bacdec-f830-4e24-94a6-916eba9a3b1c</test>",
    "item-id": "item-85bacdec-f830-4e24-94a6-916eba9a3b1c"
}

2019-11-22 19:44:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85bacdec-f830-4e24-94a6-916eba9a3b1c"
}

2019-11-22 19:44:05 | [Mutex] received everything.

2019-11-22 19:44:05 | [Mutex] isItemNotified: published:item:notifieditem-85bacdec-f830-4e24-94a6-916eba9a3b1c:admin@localhost :: true

retractItemsFromNodes 0.059s
2019-11-22 19:44:05 |

2019-11-22 19:44:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:05 | ------------------------------------

2019-11-22 19:44:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c",
    "item-id": "item-85bacdec-f830-4e24-94a6-916eba9a3b1c"
}

2019-11-22 19:44:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85bacdec-f830-4e24-94a6-916eba9a3b1c"
}

2019-11-22 19:44:05 | [Mutex] received everything.

2019-11-22 19:44:05 | [Mutex] isItemNotified: retracted:item:notifieditem-85bacdec-f830-4e24-94a6-916eba9a3b1c:admin@localhost :: true

retrieveItemsFromNodes 0.064s
2019-11-22 19:44:05 |

2019-11-22 19:44:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:05 | ------------------------------------

2019-11-22 19:44:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c",
    "item-id": "item-85bacdec-f830-4e24-94a6-916eba9a3b1c"
}

2019-11-22 19:44:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c",
    "item-id": "item-85bacdec-f830-4e24-94a6-916eba9a3b1c",
    "item": [
        "<item id=\"item-85bacdec-f830-4e24-94a6-916eba9a3b1c\"><test>item-85bacdec-f830-4e24-94a6-916eba9a3b1c</test></item>"
    ]
}

2019-11-22 19:44:05 | [Mutex] notify: [retrieved:item:item-85bacdec-f830-4e24-94a6-916eba9a3b1c:payload-matches:true:localhost]

2019-11-22 19:44:05 | [Mutex] received everything.

2019-11-22 19:44:05 | [Mutex] isItemNotified: retrieved:item:item-85bacdec-f830-4e24-94a6-916eba9a3b1c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2019-11-22 19:44:05 |

2019-11-22 19:44:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:05 | ------------------------------------

2019-11-22 19:44:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost"
}

2019-11-22 19:44:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c",
        "node-43dc7c84-8053-4708-8492-e35f0d925a89"
    ]
}

retrieveUserSubscriptionsWithRegex 0.049s
2019-11-22 19:44:05 |

2019-11-22 19:44:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:05 | ------------------------------------

2019-11-22 19:44:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost",
    "node-pattern": "(?!node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c)"
}

2019-11-22 19:44:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2019-11-22 19:44:04 |

2019-11-22 19:44:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:04 | ------------------------------------

2019-11-22 19:44:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c",
    "jids": [
        "admin@localhost"
    ]
}

2019-11-22 19:44:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2019-11-22 19:44:05 |

2019-11-22 19:44:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-11-22 19:44:05 | ------------------------------------

2019-11-22 19:44:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0bfcd700-3b30-46b1-aaf2-96ebb6aea57c",
    "jids": [
        "admin@localhost"
    ]
}

2019-11-22 19:44:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}