Generated by TestNG with ReportNG at 23:28 PDT on Saturday 19 September 2020
root@9a694adb6f25 / 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.131s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2020-09-19 23:42:52 |

2020-09-19 23:42:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:52 | ------------------------------------

2020-09-19 23:42:52 | [Mutex] waiting for: [configured:node:node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd:node-dd264ddc-a719-4cd2-b083-7224a2840a31]

2020-09-19 23:42:52 | [Mutex] received everything.

2020-09-19 23:42:52 | [Mutex] isItemNotified: configured:node:node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd:node-dd264ddc-a719-4cd2-b083-7224a2840a31 :: true

2020-09-19 23:42:53 | [Mutex] waiting for: [received:nodes:e0e6c3ce-b226-4ac8-95b0-980332d107d7:localhost]

2020-09-19 23:42:53 | [Mutex] waiting for: [received:nodes:e0e6c3ce-b226-4ac8-95b0-980332d107d7:localhost]

2020-09-19 23:42:53 | [Mutex] received everything.

2020-09-19 23:42:53 | [Mutex] isItemNotified: received:node:e0e6c3ce-b226-4ac8-95b0-980332d107d7:localhost:node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd:Node 421610d8-2c2e-4ebb-ba22-f4e6a57a11bd :: true

2020-09-19 23:42:53 | [Mutex] waiting for: [received:nodes:ba00da8d-0351-4b86-a677-31dae4777c74:localhost]

2020-09-19 23:42:53 | [Mutex] received everything.

2020-09-19 23:42:53 | [Mutex] isItemNotified: received:node:ba00da8d-0351-4b86-a677-31dae4777c74:localhost:node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd:Node 421610d8-2c2e-4ebb-ba22-f4e6a57a11bd :: false

createNodes 1.761s
2020-09-19 23:42:49 |

2020-09-19 23:42:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:49 | ------------------------------------

2020-09-19 23:42:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd",
    "pubsub#title": "Node 421610d8-2c2e-4ebb-ba22-f4e6a57a11bd"
}

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

2020-09-19 23:42:51 | [Mutex] waiting for: [received:nodes:a3ac92dc-11bb-4cb7-825f-747bcf4eb82f:localhost]

2020-09-19 23:42:51 | [Mutex] received everything.

2020-09-19 23:42:51 | [Mutex] isItemNotified: received:node:a3ac92dc-11bb-4cb7-825f-747bcf4eb82f:localhost:node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd:Node 421610d8-2c2e-4ebb-ba22-f4e6a57a11bd :: true

createSubnodes 1.036s
2020-09-19 23:42:51 |

2020-09-19 23:42:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:51 | ------------------------------------

2020-09-19 23:42:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dd264ddc-a719-4cd2-b083-7224a2840a31",
    "pubsub#title": "Node dd264ddc-a719-4cd2-b083-7224a2840a31"
}

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

2020-09-19 23:42:52 | [Mutex] waiting for: [received:nodes:0cd0fab7-339a-483d-af08-6d33a1f7ff38:localhost]

2020-09-19 23:42:52 | [Mutex] received everything.

2020-09-19 23:42:52 | [Mutex] isItemNotified: received:node:0cd0fab7-339a-483d-af08-6d33a1f7ff38:localhost:node-dd264ddc-a719-4cd2-b083-7224a2840a31:Node dd264ddc-a719-4cd2-b083-7224a2840a31 :: true

deleteNodes 1.043s
2020-09-19 23:42:56 |

2020-09-19 23:42:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:56 | ------------------------------------

2020-09-19 23:42:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dd264ddc-a719-4cd2-b083-7224a2840a31"
}

2020-09-19 23:42:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-19 23:42:57 | [Mutex] waiting for: [received:nodes:0ce2f093-ba02-4a1f-ab10-0b611f8d15da:localhost]

2020-09-19 23:42:57 | [Mutex] received everything.

