Generated by TestNG with ReportNG at 22:13 PDT on Sunday 11 October 2020
root@87f6aca6b6f2 / 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.088s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2020-10-11 22:29:50 |

2020-10-11 22:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:50 | ------------------------------------

2020-10-11 22:29:50 | [Mutex] waiting for: [configured:node:node-182be0aa-8a60-4fef-9923-5b262e195824:node-101829fb-212a-41b5-9ea1-9498e8a58feb]

2020-10-11 22:29:50 | [Mutex] received everything.

2020-10-11 22:29:50 | [Mutex] isItemNotified: configured:node:node-182be0aa-8a60-4fef-9923-5b262e195824:node-101829fb-212a-41b5-9ea1-9498e8a58feb :: true

2020-10-11 22:29:51 | [Mutex] waiting for: [received:nodes:9b3a648d-6994-47bf-9ea0-8f9e72a4f2e5:localhost]

2020-10-11 22:29:51 | [Mutex] received everything.

2020-10-11 22:29:51 | [Mutex] isItemNotified: received:node:9b3a648d-6994-47bf-9ea0-8f9e72a4f2e5:localhost:node-182be0aa-8a60-4fef-9923-5b262e195824:Node 182be0aa-8a60-4fef-9923-5b262e195824 :: true

2020-10-11 22:29:51 | [Mutex] waiting for: [received:nodes:c8c75605-8654-463b-9c31-319418ff70b7:localhost]

2020-10-11 22:29:51 | [Mutex] received everything.

2020-10-11 22:29:51 | [Mutex] isItemNotified: received:node:c8c75605-8654-463b-9c31-319418ff70b7:localhost:node-182be0aa-8a60-4fef-9923-5b262e195824:Node 182be0aa-8a60-4fef-9923-5b262e195824 :: false

createNodes 1.684s
2020-10-11 22:29:47 |

2020-10-11 22:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:47 | ------------------------------------

2020-10-11 22:29:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-182be0aa-8a60-4fef-9923-5b262e195824",
    "pubsub#title": "Node 182be0aa-8a60-4fef-9923-5b262e195824"
}

2020-10-11 22:29:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-11 22:29:49 | [Mutex] waiting for: [received:nodes:159b02e8-1c10-4752-b2c2-ff5ab514fb66:localhost]

2020-10-11 22:29:49 | [Mutex] waiting for: [received:nodes:159b02e8-1c10-4752-b2c2-ff5ab514fb66:localhost]

2020-10-11 22:29:49 | [Mutex] received everything.

2020-10-11 22:29:49 | [Mutex] isItemNotified: received:node:159b02e8-1c10-4752-b2c2-ff5ab514fb66:localhost:node-182be0aa-8a60-4fef-9923-5b262e195824:Node 182be0aa-8a60-4fef-9923-5b262e195824 :: true

createSubnodes 1.036s
2020-10-11 22:29:49 |

2020-10-11 22:29:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:49 | ------------------------------------

2020-10-11 22:29:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-101829fb-212a-41b5-9ea1-9498e8a58feb",
    "pubsub#title": "Node 101829fb-212a-41b5-9ea1-9498e8a58feb"
}

2020-10-11 22:29:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-11 22:29:50 | [Mutex] waiting for: [received:nodes:98341a05-7930-4c3f-8874-9d455398c952:localhost]

2020-10-11 22:29:50 | [Mutex] received everything.

2020-10-11 22:29:50 | [Mutex] isItemNotified: received:node:98341a05-7930-4c3f-8874-9d455398c952:localhost:node-101829fb-212a-41b5-9ea1-9498e8a58feb:Node 101829fb-212a-41b5-9ea1-9498e8a58feb :: true

deleteNodes 1.025s
2020-10-11 22:29:54 |

2020-10-11 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:54 | ------------------------------------

2020-10-11 22:29:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-101829fb-212a-41b5-9ea1-9498e8a58feb"
}

2020-10-11 22:29:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-11 22:29:55 | [Mutex] waiting for: [received:nodes:3e6f2fd7-74c6-47cd-9139-1d4ac5bd0463:localhost]

2020-10-11 22:29:55 | [Mutex] waiting for: [received:nodes:3e6f2fd7-74c6-47cd-9139-1d4ac5bd0463:localhost]

2020-10-11 22:29:55 | [Mutex] received everything.

2020-10-11 22:29:55 | [Mutex] isItemNotified: received:node:3e6f2fd7-74c6-47cd-9139-1d4ac5bd0463:localhost:node-101829fb-212a-41b5-9ea1-9498e8a58feb:Node 101829fb-212a-41b5-9ea1-9498e8a58feb :: false

