Generated by TestNG with ReportNG at 22:06 PST on Monday 06 December 2021
root@785cf647a4ab / 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.212s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.036s
2021-12-06 22:25:35 |

2021-12-06 22:25:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:35 | ------------------------------------

2021-12-06 22:25:35 | [Mutex] waiting for: [configured:node:node-524421f4-69da-4816-be78-4e19d296083e:node-8cf061ca-1a6a-489d-96d2-55b2970ae494]

2021-12-06 22:25:35 | [Mutex] received everything.

2021-12-06 22:25:35 | [Mutex] isItemNotified: configured:node:node-524421f4-69da-4816-be78-4e19d296083e:node-8cf061ca-1a6a-489d-96d2-55b2970ae494 :: true

2021-12-06 22:25:36 | [Mutex] waiting for: [received:nodes:10d5c39d-1a7d-48c4-bb46-193a0781d9ce:localhost]

2021-12-06 22:25:36 | [Mutex] received everything.

2021-12-06 22:25:36 | [Mutex] isItemNotified: received:node:10d5c39d-1a7d-48c4-bb46-193a0781d9ce:localhost:node-524421f4-69da-4816-be78-4e19d296083e:Node 524421f4-69da-4816-be78-4e19d296083e :: true

2021-12-06 22:25:36 | [Mutex] waiting for: [received:nodes:8bfa9df3-08b0-4e1c-a3f9-3c8ff36e3445:localhost]

2021-12-06 22:25:36 | [Mutex] waiting for: [received:nodes:8bfa9df3-08b0-4e1c-a3f9-3c8ff36e3445:localhost]

2021-12-06 22:25:36 | [Mutex] received everything.

2021-12-06 22:25:36 | [Mutex] isItemNotified: received:node:8bfa9df3-08b0-4e1c-a3f9-3c8ff36e3445:localhost:node-524421f4-69da-4816-be78-4e19d296083e:Node 524421f4-69da-4816-be78-4e19d296083e :: false

createNodes 1.989s
2021-12-06 22:25:32 |

2021-12-06 22:25:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:32 | ------------------------------------

2021-12-06 22:25:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-524421f4-69da-4816-be78-4e19d296083e",
    "pubsub#title": "Node 524421f4-69da-4816-be78-4e19d296083e"
}

2021-12-06 22:25:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-06 22:25:34 | [Mutex] waiting for: [received:nodes:042d968c-d46a-4294-be81-a653aade7b89:localhost]

2021-12-06 22:25:34 | [Mutex] waiting for: [received:nodes:042d968c-d46a-4294-be81-a653aade7b89:localhost]

2021-12-06 22:25:34 | [Mutex] received everything.

2021-12-06 22:25:34 | [Mutex] isItemNotified: received:node:042d968c-d46a-4294-be81-a653aade7b89:localhost:node-524421f4-69da-4816-be78-4e19d296083e:Node 524421f4-69da-4816-be78-4e19d296083e :: true

createSubnodes 1.023s
2021-12-06 22:25:34 |

2021-12-06 22:25:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:34 | ------------------------------------

2021-12-06 22:25:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8cf061ca-1a6a-489d-96d2-55b2970ae494",
    "pubsub#title": "Node 8cf061ca-1a6a-489d-96d2-55b2970ae494"
}

2021-12-06 22:25:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-06 22:25:35 | [Mutex] waiting for: [received:nodes:b60c65a4-d45d-4c63-8d95-1400ec0db442:localhost]

2021-12-06 22:25:35 | [Mutex] received everything.

2021-12-06 22:25:35 | [Mutex] isItemNotified: received:node:b60c65a4-d45d-4c63-8d95-1400ec0db442:localhost:node-8cf061ca-1a6a-489d-96d2-55b2970ae494:Node 8cf061ca-1a6a-489d-96d2-55b2970ae494 :: true

deleteNodes 1.020s
2021-12-06 22:25:40 |

2021-12-06 22:25:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:40 | ------------------------------------

2021-12-06 22:25:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8cf061ca-1a6a-489d-96d2-55b2970ae494"
}

2021-12-06 22:25:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-06 22:25:41 | [Mutex] waiting for: [received:nodes:728fe764-b102-4df4-b689-c2ea67b5f7b5:localhost]

2021-12-06 22:25:41 | [Mutex] received everything.

2021-12-06 22:25:41 | [Mutex] isItemNotified: received:node:728fe764-b102-4df4-b689-c2ea67b5f7b5:localhost:node-8cf061ca-1a6a-489d-96d2-55b2970ae494:Node 8cf061ca-1a6a-489d-96d2-55b2970ae494 :: false

deleteSubnodes 1.034s
2021-12-06 22:25:39 |

2021-12-06 22:25:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:39 | ------------------------------------

