Generated by TestNG with ReportNG at 23:14 PDT on Tuesday 20 October 2020
root@87f6aca6b6f2 / 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.190s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2020-10-20 23:31:24 |

2020-10-20 23:31:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:24 | ------------------------------------

2020-10-20 23:31:24 | [Mutex] waiting for: [configured:node:node-8b57d926-4365-48ec-934f-59567d89bcb4:node-cabdd2e7-9171-4d2d-9367-1279c6ebc5af]

2020-10-20 23:31:24 | [Mutex] received everything.

2020-10-20 23:31:24 | [Mutex] isItemNotified: configured:node:node-8b57d926-4365-48ec-934f-59567d89bcb4:node-cabdd2e7-9171-4d2d-9367-1279c6ebc5af :: true

2020-10-20 23:31:25 | [Mutex] waiting for: [received:nodes:09af4b5e-8721-4755-856e-c58e0bc7f6da:localhost]

2020-10-20 23:31:25 | [Mutex] received everything.

2020-10-20 23:31:25 | [Mutex] isItemNotified: received:node:09af4b5e-8721-4755-856e-c58e0bc7f6da:localhost:node-8b57d926-4365-48ec-934f-59567d89bcb4:Node 8b57d926-4365-48ec-934f-59567d89bcb4 :: true

2020-10-20 23:31:25 | [Mutex] waiting for: [received:nodes:434c2f55-c21b-41df-80ee-c9357d93a81d:localhost]

2020-10-20 23:31:25 | [Mutex] received everything.

2020-10-20 23:31:25 | [Mutex] isItemNotified: received:node:434c2f55-c21b-41df-80ee-c9357d93a81d:localhost:node-8b57d926-4365-48ec-934f-59567d89bcb4:Node 8b57d926-4365-48ec-934f-59567d89bcb4 :: false

createNodes 1.680s
2020-10-20 23:31:21 |

2020-10-20 23:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:21 | ------------------------------------

2020-10-20 23:31:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8b57d926-4365-48ec-934f-59567d89bcb4",
    "pubsub#title": "Node 8b57d926-4365-48ec-934f-59567d89bcb4"
}

2020-10-20 23:31:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:31:23 | [Mutex] waiting for: [received:nodes:f519067d-0bf1-4d9a-9f95-912c9313639e:localhost]

2020-10-20 23:31:23 | [Mutex] received everything.

2020-10-20 23:31:23 | [Mutex] isItemNotified: received:node:f519067d-0bf1-4d9a-9f95-912c9313639e:localhost:node-8b57d926-4365-48ec-934f-59567d89bcb4:Node 8b57d926-4365-48ec-934f-59567d89bcb4 :: true

createSubnodes 1.029s
2020-10-20 23:31:23 |

2020-10-20 23:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:23 | ------------------------------------

2020-10-20 23:31:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cabdd2e7-9171-4d2d-9367-1279c6ebc5af",
    "pubsub#title": "Node cabdd2e7-9171-4d2d-9367-1279c6ebc5af"
}

2020-10-20 23:31:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:31:24 | [Mutex] waiting for: [received:nodes:01eff398-f3f1-4477-b23b-32cc1420ac38:localhost]

2020-10-20 23:31:24 | [Mutex] waiting for: [received:nodes:01eff398-f3f1-4477-b23b-32cc1420ac38:localhost]

2020-10-20 23:31:24 | [Mutex] received everything.

2020-10-20 23:31:24 | [Mutex] isItemNotified: received:node:01eff398-f3f1-4477-b23b-32cc1420ac38:localhost:node-cabdd2e7-9171-4d2d-9367-1279c6ebc5af:Node cabdd2e7-9171-4d2d-9367-1279c6ebc5af :: true

deleteNodes 1.027s
2020-10-20 23:31:28 |

2020-10-20 23:31:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:28 | ------------------------------------

2020-10-20 23:31:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cabdd2e7-9171-4d2d-9367-1279c6ebc5af"
}

2020-10-20 23:31:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:31:29 | [Mutex] waiting for: [received:nodes:645b7163-74be-4600-ae4c-13fd00b24b2c:localhost]

2020-10-20 23:31:29 | [Mutex] waiting for: [received:nodes:645b7163-74be-4600-ae4c-13fd00b24b2c:localhost]

2020-10-20 23:31:29 | [Mutex] received everything.

