Generated by TestNG with ReportNG at 16:12 PDT on Friday 25 September 2020
root@0a7dacfb9e9e / 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.165s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2020-09-25 16:30:24 |

2020-09-25 16:30:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:24 | ------------------------------------

2020-09-25 16:30:24 | [Mutex] waiting for: [configured:node:node-ed955a43-9f3b-424b-819b-91d1d2501004:node-52af17d8-7598-4713-a015-53f696f0094c]

2020-09-25 16:30:24 | [Mutex] received everything.

2020-09-25 16:30:24 | [Mutex] isItemNotified: configured:node:node-ed955a43-9f3b-424b-819b-91d1d2501004:node-52af17d8-7598-4713-a015-53f696f0094c :: true

2020-09-25 16:30:25 | [Mutex] waiting for: [received:nodes:bc9f9800-59de-4a90-9407-acc448851e14:localhost]

2020-09-25 16:30:25 | [Mutex] received everything.

2020-09-25 16:30:25 | [Mutex] isItemNotified: received:node:bc9f9800-59de-4a90-9407-acc448851e14:localhost:node-ed955a43-9f3b-424b-819b-91d1d2501004:Node ed955a43-9f3b-424b-819b-91d1d2501004 :: true

2020-09-25 16:30:25 | [Mutex] waiting for: [received:nodes:dcff5dba-7c47-418f-8c41-de0e46dc16f1:localhost]

2020-09-25 16:30:25 | [Mutex] received everything.

2020-09-25 16:30:25 | [Mutex] isItemNotified: received:node:dcff5dba-7c47-418f-8c41-de0e46dc16f1:localhost:node-ed955a43-9f3b-424b-819b-91d1d2501004:Node ed955a43-9f3b-424b-819b-91d1d2501004 :: false

createNodes 1.789s
2020-09-25 16:30:21 |

2020-09-25 16:30:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:21 | ------------------------------------

2020-09-25 16:30:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ed955a43-9f3b-424b-819b-91d1d2501004",
    "pubsub#title": "Node ed955a43-9f3b-424b-819b-91d1d2501004"
}

2020-09-25 16:30:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:30:23 | [Mutex] waiting for: [received:nodes:3321ad17-e442-4f57-8bd1-ce21d8062578:localhost]

2020-09-25 16:30:23 | [Mutex] waiting for: [received:nodes:3321ad17-e442-4f57-8bd1-ce21d8062578:localhost]

2020-09-25 16:30:23 | [Mutex] received everything.

2020-09-25 16:30:23 | [Mutex] isItemNotified: received:node:3321ad17-e442-4f57-8bd1-ce21d8062578:localhost:node-ed955a43-9f3b-424b-819b-91d1d2501004:Node ed955a43-9f3b-424b-819b-91d1d2501004 :: true

createSubnodes 1.032s
2020-09-25 16:30:23 |

2020-09-25 16:30:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:23 | ------------------------------------

2020-09-25 16:30:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-52af17d8-7598-4713-a015-53f696f0094c",
    "pubsub#title": "Node 52af17d8-7598-4713-a015-53f696f0094c"
}

2020-09-25 16:30:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:30:24 | [Mutex] waiting for: [received:nodes:0f7ee49b-bcaf-4ef5-a618-6f521871cc76:localhost]

2020-09-25 16:30:24 | [Mutex] received everything.

2020-09-25 16:30:24 | [Mutex] isItemNotified: received:node:0f7ee49b-bcaf-4ef5-a618-6f521871cc76:localhost:node-52af17d8-7598-4713-a015-53f696f0094c:Node 52af17d8-7598-4713-a015-53f696f0094c :: true

deleteNodes 1.022s
2020-09-25 16:30:29 |

2020-09-25 16:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:29 | ------------------------------------

2020-09-25 16:30:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-52af17d8-7598-4713-a015-53f696f0094c"
}

2020-09-25 16:30:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:30:30 | [Mutex] waiting for: [received:nodes:965871b0-a5a0-45bd-afed-21f300496b3d:localhost]

2020-09-25 16:30:30 | [Mutex] received everything.

2020-09-25 16:30:30 | [Mutex] isItemNotified: received:node:965871b0-a5a0-45bd-afed-21f300496b3d:localhost:node-52af17d8-7598-4713-a015-53f696f0094c:Node 52af17d8-7598-4713-a015-53f696f0094c :: false

