Generated by TestNG with ReportNG at 08:04 PST on Tuesday 24 November 2020
root@eaa73862192b / 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.903s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.127s
2020-11-24 08:23:31 |

2020-11-24 08:23:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:31 | ------------------------------------

2020-11-24 08:23:31 | [Mutex] waiting for: [configured:node:node-e53ee4b8-90c2-4f0a-94ba-991e9319948a:node-9518df54-73d3-4a38-9cda-406e414812e0]

2020-11-24 08:23:31 | [Mutex] received everything.

2020-11-24 08:23:31 | [Mutex] isItemNotified: configured:node:node-e53ee4b8-90c2-4f0a-94ba-991e9319948a:node-9518df54-73d3-4a38-9cda-406e414812e0 :: true

2020-11-24 08:23:32 | [Mutex] waiting for: [received:nodes:16455865-af01-41f8-9090-3fbdf18f142a:localhost]

2020-11-24 08:23:32 | [Mutex] received everything.

2020-11-24 08:23:32 | [Mutex] isItemNotified: received:node:16455865-af01-41f8-9090-3fbdf18f142a:localhost:node-e53ee4b8-90c2-4f0a-94ba-991e9319948a:Node e53ee4b8-90c2-4f0a-94ba-991e9319948a :: true

2020-11-24 08:23:32 | [Mutex] waiting for: [received:nodes:fbdc3b97-6270-493d-ab11-1e6814b753ec:localhost]

2020-11-24 08:23:32 | [Mutex] received everything.

2020-11-24 08:23:32 | [Mutex] isItemNotified: received:node:fbdc3b97-6270-493d-ab11-1e6814b753ec:localhost:node-e53ee4b8-90c2-4f0a-94ba-991e9319948a:Node e53ee4b8-90c2-4f0a-94ba-991e9319948a :: false

createNodes 1.667s
2020-11-24 08:23:28 |

2020-11-24 08:23:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:28 | ------------------------------------

2020-11-24 08:23:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e53ee4b8-90c2-4f0a-94ba-991e9319948a",
    "pubsub#title": "Node e53ee4b8-90c2-4f0a-94ba-991e9319948a"
}

2020-11-24 08:23:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:23:30 | [Mutex] waiting for: [received:nodes:8503bcb8-469b-4287-883c-04d83d0b82a6:localhost]

2020-11-24 08:23:30 | [Mutex] received everything.

2020-11-24 08:23:30 | [Mutex] isItemNotified: received:node:8503bcb8-469b-4287-883c-04d83d0b82a6:localhost:node-e53ee4b8-90c2-4f0a-94ba-991e9319948a:Node e53ee4b8-90c2-4f0a-94ba-991e9319948a :: true

createSubnodes 1.025s
2020-11-24 08:23:30 |

2020-11-24 08:23:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:30 | ------------------------------------

2020-11-24 08:23:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9518df54-73d3-4a38-9cda-406e414812e0",
    "pubsub#title": "Node 9518df54-73d3-4a38-9cda-406e414812e0"
}

2020-11-24 08:23:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:23:31 | [Mutex] waiting for: [received:nodes:c83f4a96-1f5f-411f-803f-c8bc95085a0c:localhost]

2020-11-24 08:23:31 | [Mutex] received everything.

2020-11-24 08:23:31 | [Mutex] isItemNotified: received:node:c83f4a96-1f5f-411f-803f-c8bc95085a0c:localhost:node-9518df54-73d3-4a38-9cda-406e414812e0:Node 9518df54-73d3-4a38-9cda-406e414812e0 :: true

deleteNodes 1.018s
2020-11-24 08:23:36 |

2020-11-24 08:23:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:36 | ------------------------------------

2020-11-24 08:23:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9518df54-73d3-4a38-9cda-406e414812e0"
}

2020-11-24 08:23:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:23:37 | [Mutex] waiting for: [received:nodes:0cf9a040-3cc1-40d0-aa3c-a2fb2b71974c:localhost]

2020-11-24 08:23:37 | [Mutex] received everything.

2020-11-24 08:23:37 | [Mutex] isItemNotified: received:node:0cf9a040-3cc1-40d0-aa3c-a2fb2b71974c:localhost:node-9518df54-73d3-4a38-9cda-406e414812e0:Node 9518df54-73d3-4a38-9cda-406e414812e0 :: false

deleteSubnodes 1.033s
2020-11-24 08:23:35 |

2020-11-24 08:23:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:35 | ------------------------------------

2020-11-24 08:23:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e53ee4b8-90c2-4f0a-94ba-991e9319948a"
}

