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

Test duration: 8.809s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.082s
2020-08-03 05:51:54 |

2020-08-03 05:51:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:54 | ------------------------------------

2020-08-03 05:51:54 | [Mutex] waiting for: [configured:node:node-e6f5364c-2fea-4efe-a469-ed3fb1726d57:node-a5eec47f-a965-472b-adaa-70563df4e7d3]

2020-08-03 05:51:54 | [Mutex] received everything.

2020-08-03 05:51:54 | [Mutex] isItemNotified: configured:node:node-e6f5364c-2fea-4efe-a469-ed3fb1726d57:node-a5eec47f-a965-472b-adaa-70563df4e7d3 :: true

2020-08-03 05:51:55 | [Mutex] waiting for: [received:nodes:2483235e-93a1-4d61-b1cb-cccfbe41fd83:localhost]

2020-08-03 05:51:55 | [Mutex] received everything.

2020-08-03 05:51:55 | [Mutex] isItemNotified: received:node:2483235e-93a1-4d61-b1cb-cccfbe41fd83:localhost:node-e6f5364c-2fea-4efe-a469-ed3fb1726d57:Node e6f5364c-2fea-4efe-a469-ed3fb1726d57 :: true

2020-08-03 05:51:55 | [Mutex] waiting for: [received:nodes:b5715373-186c-4419-ba14-ee191d468281:localhost]

2020-08-03 05:51:55 | [Mutex] received everything.

2020-08-03 05:51:55 | [Mutex] isItemNotified: received:node:b5715373-186c-4419-ba14-ee191d468281:localhost:node-e6f5364c-2fea-4efe-a469-ed3fb1726d57:Node e6f5364c-2fea-4efe-a469-ed3fb1726d57 :: false

createNodes 1.539s
2020-08-03 05:51:51 |

2020-08-03 05:51:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:51 | ------------------------------------

2020-08-03 05:51:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e6f5364c-2fea-4efe-a469-ed3fb1726d57",
    "pubsub#title": "Node e6f5364c-2fea-4efe-a469-ed3fb1726d57"
}

2020-08-03 05:51:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-03 05:51:53 | [Mutex] waiting for: [received:nodes:91032c10-6f64-4f1c-ba06-85b521f844d0:localhost]

2020-08-03 05:51:53 | [Mutex] received everything.

2020-08-03 05:51:53 | [Mutex] isItemNotified: received:node:91032c10-6f64-4f1c-ba06-85b521f844d0:localhost:node-e6f5364c-2fea-4efe-a469-ed3fb1726d57:Node e6f5364c-2fea-4efe-a469-ed3fb1726d57 :: true

createSubnodes 1.023s
2020-08-03 05:51:53 |

2020-08-03 05:51:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:53 | ------------------------------------

2020-08-03 05:51:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a5eec47f-a965-472b-adaa-70563df4e7d3",
    "pubsub#title": "Node a5eec47f-a965-472b-adaa-70563df4e7d3"
}

2020-08-03 05:51:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-03 05:51:54 | [Mutex] waiting for: [received:nodes:9836d204-35be-42e0-a6cc-dc632a69ed8d:localhost]

2020-08-03 05:51:54 | [Mutex] received everything.

2020-08-03 05:51:54 | [Mutex] isItemNotified: received:node:9836d204-35be-42e0-a6cc-dc632a69ed8d:localhost:node-a5eec47f-a965-472b-adaa-70563df4e7d3:Node a5eec47f-a965-472b-adaa-70563df4e7d3 :: true

deleteNodes 1.018s
2020-08-03 05:51:58 |

2020-08-03 05:51:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:58 | ------------------------------------

2020-08-03 05:51:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a5eec47f-a965-472b-adaa-70563df4e7d3"
}

2020-08-03 05:51:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-03 05:51:59 | [Mutex] waiting for: [received:nodes:65ea06f2-1657-4736-b5d7-a3b22fbbbc8f:localhost]

2020-08-03 05:51:59 | [Mutex] received everything.

2020-08-03 05:51:59 | [Mutex] isItemNotified: received:node:65ea06f2-1657-4736-b5d7-a3b22fbbbc8f:localhost:node-a5eec47f-a965-472b-adaa-70563df4e7d3:Node a5eec47f-a965-472b-adaa-70563df4e7d3 :: false

deleteSubnodes 1.029s
2020-08-03 05:51:57 |

2020-08-03 05:51:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:57 | ------------------------------------

2020-08-03 05:51:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e6f5364c-2fea-4efe-a469-ed3fb1726d57"
}

2020-08-03 05:51:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-03 05:51:58 | [Mutex] waiting for: [received:nodes:f3005805-537c-40bc-af8d-bc22de30ec8b:localhost]

2020-08-03 05:51:58 | [Mutex] waiting for: [received:nodes:f3005805-537c-40bc-af8d-bc22de30ec8b:localhost]

