Generated by TestNG with ReportNG at 22:51 PDT on Tuesday 21 September 2021
root@f29ef40080b5 / 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 : 8.919s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.137s
2021-09-21 23:07:04 |

2021-09-21 23:07:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:04 | ------------------------------------

2021-09-21 23:07:04 | [Mutex] waiting for: [configured:node:node-bd4256a4-ae25-4e1e-bd84-461ae1600e12:node-75531d6e-be14-46d5-9a45-0d4e9b550291]

2021-09-21 23:07:04 | [Mutex] received everything.

2021-09-21 23:07:04 | [Mutex] isItemNotified: configured:node:node-bd4256a4-ae25-4e1e-bd84-461ae1600e12:node-75531d6e-be14-46d5-9a45-0d4e9b550291 :: true

2021-09-21 23:07:05 | [Mutex] waiting for: [received:nodes:55d4e7b7-da1f-4f64-93d2-17fbaab05ddd:localhost]

2021-09-21 23:07:05 | [Mutex] received everything.

2021-09-21 23:07:05 | [Mutex] isItemNotified: received:node:55d4e7b7-da1f-4f64-93d2-17fbaab05ddd:localhost:node-bd4256a4-ae25-4e1e-bd84-461ae1600e12:Node bd4256a4-ae25-4e1e-bd84-461ae1600e12 :: true

2021-09-21 23:07:05 | [Mutex] waiting for: [received:nodes:f75cda9c-0f0a-44c5-8988-fb87e09969a2:localhost]

2021-09-21 23:07:05 | [Mutex] waiting for: [received:nodes:f75cda9c-0f0a-44c5-8988-fb87e09969a2:localhost]

2021-09-21 23:07:05 | [Mutex] received everything.

2021-09-21 23:07:05 | [Mutex] isItemNotified: received:node:f75cda9c-0f0a-44c5-8988-fb87e09969a2:localhost:node-bd4256a4-ae25-4e1e-bd84-461ae1600e12:Node bd4256a4-ae25-4e1e-bd84-461ae1600e12 :: false

createNodes 1.514s
2021-09-21 23:07:01 |

2021-09-21 23:07:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:01 | ------------------------------------

2021-09-21 23:07:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bd4256a4-ae25-4e1e-bd84-461ae1600e12",
    "pubsub#title": "Node bd4256a4-ae25-4e1e-bd84-461ae1600e12"
}

2021-09-21 23:07:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 23:07:03 | [Mutex] waiting for: [received:nodes:df2e40ff-99ce-4d50-9c49-6625cdd8b1c8:localhost]

2021-09-21 23:07:03 | [Mutex] received everything.

2021-09-21 23:07:03 | [Mutex] isItemNotified: received:node:df2e40ff-99ce-4d50-9c49-6625cdd8b1c8:localhost:node-bd4256a4-ae25-4e1e-bd84-461ae1600e12:Node bd4256a4-ae25-4e1e-bd84-461ae1600e12 :: true

createSubnodes 1.030s
2021-09-21 23:07:03 |

2021-09-21 23:07:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:03 | ------------------------------------

2021-09-21 23:07:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-75531d6e-be14-46d5-9a45-0d4e9b550291",
    "pubsub#title": "Node 75531d6e-be14-46d5-9a45-0d4e9b550291"
}

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

2021-09-21 23:07:04 | [Mutex] waiting for: [received:nodes:538f40c9-8b9e-43b9-a22a-3f9f83b6d45b:localhost]

2021-09-21 23:07:04 | [Mutex] received everything.

2021-09-21 23:07:04 | [Mutex] isItemNotified: received:node:538f40c9-8b9e-43b9-a22a-3f9f83b6d45b:localhost:node-75531d6e-be14-46d5-9a45-0d4e9b550291:Node 75531d6e-be14-46d5-9a45-0d4e9b550291 :: true

deleteNodes 1.027s
2021-09-21 23:07:08 |

2021-09-21 23:07:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:08 | ------------------------------------

2021-09-21 23:07:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-75531d6e-be14-46d5-9a45-0d4e9b550291"
}

2021-09-21 23:07:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 23:07:09 | [Mutex] waiting for: [received:nodes:f2da52ec-501d-4210-a764-30b360a96911:localhost]

2021-09-21 23:07:09 | [Mutex] waiting for: [received:nodes:f2da52ec-501d-4210-a764-30b360a96911:localhost]

2021-09-21 23:07:09 | [Mutex] received everything.

