Generated by TestNG with ReportNG at 01:23 PDT on Friday 18 September 2020
root@f53a97fae7d2 / 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.085s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2020-09-18 01:38:39 |

2020-09-18 01:38:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:39 | ------------------------------------

2020-09-18 01:38:39 | [Mutex] waiting for: [configured:node:node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987:node-a60a191d-f375-4e82-ad7b-559d46547ef1]

2020-09-18 01:38:40 | [Mutex] received everything.

2020-09-18 01:38:40 | [Mutex] isItemNotified: configured:node:node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987:node-a60a191d-f375-4e82-ad7b-559d46547ef1 :: true

2020-09-18 01:38:41 | [Mutex] waiting for: [received:nodes:11a3cb43-9906-4c34-a72f-9c273f07f60e:localhost]

2020-09-18 01:38:41 | [Mutex] received everything.

2020-09-18 01:38:41 | [Mutex] isItemNotified: received:node:11a3cb43-9906-4c34-a72f-9c273f07f60e:localhost:node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987:Node acbb8e07-8317-41a9-9bfa-b4b0e7ea2987 :: true

2020-09-18 01:38:41 | [Mutex] waiting for: [received:nodes:dc64cb5f-3a0a-4162-a554-fad394747fd1:localhost]

2020-09-18 01:38:41 | [Mutex] received everything.

2020-09-18 01:38:41 | [Mutex] isItemNotified: received:node:dc64cb5f-3a0a-4162-a554-fad394747fd1:localhost:node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987:Node acbb8e07-8317-41a9-9bfa-b4b0e7ea2987 :: false

createNodes 1.872s
2020-09-18 01:38:37 |

2020-09-18 01:38:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:37 | ------------------------------------

2020-09-18 01:38:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987",
    "pubsub#title": "Node acbb8e07-8317-41a9-9bfa-b4b0e7ea2987"
}

2020-09-18 01:38:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 01:38:38 | [Mutex] waiting for: [received:nodes:7a9ee7d6-95e9-4f3d-ae34-2fdbe1e5359b:localhost]

2020-09-18 01:38:38 | [Mutex] received everything.

2020-09-18 01:38:38 | [Mutex] isItemNotified: received:node:7a9ee7d6-95e9-4f3d-ae34-2fdbe1e5359b:localhost:node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987:Node acbb8e07-8317-41a9-9bfa-b4b0e7ea2987 :: true

createSubnodes 1.053s
2020-09-18 01:38:38 |

2020-09-18 01:38:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:38 | ------------------------------------

2020-09-18 01:38:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a60a191d-f375-4e82-ad7b-559d46547ef1",
    "pubsub#title": "Node a60a191d-f375-4e82-ad7b-559d46547ef1"
}

2020-09-18 01:38:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 01:38:39 | [Mutex] waiting for: [received:nodes:293f4cb3-9353-43d2-b7d3-c6be78abb0cb:localhost]

2020-09-18 01:38:39 | [Mutex] waiting for: [received:nodes:293f4cb3-9353-43d2-b7d3-c6be78abb0cb:localhost]

2020-09-18 01:38:39 | [Mutex] received everything.

2020-09-18 01:38:39 | [Mutex] isItemNotified: received:node:293f4cb3-9353-43d2-b7d3-c6be78abb0cb:localhost:node-a60a191d-f375-4e82-ad7b-559d46547ef1:Node a60a191d-f375-4e82-ad7b-559d46547ef1 :: true

deleteNodes 1.022s
2020-09-18 01:38:44 |

2020-09-18 01:38:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:44 | ------------------------------------

2020-09-18 01:38:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a60a191d-f375-4e82-ad7b-559d46547ef1"
}

2020-09-18 01:38:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 01:38:45 | [Mutex] waiting for: [received:nodes:115a980c-8ae8-4f4d-8a63-d42103a09955:localhost]

2020-09-18 01:38:45 | [Mutex] received everything.

2020-09-18 01:38:45 | [Mutex] isItemNotified: received:node:115a980c-8ae8-4f4d-8a63-d42103a09955:localhost:node-a60a191d-f375-4e82-ad7b-559d46547ef1:Node a60a191d-f375-4e82-ad7b-559d46547ef1 :: false

deleteSubnodes 1.026s
2020-09-18 01:38:43 |

2020-09-18 01:38:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:43 | ------------------------------------

2020-09-18 01:38:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987"
}

