Generated by TestNG with ReportNG at 21:14 PST on Sunday 03 January 2021
root@eaa73862192b / 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.253s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.130s
2021-01-03 21:35:42 |

2021-01-03 21:35:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:42 | ------------------------------------

2021-01-03 21:35:42 | [Mutex] waiting for: [configured:node:node-4cc553b0-6075-406f-b865-ed61d06c0466:node-88dc0cd6-9094-4b3d-97db-cf42c6474f74]

2021-01-03 21:35:42 | [Mutex] received everything.

2021-01-03 21:35:42 | [Mutex] isItemNotified: configured:node:node-4cc553b0-6075-406f-b865-ed61d06c0466:node-88dc0cd6-9094-4b3d-97db-cf42c6474f74 :: true

2021-01-03 21:35:43 | [Mutex] waiting for: [received:nodes:bb11af58-390a-4de1-bad2-a688303138fc:localhost]

2021-01-03 21:35:43 | [Mutex] waiting for: [received:nodes:bb11af58-390a-4de1-bad2-a688303138fc:localhost]

2021-01-03 21:35:43 | [Mutex] received everything.

2021-01-03 21:35:43 | [Mutex] isItemNotified: received:node:bb11af58-390a-4de1-bad2-a688303138fc:localhost:node-4cc553b0-6075-406f-b865-ed61d06c0466:Node 4cc553b0-6075-406f-b865-ed61d06c0466 :: true

2021-01-03 21:35:43 | [Mutex] waiting for: [received:nodes:ee30ae39-158b-4d77-818b-8084d6096727:localhost]

2021-01-03 21:35:43 | [Mutex] received everything.

2021-01-03 21:35:43 | [Mutex] isItemNotified: received:node:ee30ae39-158b-4d77-818b-8084d6096727:localhost:node-4cc553b0-6075-406f-b865-ed61d06c0466:Node 4cc553b0-6075-406f-b865-ed61d06c0466 :: false

createNodes 1.911s
2021-01-03 21:35:39 |

2021-01-03 21:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:39 | ------------------------------------

2021-01-03 21:35:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4cc553b0-6075-406f-b865-ed61d06c0466",
    "pubsub#title": "Node 4cc553b0-6075-406f-b865-ed61d06c0466"
}

2021-01-03 21:35:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-03 21:35:41 | [Mutex] waiting for: [received:nodes:0f94f712-520b-4a4c-b859-be2b53c353aa:localhost]

2021-01-03 21:35:41 | [Mutex] waiting for: [received:nodes:0f94f712-520b-4a4c-b859-be2b53c353aa:localhost]

2021-01-03 21:35:41 | [Mutex] received everything.

2021-01-03 21:35:41 | [Mutex] isItemNotified: received:node:0f94f712-520b-4a4c-b859-be2b53c353aa:localhost:node-4cc553b0-6075-406f-b865-ed61d06c0466:Node 4cc553b0-6075-406f-b865-ed61d06c0466 :: true

createSubnodes 1.025s
2021-01-03 21:35:41 |

2021-01-03 21:35:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:41 | ------------------------------------

2021-01-03 21:35:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-88dc0cd6-9094-4b3d-97db-cf42c6474f74",
    "pubsub#title": "Node 88dc0cd6-9094-4b3d-97db-cf42c6474f74"
}

2021-01-03 21:35:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-03 21:35:42 | [Mutex] waiting for: [received:nodes:9a51641d-9e28-481c-aa08-a60539fbb7cf:localhost]

2021-01-03 21:35:42 | [Mutex] received everything.

2021-01-03 21:35:42 | [Mutex] isItemNotified: received:node:9a51641d-9e28-481c-aa08-a60539fbb7cf:localhost:node-88dc0cd6-9094-4b3d-97db-cf42c6474f74:Node 88dc0cd6-9094-4b3d-97db-cf42c6474f74 :: true

deleteNodes 1.023s
2021-01-03 21:35:46 |

2021-01-03 21:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:46 | ------------------------------------

2021-01-03 21:35:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-88dc0cd6-9094-4b3d-97db-cf42c6474f74"
}

2021-01-03 21:35:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-03 21:35:47 | [Mutex] waiting for: [received:nodes:4ea49031-0bfb-4999-8804-b3d400d4f147:localhost]

2021-01-03 21:35:47 | [Mutex] received everything.

2021-01-03 21:35:47 | [Mutex] isItemNotified: received:node:4ea49031-0bfb-4999-8804-b3d400d4f147:localhost:node-88dc0cd6-9094-4b3d-97db-cf42c6474f74:Node 88dc0cd6-9094-4b3d-97db-cf42c6474f74 :: false

deleteSubnodes 1.026s
2021-01-03 21:35:45 |

2021-01-03 21:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:45 | ------------------------------------

