Generated by TestNG with ReportNG at 22:51 PDT on Wednesday 17 August 2022
root@7c41cec37518 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.494s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2022-08-17 23:05:56 |

2022-08-17 23:05:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:56 | ------------------------------------

2022-08-17 23:05:56 | [Mutex] waiting for: [configured:node:node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8:node-3e41af6f-2866-4fda-a822-a50cd2c1e9a3]

2022-08-17 23:05:56 | [Mutex] received everything.

2022-08-17 23:05:56 | [Mutex] isItemNotified: configured:node:node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8:node-3e41af6f-2866-4fda-a822-a50cd2c1e9a3 :: true

2022-08-17 23:05:57 | [Mutex] waiting for: [received:nodes:1d6bb7b9-4ef4-4efd-b8bb-959b998099fb:localhost]

2022-08-17 23:05:57 | [Mutex] received everything.

2022-08-17 23:05:57 | [Mutex] isItemNotified: received:node:1d6bb7b9-4ef4-4efd-b8bb-959b998099fb:localhost:node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8:Node b78f9c9a-79a3-42dd-83a1-db9f6a40eba8 :: true

2022-08-17 23:05:57 | [Mutex] waiting for: [received:nodes:0f9b5326-d876-4f74-aa9c-8cc836c94ef3:localhost]

2022-08-17 23:05:57 | [Mutex] received everything.

2022-08-17 23:05:57 | [Mutex] isItemNotified: received:node:0f9b5326-d876-4f74-aa9c-8cc836c94ef3:localhost:node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8:Node b78f9c9a-79a3-42dd-83a1-db9f6a40eba8 :: false

createNodes 1.567s
2022-08-17 23:05:54 |

2022-08-17 23:05:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:54 | ------------------------------------

2022-08-17 23:05:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8",
    "pubsub#title": "Node b78f9c9a-79a3-42dd-83a1-db9f6a40eba8"
}

2022-08-17 23:05:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-17 23:05:55 | [Mutex] waiting for: [received:nodes:f976730c-e912-42f4-ad9f-adaeb8eef950:localhost]

2022-08-17 23:05:55 | [Mutex] received everything.

2022-08-17 23:05:55 | [Mutex] isItemNotified: received:node:f976730c-e912-42f4-ad9f-adaeb8eef950:localhost:node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8:Node b78f9c9a-79a3-42dd-83a1-db9f6a40eba8 :: true

createSubnodes 1.028s
2022-08-17 23:05:55 |

2022-08-17 23:05:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:55 | ------------------------------------

2022-08-17 23:05:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3e41af6f-2866-4fda-a822-a50cd2c1e9a3",
    "pubsub#title": "Node 3e41af6f-2866-4fda-a822-a50cd2c1e9a3"
}

2022-08-17 23:05:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-17 23:05:56 | [Mutex] waiting for: [received:nodes:07517ee2-991c-4a44-8c4b-2b9bdd0a5d2c:localhost]

2022-08-17 23:05:56 | [Mutex] received everything.

2022-08-17 23:05:56 | [Mutex] isItemNotified: received:node:07517ee2-991c-4a44-8c4b-2b9bdd0a5d2c:localhost:node-3e41af6f-2866-4fda-a822-a50cd2c1e9a3:Node 3e41af6f-2866-4fda-a822-a50cd2c1e9a3 :: true

deleteNodes 1.019s
2022-08-17 23:06:01 |

2022-08-17 23:06:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:06:01 | ------------------------------------

2022-08-17 23:06:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3e41af6f-2866-4fda-a822-a50cd2c1e9a3"
}

2022-08-17 23:06:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-17 23:06:02 | [Mutex] waiting for: [received:nodes:45c2318d-cd42-41d9-9fff-4ef844739297:localhost]

2022-08-17 23:06:02 | [Mutex] waiting for: [received:nodes:45c2318d-cd42-41d9-9fff-4ef844739297:localhost]

2022-08-17 23:06:02 | [Mutex] received everything.

2022-08-17 23:06:02 | [Mutex] isItemNotified: received:node:45c2318d-cd42-41d9-9fff-4ef844739297:localhost:node-3e41af6f-2866-4fda-a822-a50cd2c1e9a3:Node 3e41af6f-2866-4fda-a822-a50cd2c1e9a3 :: false

deleteSubnodes 1.022s
2022-08-17 23:06:00 |