2021-09-21 23:07:09 | [Mutex] isItemNotified: received:node:f2da52ec-501d-4210-a764-30b360a96911:localhost:node-75531d6e-be14-46d5-9a45-0d4e9b550291:Node 75531d6e-be14-46d5-9a45-0d4e9b550291 :: false

deleteSubnodes 1.026s
2021-09-21 23:07:07 |

2021-09-21 23:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:07 | ------------------------------------

2021-09-21 23:07:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bd4256a4-ae25-4e1e-bd84-461ae1600e12"
}

2021-09-21 23:07:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 23:07:08 | [Mutex] waiting for: [received:nodes:6034d112-054f-4955-a89d-63467c909462:localhost]

2021-09-21 23:07:08 | [Mutex] received everything.

2021-09-21 23:07:08 | [Mutex] isItemNotified: received:node:6034d112-054f-4955-a89d-63467c909462:localhost:node-bd4256a4-ae25-4e1e-bd84-461ae1600e12:Node bd4256a4-ae25-4e1e-bd84-461ae1600e12 :: false

2021-09-21 23:07:08 | [Mutex] waiting for: [received:nodes:8304563d-dcd8-4485-91e8-31231068f891:localhost]

2021-09-21 23:07:08 | [Mutex] received everything.

2021-09-21 23:07:08 | [Mutex] isItemNotified: received:node:8304563d-dcd8-4485-91e8-31231068f891:localhost:node-bd4256a4-ae25-4e1e-bd84-461ae1600e12:Node bd4256a4-ae25-4e1e-bd84-461ae1600e12 :: false

publishItemsToNodes 0.071s
2021-09-21 23:07:06 |

2021-09-21 23:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:06 | ------------------------------------

2021-09-21 23:07:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bd4256a4-ae25-4e1e-bd84-461ae1600e12",
    "entry": "<test>item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9</test>",
    "item-id": "item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9"
}

2021-09-21 23:07:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9"
}

2021-09-21 23:07:06 | [Mutex] received everything.

2021-09-21 23:07:06 | [Mutex] isItemNotified: published:item:notifieditem-ec32a77e-efe2-4619-b4c2-bcaa762f42a9:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-09-21 23:07:06 |

2021-09-21 23:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:06 | ------------------------------------

2021-09-21 23:07:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bd4256a4-ae25-4e1e-bd84-461ae1600e12",
    "item-id": "item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9"
}

2021-09-21 23:07:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9"
}

2021-09-21 23:07:06 | [Mutex] received everything.

2021-09-21 23:07:06 | [Mutex] isItemNotified: retracted:item:notifieditem-ec32a77e-efe2-4619-b4c2-bcaa762f42a9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2021-09-21 23:07:06 |

2021-09-21 23:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:06 | ------------------------------------

2021-09-21 23:07:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bd4256a4-ae25-4e1e-bd84-461ae1600e12",
    "item-id": "item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9"
}

2021-09-21 23:07:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bd4256a4-ae25-4e1e-bd84-461ae1600e12",
    "item-id": "item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9",
    "item": [
        "<item id=\"item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9\"><test>item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9</test></item>"
    ]
}

2021-09-21 23:07:06 | [Mutex] notify: [retrieved:item:item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9:payload-matches:true:localhost]

2021-09-21 23:07:06 | [Mutex] received everything.

2021-09-21 23:07:06 | [Mutex] isItemNotified: retrieved:item:item-ec32a77e-efe2-4619-b4c2-bcaa762f42a9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-09-21 23:07:06 |

2021-09-21 23:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:06 | ------------------------------------

2021-09-21 23:07:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-09-21 23:07:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-75531d6e-be14-46d5-9a45-0d4e9b550291",
        "test",
        "node-bd4256a4-ae25-4e1e-bd84-461ae1600e12"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-09-21 23:07:06 |

2021-09-21 23:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:06 | ------------------------------------

2021-09-21 23:07:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bd4256a4-ae25-4e1e-bd84-461ae1600e12)"
}

2021-09-21 23:07:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-09-21 23:07:05 |

2021-09-21 23:07:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:05 | ------------------------------------

2021-09-21 23:07:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bd4256a4-ae25-4e1e-bd84-461ae1600e12",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-21 23:07:05 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2021-09-21 23:07:06 |

2021-09-21 23:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 23:07:06 | ------------------------------------

2021-09-21 23:07:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bd4256a4-ae25-4e1e-bd84-461ae1600e12",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-21 23:07:06 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}