deleteSubnodes 1.036s
2020-10-11 22:29:53 |

2020-10-11 22:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:53 | ------------------------------------

2020-10-11 22:29:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-182be0aa-8a60-4fef-9923-5b262e195824"
}

2020-10-11 22:29:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-11 22:29:54 | [Mutex] waiting for: [received:nodes:5f388f25-066e-4837-80ed-10c97aa830b0:localhost]

2020-10-11 22:29:54 | [Mutex] waiting for: [received:nodes:5f388f25-066e-4837-80ed-10c97aa830b0:localhost]

2020-10-11 22:29:54 | [Mutex] received everything.

2020-10-11 22:29:54 | [Mutex] isItemNotified: received:node:5f388f25-066e-4837-80ed-10c97aa830b0:localhost:node-182be0aa-8a60-4fef-9923-5b262e195824:Node 182be0aa-8a60-4fef-9923-5b262e195824 :: false

2020-10-11 22:29:54 | [Mutex] waiting for: [received:nodes:41672d46-ef9d-4766-b6ad-1073b51542f9:localhost]

2020-10-11 22:29:54 | [Mutex] received everything.

2020-10-11 22:29:54 | [Mutex] isItemNotified: received:node:41672d46-ef9d-4766-b6ad-1073b51542f9:localhost:node-182be0aa-8a60-4fef-9923-5b262e195824:Node 182be0aa-8a60-4fef-9923-5b262e195824 :: false

publishItemsToNodes 0.078s
2020-10-11 22:29:52 |

2020-10-11 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:52 | ------------------------------------

2020-10-11 22:29:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-182be0aa-8a60-4fef-9923-5b262e195824",
    "entry": "<test>item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355</test>",
    "item-id": "item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355"
}

2020-10-11 22:29:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355"
}

2020-10-11 22:29:52 | [Mutex] waiting for: [published:item:notifieditem-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355:admin@test-domain.com]

2020-10-11 22:29:52 | [Mutex] received everything.

2020-10-11 22:29:52 | [Mutex] isItemNotified: published:item:notifieditem-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355:admin@test-domain.com :: true

retractItemsFromNodes 0.108s
2020-10-11 22:29:52 |

2020-10-11 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:52 | ------------------------------------

2020-10-11 22:29:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-182be0aa-8a60-4fef-9923-5b262e195824",
    "item-id": "item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355"
}

2020-10-11 22:29:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355"
}

2020-10-11 22:29:52 | [Mutex] waiting for: [retracted:item:notifieditem-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355:admin@test-domain.com]

2020-10-11 22:29:52 | [Mutex] received everything.

2020-10-11 22:29:52 | [Mutex] isItemNotified: retracted:item:notifieditem-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355:admin@test-domain.com :: true

retrieveItemsFromNodes 0.025s
2020-10-11 22:29:52 |

2020-10-11 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:52 | ------------------------------------

2020-10-11 22:29:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-182be0aa-8a60-4fef-9923-5b262e195824",
    "item-id": "item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355"
}

2020-10-11 22:29:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-182be0aa-8a60-4fef-9923-5b262e195824",
    "item-id": "item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355",
    "item": [
        "<item id=\"item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355\"><test>item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355</test></item>"
    ]
}

2020-10-11 22:29:52 | [Mutex] notify: [retrieved:item:item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355:payload-matches:true:localhost]

2020-10-11 22:29:52 | [Mutex] received everything.

2020-10-11 22:29:52 | [Mutex] isItemNotified: retrieved:item:item-c8fac2e4-821e-49e7-8da3-9e5cb9eb5355:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2020-10-11 22:29:52 |

2020-10-11 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:52 | ------------------------------------

2020-10-11 22:29:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-11 22:29:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-182be0aa-8a60-4fef-9923-5b262e195824",
        "test",
        "node-101829fb-212a-41b5-9ea1-9498e8a58feb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-11 22:29:52 |

2020-10-11 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:52 | ------------------------------------

2020-10-11 22:29:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-182be0aa-8a60-4fef-9923-5b262e195824)"
}

2020-10-11 22:29:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2020-10-11 22:29:51 |

2020-10-11 22:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:51 | ------------------------------------

2020-10-11 22:29:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-182be0aa-8a60-4fef-9923-5b262e195824",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-11 22:29:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.032s
2020-10-11 22:29:52 |

2020-10-11 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:52 | ------------------------------------

2020-10-11 22:29:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-182be0aa-8a60-4fef-9923-5b262e195824",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-11 22:29:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}