Generated by TestNG with ReportNG at 22:17 PDT on Tuesday 01 September 2020
root@556a2edbe156 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 8.993s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.144s
2020-09-01 22:34:36 |

2020-09-01 22:34:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:36 | ------------------------------------

2020-09-01 22:34:36 | [Mutex] waiting for: [configured:node:node-6d649c1e-504a-47c4-b3c8-1911780fa614:node-600830bd-3e0a-42e8-93a6-7c5fa233c3e7]

2020-09-01 22:34:36 | [Mutex] received everything.

2020-09-01 22:34:36 | [Mutex] isItemNotified: configured:node:node-6d649c1e-504a-47c4-b3c8-1911780fa614:node-600830bd-3e0a-42e8-93a6-7c5fa233c3e7 :: true

2020-09-01 22:34:37 | [Mutex] waiting for: [received:nodes:67316997-2e82-4b47-95c7-5cae76bb3f95:localhost]

2020-09-01 22:34:37 | [Mutex] received everything.

2020-09-01 22:34:37 | [Mutex] isItemNotified: received:node:67316997-2e82-4b47-95c7-5cae76bb3f95:localhost:node-6d649c1e-504a-47c4-b3c8-1911780fa614:Node 6d649c1e-504a-47c4-b3c8-1911780fa614 :: true

2020-09-01 22:34:37 | [Mutex] waiting for: [received:nodes:d8a03ccb-5bfe-48d3-92e3-c0352f7f8ca8:localhost]

2020-09-01 22:34:37 | [Mutex] waiting for: [received:nodes:d8a03ccb-5bfe-48d3-92e3-c0352f7f8ca8:localhost]

2020-09-01 22:34:37 | [Mutex] received everything.

2020-09-01 22:34:37 | [Mutex] isItemNotified: received:node:d8a03ccb-5bfe-48d3-92e3-c0352f7f8ca8:localhost:node-6d649c1e-504a-47c4-b3c8-1911780fa614:Node 6d649c1e-504a-47c4-b3c8-1911780fa614 :: false

createNodes 1.665s
2020-09-01 22:34:33 |

2020-09-01 22:34:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:33 | ------------------------------------

2020-09-01 22:34:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6d649c1e-504a-47c4-b3c8-1911780fa614",
    "pubsub#title": "Node 6d649c1e-504a-47c4-b3c8-1911780fa614"
}

2020-09-01 22:34:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 22:34:35 | [Mutex] waiting for: [received:nodes:4c20826d-925c-4fc5-9b79-54c531c5e0d5:localhost]

2020-09-01 22:34:35 | [Mutex] waiting for: [received:nodes:4c20826d-925c-4fc5-9b79-54c531c5e0d5:localhost]

2020-09-01 22:34:35 | [Mutex] received everything.

2020-09-01 22:34:35 | [Mutex] isItemNotified: received:node:4c20826d-925c-4fc5-9b79-54c531c5e0d5:localhost:node-6d649c1e-504a-47c4-b3c8-1911780fa614:Node 6d649c1e-504a-47c4-b3c8-1911780fa614 :: true

createSubnodes 1.026s
2020-09-01 22:34:35 |

2020-09-01 22:34:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:35 | ------------------------------------

2020-09-01 22:34:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-600830bd-3e0a-42e8-93a6-7c5fa233c3e7",
    "pubsub#title": "Node 600830bd-3e0a-42e8-93a6-7c5fa233c3e7"
}

2020-09-01 22:34:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 22:34:36 | [Mutex] waiting for: [received:nodes:e669cb95-eb9c-470b-94c2-df46b81932a0:localhost]

2020-09-01 22:34:36 | [Mutex] received everything.

2020-09-01 22:34:36 | [Mutex] isItemNotified: received:node:e669cb95-eb9c-470b-94c2-df46b81932a0:localhost:node-600830bd-3e0a-42e8-93a6-7c5fa233c3e7:Node 600830bd-3e0a-42e8-93a6-7c5fa233c3e7 :: true

deleteNodes 1.021s
2020-09-01 22:34:41 |

2020-09-01 22:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:41 | ------------------------------------

2020-09-01 22:34:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-600830bd-3e0a-42e8-93a6-7c5fa233c3e7"
}

2020-09-01 22:34:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 22:34:42 | [Mutex] waiting for: [received:nodes:b7a786a0-f0b9-40df-9441-09fd820ccc88:localhost]

2020-09-01 22:34:42 | [Mutex] received everything.

2020-09-01 22:34:42 | [Mutex] isItemNotified: received:node:b7a786a0-f0b9-40df-9441-09fd820ccc88:localhost:node-600830bd-3e0a-42e8-93a6-7c5fa233c3e7:Node 600830bd-3e0a-42e8-93a6-7c5fa233c3e7 :: false

deleteSubnodes 1.026s
2020-09-01 22:34:40 |

2020-09-01 22:34:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:40 | ------------------------------------