2020-10-20 23:31:29 | [Mutex] isItemNotified: received:node:645b7163-74be-4600-ae4c-13fd00b24b2c:localhost:node-cabdd2e7-9171-4d2d-9367-1279c6ebc5af:Node cabdd2e7-9171-4d2d-9367-1279c6ebc5af :: false

deleteSubnodes 1.037s
2020-10-20 23:31:27 |

2020-10-20 23:31:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:27 | ------------------------------------

2020-10-20 23:31:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8b57d926-4365-48ec-934f-59567d89bcb4"
}

2020-10-20 23:31:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:31:28 | [Mutex] waiting for: [received:nodes:e22805e9-23cc-4602-bbd7-6bb439c858d9:localhost]

2020-10-20 23:31:28 | [Mutex] received everything.

2020-10-20 23:31:28 | [Mutex] isItemNotified: received:node:e22805e9-23cc-4602-bbd7-6bb439c858d9:localhost:node-8b57d926-4365-48ec-934f-59567d89bcb4:Node 8b57d926-4365-48ec-934f-59567d89bcb4 :: false

2020-10-20 23:31:28 | [Mutex] waiting for: [received:nodes:c549623a-2901-4ed4-a570-633b5dcba40d:localhost]

2020-10-20 23:31:28 | [Mutex] received everything.

2020-10-20 23:31:28 | [Mutex] isItemNotified: received:node:c549623a-2901-4ed4-a570-633b5dcba40d:localhost:node-8b57d926-4365-48ec-934f-59567d89bcb4:Node 8b57d926-4365-48ec-934f-59567d89bcb4 :: false

publishItemsToNodes 0.053s
2020-10-20 23:31:26 |

2020-10-20 23:31:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:26 | ------------------------------------

2020-10-20 23:31:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8b57d926-4365-48ec-934f-59567d89bcb4",
    "entry": "<test>item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b</test>",
    "item-id": "item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b"
}

2020-10-20 23:31:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b"
}

2020-10-20 23:31:26 | [Mutex] received everything.

2020-10-20 23:31:26 | [Mutex] isItemNotified: published:item:notifieditem-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b:admin@test-domain.com :: true

retractItemsFromNodes 0.078s
2020-10-20 23:31:26 |

2020-10-20 23:31:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:26 | ------------------------------------

2020-10-20 23:31:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8b57d926-4365-48ec-934f-59567d89bcb4",
    "item-id": "item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b"
}

2020-10-20 23:31:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b"
}

2020-10-20 23:31:26 | [Mutex] received everything.

2020-10-20 23:31:26 | [Mutex] isItemNotified: retracted:item:notifieditem-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.086s
2020-10-20 23:31:26 |

2020-10-20 23:31:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:26 | ------------------------------------

2020-10-20 23:31:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8b57d926-4365-48ec-934f-59567d89bcb4",
    "item-id": "item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b"
}

2020-10-20 23:31:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8b57d926-4365-48ec-934f-59567d89bcb4",
    "item-id": "item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b",
    "item": [
        "<item id=\"item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b\"><test>item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b</test></item>"
    ]
}

2020-10-20 23:31:26 | [Mutex] notify: [retrieved:item:item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b:payload-matches:true:localhost]

2020-10-20 23:31:26 | [Mutex] received everything.

2020-10-20 23:31:26 | [Mutex] isItemNotified: retrieved:item:item-6c88e1e2-b0d0-4b5f-8b11-e4ce71b6d99b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.063s
2020-10-20 23:31:26 |

2020-10-20 23:31:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:26 | ------------------------------------

2020-10-20 23:31:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-20 23:31:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-cabdd2e7-9171-4d2d-9367-1279c6ebc5af",
        "node-8b57d926-4365-48ec-934f-59567d89bcb4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-20 23:31:26 |

2020-10-20 23:31:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:26 | ------------------------------------

2020-10-20 23:31:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8b57d926-4365-48ec-934f-59567d89bcb4)"
}

2020-10-20 23:31:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-10-20 23:31:25 |

2020-10-20 23:31:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:25 | ------------------------------------

2020-10-20 23:31:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8b57d926-4365-48ec-934f-59567d89bcb4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-20 23:31:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.092s
2020-10-20 23:31:26 |

2020-10-20 23:31:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:31:26 | ------------------------------------

2020-10-20 23:31:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8b57d926-4365-48ec-934f-59567d89bcb4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-20 23:31:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}