Generated by TestNG with ReportNG at 22:11 PST on Tuesday 01 February 2022
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 : 9.143s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2022-02-01 22:27:00 |

2022-02-01 22:27:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:00 | ------------------------------------

2022-02-01 22:27:00 | [Mutex] waiting for: [configured:node:node-2a39fd2b-a186-4bf8-8fba-b24b0699677f:node-ca822a20-6a66-49ab-a31e-61d5a2a7598d]

2022-02-01 22:27:00 | [Mutex] received everything.

2022-02-01 22:27:00 | [Mutex] isItemNotified: configured:node:node-2a39fd2b-a186-4bf8-8fba-b24b0699677f:node-ca822a20-6a66-49ab-a31e-61d5a2a7598d :: true

2022-02-01 22:27:01 | [Mutex] waiting for: [received:nodes:a0709df2-0601-4be7-8226-8b44fc4ab9b3:localhost]

2022-02-01 22:27:01 | [Mutex] received everything.

2022-02-01 22:27:01 | [Mutex] isItemNotified: received:node:a0709df2-0601-4be7-8226-8b44fc4ab9b3:localhost:node-2a39fd2b-a186-4bf8-8fba-b24b0699677f:Node 2a39fd2b-a186-4bf8-8fba-b24b0699677f :: true

2022-02-01 22:27:01 | [Mutex] waiting for: [received:nodes:25ade69a-7b64-493d-8df5-f257e0692bf9:localhost]

2022-02-01 22:27:01 | [Mutex] waiting for: [received:nodes:25ade69a-7b64-493d-8df5-f257e0692bf9:localhost]

2022-02-01 22:27:01 | [Mutex] received everything.

2022-02-01 22:27:01 | [Mutex] isItemNotified: received:node:25ade69a-7b64-493d-8df5-f257e0692bf9:localhost:node-2a39fd2b-a186-4bf8-8fba-b24b0699677f:Node 2a39fd2b-a186-4bf8-8fba-b24b0699677f :: false

createNodes 1.794s
2022-02-01 22:26:57 |

2022-02-01 22:26:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:26:57 | ------------------------------------

2022-02-01 22:26:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2a39fd2b-a186-4bf8-8fba-b24b0699677f",
    "pubsub#title": "Node 2a39fd2b-a186-4bf8-8fba-b24b0699677f"
}

2022-02-01 22:26:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 22:26:59 | [Mutex] waiting for: [received:nodes:1ea4d89a-b19e-4b30-9415-b89b5f1dbae6:localhost]

2022-02-01 22:26:59 | [Mutex] waiting for: [received:nodes:1ea4d89a-b19e-4b30-9415-b89b5f1dbae6:localhost]

2022-02-01 22:26:59 | [Mutex] received everything.

2022-02-01 22:26:59 | [Mutex] isItemNotified: received:node:1ea4d89a-b19e-4b30-9415-b89b5f1dbae6:localhost:node-2a39fd2b-a186-4bf8-8fba-b24b0699677f:Node 2a39fd2b-a186-4bf8-8fba-b24b0699677f :: true

createSubnodes 1.028s
2022-02-01 22:26:59 |

2022-02-01 22:26:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:26:59 | ------------------------------------

2022-02-01 22:26:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ca822a20-6a66-49ab-a31e-61d5a2a7598d",
    "pubsub#title": "Node ca822a20-6a66-49ab-a31e-61d5a2a7598d"
}

2022-02-01 22:26:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 22:27:00 | [Mutex] waiting for: [received:nodes:6fa9af7a-60a7-4de8-8758-967e1ce9107c:localhost]

2022-02-01 22:27:00 | [Mutex] waiting for: [received:nodes:6fa9af7a-60a7-4de8-8758-967e1ce9107c:localhost]

2022-02-01 22:27:00 | [Mutex] received everything.

2022-02-01 22:27:00 | [Mutex] isItemNotified: received:node:6fa9af7a-60a7-4de8-8758-967e1ce9107c:localhost:node-ca822a20-6a66-49ab-a31e-61d5a2a7598d:Node ca822a20-6a66-49ab-a31e-61d5a2a7598d :: true

deleteNodes 1.029s
2022-02-01 22:27:04 |

2022-02-01 22:27:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:04 | ------------------------------------

2022-02-01 22:27:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ca822a20-6a66-49ab-a31e-61d5a2a7598d"
}

2022-02-01 22:27:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 22:27:05 | [Mutex] waiting for: [received:nodes:8c30287b-1c10-4d02-90ca-3ef8aad9af1e:localhost]

2022-02-01 22:27:05 | [Mutex] received everything.

2022-02-01 22:27:05 | [Mutex] isItemNotified: received:node:8c30287b-1c10-4d02-90ca-3ef8aad9af1e:localhost:node-ca822a20-6a66-49ab-a31e-61d5a2a7598d:Node ca822a20-6a66-49ab-a31e-61d5a2a7598d :: false

deleteSubnodes 1.025s
2022-02-01 22:27:03 |

