Generated by TestNG with ReportNG at 23:00 PDT on Wednesday 02 September 2020
root@1415041f34dc / 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 : 9.061s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2020-09-02 23:14:52 |

2020-09-02 23:14:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:52 | ------------------------------------

2020-09-02 23:14:52 | [Mutex] waiting for: [configured:node:node-16cb7297-5057-4852-a2a5-1229ad849dea:node-4cf872bd-6512-41e7-830d-18523ab38232]

2020-09-02 23:14:52 | [Mutex] received everything.

2020-09-02 23:14:52 | [Mutex] isItemNotified: configured:node:node-16cb7297-5057-4852-a2a5-1229ad849dea:node-4cf872bd-6512-41e7-830d-18523ab38232 :: true

2020-09-02 23:14:53 | [Mutex] waiting for: [received:nodes:36646367-498e-4b30-8dca-56982cd20ef0:localhost]

2020-09-02 23:14:53 | [Mutex] received everything.

2020-09-02 23:14:53 | [Mutex] isItemNotified: received:node:36646367-498e-4b30-8dca-56982cd20ef0:localhost:node-16cb7297-5057-4852-a2a5-1229ad849dea:Node 16cb7297-5057-4852-a2a5-1229ad849dea :: true

2020-09-02 23:14:53 | [Mutex] waiting for: [received:nodes:4e11de9c-6593-4361-92c8-768bf758d6dc:localhost]

2020-09-02 23:14:53 | [Mutex] waiting for: [received:nodes:4e11de9c-6593-4361-92c8-768bf758d6dc:localhost]

2020-09-02 23:14:53 | [Mutex] received everything.

2020-09-02 23:14:53 | [Mutex] isItemNotified: received:node:4e11de9c-6593-4361-92c8-768bf758d6dc:localhost:node-16cb7297-5057-4852-a2a5-1229ad849dea:Node 16cb7297-5057-4852-a2a5-1229ad849dea :: false

createNodes 1.689s
2020-09-02 23:14:49 |

2020-09-02 23:14:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:49 | ------------------------------------

2020-09-02 23:14:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-16cb7297-5057-4852-a2a5-1229ad849dea",
    "pubsub#title": "Node 16cb7297-5057-4852-a2a5-1229ad849dea"
}

2020-09-02 23:14:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 23:14:51 | [Mutex] waiting for: [received:nodes:b38d9287-b4ab-4c13-a7bf-6a3b9ca6b300:localhost]

2020-09-02 23:14:51 | [Mutex] waiting for: [received:nodes:b38d9287-b4ab-4c13-a7bf-6a3b9ca6b300:localhost]

2020-09-02 23:14:51 | [Mutex] received everything.

2020-09-02 23:14:51 | [Mutex] isItemNotified: received:node:b38d9287-b4ab-4c13-a7bf-6a3b9ca6b300:localhost:node-16cb7297-5057-4852-a2a5-1229ad849dea:Node 16cb7297-5057-4852-a2a5-1229ad849dea :: true

createSubnodes 1.034s
2020-09-02 23:14:51 |

2020-09-02 23:14:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:51 | ------------------------------------

2020-09-02 23:14:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4cf872bd-6512-41e7-830d-18523ab38232",
    "pubsub#title": "Node 4cf872bd-6512-41e7-830d-18523ab38232"
}

2020-09-02 23:14:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 23:14:52 | [Mutex] waiting for: [received:nodes:12e2e6f8-387b-422e-a7c8-4ea3796892f4:localhost]

2020-09-02 23:14:52 | [Mutex] waiting for: [received:nodes:12e2e6f8-387b-422e-a7c8-4ea3796892f4:localhost]

2020-09-02 23:14:52 | [Mutex] received everything.

2020-09-02 23:14:52 | [Mutex] isItemNotified: received:node:12e2e6f8-387b-422e-a7c8-4ea3796892f4:localhost:node-4cf872bd-6512-41e7-830d-18523ab38232:Node 4cf872bd-6512-41e7-830d-18523ab38232 :: true

deleteNodes 1.021s
2020-09-02 23:14:57 |

2020-09-02 23:14:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:57 | ------------------------------------

2020-09-02 23:14:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4cf872bd-6512-41e7-830d-18523ab38232"
}

2020-09-02 23:14:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 23:14:58 | [Mutex] waiting for: [received:nodes:06cb5508-86f0-42cc-bb88-58cb188aa097:localhost]

2020-09-02 23:14:58 | [Mutex] received everything.

2020-09-02 23:14:58 | [Mutex] isItemNotified: received:node:06cb5508-86f0-42cc-bb88-58cb188aa097:localhost:node-4cf872bd-6512-41e7-830d-18523ab38232:Node 4cf872bd-6512-41e7-830d-18523ab38232 :: false