2021-01-03 21:35:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4cc553b0-6075-406f-b865-ed61d06c0466"
}

2021-01-03 21:35:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-03 21:35:46 | [Mutex] waiting for: [received:nodes:b9bf96d2-ba0a-471d-9c2c-2e8964b17bed:localhost]

2021-01-03 21:35:46 | [Mutex] received everything.

2021-01-03 21:35:46 | [Mutex] isItemNotified: received:node:b9bf96d2-ba0a-471d-9c2c-2e8964b17bed:localhost:node-4cc553b0-6075-406f-b865-ed61d06c0466:Node 4cc553b0-6075-406f-b865-ed61d06c0466 :: false

2021-01-03 21:35:46 | [Mutex] waiting for: [received:nodes:c5bb4d06-9228-4ee0-b669-1be99e4ee673:localhost]

2021-01-03 21:35:46 | [Mutex] received everything.

2021-01-03 21:35:46 | [Mutex] isItemNotified: received:node:c5bb4d06-9228-4ee0-b669-1be99e4ee673:localhost:node-4cc553b0-6075-406f-b865-ed61d06c0466:Node 4cc553b0-6075-406f-b865-ed61d06c0466 :: false

publishItemsToNodes 0.038s
2021-01-03 21:35:44 |

2021-01-03 21:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:44 | ------------------------------------

2021-01-03 21:35:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4cc553b0-6075-406f-b865-ed61d06c0466",
    "entry": "<test>item-58eae688-699d-49e1-ac40-76e074b02e3f</test>",
    "item-id": "item-58eae688-699d-49e1-ac40-76e074b02e3f"
}

2021-01-03 21:35:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-58eae688-699d-49e1-ac40-76e074b02e3f"
}

2021-01-03 21:35:44 | [Mutex] waiting for: [published:item:notifieditem-58eae688-699d-49e1-ac40-76e074b02e3f:admin@test-domain.com]

2021-01-03 21:35:44 | [Mutex] received everything.

2021-01-03 21:35:44 | [Mutex] isItemNotified: published:item:notifieditem-58eae688-699d-49e1-ac40-76e074b02e3f:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-01-03 21:35:44 |

2021-01-03 21:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:44 | ------------------------------------

2021-01-03 21:35:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4cc553b0-6075-406f-b865-ed61d06c0466",
    "item-id": "item-58eae688-699d-49e1-ac40-76e074b02e3f"
}

2021-01-03 21:35:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-58eae688-699d-49e1-ac40-76e074b02e3f"
}

2021-01-03 21:35:44 | [Mutex] received everything.

2021-01-03 21:35:44 | [Mutex] isItemNotified: retracted:item:notifieditem-58eae688-699d-49e1-ac40-76e074b02e3f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.078s
2021-01-03 21:35:44 |

2021-01-03 21:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:44 | ------------------------------------

2021-01-03 21:35:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4cc553b0-6075-406f-b865-ed61d06c0466",
    "item-id": "item-58eae688-699d-49e1-ac40-76e074b02e3f"
}

2021-01-03 21:35:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4cc553b0-6075-406f-b865-ed61d06c0466",
    "item-id": "item-58eae688-699d-49e1-ac40-76e074b02e3f",
    "item": [
        "<item id=\"item-58eae688-699d-49e1-ac40-76e074b02e3f\"><test>item-58eae688-699d-49e1-ac40-76e074b02e3f</test></item>"
    ]
}

2021-01-03 21:35:44 | [Mutex] notify: [retrieved:item:item-58eae688-699d-49e1-ac40-76e074b02e3f:payload-matches:true:localhost]

2021-01-03 21:35:44 | [Mutex] received everything.

2021-01-03 21:35:44 | [Mutex] isItemNotified: retrieved:item:item-58eae688-699d-49e1-ac40-76e074b02e3f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-01-03 21:35:44 |

2021-01-03 21:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:44 | ------------------------------------

2021-01-03 21:35:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-03 21:35:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-88dc0cd6-9094-4b3d-97db-cf42c6474f74",
        "node-4cc553b0-6075-406f-b865-ed61d06c0466"
    ]
}

retrieveUserSubscriptionsWithRegex 0.071s
2021-01-03 21:35:44 |

2021-01-03 21:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:44 | ------------------------------------

2021-01-03 21:35:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4cc553b0-6075-406f-b865-ed61d06c0466)"
}

2021-01-03 21:35:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-01-03 21:35:43 |

2021-01-03 21:35:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:43 | ------------------------------------

2021-01-03 21:35:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4cc553b0-6075-406f-b865-ed61d06c0466",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-03 21:35:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2021-01-03 21:35:44 |

2021-01-03 21:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-03 21:35:44 | ------------------------------------

2021-01-03 21:35:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4cc553b0-6075-406f-b865-ed61d06c0466",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-03 21:35:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}