2020-09-19 23:42:57 | [Mutex] isItemNotified: received:node:0ce2f093-ba02-4a1f-ab10-0b611f8d15da:localhost:node-dd264ddc-a719-4cd2-b083-7224a2840a31:Node dd264ddc-a719-4cd2-b083-7224a2840a31 :: false

deleteSubnodes 1.028s
2020-09-19 23:42:55 |

2020-09-19 23:42:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:55 | ------------------------------------

2020-09-19 23:42:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd"
}

2020-09-19 23:42:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-19 23:42:56 | [Mutex] waiting for: [received:nodes:f836dc93-4dfd-427b-b07a-9d7072b9968d:localhost]

2020-09-19 23:42:56 | [Mutex] received everything.

2020-09-19 23:42:56 | [Mutex] isItemNotified: received:node:f836dc93-4dfd-427b-b07a-9d7072b9968d:localhost:node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd:Node 421610d8-2c2e-4ebb-ba22-f4e6a57a11bd :: false

2020-09-19 23:42:56 | [Mutex] waiting for: [received:nodes:8ffc48f2-0625-46eb-868a-3f821ecef0bf:localhost]

2020-09-19 23:42:56 | [Mutex] received everything.

2020-09-19 23:42:56 | [Mutex] isItemNotified: received:node:8ffc48f2-0625-46eb-868a-3f821ecef0bf:localhost:node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd:Node 421610d8-2c2e-4ebb-ba22-f4e6a57a11bd :: false

publishItemsToNodes 0.043s
2020-09-19 23:42:54 |

2020-09-19 23:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:54 | ------------------------------------

2020-09-19 23:42:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd",
    "entry": "<test>item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed</test>",
    "item-id": "item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed"
}

2020-09-19 23:42:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed"
}

2020-09-19 23:42:54 | [Mutex] waiting for: [published:item:notifieditem-7d25719f-9ef3-4f6a-ad35-e2d7234915ed:admin@test-domain.com]

2020-09-19 23:42:54 | [Mutex] received everything.

2020-09-19 23:42:54 | [Mutex] isItemNotified: published:item:notifieditem-7d25719f-9ef3-4f6a-ad35-e2d7234915ed:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-09-19 23:42:54 |

2020-09-19 23:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:54 | ------------------------------------

2020-09-19 23:42:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd",
    "item-id": "item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed"
}

2020-09-19 23:42:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed"
}

2020-09-19 23:42:54 | [Mutex] received everything.

2020-09-19 23:42:54 | [Mutex] isItemNotified: retracted:item:notifieditem-7d25719f-9ef3-4f6a-ad35-e2d7234915ed:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2020-09-19 23:42:54 |

2020-09-19 23:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:54 | ------------------------------------

2020-09-19 23:42:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd",
    "item-id": "item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed"
}

2020-09-19 23:42:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd",
    "item-id": "item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed",
    "item": [
        "<item id=\"item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed\"><test>item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed</test></item>"
    ]
}

2020-09-19 23:42:54 | [Mutex] notify: [retrieved:item:item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed:payload-matches:true:localhost]

2020-09-19 23:42:54 | [Mutex] received everything.

2020-09-19 23:42:54 | [Mutex] isItemNotified: retrieved:item:item-7d25719f-9ef3-4f6a-ad35-e2d7234915ed:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2020-09-19 23:42:54 |

2020-09-19 23:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:54 | ------------------------------------

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

2020-09-19 23:42:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-dd264ddc-a719-4cd2-b083-7224a2840a31",
        "test",
        "node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2020-09-19 23:42:54 |

2020-09-19 23:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:54 | ------------------------------------

2020-09-19 23:42:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd)"
}

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

subscribeNodes 1.011s
2020-09-19 23:42:53 |

2020-09-19 23:42:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:53 | ------------------------------------

2020-09-19 23:42:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-19 23:42:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2020-09-19 23:42:54 |

2020-09-19 23:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 23:42:54 | ------------------------------------

2020-09-19 23:42:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-421610d8-2c2e-4ebb-ba22-f4e6a57a11bd",
    "jids": [
        "admin@test-domain.com"
    ]
}

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