Generated by TestNG with ReportNG at 00:18 PDT on Saturday 05 September 2020
root@55161683a995 / 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.948s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2020-09-05 00:36:26 |

2020-09-05 00:36:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:26 | ------------------------------------

2020-09-05 00:36:26 | [Mutex] waiting for: [configured:node:node-2e1e99f3-428f-407a-b23a-18a9249a16e7:node-4f99fb22-8d4e-4793-84b0-ec4589415af2]

2020-09-05 00:36:26 | [Mutex] received everything.

2020-09-05 00:36:26 | [Mutex] isItemNotified: configured:node:node-2e1e99f3-428f-407a-b23a-18a9249a16e7:node-4f99fb22-8d4e-4793-84b0-ec4589415af2 :: true

2020-09-05 00:36:27 | [Mutex] waiting for: [received:nodes:ca4e1b38-308a-416d-9acc-0bb85283b662:localhost]

2020-09-05 00:36:27 | [Mutex] received everything.

2020-09-05 00:36:27 | [Mutex] isItemNotified: received:node:ca4e1b38-308a-416d-9acc-0bb85283b662:localhost:node-2e1e99f3-428f-407a-b23a-18a9249a16e7:Node 2e1e99f3-428f-407a-b23a-18a9249a16e7 :: true

2020-09-05 00:36:27 | [Mutex] waiting for: [received:nodes:0e6fc9cf-efc6-426f-9c01-c0d6a8c2d609:localhost]

2020-09-05 00:36:27 | [Mutex] received everything.

2020-09-05 00:36:27 | [Mutex] isItemNotified: received:node:0e6fc9cf-efc6-426f-9c01-c0d6a8c2d609:localhost:node-2e1e99f3-428f-407a-b23a-18a9249a16e7:Node 2e1e99f3-428f-407a-b23a-18a9249a16e7 :: false

createNodes 1.680s
2020-09-05 00:36:23 |

2020-09-05 00:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:23 | ------------------------------------

2020-09-05 00:36:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2e1e99f3-428f-407a-b23a-18a9249a16e7",
    "pubsub#title": "Node 2e1e99f3-428f-407a-b23a-18a9249a16e7"
}

2020-09-05 00:36:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-05 00:36:25 | [Mutex] waiting for: [received:nodes:afbe8693-79f9-4c69-8594-b0dcac72a5a7:localhost]

2020-09-05 00:36:25 | [Mutex] waiting for: [received:nodes:afbe8693-79f9-4c69-8594-b0dcac72a5a7:localhost]

2020-09-05 00:36:25 | [Mutex] waiting for: [received:nodes:afbe8693-79f9-4c69-8594-b0dcac72a5a7:localhost]

2020-09-05 00:36:25 | [Mutex] waiting for: [received:nodes:afbe8693-79f9-4c69-8594-b0dcac72a5a7:localhost]

2020-09-05 00:36:25 | [Mutex] received everything.

2020-09-05 00:36:25 | [Mutex] isItemNotified: received:node:afbe8693-79f9-4c69-8594-b0dcac72a5a7:localhost:node-2e1e99f3-428f-407a-b23a-18a9249a16e7:Node 2e1e99f3-428f-407a-b23a-18a9249a16e7 :: true

createSubnodes 1.020s
2020-09-05 00:36:25 |

2020-09-05 00:36:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:25 | ------------------------------------

2020-09-05 00:36:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4f99fb22-8d4e-4793-84b0-ec4589415af2",
    "pubsub#title": "Node 4f99fb22-8d4e-4793-84b0-ec4589415af2"
}

2020-09-05 00:36:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-05 00:36:26 | [Mutex] waiting for: [received:nodes:8058956c-aec6-4333-83f0-0fe8bd60eba4:localhost]

2020-09-05 00:36:26 | [Mutex] received everything.

2020-09-05 00:36:26 | [Mutex] isItemNotified: received:node:8058956c-aec6-4333-83f0-0fe8bd60eba4:localhost:node-4f99fb22-8d4e-4793-84b0-ec4589415af2:Node 4f99fb22-8d4e-4793-84b0-ec4589415af2 :: true

deleteNodes 1.019s
2020-09-05 00:36:30 |

2020-09-05 00:36:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:30 | ------------------------------------

2020-09-05 00:36:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4f99fb22-8d4e-4793-84b0-ec4589415af2"
}

2020-09-05 00:36:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-05 00:36:31 | [Mutex] waiting for: [received:nodes:41d5a8bb-1dd0-47f1-8b24-71bd9265b201:localhost]

