Generated by TestNG with ReportNG at 23:00 PDT on Tuesday 15 September 2020
root@b111a435ccb0 / 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.969s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2020-09-15 23:16:55 |

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

2020-09-15 23:16:55 | ------------------------------------

2020-09-15 23:16:55 | [Mutex] waiting for: [configured:node:node-eb366bd4-83d5-41b7-aba8-a5dd09211157:node-86832171-d211-4270-8143-28e3ff2c41d5]

2020-09-15 23:16:56 | [Mutex] received everything.

2020-09-15 23:16:56 | [Mutex] isItemNotified: configured:node:node-eb366bd4-83d5-41b7-aba8-a5dd09211157:node-86832171-d211-4270-8143-28e3ff2c41d5 :: true

2020-09-15 23:16:57 | [Mutex] waiting for: [received:nodes:095672f8-9d65-42df-87f8-c5a524cee5f2:localhost]

2020-09-15 23:16:57 | [Mutex] received everything.

2020-09-15 23:16:57 | [Mutex] isItemNotified: received:node:095672f8-9d65-42df-87f8-c5a524cee5f2:localhost:node-eb366bd4-83d5-41b7-aba8-a5dd09211157:Node eb366bd4-83d5-41b7-aba8-a5dd09211157 :: true

2020-09-15 23:16:57 | [Mutex] waiting for: [received:nodes:8f63c221-2c14-4419-ad67-2567ade76d71:localhost]

2020-09-15 23:16:57 | [Mutex] waiting for: [received:nodes:8f63c221-2c14-4419-ad67-2567ade76d71:localhost]

2020-09-15 23:16:57 | [Mutex] received everything.

2020-09-15 23:16:57 | [Mutex] isItemNotified: received:node:8f63c221-2c14-4419-ad67-2567ade76d71:localhost:node-eb366bd4-83d5-41b7-aba8-a5dd09211157:Node eb366bd4-83d5-41b7-aba8-a5dd09211157 :: false

createNodes 1.639s
2020-09-15 23:16:53 |

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

2020-09-15 23:16:53 | ------------------------------------

2020-09-15 23:16:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-eb366bd4-83d5-41b7-aba8-a5dd09211157",
    "pubsub#title": "Node eb366bd4-83d5-41b7-aba8-a5dd09211157"
}

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

2020-09-15 23:16:54 | [Mutex] waiting for: [received:nodes:6b81b7ba-7d1a-4907-b47f-f45b3850cf3f:localhost]

2020-09-15 23:16:54 | [Mutex] waiting for: [received:nodes:6b81b7ba-7d1a-4907-b47f-f45b3850cf3f:localhost]

2020-09-15 23:16:54 | [Mutex] received everything.

2020-09-15 23:16:54 | [Mutex] isItemNotified: received:node:6b81b7ba-7d1a-4907-b47f-f45b3850cf3f:localhost:node-eb366bd4-83d5-41b7-aba8-a5dd09211157:Node eb366bd4-83d5-41b7-aba8-a5dd09211157 :: true

createSubnodes 1.029s
2020-09-15 23:16:54 |

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

2020-09-15 23:16:54 | ------------------------------------

2020-09-15 23:16:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-86832171-d211-4270-8143-28e3ff2c41d5",
    "pubsub#title": "Node 86832171-d211-4270-8143-28e3ff2c41d5"
}

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

2020-09-15 23:16:55 | [Mutex] waiting for: [received:nodes:80c53725-c153-48cc-b5ea-752e4159595f:localhost]

2020-09-15 23:16:55 | [Mutex] received everything.

2020-09-15 23:16:55 | [Mutex] isItemNotified: received:node:80c53725-c153-48cc-b5ea-752e4159595f:localhost:node-86832171-d211-4270-8143-28e3ff2c41d5:Node 86832171-d211-4270-8143-28e3ff2c41d5 :: true

deleteNodes 1.030s
2020-09-15 23:17:00 |

2020-09-15 23:17:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:17:00 | ------------------------------------

2020-09-15 23:17:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-86832171-d211-4270-8143-28e3ff2c41d5"
}

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

2020-09-15 23:17:01 | [Mutex] waiting for: [received:nodes:a62b852a-5c55-44de-a6af-db92897bb256:localhost]

2020-09-15 23:17:01 | [Mutex] received everything.