deleteSubnodes 1.030s
2020-09-25 16:30:28 |

2020-09-25 16:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:28 | ------------------------------------

2020-09-25 16:30:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ed955a43-9f3b-424b-819b-91d1d2501004"
}

2020-09-25 16:30:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:30:29 | [Mutex] waiting for: [received:nodes:e4c2c52e-e180-40a4-9a5b-047311f3a6cd:localhost]

2020-09-25 16:30:29 | [Mutex] received everything.

2020-09-25 16:30:29 | [Mutex] isItemNotified: received:node:e4c2c52e-e180-40a4-9a5b-047311f3a6cd:localhost:node-ed955a43-9f3b-424b-819b-91d1d2501004:Node ed955a43-9f3b-424b-819b-91d1d2501004 :: false

2020-09-25 16:30:29 | [Mutex] waiting for: [received:nodes:0a49b495-1bf0-4bb4-8875-dc96ce4d6012:localhost]

2020-09-25 16:30:29 | [Mutex] received everything.

2020-09-25 16:30:29 | [Mutex] isItemNotified: received:node:0a49b495-1bf0-4bb4-8875-dc96ce4d6012:localhost:node-ed955a43-9f3b-424b-819b-91d1d2501004:Node ed955a43-9f3b-424b-819b-91d1d2501004 :: false

publishItemsToNodes 0.036s
2020-09-25 16:30:26 |

2020-09-25 16:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:26 | ------------------------------------

2020-09-25 16:30:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ed955a43-9f3b-424b-819b-91d1d2501004",
    "entry": "<test>item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4</test>",
    "item-id": "item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4"
}

2020-09-25 16:30:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4"
}

2020-09-25 16:30:26 | [Mutex] waiting for: [published:item:notifieditem-b4664e96-c6a4-4615-898c-dc7f7bc89fc4:admin@test-domain.com]

2020-09-25 16:30:26 | [Mutex] received everything.

2020-09-25 16:30:26 | [Mutex] isItemNotified: published:item:notifieditem-b4664e96-c6a4-4615-898c-dc7f7bc89fc4:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-09-25 16:30:27 |

2020-09-25 16:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:27 | ------------------------------------

2020-09-25 16:30:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ed955a43-9f3b-424b-819b-91d1d2501004",
    "item-id": "item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4"
}

2020-09-25 16:30:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4"
}

2020-09-25 16:30:27 | [Mutex] received everything.

2020-09-25 16:30:27 | [Mutex] isItemNotified: retracted:item:notifieditem-b4664e96-c6a4-4615-898c-dc7f7bc89fc4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.120s
2020-09-25 16:30:26 |

2020-09-25 16:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:26 | ------------------------------------

2020-09-25 16:30:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ed955a43-9f3b-424b-819b-91d1d2501004",
    "item-id": "item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4"
}

2020-09-25 16:30:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ed955a43-9f3b-424b-819b-91d1d2501004",
    "item-id": "item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4",
    "item": [
        "<item id=\"item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4\"><test>item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4</test></item>"
    ]
}

2020-09-25 16:30:27 | [Mutex] notify: [retrieved:item:item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4:payload-matches:true:localhost]

2020-09-25 16:30:27 | [Mutex] received everything.

2020-09-25 16:30:27 | [Mutex] isItemNotified: retrieved:item:item-b4664e96-c6a4-4615-898c-dc7f7bc89fc4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-09-25 16:30:27 |

2020-09-25 16:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:27 | ------------------------------------

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

2020-09-25 16:30:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-52af17d8-7598-4713-a015-53f696f0094c",
        "test",
        "node-ed955a43-9f3b-424b-819b-91d1d2501004"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2020-09-25 16:30:27 |

2020-09-25 16:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:27 | ------------------------------------

2020-09-25 16:30:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ed955a43-9f3b-424b-819b-91d1d2501004)"
}

2020-09-25 16:30:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-09-25 16:30:25 |

2020-09-25 16:30:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:25 | ------------------------------------

2020-09-25 16:30:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ed955a43-9f3b-424b-819b-91d1d2501004",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 16:30:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-25 16:30:27 |

2020-09-25 16:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:27 | ------------------------------------

2020-09-25 16:30:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ed955a43-9f3b-424b-819b-91d1d2501004",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 16:30:27 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}