2022-08-17 23:06:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:06:00 | ------------------------------------

2022-08-17 23:06:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8"
}

2022-08-17 23:06:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-17 23:06:01 | [Mutex] waiting for: [received:nodes:ee600fc0-1549-496a-9676-dc5b4319cd45:localhost]

2022-08-17 23:06:01 | [Mutex] received everything.

2022-08-17 23:06:01 | [Mutex] isItemNotified: received:node:ee600fc0-1549-496a-9676-dc5b4319cd45:localhost:node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8:Node b78f9c9a-79a3-42dd-83a1-db9f6a40eba8 :: false

2022-08-17 23:06:01 | [Mutex] waiting for: [received:nodes:a48dd1b1-900b-44e7-b172-bdba7f1f7699:localhost]

2022-08-17 23:06:01 | [Mutex] received everything.

2022-08-17 23:06:01 | [Mutex] isItemNotified: received:node:a48dd1b1-900b-44e7-b172-bdba7f1f7699:localhost:node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8:Node b78f9c9a-79a3-42dd-83a1-db9f6a40eba8 :: false

publishItemsToNodes 0.055s
2022-08-17 23:05:58 |

2022-08-17 23:05:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:58 | ------------------------------------

2022-08-17 23:05:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8",
    "entry": "<test>item-b195c7ee-a232-4310-bbb4-7621469fcdda</test>",
    "item-id": "item-b195c7ee-a232-4310-bbb4-7621469fcdda"
}

2022-08-17 23:05:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b195c7ee-a232-4310-bbb4-7621469fcdda"
}

2022-08-17 23:05:58 | [Mutex] waiting for: [published:item:notifieditem-b195c7ee-a232-4310-bbb4-7621469fcdda:admin@test-domain.com]

2022-08-17 23:05:58 | [Mutex] received everything.

2022-08-17 23:05:58 | [Mutex] isItemNotified: published:item:notifieditem-b195c7ee-a232-4310-bbb4-7621469fcdda:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-08-17 23:05:58 |

2022-08-17 23:05:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:58 | ------------------------------------

2022-08-17 23:05:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8",
    "item-id": "item-b195c7ee-a232-4310-bbb4-7621469fcdda"
}

2022-08-17 23:05:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b195c7ee-a232-4310-bbb4-7621469fcdda"
}

2022-08-17 23:05:58 | [Mutex] received everything.

2022-08-17 23:05:58 | [Mutex] isItemNotified: retracted:item:notifieditem-b195c7ee-a232-4310-bbb4-7621469fcdda:admin@test-domain.com :: true

retrieveItemsFromNodes 0.015s
2022-08-17 23:05:58 |

2022-08-17 23:05:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:58 | ------------------------------------

2022-08-17 23:05:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8",
    "item-id": "item-b195c7ee-a232-4310-bbb4-7621469fcdda"
}

2022-08-17 23:05:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8",
    "item-id": "item-b195c7ee-a232-4310-bbb4-7621469fcdda",
    "item": [
        "<item id=\"item-b195c7ee-a232-4310-bbb4-7621469fcdda\"><test>item-b195c7ee-a232-4310-bbb4-7621469fcdda</test></item>"
    ]
}

2022-08-17 23:05:58 | [Mutex] notify: [retrieved:item:item-b195c7ee-a232-4310-bbb4-7621469fcdda:payload-matches:true:localhost]

2022-08-17 23:05:58 | [Mutex] received everything.

2022-08-17 23:05:58 | [Mutex] isItemNotified: retrieved:item:item-b195c7ee-a232-4310-bbb4-7621469fcdda:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-08-17 23:05:58 |

2022-08-17 23:05:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:58 | ------------------------------------

2022-08-17 23:05:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-17 23:05:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8",
        "node-3e41af6f-2866-4fda-a822-a50cd2c1e9a3",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-17 23:05:58 |

2022-08-17 23:05:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:58 | ------------------------------------

2022-08-17 23:05:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8)"
}

2022-08-17 23:05:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.007s
2022-08-17 23:05:57 |

2022-08-17 23:05:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:57 | ------------------------------------

2022-08-17 23:05:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-17 23:05:57 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2022-08-17 23:05:58 |

2022-08-17 23:05:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-17 23:05:58 | ------------------------------------

2022-08-17 23:05:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b78f9c9a-79a3-42dd-83a1-db9f6a40eba8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-17 23:05:59 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}