deleteSubnodes 1.028s
2020-09-02 23:14:56 |

2020-09-02 23:14:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:56 | ------------------------------------

2020-09-02 23:14:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-16cb7297-5057-4852-a2a5-1229ad849dea"
}

2020-09-02 23:14:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 23:14:57 | [Mutex] waiting for: [received:nodes:5d32a83e-401a-46d6-bd47-249d096320fc:localhost]

2020-09-02 23:14:57 | [Mutex] waiting for: [received:nodes:5d32a83e-401a-46d6-bd47-249d096320fc:localhost]

2020-09-02 23:14:57 | [Mutex] waiting for: [received:nodes:5d32a83e-401a-46d6-bd47-249d096320fc:localhost]

2020-09-02 23:14:57 | [Mutex] received everything.

2020-09-02 23:14:57 | [Mutex] isItemNotified: received:node:5d32a83e-401a-46d6-bd47-249d096320fc:localhost:node-16cb7297-5057-4852-a2a5-1229ad849dea:Node 16cb7297-5057-4852-a2a5-1229ad849dea :: false

2020-09-02 23:14:57 | [Mutex] waiting for: [received:nodes:9d16c3d8-64d1-47fd-87fc-3656e86dda69:localhost]

2020-09-02 23:14:57 | [Mutex] received everything.

2020-09-02 23:14:57 | [Mutex] isItemNotified: received:node:9d16c3d8-64d1-47fd-87fc-3656e86dda69:localhost:node-16cb7297-5057-4852-a2a5-1229ad849dea:Node 16cb7297-5057-4852-a2a5-1229ad849dea :: false

publishItemsToNodes 0.046s
2020-09-02 23:14:54 |

2020-09-02 23:14:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:54 | ------------------------------------

2020-09-02 23:14:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-16cb7297-5057-4852-a2a5-1229ad849dea",
    "entry": "<test>item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc</test>",
    "item-id": "item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc"
}

2020-09-02 23:14:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc"
}

2020-09-02 23:14:54 | [Mutex] waiting for: [published:item:notifieditem-011702be-c0b3-42a7-ae92-6b2d6b15c6cc:admin@test-domain.com]

2020-09-02 23:14:54 | [Mutex] received everything.

2020-09-02 23:14:54 | [Mutex] isItemNotified: published:item:notifieditem-011702be-c0b3-42a7-ae92-6b2d6b15c6cc:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-09-02 23:14:55 |

2020-09-02 23:14:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:55 | ------------------------------------

2020-09-02 23:14:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-16cb7297-5057-4852-a2a5-1229ad849dea",
    "item-id": "item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc"
}

2020-09-02 23:14:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc"
}

2020-09-02 23:14:55 | [Mutex] received everything.

2020-09-02 23:14:55 | [Mutex] isItemNotified: retracted:item:notifieditem-011702be-c0b3-42a7-ae92-6b2d6b15c6cc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2020-09-02 23:14:54 |

2020-09-02 23:14:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:54 | ------------------------------------

2020-09-02 23:14:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-16cb7297-5057-4852-a2a5-1229ad849dea",
    "item-id": "item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc"
}

2020-09-02 23:14:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-16cb7297-5057-4852-a2a5-1229ad849dea",
    "item-id": "item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc",
    "item": [
        "<item id=\"item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc\"><test>item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc</test></item>"
    ]
}

2020-09-02 23:14:54 | [Mutex] notify: [retrieved:item:item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc:payload-matches:true:localhost]

2020-09-02 23:14:54 | [Mutex] received everything.

2020-09-02 23:14:54 | [Mutex] isItemNotified: retrieved:item:item-011702be-c0b3-42a7-ae92-6b2d6b15c6cc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-02 23:14:54 |

2020-09-02 23:14:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:54 | ------------------------------------

2020-09-02 23:14:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-02 23:14:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-16cb7297-5057-4852-a2a5-1229ad849dea",
        "node-4cf872bd-6512-41e7-830d-18523ab38232"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-02 23:14:54 |

2020-09-02 23:14:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:54 | ------------------------------------

2020-09-02 23:14:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-16cb7297-5057-4852-a2a5-1229ad849dea)"
}

2020-09-02 23:14:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-09-02 23:14:53 |

2020-09-02 23:14:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:53 | ------------------------------------

2020-09-02 23:14:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-16cb7297-5057-4852-a2a5-1229ad849dea",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-02 23:14:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.078s
2020-09-02 23:14:55 |

2020-09-02 23:14:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 23:14:55 | ------------------------------------

2020-09-02 23:14:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-16cb7297-5057-4852-a2a5-1229ad849dea",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-02 23:14:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}