2020-09-15 23:17:01 | [Mutex] isItemNotified: received:node:a62b852a-5c55-44de-a6af-db92897bb256:localhost:node-86832171-d211-4270-8143-28e3ff2c41d5:Node 86832171-d211-4270-8143-28e3ff2c41d5 :: false

deleteSubnodes 1.028s
2020-09-15 23:16:59 |

2020-09-15 23:16:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:16:59 | ------------------------------------

2020-09-15 23:16:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eb366bd4-83d5-41b7-aba8-a5dd09211157"
}

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

2020-09-15 23:17:00 | [Mutex] waiting for: [received:nodes:ca3b6a58-98f2-4bc6-958b-0743af9d461f:localhost]

2020-09-15 23:17:00 | [Mutex] received everything.

2020-09-15 23:17:00 | [Mutex] isItemNotified: received:node:ca3b6a58-98f2-4bc6-958b-0743af9d461f:localhost:node-eb366bd4-83d5-41b7-aba8-a5dd09211157:Node eb366bd4-83d5-41b7-aba8-a5dd09211157 :: false

2020-09-15 23:17:00 | [Mutex] waiting for: [received:nodes:2e7f11da-be48-4efa-b551-b6f581a21a84:localhost]

2020-09-15 23:17:00 | [Mutex] received everything.

2020-09-15 23:17:00 | [Mutex] isItemNotified: received:node:2e7f11da-be48-4efa-b551-b6f581a21a84:localhost:node-eb366bd4-83d5-41b7-aba8-a5dd09211157:Node eb366bd4-83d5-41b7-aba8-a5dd09211157 :: false

publishItemsToNodes 0.058s
2020-09-15 23:16:58 |

2020-09-15 23:16:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:16:58 | ------------------------------------

2020-09-15 23:16:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-eb366bd4-83d5-41b7-aba8-a5dd09211157",
    "entry": "<test>item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0</test>",
    "item-id": "item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0"
}

2020-09-15 23:16:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0"
}

2020-09-15 23:16:58 | [Mutex] waiting for: [published:item:notifieditem-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0:admin@test-domain.com]

2020-09-15 23:16:58 | [Mutex] received everything.

2020-09-15 23:16:58 | [Mutex] isItemNotified: published:item:notifieditem-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-09-15 23:16:58 |

2020-09-15 23:16:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:16:58 | ------------------------------------

2020-09-15 23:16:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-eb366bd4-83d5-41b7-aba8-a5dd09211157",
    "item-id": "item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0"
}

2020-09-15 23:16:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0"
}

2020-09-15 23:16:58 | [Mutex] received everything.

2020-09-15 23:16:58 | [Mutex] isItemNotified: retracted:item:notifieditem-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.024s
2020-09-15 23:16:58 |

2020-09-15 23:16:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:16:58 | ------------------------------------

2020-09-15 23:16:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-eb366bd4-83d5-41b7-aba8-a5dd09211157",
    "item-id": "item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0"
}

2020-09-15 23:16:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-eb366bd4-83d5-41b7-aba8-a5dd09211157",
    "item-id": "item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0",
    "item": [
        "<item id=\"item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0\"><test>item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0</test></item>"
    ]
}

2020-09-15 23:16:58 | [Mutex] notify: [retrieved:item:item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0:payload-matches:true:localhost]

2020-09-15 23:16:58 | [Mutex] received everything.

2020-09-15 23:16:58 | [Mutex] isItemNotified: retrieved:item:item-88f4d5bc-e1c8-44ee-a427-acff0a7c33e0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2020-09-15 23:16:58 |

2020-09-15 23:16:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:16:58 | ------------------------------------

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

2020-09-15 23:16:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-eb366bd4-83d5-41b7-aba8-a5dd09211157",
        "test",
        "node-86832171-d211-4270-8143-28e3ff2c41d5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-15 23:16:58 |

2020-09-15 23:16:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:16:58 | ------------------------------------

2020-09-15 23:16:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-eb366bd4-83d5-41b7-aba8-a5dd09211157)"
}

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

subscribeNodes 1.011s
2020-09-15 23:16:57 |

2020-09-15 23:16:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:16:57 | ------------------------------------

2020-09-15 23:16:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-eb366bd4-83d5-41b7-aba8-a5dd09211157",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.060s
2020-09-15 23:16:58 |

2020-09-15 23:16:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:16:58 | ------------------------------------

2020-09-15 23:16:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-eb366bd4-83d5-41b7-aba8-a5dd09211157",
    "jids": [
        "admin@test-domain.com"
    ]
}

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