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

Test duration: 7.891s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.032s
2019-03-02 14:15:03 |

2019-03-02 14:15:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:03 | ------------------------------------

2019-03-02 14:15:03 | [Mutex] waiting for: [configured:node:node-52a50017-0837-46ec-8ed4-3a6807176eeb:node-9010c70b-cde0-4586-907d-04191adab1a0]

2019-03-02 14:15:03 | [Mutex] received everything.

2019-03-02 14:15:03 | [Mutex] isItemNotified: configured:node:node-52a50017-0837-46ec-8ed4-3a6807176eeb:node-9010c70b-cde0-4586-907d-04191adab1a0 :: true

2019-03-02 14:15:04 | [Mutex] waiting for: [received:nodes:d9b08c00-658f-441b-b5c7-7abfa1359e03:localhost]

2019-03-02 14:15:04 | [Mutex] received everything.

2019-03-02 14:15:04 | [Mutex] isItemNotified: received:node:d9b08c00-658f-441b-b5c7-7abfa1359e03:localhost:node-52a50017-0837-46ec-8ed4-3a6807176eeb:Node 52a50017-0837-46ec-8ed4-3a6807176eeb :: true

2019-03-02 14:15:04 | [Mutex] waiting for: [received:nodes:903dd7d7-017b-4820-8bea-3ea561282d14:localhost]

2019-03-02 14:15:04 | [Mutex] waiting for: [received:nodes:903dd7d7-017b-4820-8bea-3ea561282d14:localhost]

2019-03-02 14:15:04 | [Mutex] received everything.

2019-03-02 14:15:04 | [Mutex] isItemNotified: received:node:903dd7d7-017b-4820-8bea-3ea561282d14:localhost:node-52a50017-0837-46ec-8ed4-3a6807176eeb:Node 52a50017-0837-46ec-8ed4-3a6807176eeb :: false

createNodes 1.424s
2019-03-02 14:15:00 |

2019-03-02 14:15:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:00 | ------------------------------------

2019-03-02 14:15:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "leaf",
    "node": "node-52a50017-0837-46ec-8ed4-3a6807176eeb",
    "pubsub#title": "Node 52a50017-0837-46ec-8ed4-3a6807176eeb"
}

2019-03-02 14:15:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-03-02 14:15:01 | [Mutex] waiting for: [received:nodes:bbcfcd8e-1227-480b-8f8b-a3d2077b0f22:localhost]

2019-03-02 14:15:01 | [Mutex] waiting for: [received:nodes:bbcfcd8e-1227-480b-8f8b-a3d2077b0f22:localhost]

2019-03-02 14:15:01 | [Mutex] waiting for: [received:nodes:bbcfcd8e-1227-480b-8f8b-a3d2077b0f22:localhost]

2019-03-02 14:15:01 | [Mutex] received everything.

2019-03-02 14:15:01 | [Mutex] isItemNotified: received:node:bbcfcd8e-1227-480b-8f8b-a3d2077b0f22:localhost:node-52a50017-0837-46ec-8ed4-3a6807176eeb:Node 52a50017-0837-46ec-8ed4-3a6807176eeb :: true

createSubnodes 1.022s
2019-03-02 14:15:01 |

2019-03-02 14:15:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:01 | ------------------------------------

2019-03-02 14:15:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@localhost",
    "pubsub#node_type": "collection",
    "node": "node-9010c70b-cde0-4586-907d-04191adab1a0",
    "pubsub#title": "Node 9010c70b-cde0-4586-907d-04191adab1a0"
}

2019-03-02 14:15:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-03-02 14:15:03 | [Mutex] received everything.

2019-03-02 14:15:03 | [Mutex] isItemNotified: received:node:362aed1f-4be6-4fbd-8038-817d26f40aa0:localhost:node-9010c70b-cde0-4586-907d-04191adab1a0:Node 9010c70b-cde0-4586-907d-04191adab1a0 :: true

deleteNodes 1.018s
2019-03-02 14:15:07 |

2019-03-02 14:15:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:07 | ------------------------------------

2019-03-02 14:15:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9010c70b-cde0-4586-907d-04191adab1a0"
}

2019-03-02 14:15:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-03-02 14:15:08 | [Mutex] waiting for: [received:nodes:2afbf719-3396-45b0-b853-50058443c9e3:localhost]

2019-03-02 14:15:08 | [Mutex] waiting for: [received:nodes:2afbf719-3396-45b0-b853-50058443c9e3:localhost]

2019-03-02 14:15:08 | [Mutex] received everything.