2020-08-03 05:51:58 | [Mutex] received everything.

2020-08-03 05:51:58 | [Mutex] isItemNotified: received:node:f3005805-537c-40bc-af8d-bc22de30ec8b:localhost:node-e6f5364c-2fea-4efe-a469-ed3fb1726d57:Node e6f5364c-2fea-4efe-a469-ed3fb1726d57 :: false

2020-08-03 05:51:58 | [Mutex] waiting for: [received:nodes:2432f753-9ee6-4372-ac77-9ece424d6fee:localhost]

2020-08-03 05:51:58 | [Mutex] received everything.

2020-08-03 05:51:58 | [Mutex] isItemNotified: received:node:2432f753-9ee6-4372-ac77-9ece424d6fee:localhost:node-e6f5364c-2fea-4efe-a469-ed3fb1726d57:Node e6f5364c-2fea-4efe-a469-ed3fb1726d57 :: false

publishItemsToNodes 0.047s
2020-08-03 05:51:56 |

2020-08-03 05:51:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:56 | ------------------------------------

2020-08-03 05:51:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e6f5364c-2fea-4efe-a469-ed3fb1726d57",
    "entry": "<test>item-7707b26a-8175-4485-9cbb-5909d23089ad</test>",
    "item-id": "item-7707b26a-8175-4485-9cbb-5909d23089ad"
}

2020-08-03 05:51:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7707b26a-8175-4485-9cbb-5909d23089ad"
}

2020-08-03 05:51:56 | [Mutex] waiting for: [published:item:notifieditem-7707b26a-8175-4485-9cbb-5909d23089ad:admin@test-domain.com]

2020-08-03 05:51:56 | [Mutex] received everything.

2020-08-03 05:51:56 | [Mutex] isItemNotified: published:item:notifieditem-7707b26a-8175-4485-9cbb-5909d23089ad:admin@test-domain.com :: true

retractItemsFromNodes 0.082s
2020-08-03 05:51:56 |

2020-08-03 05:51:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:56 | ------------------------------------

2020-08-03 05:51:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e6f5364c-2fea-4efe-a469-ed3fb1726d57",
    "item-id": "item-7707b26a-8175-4485-9cbb-5909d23089ad"
}

2020-08-03 05:51:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7707b26a-8175-4485-9cbb-5909d23089ad"
}

2020-08-03 05:51:56 | [Mutex] waiting for: [retracted:item:notifieditem-7707b26a-8175-4485-9cbb-5909d23089ad:admin@test-domain.com]

2020-08-03 05:51:56 | [Mutex] received everything.

2020-08-03 05:51:56 | [Mutex] isItemNotified: retracted:item:notifieditem-7707b26a-8175-4485-9cbb-5909d23089ad:admin@test-domain.com :: true

retrieveItemsFromNodes 0.082s
2020-08-03 05:51:56 |

2020-08-03 05:51:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:56 | ------------------------------------

2020-08-03 05:51:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e6f5364c-2fea-4efe-a469-ed3fb1726d57",
    "item-id": "item-7707b26a-8175-4485-9cbb-5909d23089ad"
}

2020-08-03 05:51:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e6f5364c-2fea-4efe-a469-ed3fb1726d57",
    "item-id": "item-7707b26a-8175-4485-9cbb-5909d23089ad",
    "item": [
        "<item id=\"item-7707b26a-8175-4485-9cbb-5909d23089ad\"><test>item-7707b26a-8175-4485-9cbb-5909d23089ad</test></item>"
    ]
}

2020-08-03 05:51:56 | [Mutex] notify: [retrieved:item:item-7707b26a-8175-4485-9cbb-5909d23089ad:payload-matches:true:localhost]

2020-08-03 05:51:56 | [Mutex] received everything.

2020-08-03 05:51:56 | [Mutex] isItemNotified: retrieved:item:item-7707b26a-8175-4485-9cbb-5909d23089ad:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-08-03 05:51:56 |

2020-08-03 05:51:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:56 | ------------------------------------

2020-08-03 05:51:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-03 05:51:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e6f5364c-2fea-4efe-a469-ed3fb1726d57",
        "test",
        "node-a5eec47f-a965-472b-adaa-70563df4e7d3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-08-03 05:51:56 |

2020-08-03 05:51:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:56 | ------------------------------------

2020-08-03 05:51:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e6f5364c-2fea-4efe-a469-ed3fb1726d57)"
}

2020-08-03 05:51:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-08-03 05:51:55 |

2020-08-03 05:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:55 | ------------------------------------

2020-08-03 05:51:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e6f5364c-2fea-4efe-a469-ed3fb1726d57",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-03 05:51:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.053s
2020-08-03 05:51:56 |

2020-08-03 05:51:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-03 05:51:56 | ------------------------------------

2020-08-03 05:51:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e6f5364c-2fea-4efe-a469-ed3fb1726d57",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-03 05:51:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}