Generated by TestNG with ReportNG at 06:49 PDT on Wednesday 09 September 2020
root@fe56895ca679 / 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.010s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.124s
2020-09-09 07:05:10 |

2020-09-09 07:05:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:10 | ------------------------------------

2020-09-09 07:05:10 | [Mutex] waiting for: [configured:node:node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6:node-1cfaca75-2363-4e9c-940c-212296741a7a]

2020-09-09 07:05:11 | [Mutex] received everything.

2020-09-09 07:05:11 | [Mutex] isItemNotified: configured:node:node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6:node-1cfaca75-2363-4e9c-940c-212296741a7a :: true

2020-09-09 07:05:12 | [Mutex] waiting for: [received:nodes:859389b9-14a8-4ddd-8040-20c019c7b6b4:localhost]

2020-09-09 07:05:12 | [Mutex] received everything.

2020-09-09 07:05:12 | [Mutex] isItemNotified: received:node:859389b9-14a8-4ddd-8040-20c019c7b6b4:localhost:node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6:Node c15266b1-ca0a-4442-9a79-f51fc2dcc1a6 :: true

2020-09-09 07:05:12 | [Mutex] waiting for: [received:nodes:c9a391d3-dffc-412d-b4c0-ad55a0a90a3e:localhost]

2020-09-09 07:05:12 | [Mutex] received everything.

2020-09-09 07:05:12 | [Mutex] isItemNotified: received:node:c9a391d3-dffc-412d-b4c0-ad55a0a90a3e:localhost:node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6:Node c15266b1-ca0a-4442-9a79-f51fc2dcc1a6 :: false

createNodes 1.631s
2020-09-09 07:05:08 |

2020-09-09 07:05:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:08 | ------------------------------------

2020-09-09 07:05:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6",
    "pubsub#title": "Node c15266b1-ca0a-4442-9a79-f51fc2dcc1a6"
}

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

2020-09-09 07:05:09 | [Mutex] waiting for: [received:nodes:451e5fda-5dac-4d9f-ad50-4aa7f3416f8e:localhost]

2020-09-09 07:05:09 | [Mutex] received everything.

2020-09-09 07:05:09 | [Mutex] isItemNotified: received:node:451e5fda-5dac-4d9f-ad50-4aa7f3416f8e:localhost:node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6:Node c15266b1-ca0a-4442-9a79-f51fc2dcc1a6 :: true

createSubnodes 1.026s
2020-09-09 07:05:09 |

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

2020-09-09 07:05:09 | ------------------------------------

2020-09-09 07:05:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1cfaca75-2363-4e9c-940c-212296741a7a",
    "pubsub#title": "Node 1cfaca75-2363-4e9c-940c-212296741a7a"
}

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

2020-09-09 07:05:10 | [Mutex] waiting for: [received:nodes:dc6587a0-9cd7-4e10-91f6-1f0b349817a3:localhost]

2020-09-09 07:05:10 | [Mutex] waiting for: [received:nodes:dc6587a0-9cd7-4e10-91f6-1f0b349817a3:localhost]

2020-09-09 07:05:10 | [Mutex] waiting for: [received:nodes:dc6587a0-9cd7-4e10-91f6-1f0b349817a3:localhost]

2020-09-09 07:05:10 | [Mutex] waiting for: [received:nodes:dc6587a0-9cd7-4e10-91f6-1f0b349817a3:localhost]

2020-09-09 07:05:10 | [Mutex] received everything.

2020-09-09 07:05:10 | [Mutex] isItemNotified: received:node:dc6587a0-9cd7-4e10-91f6-1f0b349817a3:localhost:node-1cfaca75-2363-4e9c-940c-212296741a7a:Node 1cfaca75-2363-4e9c-940c-212296741a7a :: true

deleteNodes 1.029s
2020-09-09 07:05:15 |

2020-09-09 07:05:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:15 | ------------------------------------

2020-09-09 07:05:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1cfaca75-2363-4e9c-940c-212296741a7a"
}

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

2020-09-09 07:05:16 | [Mutex] waiting for: [received:nodes:500b33b6-6fd5-42b4-84e8-caf2fefa52d5:localhost]

2020-09-09 07:05:16 | [Mutex] received everything.

2020-09-09 07:05:16 | [Mutex] isItemNotified: received:node:500b33b6-6fd5-42b4-84e8-caf2fefa52d5:localhost:node-1cfaca75-2363-4e9c-940c-212296741a7a:Node 1cfaca75-2363-4e9c-940c-212296741a7a :: false