2020-09-01 22:34:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6d649c1e-504a-47c4-b3c8-1911780fa614"
}

2020-09-01 22:34:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 22:34:41 | [Mutex] waiting for: [received:nodes:76c9797b-8631-4627-aaa4-2c6b930ae689:localhost]

2020-09-01 22:34:41 | [Mutex] received everything.

2020-09-01 22:34:41 | [Mutex] isItemNotified: received:node:76c9797b-8631-4627-aaa4-2c6b930ae689:localhost:node-6d649c1e-504a-47c4-b3c8-1911780fa614:Node 6d649c1e-504a-47c4-b3c8-1911780fa614 :: false

2020-09-01 22:34:41 | [Mutex] waiting for: [received:nodes:8e536f64-cf82-451c-bdc6-d340f9e96076:localhost]

2020-09-01 22:34:41 | [Mutex] received everything.

2020-09-01 22:34:41 | [Mutex] isItemNotified: received:node:8e536f64-cf82-451c-bdc6-d340f9e96076:localhost:node-6d649c1e-504a-47c4-b3c8-1911780fa614:Node 6d649c1e-504a-47c4-b3c8-1911780fa614 :: false

publishItemsToNodes 0.040s
2020-09-01 22:34:38 |

2020-09-01 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:38 | ------------------------------------

2020-09-01 22:34:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6d649c1e-504a-47c4-b3c8-1911780fa614",
    "entry": "<test>item-9de651d2-b4eb-480e-a0b3-de6972b79817</test>",
    "item-id": "item-9de651d2-b4eb-480e-a0b3-de6972b79817"
}

2020-09-01 22:34:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9de651d2-b4eb-480e-a0b3-de6972b79817"
}

2020-09-01 22:34:38 | [Mutex] waiting for: [published:item:notifieditem-9de651d2-b4eb-480e-a0b3-de6972b79817:admin@test-domain.com]

2020-09-01 22:34:38 | [Mutex] received everything.

2020-09-01 22:34:38 | [Mutex] isItemNotified: published:item:notifieditem-9de651d2-b4eb-480e-a0b3-de6972b79817:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2020-09-01 22:34:38 |

2020-09-01 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:38 | ------------------------------------

2020-09-01 22:34:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6d649c1e-504a-47c4-b3c8-1911780fa614",
    "item-id": "item-9de651d2-b4eb-480e-a0b3-de6972b79817"
}

2020-09-01 22:34:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9de651d2-b4eb-480e-a0b3-de6972b79817"
}

2020-09-01 22:34:39 | [Mutex] waiting for: [retracted:item:notifieditem-9de651d2-b4eb-480e-a0b3-de6972b79817:admin@test-domain.com]

2020-09-01 22:34:39 | [Mutex] received everything.

2020-09-01 22:34:39 | [Mutex] isItemNotified: retracted:item:notifieditem-9de651d2-b4eb-480e-a0b3-de6972b79817:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2020-09-01 22:34:38 |

2020-09-01 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:38 | ------------------------------------

2020-09-01 22:34:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6d649c1e-504a-47c4-b3c8-1911780fa614",
    "item-id": "item-9de651d2-b4eb-480e-a0b3-de6972b79817"
}

2020-09-01 22:34:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6d649c1e-504a-47c4-b3c8-1911780fa614",
    "item-id": "item-9de651d2-b4eb-480e-a0b3-de6972b79817",
    "item": [
        "<item id=\"item-9de651d2-b4eb-480e-a0b3-de6972b79817\"><test>item-9de651d2-b4eb-480e-a0b3-de6972b79817</test></item>"
    ]
}

2020-09-01 22:34:38 | [Mutex] notify: [retrieved:item:item-9de651d2-b4eb-480e-a0b3-de6972b79817:payload-matches:true:localhost]

2020-09-01 22:34:38 | [Mutex] received everything.

2020-09-01 22:34:38 | [Mutex] isItemNotified: retrieved:item:item-9de651d2-b4eb-480e-a0b3-de6972b79817:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2020-09-01 22:34:38 |

2020-09-01 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:38 | ------------------------------------

2020-09-01 22:34:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-01 22:34:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6d649c1e-504a-47c4-b3c8-1911780fa614",
        "test",
        "node-600830bd-3e0a-42e8-93a6-7c5fa233c3e7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-09-01 22:34:38 |

2020-09-01 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:38 | ------------------------------------

2020-09-01 22:34:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6d649c1e-504a-47c4-b3c8-1911780fa614)"
}

2020-09-01 22:34:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-09-01 22:34:37 |

2020-09-01 22:34:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:37 | ------------------------------------

2020-09-01 22:34:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6d649c1e-504a-47c4-b3c8-1911780fa614",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-01 22:34:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-01 22:34:39 |

2020-09-01 22:34:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 22:34:39 | ------------------------------------

2020-09-01 22:34:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6d649c1e-504a-47c4-b3c8-1911780fa614",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-01 22:34:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}