Generated by TestNG with ReportNG at 22:14 PDT on Wednesday 12 May 2021
root@b2c2a8eba6e6 / 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.895s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2021-05-12 22:28:52 |

2021-05-12 22:28:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:52 | ------------------------------------

2021-05-12 22:28:52 | [Mutex] waiting for: [configured:node:node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a:node-3a208835-50cf-4953-8acd-40b64ffc7089]

2021-05-12 22:28:52 | [Mutex] received everything.

2021-05-12 22:28:52 | [Mutex] isItemNotified: configured:node:node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a:node-3a208835-50cf-4953-8acd-40b64ffc7089 :: true

2021-05-12 22:28:53 | [Mutex] waiting for: [received:nodes:33c4cd26-5c55-42f0-b24c-b763e359cf64:localhost]

2021-05-12 22:28:53 | [Mutex] received everything.

2021-05-12 22:28:53 | [Mutex] isItemNotified: received:node:33c4cd26-5c55-42f0-b24c-b763e359cf64:localhost:node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a:Node 8aef472f-6ac3-4b9d-84b7-b732c8f26b0a :: true

2021-05-12 22:28:53 | [Mutex] waiting for: [received:nodes:9a5822fb-1915-4884-9a8d-e6d821115dce:localhost]

2021-05-12 22:28:53 | [Mutex] received everything.

2021-05-12 22:28:53 | [Mutex] isItemNotified: received:node:9a5822fb-1915-4884-9a8d-e6d821115dce:localhost:node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a:Node 8aef472f-6ac3-4b9d-84b7-b732c8f26b0a :: false

createNodes 1.612s
2021-05-12 22:28:49 |

2021-05-12 22:28:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:49 | ------------------------------------

2021-05-12 22:28: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-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a",
    "pubsub#title": "Node 8aef472f-6ac3-4b9d-84b7-b732c8f26b0a"
}

2021-05-12 22:28:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:28:51 | [Mutex] waiting for: [received:nodes:65760da1-fc9f-4732-8cca-e15bacc79893:localhost]

2021-05-12 22:28:51 | [Mutex] received everything.

2021-05-12 22:28:51 | [Mutex] isItemNotified: received:node:65760da1-fc9f-4732-8cca-e15bacc79893:localhost:node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a:Node 8aef472f-6ac3-4b9d-84b7-b732c8f26b0a :: true

createSubnodes 1.025s
2021-05-12 22:28:51 |

2021-05-12 22:28:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:51 | ------------------------------------

2021-05-12 22:28: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-3a208835-50cf-4953-8acd-40b64ffc7089",
    "pubsub#title": "Node 3a208835-50cf-4953-8acd-40b64ffc7089"
}

2021-05-12 22:28:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:28:52 | [Mutex] waiting for: [received:nodes:c5f3196e-ff75-4281-84e8-65d62332ba95:localhost]

2021-05-12 22:28:52 | [Mutex] received everything.

2021-05-12 22:28:52 | [Mutex] isItemNotified: received:node:c5f3196e-ff75-4281-84e8-65d62332ba95:localhost:node-3a208835-50cf-4953-8acd-40b64ffc7089:Node 3a208835-50cf-4953-8acd-40b64ffc7089 :: true

deleteNodes 1.025s
2021-05-12 22:28:56 |

2021-05-12 22:28:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:56 | ------------------------------------

2021-05-12 22:28:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3a208835-50cf-4953-8acd-40b64ffc7089"
}

2021-05-12 22:28:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:28:57 | [Mutex] waiting for: [received:nodes:9ea8f6ec-575f-4083-b62f-8694bf512dd3:localhost]

2021-05-12 22:28:57 | [Mutex] received everything.

2021-05-12 22:28:57 | [Mutex] isItemNotified: received:node:9ea8f6ec-575f-4083-b62f-8694bf512dd3:localhost:node-3a208835-50cf-4953-8acd-40b64ffc7089:Node 3a208835-50cf-4953-8acd-40b64ffc7089 :: false

deleteSubnodes 1.025s
2021-05-12 22:28:55 |

2021-05-12 22:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:55 | ------------------------------------

2021-05-12 22:28:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a"
}

