Generated by TestNG with ReportNG at 15:56 PDT on Friday 25 September 2020
root@917f04bc4138 / 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.060s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2020-09-25 16:10:27 |

2020-09-25 16:10:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:27 | ------------------------------------

2020-09-25 16:10:27 | [Mutex] waiting for: [configured:node:node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428:node-a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58]

2020-09-25 16:10:27 | [Mutex] received everything.

2020-09-25 16:10:27 | [Mutex] isItemNotified: configured:node:node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428:node-a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58 :: true

2020-09-25 16:10:28 | [Mutex] waiting for: [received:nodes:1899550a-f8f3-43bb-ab37-87b483295c94:localhost]

2020-09-25 16:10:28 | [Mutex] received everything.

2020-09-25 16:10:28 | [Mutex] isItemNotified: received:node:1899550a-f8f3-43bb-ab37-87b483295c94:localhost:node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428:Node 2f8a522e-eb36-4c66-8a2e-e37ab5bd4428 :: true

2020-09-25 16:10:28 | [Mutex] waiting for: [received:nodes:b630de48-4855-4baf-9bfd-e0063b08ef2f:localhost]

2020-09-25 16:10:28 | [Mutex] received everything.

2020-09-25 16:10:28 | [Mutex] isItemNotified: received:node:b630de48-4855-4baf-9bfd-e0063b08ef2f:localhost:node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428:Node 2f8a522e-eb36-4c66-8a2e-e37ab5bd4428 :: false

createNodes 1.663s
2020-09-25 16:10:24 |

2020-09-25 16:10:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:24 | ------------------------------------

2020-09-25 16:10:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428",
    "pubsub#title": "Node 2f8a522e-eb36-4c66-8a2e-e37ab5bd4428"
}

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

2020-09-25 16:10:26 | [Mutex] waiting for: [received:nodes:dc1be9d0-b9d6-402f-95ae-6f7b0de6656d:localhost]

2020-09-25 16:10:26 | [Mutex] received everything.

2020-09-25 16:10:26 | [Mutex] isItemNotified: received:node:dc1be9d0-b9d6-402f-95ae-6f7b0de6656d:localhost:node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428:Node 2f8a522e-eb36-4c66-8a2e-e37ab5bd4428 :: true

createSubnodes 1.022s
2020-09-25 16:10:26 |

2020-09-25 16:10:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:26 | ------------------------------------

2020-09-25 16:10:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58",
    "pubsub#title": "Node a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58"
}

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

2020-09-25 16:10:27 | [Mutex] waiting for: [received:nodes:d82fcc57-73c2-4673-8fc9-dbdec935d36d:localhost]

2020-09-25 16:10:27 | [Mutex] received everything.

2020-09-25 16:10:27 | [Mutex] isItemNotified: received:node:d82fcc57-73c2-4673-8fc9-dbdec935d36d:localhost:node-a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58:Node a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58 :: true

deleteNodes 1.018s
2020-09-25 16:10:32 |

2020-09-25 16:10:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:32 | ------------------------------------

2020-09-25 16:10:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58"
}

2020-09-25 16:10:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:10:33 | [Mutex] waiting for: [received:nodes:7b0ead13-3496-4440-8d44-97ddec420665:localhost]

2020-09-25 16:10:33 | [Mutex] received everything.

2020-09-25 16:10:33 | [Mutex] isItemNotified: received:node:7b0ead13-3496-4440-8d44-97ddec420665:localhost:node-a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58:Node a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58 :: false

deleteSubnodes 1.034s
2020-09-25 16:10:30 |

2020-09-25 16:10:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:30 | ------------------------------------

2020-09-25 16:10:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428"
}

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

2020-09-25 16:10:31 | [Mutex] waiting for: [received:nodes:19e04860-2a0e-4105-8538-0399578a687a:localhost]

2020-09-25 16:10:31 | [Mutex] received everything.