2020-11-24 08:23:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:23:36 | [Mutex] waiting for: [received:nodes:8e4fa34a-4309-4456-bfc2-b35c25f67e32:localhost]

2020-11-24 08:23:36 | [Mutex] received everything.

2020-11-24 08:23:36 | [Mutex] isItemNotified: received:node:8e4fa34a-4309-4456-bfc2-b35c25f67e32:localhost:node-e53ee4b8-90c2-4f0a-94ba-991e9319948a:Node e53ee4b8-90c2-4f0a-94ba-991e9319948a :: false

2020-11-24 08:23:36 | [Mutex] waiting for: [received:nodes:dde8aca0-78c3-4a72-8c3c-5496f65eb6ae:localhost]

2020-11-24 08:23:36 | [Mutex] received everything.

2020-11-24 08:23:36 | [Mutex] isItemNotified: received:node:dde8aca0-78c3-4a72-8c3c-5496f65eb6ae:localhost:node-e53ee4b8-90c2-4f0a-94ba-991e9319948a:Node e53ee4b8-90c2-4f0a-94ba-991e9319948a :: false

publishItemsToNodes 0.056s
2020-11-24 08:23:33 |

2020-11-24 08:23:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:33 | ------------------------------------

2020-11-24 08:23:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e53ee4b8-90c2-4f0a-94ba-991e9319948a",
    "entry": "<test>item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5</test>",
    "item-id": "item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5"
}

2020-11-24 08:23:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5"
}

2020-11-24 08:23:33 | [Mutex] waiting for: [published:item:notifieditem-dee77611-d4f6-49b8-9cfa-02a2335cb3d5:admin@test-domain.com]

2020-11-24 08:23:33 | [Mutex] received everything.

2020-11-24 08:23:33 | [Mutex] isItemNotified: published:item:notifieditem-dee77611-d4f6-49b8-9cfa-02a2335cb3d5:admin@test-domain.com :: true

retractItemsFromNodes 0.101s
2020-11-24 08:23:34 |

2020-11-24 08:23:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:34 | ------------------------------------

2020-11-24 08:23:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e53ee4b8-90c2-4f0a-94ba-991e9319948a",
    "item-id": "item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5"
}

2020-11-24 08:23:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5"
}

2020-11-24 08:23:34 | [Mutex] waiting for: [retracted:item:notifieditem-dee77611-d4f6-49b8-9cfa-02a2335cb3d5:admin@test-domain.com]

2020-11-24 08:23:34 | [Mutex] received everything.

2020-11-24 08:23:34 | [Mutex] isItemNotified: retracted:item:notifieditem-dee77611-d4f6-49b8-9cfa-02a2335cb3d5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.024s
2020-11-24 08:23:33 |

2020-11-24 08:23:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:33 | ------------------------------------

2020-11-24 08:23:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e53ee4b8-90c2-4f0a-94ba-991e9319948a",
    "item-id": "item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5"
}

2020-11-24 08:23:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e53ee4b8-90c2-4f0a-94ba-991e9319948a",
    "item-id": "item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5",
    "item": [
        "<item id=\"item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5\"><test>item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5</test></item>"
    ]
}

2020-11-24 08:23:33 | [Mutex] notify: [retrieved:item:item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5:payload-matches:true:localhost]

2020-11-24 08:23:33 | [Mutex] received everything.

2020-11-24 08:23:33 | [Mutex] isItemNotified: retrieved:item:item-dee77611-d4f6-49b8-9cfa-02a2335cb3d5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-11-24 08:23:33 |

2020-11-24 08:23:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:33 | ------------------------------------

2020-11-24 08:23:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-24 08:23:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e53ee4b8-90c2-4f0a-94ba-991e9319948a",
        "test",
        "node-9518df54-73d3-4a38-9cda-406e414812e0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-11-24 08:23:33 |

2020-11-24 08:23:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:33 | ------------------------------------

2020-11-24 08:23:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e53ee4b8-90c2-4f0a-94ba-991e9319948a)"
}

2020-11-24 08:23:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-11-24 08:23:32 |

2020-11-24 08:23:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:32 | ------------------------------------

2020-11-24 08:23:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e53ee4b8-90c2-4f0a-94ba-991e9319948a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-24 08:23:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.014s
2020-11-24 08:23:34 |

2020-11-24 08:23:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:23:34 | ------------------------------------

2020-11-24 08:23:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e53ee4b8-90c2-4f0a-94ba-991e9319948a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-24 08:23:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}