2020-09-18 01:38:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 01:38:44 | [Mutex] waiting for: [received:nodes:63a06c1b-43c0-4cf9-8ea7-2f96184ab7d4:localhost]

2020-09-18 01:38:44 | [Mutex] waiting for: [received:nodes:63a06c1b-43c0-4cf9-8ea7-2f96184ab7d4:localhost]

2020-09-18 01:38:44 | [Mutex] waiting for: [received:nodes:63a06c1b-43c0-4cf9-8ea7-2f96184ab7d4:localhost]

2020-09-18 01:38:44 | [Mutex] received everything.

2020-09-18 01:38:44 | [Mutex] isItemNotified: received:node:63a06c1b-43c0-4cf9-8ea7-2f96184ab7d4:localhost:node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987:Node acbb8e07-8317-41a9-9bfa-b4b0e7ea2987 :: false

2020-09-18 01:38:44 | [Mutex] waiting for: [received:nodes:1a0fa33c-10d4-46cf-ab9d-069d7f5839eb:localhost]

2020-09-18 01:38:44 | [Mutex] received everything.

2020-09-18 01:38:44 | [Mutex] isItemNotified: received:node:1a0fa33c-10d4-46cf-ab9d-069d7f5839eb:localhost:node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987:Node acbb8e07-8317-41a9-9bfa-b4b0e7ea2987 :: false

publishItemsToNodes 0.046s
2020-09-18 01:38:42 |

2020-09-18 01:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:42 | ------------------------------------

2020-09-18 01:38:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987",
    "entry": "<test>item-254f227d-176b-46a4-a20e-fca7392c2a4f</test>",
    "item-id": "item-254f227d-176b-46a4-a20e-fca7392c2a4f"
}

2020-09-18 01:38:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-254f227d-176b-46a4-a20e-fca7392c2a4f"
}

2020-09-18 01:38:42 | [Mutex] waiting for: [published:item:notifieditem-254f227d-176b-46a4-a20e-fca7392c2a4f:admin@test-domain.com]

2020-09-18 01:38:42 | [Mutex] received everything.

2020-09-18 01:38:42 | [Mutex] isItemNotified: published:item:notifieditem-254f227d-176b-46a4-a20e-fca7392c2a4f:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2020-09-18 01:38:42 |

2020-09-18 01:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:42 | ------------------------------------

2020-09-18 01:38:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987",
    "item-id": "item-254f227d-176b-46a4-a20e-fca7392c2a4f"
}

2020-09-18 01:38:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-254f227d-176b-46a4-a20e-fca7392c2a4f"
}

2020-09-18 01:38:42 | [Mutex] received everything.

2020-09-18 01:38:42 | [Mutex] isItemNotified: retracted:item:notifieditem-254f227d-176b-46a4-a20e-fca7392c2a4f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2020-09-18 01:38:42 |

2020-09-18 01:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:42 | ------------------------------------

2020-09-18 01:38:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987",
    "item-id": "item-254f227d-176b-46a4-a20e-fca7392c2a4f"
}

2020-09-18 01:38:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987",
    "item-id": "item-254f227d-176b-46a4-a20e-fca7392c2a4f",
    "item": [
        "<item id=\"item-254f227d-176b-46a4-a20e-fca7392c2a4f\"><test>item-254f227d-176b-46a4-a20e-fca7392c2a4f</test></item>"
    ]
}

2020-09-18 01:38:42 | [Mutex] notify: [retrieved:item:item-254f227d-176b-46a4-a20e-fca7392c2a4f:payload-matches:true:localhost]

2020-09-18 01:38:42 | [Mutex] received everything.

2020-09-18 01:38:42 | [Mutex] isItemNotified: retrieved:item:item-254f227d-176b-46a4-a20e-fca7392c2a4f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2020-09-18 01:38:42 |

2020-09-18 01:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:42 | ------------------------------------

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

2020-09-18 01:38:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a60a191d-f375-4e82-ad7b-559d46547ef1",
        "node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-18 01:38:42 |

2020-09-18 01:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:42 | ------------------------------------

2020-09-18 01:38:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987)"
}

2020-09-18 01:38:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-09-18 01:38:41 |

2020-09-18 01:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:41 | ------------------------------------

2020-09-18 01:38:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 01:38:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-09-18 01:38:42 |

2020-09-18 01:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:38:42 | ------------------------------------

2020-09-18 01:38:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-acbb8e07-8317-41a9-9bfa-b4b0e7ea2987",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 01:38:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}