2021-12-06 22:25:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-524421f4-69da-4816-be78-4e19d296083e"
}

2021-12-06 22:25:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-06 22:25:40 | [Mutex] waiting for: [received:nodes:71b538ac-a993-4ff3-b186-8a344e2f21b7:localhost]

2021-12-06 22:25:40 | [Mutex] received everything.

2021-12-06 22:25:40 | [Mutex] isItemNotified: received:node:71b538ac-a993-4ff3-b186-8a344e2f21b7:localhost:node-524421f4-69da-4816-be78-4e19d296083e:Node 524421f4-69da-4816-be78-4e19d296083e :: false

2021-12-06 22:25:40 | [Mutex] waiting for: [received:nodes:1f7d9168-e1ea-4548-bef6-f1075cd1464a:localhost]

2021-12-06 22:25:40 | [Mutex] received everything.

2021-12-06 22:25:40 | [Mutex] isItemNotified: received:node:1f7d9168-e1ea-4548-bef6-f1075cd1464a:localhost:node-524421f4-69da-4816-be78-4e19d296083e:Node 524421f4-69da-4816-be78-4e19d296083e :: false

publishItemsToNodes 0.108s
2021-12-06 22:25:37 |

2021-12-06 22:25:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:37 | ------------------------------------

2021-12-06 22:25:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-524421f4-69da-4816-be78-4e19d296083e",
    "entry": "<test>item-4e02fa4b-1b05-4050-863e-ee1ce45fda46</test>",
    "item-id": "item-4e02fa4b-1b05-4050-863e-ee1ce45fda46"
}

2021-12-06 22:25:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4e02fa4b-1b05-4050-863e-ee1ce45fda46"
}

2021-12-06 22:25:37 | [Mutex] waiting for: [published:item:notifieditem-4e02fa4b-1b05-4050-863e-ee1ce45fda46:admin@test-domain.com]

2021-12-06 22:25:37 | [Mutex] received everything.

2021-12-06 22:25:37 | [Mutex] isItemNotified: published:item:notifieditem-4e02fa4b-1b05-4050-863e-ee1ce45fda46:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-12-06 22:25:38 |

2021-12-06 22:25:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:38 | ------------------------------------

2021-12-06 22:25:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-524421f4-69da-4816-be78-4e19d296083e",
    "item-id": "item-4e02fa4b-1b05-4050-863e-ee1ce45fda46"
}

2021-12-06 22:25:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4e02fa4b-1b05-4050-863e-ee1ce45fda46"
}

2021-12-06 22:25:38 | [Mutex] received everything.

2021-12-06 22:25:38 | [Mutex] isItemNotified: retracted:item:notifieditem-4e02fa4b-1b05-4050-863e-ee1ce45fda46:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2021-12-06 22:25:37 |

2021-12-06 22:25:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:37 | ------------------------------------

2021-12-06 22:25:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-524421f4-69da-4816-be78-4e19d296083e",
    "item-id": "item-4e02fa4b-1b05-4050-863e-ee1ce45fda46"
}

2021-12-06 22:25:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-524421f4-69da-4816-be78-4e19d296083e",
    "item-id": "item-4e02fa4b-1b05-4050-863e-ee1ce45fda46",
    "item": [
        "<item id=\"item-4e02fa4b-1b05-4050-863e-ee1ce45fda46\"><test>item-4e02fa4b-1b05-4050-863e-ee1ce45fda46</test></item>"
    ]
}

2021-12-06 22:25:37 | [Mutex] notify: [retrieved:item:item-4e02fa4b-1b05-4050-863e-ee1ce45fda46:payload-matches:true:localhost]

2021-12-06 22:25:37 | [Mutex] received everything.

2021-12-06 22:25:37 | [Mutex] isItemNotified: retrieved:item:item-4e02fa4b-1b05-4050-863e-ee1ce45fda46:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.011s
2021-12-06 22:25:37 |

2021-12-06 22:25:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:37 | ------------------------------------

2021-12-06 22:25:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-12-06 22:25:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8cf061ca-1a6a-489d-96d2-55b2970ae494",
        "node-524421f4-69da-4816-be78-4e19d296083e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-12-06 22:25:37 |

2021-12-06 22:25:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:37 | ------------------------------------

2021-12-06 22:25:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-524421f4-69da-4816-be78-4e19d296083e)"
}

2021-12-06 22:25:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-12-06 22:25:36 |

2021-12-06 22:25:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:36 | ------------------------------------

2021-12-06 22:25:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-524421f4-69da-4816-be78-4e19d296083e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-06 22:25:36 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.091s
2021-12-06 22:25:38 |

2021-12-06 22:25:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 22:25:38 | ------------------------------------

2021-12-06 22:25:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-524421f4-69da-4816-be78-4e19d296083e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-06 22:25:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}