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

Test duration: 8.971s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.126s
2020-07-10 15:21:59 |
2020-07-10 15:21:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:21:59 | ------------------------------------
2020-07-10 15:21:59 | [Mutex] waiting for: [configured:node:node-88f29099-0101-4795-b5a8-7d9967e7ef22:node-06cfd93a-5873-4576-84c1-a428aa693756]
2020-07-10 15:21:59 | [Mutex] received everything.
2020-07-10 15:21:59 | [Mutex] isItemNotified: configured:node:node-88f29099-0101-4795-b5a8-7d9967e7ef22:node-06cfd93a-5873-4576-84c1-a428aa693756 :: true
2020-07-10 15:22:00 | [Mutex] waiting for: [received:nodes:25623a1b-3df2-4d25-a5ce-365d00402e9f:localhost]
2020-07-10 15:22:00 | [Mutex] received everything.
2020-07-10 15:22:00 | [Mutex] isItemNotified: received:node:25623a1b-3df2-4d25-a5ce-365d00402e9f:localhost:node-88f29099-0101-4795-b5a8-7d9967e7ef22:Node 88f29099-0101-4795-b5a8-7d9967e7ef22 :: true
2020-07-10 15:22:00 | [Mutex] waiting for: [received:nodes:d61fd6f9-ab49-4d90-8f4f-9d64ce090536:localhost]
2020-07-10 15:22:00 | [Mutex] waiting for: [received:nodes:d61fd6f9-ab49-4d90-8f4f-9d64ce090536:localhost]
2020-07-10 15:22:00 | [Mutex] received everything.
2020-07-10 15:22:00 | [Mutex] isItemNotified: received:node:d61fd6f9-ab49-4d90-8f4f-9d64ce090536:localhost:node-88f29099-0101-4795-b5a8-7d9967e7ef22:Node 88f29099-0101-4795-b5a8-7d9967e7ef22 :: false
createNodes 1.630s
2020-07-10 15:21:56 |
2020-07-10 15:21:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:21:56 | ------------------------------------
2020-07-10 15:21:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "leaf",
    "node": "node-88f29099-0101-4795-b5a8-7d9967e7ef22",
    "pubsub#title": "Node 88f29099-0101-4795-b5a8-7d9967e7ef22"
}
2020-07-10 15:21:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}
2020-07-10 15:21:57 | created pubsub node = PubSubNode[jid=pubsub.localhost,node=Node 88f29099-0101-4795-b5a8-7d9967e7ef22]
2020-07-10 15:21:58 | [Mutex] waiting for: [received:nodes:4092f017-94fd-4051-8bfb-fd1ebba4e4fc:localhost]
2020-07-10 15:21:58 | [Mutex] received everything.
2020-07-10 15:21:58 | [Mutex] isItemNotified: received:node:4092f017-94fd-4051-8bfb-fd1ebba4e4fc:localhost:node-88f29099-0101-4795-b5a8-7d9967e7ef22:Node 88f29099-0101-4795-b5a8-7d9967e7ef22 :: true
createSubnodes 1.021s
2020-07-10 15:21:58 |
2020-07-10 15:21:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:21:58 | ------------------------------------
2020-07-10 15:21:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "collection",
    "node": "node-06cfd93a-5873-4576-84c1-a428aa693756",
    "pubsub#title": "Node 06cfd93a-5873-4576-84c1-a428aa693756"
}
2020-07-10 15:21:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}
2020-07-10 15:21:58 | created pubsub node = PubSubNode[jid=pubsub.localhost,node=Node 06cfd93a-5873-4576-84c1-a428aa693756]
2020-07-10 15:21:59 | [Mutex] waiting for: [received:nodes:f882b699-a67c-4590-ae7c-5b9497a3f659:localhost]
2020-07-10 15:21:59 | [Mutex] received everything.
2020-07-10 15:21:59 | [Mutex] isItemNotified: received:node:f882b699-a67c-4590-ae7c-5b9497a3f659:localhost:node-06cfd93a-5873-4576-84c1-a428aa693756:Node 06cfd93a-5873-4576-84c1-a428aa693756 :: true
deleteNodes 1.017s
2020-07-10 15:22:03 |
2020-07-10 15:22:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:22:03 | ------------------------------------
2020-07-10 15:22:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-06cfd93a-5873-4576-84c1-a428aa693756"
}
2020-07-10 15:22:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}
2020-07-10 15:22:03 | deleted pubsub node = PubSubNode[jid=pubsub.localhost,node=Node 06cfd93a-5873-4576-84c1-a428aa693756]
2020-07-10 15:22:04 | [Mutex] waiting for: [received:nodes:3b348ce0-63a6-466a-a0c6-bc90f76decee:localhost]
2020-07-10 15:22:04 | [Mutex] received everything.
2020-07-10 15:22:04 | [Mutex] isItemNotified: received:node:3b348ce0-63a6-466a-a0c6-bc90f76decee:localhost:node-06cfd93a-5873-4576-84c1-a428aa693756:Node 06cfd93a-5873-4576-84c1-a428aa693756 :: false
deleteSubnodes 1.034s
2020-07-10 15:22:02 |
2020-07-10 15:22:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:22:02 | ------------------------------------
2020-07-10 15:22:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-88f29099-0101-4795-b5a8-7d9967e7ef22"
}
2020-07-10 15:22:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}
2020-07-10 15:22:02 | deleted pubsub node = PubSubNode[jid=pubsub.localhost,node=Node 88f29099-0101-4795-b5a8-7d9967e7ef22]
2020-07-10 15:22:03 | [Mutex] waiting for: [received:nodes:390ff333-e0f0-4a4a-a8e3-c1e88699f338:localhost]
2020-07-10 15:22:03 | [Mutex] received everything.
2020-07-10 15:22:03 | [Mutex] isItemNotified: received:node:390ff333-e0f0-4a4a-a8e3-c1e88699f338:localhost:node-88f29099-0101-4795-b5a8-7d9967e7ef22:Node 88f29099-0101-4795-b5a8-7d9967e7ef22 :: false
2020-07-10 15:22:03 | [Mutex] waiting for: [received:nodes:6bea1bf7-3882-463b-b77b-c076d72b9f6a:localhost]
2020-07-10 15:22:03 | [Mutex] received everything.
2020-07-10 15:22:03 | [Mutex] isItemNotified: received:node:6bea1bf7-3882-463b-b77b-c076d72b9f6a:localhost:node-88f29099-0101-4795-b5a8-7d9967e7ef22:Node 88f29099-0101-4795-b5a8-7d9967e7ef22 :: false
publishItemsToNodes 0.058s
2020-07-10 15:22:01 |
2020-07-10 15:22:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:22:01 | ------------------------------------
2020-07-10 15:22:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-88f29099-0101-4795-b5a8-7d9967e7ef22",
    "entry": "<test>item-1fbf9d46-7849-4e7a-801e-d905c1581bfe</test>",
    "item-id": "item-1fbf9d46-7849-4e7a-801e-d905c1581bfe"
}
2020-07-10 15:22:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1fbf9d46-7849-4e7a-801e-d905c1581bfe"
}
2020-07-10 15:22:01 | [Mutex] waiting for: [published:item:notifieditem-1fbf9d46-7849-4e7a-801e-d905c1581bfe:admin@localhost]
2020-07-10 15:22:01 | [Mutex] received everything.
2020-07-10 15:22:01 | [Mutex] isItemNotified: published:item:notifieditem-1fbf9d46-7849-4e7a-801e-d905c1581bfe:admin@localhost :: true
retractItemsFromNodes 0.060s
2020-07-10 15:22:01 |
2020-07-10 15:22:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:22:01 | ------------------------------------
2020-07-10 15:22:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-88f29099-0101-4795-b5a8-7d9967e7ef22",
    "item-id": "item-1fbf9d46-7849-4e7a-801e-d905c1581bfe"
}
2020-07-10 15:22:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1fbf9d46-7849-4e7a-801e-d905c1581bfe"
}
2020-07-10 15:22:01 | [Mutex] received everything.
2020-07-10 15:22:01 | [Mutex] isItemNotified: retracted:item:notifieditem-1fbf9d46-7849-4e7a-801e-d905c1581bfe:admin@localhost :: true
retrieveItemsFromNodes 0.075s
2020-07-10 15:22:01 |
2020-07-10 15:22:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:22:01 | ------------------------------------
2020-07-10 15:22:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-88f29099-0101-4795-b5a8-7d9967e7ef22",
    "item-id": "item-1fbf9d46-7849-4e7a-801e-d905c1581bfe"
}
2020-07-10 15:22:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-88f29099-0101-4795-b5a8-7d9967e7ef22",
    "item-id": "item-1fbf9d46-7849-4e7a-801e-d905c1581bfe",
    "item": [
        "<item id=\"item-1fbf9d46-7849-4e7a-801e-d905c1581bfe\"><test>item-1fbf9d46-7849-4e7a-801e-d905c1581bfe</test></item>"
    ]
}
2020-07-10 15:22:01 | [Mutex] notify: [retrieved:item:item-1fbf9d46-7849-4e7a-801e-d905c1581bfe:payload-matches:true:localhost]
2020-07-10 15:22:01 | [Mutex] received everything.
2020-07-10 15:22:01 | [Mutex] isItemNotified: retrieved:item:item-1fbf9d46-7849-4e7a-801e-d905c1581bfe:payload-matches:true:localhost :: true
retrieveUserSubscriptions 0.051s
2020-07-10 15:22:01 |
2020-07-10 15:22:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:22:01 | ------------------------------------
2020-07-10 15:22:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost"
}
2020-07-10 15:22:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-06cfd93a-5873-4576-84c1-a428aa693756",
        "node-88f29099-0101-4795-b5a8-7d9967e7ef22"
    ]
}
retrieveUserSubscriptionsWithRegex 0.052s
2020-07-10 15:22:01 |
2020-07-10 15:22:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:22:01 | ------------------------------------
2020-07-10 15:22:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost",
    "node-pattern": "(?!node-88f29099-0101-4795-b5a8-7d9967e7ef22)"
}
2020-07-10 15:22:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}
subscribeNodes 1.014s
2020-07-10 15:22:00 |
2020-07-10 15:22:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:22:00 | ------------------------------------
2020-07-10 15:22:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-88f29099-0101-4795-b5a8-7d9967e7ef22",
    "jids": [
        "admin@localhost"
    ]
}
2020-07-10 15:22:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}
unsubscribeNodes 1.063s
2020-07-10 15:22:01 |
2020-07-10 15:22:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]
2020-07-10 15:22:01 | ------------------------------------
2020-07-10 15:22:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-88f29099-0101-4795-b5a8-7d9967e7ef22",
    "jids": [
        "admin@localhost"
    ]
}
2020-07-10 15:22:01 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}