2021-05-12 22:28:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:28:56 | [Mutex] waiting for: [received:nodes:1ade1065-9520-49da-9531-a6824be06579:localhost]

2021-05-12 22:28:56 | [Mutex] received everything.

2021-05-12 22:28:56 | [Mutex] isItemNotified: received:node:1ade1065-9520-49da-9531-a6824be06579:localhost:node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a:Node 8aef472f-6ac3-4b9d-84b7-b732c8f26b0a :: false

2021-05-12 22:28:56 | [Mutex] waiting for: [received:nodes:b17dcfc8-3d0c-4b18-a20a-026000e95426:localhost]

2021-05-12 22:28:56 | [Mutex] received everything.

2021-05-12 22:28:56 | [Mutex] isItemNotified: received:node:b17dcfc8-3d0c-4b18-a20a-026000e95426:localhost:node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a:Node 8aef472f-6ac3-4b9d-84b7-b732c8f26b0a :: false

publishItemsToNodes 0.053s
2021-05-12 22:28:54 |

2021-05-12 22:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:54 | ------------------------------------

2021-05-12 22:28:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a",
    "entry": "<test>item-0786ab97-afda-435f-8e8b-b75b8206e3b9</test>",
    "item-id": "item-0786ab97-afda-435f-8e8b-b75b8206e3b9"
}

2021-05-12 22:28:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0786ab97-afda-435f-8e8b-b75b8206e3b9"
}

2021-05-12 22:28:54 | [Mutex] waiting for: [published:item:notifieditem-0786ab97-afda-435f-8e8b-b75b8206e3b9:admin@test-domain.com]

2021-05-12 22:28:54 | [Mutex] received everything.

2021-05-12 22:28:54 | [Mutex] isItemNotified: published:item:notifieditem-0786ab97-afda-435f-8e8b-b75b8206e3b9:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-05-12 22:28:54 |

2021-05-12 22:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:54 | ------------------------------------

2021-05-12 22:28:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a",
    "item-id": "item-0786ab97-afda-435f-8e8b-b75b8206e3b9"
}

2021-05-12 22:28:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0786ab97-afda-435f-8e8b-b75b8206e3b9"
}

2021-05-12 22:28:54 | [Mutex] received everything.

2021-05-12 22:28:54 | [Mutex] isItemNotified: retracted:item:notifieditem-0786ab97-afda-435f-8e8b-b75b8206e3b9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2021-05-12 22:28:54 |

2021-05-12 22:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:54 | ------------------------------------

2021-05-12 22:28:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a",
    "item-id": "item-0786ab97-afda-435f-8e8b-b75b8206e3b9"
}

2021-05-12 22:28:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a",
    "item-id": "item-0786ab97-afda-435f-8e8b-b75b8206e3b9",
    "item": [
        "<item id=\"item-0786ab97-afda-435f-8e8b-b75b8206e3b9\"><test>item-0786ab97-afda-435f-8e8b-b75b8206e3b9</test></item>"
    ]
}

2021-05-12 22:28:54 | [Mutex] notify: [retrieved:item:item-0786ab97-afda-435f-8e8b-b75b8206e3b9:payload-matches:true:localhost]

2021-05-12 22:28:54 | [Mutex] received everything.

2021-05-12 22:28:54 | [Mutex] isItemNotified: retrieved:item:item-0786ab97-afda-435f-8e8b-b75b8206e3b9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-05-12 22:28:54 |

2021-05-12 22:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:54 | ------------------------------------

2021-05-12 22:28:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-12 22:28:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3a208835-50cf-4953-8acd-40b64ffc7089",
        "node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-05-12 22:28:54 |

2021-05-12 22:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:54 | ------------------------------------

2021-05-12 22:28:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a)"
}

2021-05-12 22:28:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-05-12 22:28:53 |

2021-05-12 22:28:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:53 | ------------------------------------

2021-05-12 22:28:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-12 22:28:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.136s
2021-05-12 22:28:54 |

2021-05-12 22:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:28:54 | ------------------------------------

2021-05-12 22:28:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8aef472f-6ac3-4b9d-84b7-b732c8f26b0a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-12 22:28:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}