Generated by TestNG with ReportNG at 06:21 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.034s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2020-09-09 06:35:54 |

2020-09-09 06:35:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:54 | ------------------------------------

2020-09-09 06:35:54 | [Mutex] waiting for: [configured:node:node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef:node-df084cec-e8bf-4391-a04b-9ed01aa199db]

2020-09-09 06:35:54 | [Mutex] received everything.

2020-09-09 06:35:54 | [Mutex] isItemNotified: configured:node:node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef:node-df084cec-e8bf-4391-a04b-9ed01aa199db :: true

2020-09-09 06:35:55 | [Mutex] waiting for: [received:nodes:ccc3ec66-c04f-40dc-a42e-15c10c88fa04:localhost]

2020-09-09 06:35:55 | [Mutex] received everything.

2020-09-09 06:35:55 | [Mutex] isItemNotified: received:node:ccc3ec66-c04f-40dc-a42e-15c10c88fa04:localhost:node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef:Node bf4bc10d-addc-48ce-81f3-ee32f5d275ef :: true

2020-09-09 06:35:55 | [Mutex] waiting for: [received:nodes:a00e47eb-58b2-4bb8-ac18-db0080778731:localhost]

2020-09-09 06:35:55 | [Mutex] received everything.

2020-09-09 06:35:55 | [Mutex] isItemNotified: received:node:a00e47eb-58b2-4bb8-ac18-db0080778731:localhost:node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef:Node bf4bc10d-addc-48ce-81f3-ee32f5d275ef :: false

createNodes 1.601s
2020-09-09 06:35:51 |

2020-09-09 06:35:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:51 | ------------------------------------

2020-09-09 06:35:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef",
    "pubsub#title": "Node bf4bc10d-addc-48ce-81f3-ee32f5d275ef"
}

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

2020-09-09 06:35:53 | [Mutex] waiting for: [received:nodes:559acffe-3253-4291-8d19-62a228e4ef64:localhost]

2020-09-09 06:35:53 | [Mutex] received everything.

2020-09-09 06:35:53 | [Mutex] isItemNotified: received:node:559acffe-3253-4291-8d19-62a228e4ef64:localhost:node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef:Node bf4bc10d-addc-48ce-81f3-ee32f5d275ef :: true

createSubnodes 1.033s
2020-09-09 06:35:53 |

2020-09-09 06:35:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:53 | ------------------------------------

2020-09-09 06:35:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-df084cec-e8bf-4391-a04b-9ed01aa199db",
    "pubsub#title": "Node df084cec-e8bf-4391-a04b-9ed01aa199db"
}

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

2020-09-09 06:35:54 | [Mutex] waiting for: [received:nodes:f4b9c35e-126b-4c37-b265-5b39951645b8:localhost]

2020-09-09 06:35:54 | [Mutex] waiting for: [received:nodes:f4b9c35e-126b-4c37-b265-5b39951645b8:localhost]

2020-09-09 06:35:54 | [Mutex] received everything.

2020-09-09 06:35:54 | [Mutex] isItemNotified: received:node:f4b9c35e-126b-4c37-b265-5b39951645b8:localhost:node-df084cec-e8bf-4391-a04b-9ed01aa199db:Node df084cec-e8bf-4391-a04b-9ed01aa199db :: true

deleteNodes 1.023s
2020-09-09 06:35:59 |

2020-09-09 06:35:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:59 | ------------------------------------

2020-09-09 06:35:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-df084cec-e8bf-4391-a04b-9ed01aa199db"
}

2020-09-09 06:35:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 06:36:00 | [Mutex] waiting for: [received:nodes:259feb2a-ba74-44c1-ab1b-3f9e29c87674:localhost]

2020-09-09 06:36:00 | [Mutex] received everything.

2020-09-09 06:36:00 | [Mutex] isItemNotified: received:node:259feb2a-ba74-44c1-ab1b-3f9e29c87674:localhost:node-df084cec-e8bf-4391-a04b-9ed01aa199db:Node df084cec-e8bf-4391-a04b-9ed01aa199db :: false

deleteSubnodes 1.026s
2020-09-09 06:35:58 |

2020-09-09 06:35:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:58 | ------------------------------------

2020-09-09 06:35:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef"
}