2022-02-01 22:27:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:03 | ------------------------------------

2022-02-01 22:27:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2a39fd2b-a186-4bf8-8fba-b24b0699677f"
}

2022-02-01 22:27:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 22:27:04 | [Mutex] waiting for: [received:nodes:6a91a365-6a5d-41cf-916d-bde8fc802876:localhost]

2022-02-01 22:27:04 | [Mutex] received everything.

2022-02-01 22:27:04 | [Mutex] isItemNotified: received:node:6a91a365-6a5d-41cf-916d-bde8fc802876:localhost:node-2a39fd2b-a186-4bf8-8fba-b24b0699677f:Node 2a39fd2b-a186-4bf8-8fba-b24b0699677f :: false

2022-02-01 22:27:04 | [Mutex] waiting for: [received:nodes:120c29f1-4ea7-4468-822d-991628791bbc:localhost]

2022-02-01 22:27:04 | [Mutex] received everything.

2022-02-01 22:27:04 | [Mutex] isItemNotified: received:node:120c29f1-4ea7-4468-822d-991628791bbc:localhost:node-2a39fd2b-a186-4bf8-8fba-b24b0699677f:Node 2a39fd2b-a186-4bf8-8fba-b24b0699677f :: false

publishItemsToNodes 0.046s
2022-02-01 22:27:02 |

2022-02-01 22:27:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:02 | ------------------------------------

2022-02-01 22:27:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2a39fd2b-a186-4bf8-8fba-b24b0699677f",
    "entry": "<test>item-bd30f7db-37d9-484b-b480-84318b0579e4</test>",
    "item-id": "item-bd30f7db-37d9-484b-b480-84318b0579e4"
}

2022-02-01 22:27:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bd30f7db-37d9-484b-b480-84318b0579e4"
}

2022-02-01 22:27:02 | [Mutex] waiting for: [published:item:notifieditem-bd30f7db-37d9-484b-b480-84318b0579e4:admin@test-domain.com]

2022-02-01 22:27:02 | [Mutex] received everything.

2022-02-01 22:27:02 | [Mutex] isItemNotified: published:item:notifieditem-bd30f7db-37d9-484b-b480-84318b0579e4:admin@test-domain.com :: true

retractItemsFromNodes 0.103s
2022-02-01 22:27:02 |

2022-02-01 22:27:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:02 | ------------------------------------

2022-02-01 22:27:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2a39fd2b-a186-4bf8-8fba-b24b0699677f",
    "item-id": "item-bd30f7db-37d9-484b-b480-84318b0579e4"
}

2022-02-01 22:27:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bd30f7db-37d9-484b-b480-84318b0579e4"
}

2022-02-01 22:27:02 | [Mutex] received everything.

2022-02-01 22:27:02 | [Mutex] isItemNotified: retracted:item:notifieditem-bd30f7db-37d9-484b-b480-84318b0579e4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2022-02-01 22:27:02 |

2022-02-01 22:27:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:02 | ------------------------------------

2022-02-01 22:27:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2a39fd2b-a186-4bf8-8fba-b24b0699677f",
    "item-id": "item-bd30f7db-37d9-484b-b480-84318b0579e4"
}

2022-02-01 22:27:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2a39fd2b-a186-4bf8-8fba-b24b0699677f",
    "item-id": "item-bd30f7db-37d9-484b-b480-84318b0579e4",
    "item": [
        "<item id=\"item-bd30f7db-37d9-484b-b480-84318b0579e4\"><test>item-bd30f7db-37d9-484b-b480-84318b0579e4</test></item>"
    ]
}

2022-02-01 22:27:02 | [Mutex] notify: [retrieved:item:item-bd30f7db-37d9-484b-b480-84318b0579e4:payload-matches:true:localhost]

2022-02-01 22:27:02 | [Mutex] received everything.

2022-02-01 22:27:02 | [Mutex] isItemNotified: retrieved:item:item-bd30f7db-37d9-484b-b480-84318b0579e4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.127s
2022-02-01 22:27:02 |

2022-02-01 22:27:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:02 | ------------------------------------

2022-02-01 22:27:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-01 22:27:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2a39fd2b-a186-4bf8-8fba-b24b0699677f",
        "node-ca822a20-6a66-49ab-a31e-61d5a2a7598d",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-01 22:27:02 |

2022-02-01 22:27:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:02 | ------------------------------------

2022-02-01 22:27:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2a39fd2b-a186-4bf8-8fba-b24b0699677f)"
}

2022-02-01 22:27:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-02-01 22:27:01 |

2022-02-01 22:27:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:01 | ------------------------------------

2022-02-01 22:27:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2a39fd2b-a186-4bf8-8fba-b24b0699677f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-01 22:27:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.019s
2022-02-01 22:27:02 |

2022-02-01 22:27:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:27:02 | ------------------------------------

2022-02-01 22:27:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2a39fd2b-a186-4bf8-8fba-b24b0699677f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-01 22:27:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}