2020-09-05 00:36:31 | [Mutex] received everything.

2020-09-05 00:36:31 | [Mutex] isItemNotified: received:node:41d5a8bb-1dd0-47f1-8b24-71bd9265b201:localhost:node-4f99fb22-8d4e-4793-84b0-ec4589415af2:Node 4f99fb22-8d4e-4793-84b0-ec4589415af2 :: false

deleteSubnodes 1.034s
2020-09-05 00:36:29 |

2020-09-05 00:36:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:29 | ------------------------------------

2020-09-05 00:36:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2e1e99f3-428f-407a-b23a-18a9249a16e7"
}

2020-09-05 00:36:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-05 00:36:30 | [Mutex] waiting for: [received:nodes:0ca6c8e0-82df-4fa3-9bd2-a43f6e625df5:localhost]

2020-09-05 00:36:30 | [Mutex] received everything.

2020-09-05 00:36:30 | [Mutex] isItemNotified: received:node:0ca6c8e0-82df-4fa3-9bd2-a43f6e625df5:localhost:node-2e1e99f3-428f-407a-b23a-18a9249a16e7:Node 2e1e99f3-428f-407a-b23a-18a9249a16e7 :: false

2020-09-05 00:36:30 | [Mutex] waiting for: [received:nodes:82a493b9-4e41-4fc3-98f0-1759e0c98b62:localhost]

2020-09-05 00:36:30 | [Mutex] received everything.

2020-09-05 00:36:30 | [Mutex] isItemNotified: received:node:82a493b9-4e41-4fc3-98f0-1759e0c98b62:localhost:node-2e1e99f3-428f-407a-b23a-18a9249a16e7:Node 2e1e99f3-428f-407a-b23a-18a9249a16e7 :: false

publishItemsToNodes 0.032s
2020-09-05 00:36:28 |

2020-09-05 00:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:28 | ------------------------------------

2020-09-05 00:36:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2e1e99f3-428f-407a-b23a-18a9249a16e7",
    "entry": "<test>item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d</test>",
    "item-id": "item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d"
}

2020-09-05 00:36:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d"
}

2020-09-05 00:36:28 | [Mutex] received everything.

2020-09-05 00:36:28 | [Mutex] isItemNotified: published:item:notifieditem-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2020-09-05 00:36:28 |

2020-09-05 00:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:28 | ------------------------------------

2020-09-05 00:36:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2e1e99f3-428f-407a-b23a-18a9249a16e7",
    "item-id": "item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d"
}

2020-09-05 00:36:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d"
}

2020-09-05 00:36:28 | [Mutex] received everything.

2020-09-05 00:36:28 | [Mutex] isItemNotified: retracted:item:notifieditem-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2020-09-05 00:36:28 |

2020-09-05 00:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:28 | ------------------------------------

2020-09-05 00:36:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2e1e99f3-428f-407a-b23a-18a9249a16e7",
    "item-id": "item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d"
}

2020-09-05 00:36:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2e1e99f3-428f-407a-b23a-18a9249a16e7",
    "item-id": "item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d",
    "item": [
        "<item id=\"item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d\"><test>item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d</test></item>"
    ]
}

2020-09-05 00:36:28 | [Mutex] notify: [retrieved:item:item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d:payload-matches:true:localhost]

2020-09-05 00:36:28 | [Mutex] received everything.

2020-09-05 00:36:28 | [Mutex] isItemNotified: retrieved:item:item-058837b5-6f8e-4cdd-b2a1-93d2b1f6458d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-05 00:36:28 |

2020-09-05 00:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:28 | ------------------------------------

2020-09-05 00:36:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-05 00:36:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4f99fb22-8d4e-4793-84b0-ec4589415af2",
        "node-2e1e99f3-428f-407a-b23a-18a9249a16e7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-05 00:36:28 |

2020-09-05 00:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:28 | ------------------------------------

2020-09-05 00:36:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2e1e99f3-428f-407a-b23a-18a9249a16e7)"
}

2020-09-05 00:36:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-09-05 00:36:27 |

2020-09-05 00:36:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:27 | ------------------------------------

2020-09-05 00:36:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2e1e99f3-428f-407a-b23a-18a9249a16e7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-05 00:36:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2020-09-05 00:36:28 |

2020-09-05 00:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-05 00:36:28 | ------------------------------------

2020-09-05 00:36:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2e1e99f3-428f-407a-b23a-18a9249a16e7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-05 00:36:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}