2020-09-09 06:35:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 06:35:59 | [Mutex] waiting for: [received:nodes:27c78d3e-d6c3-4079-a6b1-6fed379bc329:localhost]

2020-09-09 06:35:59 | [Mutex] waiting for: [received:nodes:27c78d3e-d6c3-4079-a6b1-6fed379bc329:localhost]

2020-09-09 06:35:59 | [Mutex] received everything.

2020-09-09 06:35:59 | [Mutex] isItemNotified: received:node:27c78d3e-d6c3-4079-a6b1-6fed379bc329:localhost:node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef:Node bf4bc10d-addc-48ce-81f3-ee32f5d275ef :: false

2020-09-09 06:35:59 | [Mutex] waiting for: [received:nodes:d8f7ccc5-1de6-4078-9bfc-959c52d3d433:localhost]

2020-09-09 06:35:59 | [Mutex] received everything.

2020-09-09 06:35:59 | [Mutex] isItemNotified: received:node:d8f7ccc5-1de6-4078-9bfc-959c52d3d433:localhost:node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef:Node bf4bc10d-addc-48ce-81f3-ee32f5d275ef :: false

publishItemsToNodes 0.032s
2020-09-09 06:35:56 |

2020-09-09 06:35:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:56 | ------------------------------------

2020-09-09 06:35:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef",
    "entry": "<test>item-3481d52c-ba56-4957-bc73-793f411c656e</test>",
    "item-id": "item-3481d52c-ba56-4957-bc73-793f411c656e"
}

2020-09-09 06:35:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3481d52c-ba56-4957-bc73-793f411c656e"
}

2020-09-09 06:35:56 | [Mutex] waiting for: [published:item:notifieditem-3481d52c-ba56-4957-bc73-793f411c656e:admin@test-domain.com]

2020-09-09 06:35:56 | [Mutex] received everything.

2020-09-09 06:35:56 | [Mutex] isItemNotified: published:item:notifieditem-3481d52c-ba56-4957-bc73-793f411c656e:admin@test-domain.com :: true

retractItemsFromNodes 0.104s
2020-09-09 06:35:56 |

2020-09-09 06:35:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:56 | ------------------------------------

2020-09-09 06:35:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef",
    "item-id": "item-3481d52c-ba56-4957-bc73-793f411c656e"
}

2020-09-09 06:35:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3481d52c-ba56-4957-bc73-793f411c656e"
}

2020-09-09 06:35:57 | [Mutex] received everything.

2020-09-09 06:35:57 | [Mutex] isItemNotified: retracted:item:notifieditem-3481d52c-ba56-4957-bc73-793f411c656e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2020-09-09 06:35:56 |

2020-09-09 06:35:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:56 | ------------------------------------

2020-09-09 06:35:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef",
    "item-id": "item-3481d52c-ba56-4957-bc73-793f411c656e"
}

2020-09-09 06:35:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef",
    "item-id": "item-3481d52c-ba56-4957-bc73-793f411c656e",
    "item": [
        "<item id=\"item-3481d52c-ba56-4957-bc73-793f411c656e\"><test>item-3481d52c-ba56-4957-bc73-793f411c656e</test></item>"
    ]
}

2020-09-09 06:35:56 | [Mutex] notify: [retrieved:item:item-3481d52c-ba56-4957-bc73-793f411c656e:payload-matches:true:localhost]

2020-09-09 06:35:56 | [Mutex] received everything.

2020-09-09 06:35:56 | [Mutex] isItemNotified: retrieved:item:item-3481d52c-ba56-4957-bc73-793f411c656e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-09 06:35:56 |

2020-09-09 06:35:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:56 | ------------------------------------

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

2020-09-09 06:35:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef",
        "node-df084cec-e8bf-4391-a04b-9ed01aa199db"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-09-09 06:35:56 |

2020-09-09 06:35:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:56 | ------------------------------------

2020-09-09 06:35:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef)"
}

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

subscribeNodes 1.010s
2020-09-09 06:35:55 |

2020-09-09 06:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:55 | ------------------------------------

2020-09-09 06:35:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-09 06:35:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2020-09-09 06:35:57 |

2020-09-09 06:35:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:35:57 | ------------------------------------

2020-09-09 06:35:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bf4bc10d-addc-48ce-81f3-ee32f5d275ef",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-09 06:35:57 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}