deleteSubnodes 1.030s
2020-09-09 07:05:14 |

2020-09-09 07:05:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:14 | ------------------------------------

2020-09-09 07:05:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6"
}

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

2020-09-09 07:05:15 | [Mutex] waiting for: [received:nodes:a2576bf7-0230-4ff3-8f02-40c55875dc6f:localhost]

2020-09-09 07:05:15 | [Mutex] waiting for: [received:nodes:a2576bf7-0230-4ff3-8f02-40c55875dc6f:localhost]

2020-09-09 07:05:15 | [Mutex] received everything.

2020-09-09 07:05:15 | [Mutex] isItemNotified: received:node:a2576bf7-0230-4ff3-8f02-40c55875dc6f:localhost:node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6:Node c15266b1-ca0a-4442-9a79-f51fc2dcc1a6 :: false

2020-09-09 07:05:15 | [Mutex] waiting for: [received:nodes:068896e7-3301-4127-b402-60ce9049f847:localhost]

2020-09-09 07:05:15 | [Mutex] received everything.

2020-09-09 07:05:15 | [Mutex] isItemNotified: received:node:068896e7-3301-4127-b402-60ce9049f847:localhost:node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6:Node c15266b1-ca0a-4442-9a79-f51fc2dcc1a6 :: false

publishItemsToNodes 0.038s
2020-09-09 07:05:13 |

2020-09-09 07:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:13 | ------------------------------------

2020-09-09 07:05:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6",
    "entry": "<test>item-c794fe28-e527-493e-a9b8-c3a42f67bfed</test>",
    "item-id": "item-c794fe28-e527-493e-a9b8-c3a42f67bfed"
}

2020-09-09 07:05:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c794fe28-e527-493e-a9b8-c3a42f67bfed"
}

2020-09-09 07:05:13 | [Mutex] waiting for: [published:item:notifieditem-c794fe28-e527-493e-a9b8-c3a42f67bfed:admin@test-domain.com]

2020-09-09 07:05:13 | [Mutex] received everything.

2020-09-09 07:05:13 | [Mutex] isItemNotified: published:item:notifieditem-c794fe28-e527-493e-a9b8-c3a42f67bfed:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-09-09 07:05:13 |

2020-09-09 07:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:13 | ------------------------------------

2020-09-09 07:05:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6",
    "item-id": "item-c794fe28-e527-493e-a9b8-c3a42f67bfed"
}

2020-09-09 07:05:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c794fe28-e527-493e-a9b8-c3a42f67bfed"
}

2020-09-09 07:05:13 | [Mutex] received everything.

2020-09-09 07:05:13 | [Mutex] isItemNotified: retracted:item:notifieditem-c794fe28-e527-493e-a9b8-c3a42f67bfed:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2020-09-09 07:05:13 |

2020-09-09 07:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:13 | ------------------------------------

2020-09-09 07:05:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6",
    "item-id": "item-c794fe28-e527-493e-a9b8-c3a42f67bfed"
}

2020-09-09 07:05:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6",
    "item-id": "item-c794fe28-e527-493e-a9b8-c3a42f67bfed",
    "item": [
        "<item id=\"item-c794fe28-e527-493e-a9b8-c3a42f67bfed\"><test>item-c794fe28-e527-493e-a9b8-c3a42f67bfed</test></item>"
    ]
}

2020-09-09 07:05:13 | [Mutex] notify: [retrieved:item:item-c794fe28-e527-493e-a9b8-c3a42f67bfed:payload-matches:true:localhost]

2020-09-09 07:05:13 | [Mutex] received everything.

2020-09-09 07:05:13 | [Mutex] isItemNotified: retrieved:item:item-c794fe28-e527-493e-a9b8-c3a42f67bfed:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2020-09-09 07:05:13 |

2020-09-09 07:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:13 | ------------------------------------

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

2020-09-09 07:05:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6",
        "node-1cfaca75-2363-4e9c-940c-212296741a7a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-09-09 07:05:13 |

2020-09-09 07:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:13 | ------------------------------------

2020-09-09 07:05:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6)"
}

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

subscribeNodes 1.016s
2020-09-09 07:05:12 |

2020-09-09 07:05:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:12 | ------------------------------------

2020-09-09 07:05:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.083s
2020-09-09 07:05:13 |

2020-09-09 07:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 07:05:13 | ------------------------------------

2020-09-09 07:05:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c15266b1-ca0a-4442-9a79-f51fc2dcc1a6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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