2020-09-25 16:10:31 | [Mutex] isItemNotified: received:node:19e04860-2a0e-4105-8538-0399578a687a:localhost:node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428:Node 2f8a522e-eb36-4c66-8a2e-e37ab5bd4428 :: false

2020-09-25 16:10:31 | [Mutex] waiting for: [received:nodes:b81c4af5-48d6-43d6-bff8-56fd46da5bb0:localhost]

2020-09-25 16:10:32 | [Mutex] received everything.

2020-09-25 16:10:32 | [Mutex] isItemNotified: received:node:b81c4af5-48d6-43d6-bff8-56fd46da5bb0:localhost:node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428:Node 2f8a522e-eb36-4c66-8a2e-e37ab5bd4428 :: false

publishItemsToNodes 0.059s
2020-09-25 16:10:29 |

2020-09-25 16:10:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:29 | ------------------------------------

2020-09-25 16:10:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428",
    "entry": "<test>item-bbc7034a-02ee-428b-8ddf-590d58bf7f82</test>",
    "item-id": "item-bbc7034a-02ee-428b-8ddf-590d58bf7f82"
}

2020-09-25 16:10:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bbc7034a-02ee-428b-8ddf-590d58bf7f82"
}

2020-09-25 16:10:29 | [Mutex] waiting for: [published:item:notifieditem-bbc7034a-02ee-428b-8ddf-590d58bf7f82:admin@test-domain.com]

2020-09-25 16:10:29 | [Mutex] received everything.

2020-09-25 16:10:29 | [Mutex] isItemNotified: published:item:notifieditem-bbc7034a-02ee-428b-8ddf-590d58bf7f82:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-25 16:10:29 |

2020-09-25 16:10:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:29 | ------------------------------------

2020-09-25 16:10:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428",
    "item-id": "item-bbc7034a-02ee-428b-8ddf-590d58bf7f82"
}

2020-09-25 16:10:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bbc7034a-02ee-428b-8ddf-590d58bf7f82"
}

2020-09-25 16:10:29 | [Mutex] received everything.

2020-09-25 16:10:29 | [Mutex] isItemNotified: retracted:item:notifieditem-bbc7034a-02ee-428b-8ddf-590d58bf7f82:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2020-09-25 16:10:29 |

2020-09-25 16:10:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:29 | ------------------------------------

2020-09-25 16:10:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428",
    "item-id": "item-bbc7034a-02ee-428b-8ddf-590d58bf7f82"
}

2020-09-25 16:10:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428",
    "item-id": "item-bbc7034a-02ee-428b-8ddf-590d58bf7f82",
    "item": [
        "<item id=\"item-bbc7034a-02ee-428b-8ddf-590d58bf7f82\"><test>item-bbc7034a-02ee-428b-8ddf-590d58bf7f82</test></item>"
    ]
}

2020-09-25 16:10:29 | [Mutex] notify: [retrieved:item:item-bbc7034a-02ee-428b-8ddf-590d58bf7f82:payload-matches:true:localhost]

2020-09-25 16:10:29 | [Mutex] received everything.

2020-09-25 16:10:29 | [Mutex] isItemNotified: retrieved:item:item-bbc7034a-02ee-428b-8ddf-590d58bf7f82:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-25 16:10:29 |

2020-09-25 16:10:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:29 | ------------------------------------

2020-09-25 16:10:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-25 16:10:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428",
        "node-a43fdddd-c38f-4f82-9c0d-60dc4e9dfc58",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-25 16:10:29 |

2020-09-25 16:10:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:29 | ------------------------------------

2020-09-25 16:10:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428)"
}

2020-09-25 16:10:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-09-25 16:10:28 |

2020-09-25 16:10:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:28 | ------------------------------------

2020-09-25 16:10:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 16:10:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-25 16:10:29 |

2020-09-25 16:10:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:10:29 | ------------------------------------

2020-09-25 16:10:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2f8a522e-eb36-4c66-8a2e-e37ab5bd4428",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 16:10:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}