2019-03-02 14:15:08 | [Mutex] isItemNotified: received:node:2afbf719-3396-45b0-b853-50058443c9e3:localhost:node-9010c70b-cde0-4586-907d-04191adab1a0:Node 9010c70b-cde0-4586-907d-04191adab1a0 :: false

deleteSubnodes 1.012s
2019-03-02 14:15:06 |

2019-03-02 14:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:06 | ------------------------------------

2019-03-02 14:15:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-52a50017-0837-46ec-8ed4-3a6807176eeb"
}

2019-03-02 14:15:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2019-03-02 14:15:07 | [Mutex] received everything.

2019-03-02 14:15:07 | [Mutex] isItemNotified: received:node:1044561b-1ef6-4989-a754-62a62afb6143:localhost:node-52a50017-0837-46ec-8ed4-3a6807176eeb:Node 52a50017-0837-46ec-8ed4-3a6807176eeb :: false

2019-03-02 14:15:07 | [Mutex] waiting for: [received:nodes:9f19d002-87fe-40b3-aed8-f0e32bb385e6:localhost]

2019-03-02 14:15:07 | [Mutex] received everything.

2019-03-02 14:15:07 | [Mutex] isItemNotified: received:node:9f19d002-87fe-40b3-aed8-f0e32bb385e6:localhost:node-52a50017-0837-46ec-8ed4-3a6807176eeb:Node 52a50017-0837-46ec-8ed4-3a6807176eeb :: false

publishItemsToNodes 0.033s
2019-03-02 14:15:05 |

2019-03-02 14:15:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:05 | ------------------------------------

2019-03-02 14:15:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-52a50017-0837-46ec-8ed4-3a6807176eeb",
    "entry": "<test>item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3</test>",
    "item-id": "item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3"
}

2019-03-02 14:15:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3"
}

2019-03-02 14:15:05 | [Mutex] received everything.

2019-03-02 14:15:05 | [Mutex] isItemNotified: published:item:notifieditem-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3:admin@localhost :: true

retractItemsFromNodes 0.019s
2019-03-02 14:15:05 |

2019-03-02 14:15:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:05 | ------------------------------------

2019-03-02 14:15:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-52a50017-0837-46ec-8ed4-3a6807176eeb",
    "item-id": "item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3"
}

2019-03-02 14:15:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3"
}

2019-03-02 14:15:05 | [Mutex] waiting for: [retracted:item:notifieditem-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3:admin@localhost]

2019-03-02 14:15:05 | [Mutex] received everything.

2019-03-02 14:15:05 | [Mutex] isItemNotified: retracted:item:notifieditem-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3:admin@localhost :: true

retrieveItemsFromNodes 0.015s
2019-03-02 14:15:05 |

2019-03-02 14:15:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:05 | ------------------------------------

2019-03-02 14:15:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-52a50017-0837-46ec-8ed4-3a6807176eeb",
    "item-id": "item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3"
}

2019-03-02 14:15:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-52a50017-0837-46ec-8ed4-3a6807176eeb",
    "item-id": "item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3",
    "item": [
        "<item id=\"item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3\"><test>item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3</test></item>"
    ]
}

2019-03-02 14:15:05 | [Mutex] notify: [retrieved:item:item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3:payload-matches:true:localhost]

2019-03-02 14:15:05 | [Mutex] received everything.

2019-03-02 14:15:05 | [Mutex] isItemNotified: retrieved:item:item-a44ed7b0-4855-45ff-9890-66ce7f6f4ba3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.006s
2019-03-02 14:15:05 |

2019-03-02 14:15:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:05 | ------------------------------------

2019-03-02 14:15:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost"
}

2019-03-02 14:15:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9010c70b-cde0-4586-907d-04191adab1a0",
        "test",
        "node-52a50017-0837-46ec-8ed4-3a6807176eeb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.006s
2019-03-02 14:15:05 |

2019-03-02 14:15:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:05 | ------------------------------------

2019-03-02 14:15:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@localhost",
    "node-pattern": "(?!node-52a50017-0837-46ec-8ed4-3a6807176eeb)"
}

2019-03-02 14:15:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2019-03-02 14:15:04 |

2019-03-02 14:15:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:04 | ------------------------------------

2019-03-02 14:15:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-52a50017-0837-46ec-8ed4-3a6807176eeb",
    "jids": [
        "admin@localhost"
    ]
}

2019-03-02 14:15:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.032s
2019-03-02 14:15:05 |

2019-03-02 14:15:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2019-03-02 14:15:05 | ------------------------------------

2019-03-02 14:15:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-52a50017-0837-46ec-8ed4-3a6807176eeb",
    "jids": [
        "admin@localhost"
    ]
}

2019-03-02 14:15:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}