Generated by TestNG with ReportNG at 21:14 PST on Monday 28 December 2020
root@43fec6d4badf / 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.095s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2020-12-28 21:30:00 |

2020-12-28 21:30:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:00 | ------------------------------------

2020-12-28 21:30:00 | [Mutex] waiting for: [configured:node:node-1c876c50-3540-4354-a35d-f21ae7616784:node-cac89e81-2091-42c7-ba69-ccd022682980]

2020-12-28 21:30:00 | [Mutex] received everything.

2020-12-28 21:30:00 | [Mutex] isItemNotified: configured:node:node-1c876c50-3540-4354-a35d-f21ae7616784:node-cac89e81-2091-42c7-ba69-ccd022682980 :: true

2020-12-28 21:30:01 | [Mutex] waiting for: [received:nodes:4c628ac4-a0c4-474c-83e6-d0046ec2de69:localhost]

2020-12-28 21:30:01 | [Mutex] received everything.

2020-12-28 21:30:01 | [Mutex] isItemNotified: received:node:4c628ac4-a0c4-474c-83e6-d0046ec2de69:localhost:node-1c876c50-3540-4354-a35d-f21ae7616784:Node 1c876c50-3540-4354-a35d-f21ae7616784 :: true

2020-12-28 21:30:01 | [Mutex] waiting for: [received:nodes:ea6eb9ec-eb92-4f0f-9021-0a51ef977b9d:localhost]

2020-12-28 21:30:01 | [Mutex] waiting for: [received:nodes:ea6eb9ec-eb92-4f0f-9021-0a51ef977b9d:localhost]

2020-12-28 21:30:01 | [Mutex] received everything.

2020-12-28 21:30:01 | [Mutex] isItemNotified: received:node:ea6eb9ec-eb92-4f0f-9021-0a51ef977b9d:localhost:node-1c876c50-3540-4354-a35d-f21ae7616784:Node 1c876c50-3540-4354-a35d-f21ae7616784 :: false

createNodes 1.696s
2020-12-28 21:29:57 |

2020-12-28 21:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:57 | ------------------------------------

2020-12-28 21:29:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1c876c50-3540-4354-a35d-f21ae7616784",
    "pubsub#title": "Node 1c876c50-3540-4354-a35d-f21ae7616784"
}

2020-12-28 21:29:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:29:59 | [Mutex] waiting for: [received:nodes:79e9995f-33a3-455d-9712-bb596e587ca4:localhost]

2020-12-28 21:29:59 | [Mutex] waiting for: [received:nodes:79e9995f-33a3-455d-9712-bb596e587ca4:localhost]

2020-12-28 21:29:59 | [Mutex] received everything.

2020-12-28 21:29:59 | [Mutex] isItemNotified: received:node:79e9995f-33a3-455d-9712-bb596e587ca4:localhost:node-1c876c50-3540-4354-a35d-f21ae7616784:Node 1c876c50-3540-4354-a35d-f21ae7616784 :: true

createSubnodes 1.032s
2020-12-28 21:29:59 |

2020-12-28 21:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:59 | ------------------------------------

2020-12-28 21:29:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cac89e81-2091-42c7-ba69-ccd022682980",
    "pubsub#title": "Node cac89e81-2091-42c7-ba69-ccd022682980"
}

2020-12-28 21:29:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:30:00 | [Mutex] waiting for: [received:nodes:b18ddc5a-bb48-46d2-a6c4-491fc4236406:localhost]

2020-12-28 21:30:00 | [Mutex] waiting for: [received:nodes:b18ddc5a-bb48-46d2-a6c4-491fc4236406:localhost]

2020-12-28 21:30:00 | [Mutex] received everything.

2020-12-28 21:30:00 | [Mutex] isItemNotified: received:node:b18ddc5a-bb48-46d2-a6c4-491fc4236406:localhost:node-cac89e81-2091-42c7-ba69-ccd022682980:Node cac89e81-2091-42c7-ba69-ccd022682980 :: true

deleteNodes 1.026s
2020-12-28 21:30:04 |

2020-12-28 21:30:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:04 | ------------------------------------

2020-12-28 21:30:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cac89e81-2091-42c7-ba69-ccd022682980"
}

2020-12-28 21:30:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:30:05 | [Mutex] waiting for: [received:nodes:8e903aa7-f2ef-4b61-b7f5-c966021f81a5:localhost]

2020-12-28 21:30:05 | [Mutex] received everything.

2020-12-28 21:30:05 | [Mutex] isItemNotified: received:node:8e903aa7-f2ef-4b61-b7f5-c966021f81a5:localhost:node-cac89e81-2091-42c7-ba69-ccd022682980:Node cac89e81-2091-42c7-ba69-ccd022682980 :: false

deleteSubnodes 1.034s
2020-12-28 21:30:03 |

2020-12-28 21:30:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:03 | ------------------------------------

2020-12-28 21:30:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1c876c50-3540-4354-a35d-f21ae7616784"
}

2020-12-28 21:30:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:30:04 | [Mutex] waiting for: [received:nodes:729d2a14-23c5-441d-af44-703815954208:localhost]

2020-12-28 21:30:04 | [Mutex] waiting for: [received:nodes:729d2a14-23c5-441d-af44-703815954208:localhost]

2020-12-28 21:30:04 | [Mutex] received everything.

2020-12-28 21:30:04 | [Mutex] isItemNotified: received:node:729d2a14-23c5-441d-af44-703815954208:localhost:node-1c876c50-3540-4354-a35d-f21ae7616784:Node 1c876c50-3540-4354-a35d-f21ae7616784 :: false

2020-12-28 21:30:04 | [Mutex] waiting for: [received:nodes:6b85fa3b-ce5f-4e10-94e3-441b53a77341:localhost]

2020-12-28 21:30:04 | [Mutex] received everything.

2020-12-28 21:30:04 | [Mutex] isItemNotified: received:node:6b85fa3b-ce5f-4e10-94e3-441b53a77341:localhost:node-1c876c50-3540-4354-a35d-f21ae7616784:Node 1c876c50-3540-4354-a35d-f21ae7616784 :: false

publishItemsToNodes 0.063s
2020-12-28 21:30:02 |

2020-12-28 21:30:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:02 | ------------------------------------

2020-12-28 21:30:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1c876c50-3540-4354-a35d-f21ae7616784",
    "entry": "<test>item-238e8fdd-9809-4e7d-b130-1f9120f99279</test>",
    "item-id": "item-238e8fdd-9809-4e7d-b130-1f9120f99279"
}

2020-12-28 21:30:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-238e8fdd-9809-4e7d-b130-1f9120f99279"
}

2020-12-28 21:30:02 | [Mutex] waiting for: [published:item:notifieditem-238e8fdd-9809-4e7d-b130-1f9120f99279:admin@test-domain.com]

2020-12-28 21:30:02 | [Mutex] received everything.

2020-12-28 21:30:02 | [Mutex] isItemNotified: published:item:notifieditem-238e8fdd-9809-4e7d-b130-1f9120f99279:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2020-12-28 21:30:02 |

2020-12-28 21:30:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:02 | ------------------------------------

2020-12-28 21:30:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1c876c50-3540-4354-a35d-f21ae7616784",
    "item-id": "item-238e8fdd-9809-4e7d-b130-1f9120f99279"
}

2020-12-28 21:30:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-238e8fdd-9809-4e7d-b130-1f9120f99279"
}

2020-12-28 21:30:02 | [Mutex] received everything.

2020-12-28 21:30:02 | [Mutex] isItemNotified: retracted:item:notifieditem-238e8fdd-9809-4e7d-b130-1f9120f99279:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2020-12-28 21:30:02 |

2020-12-28 21:30:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:02 | ------------------------------------

2020-12-28 21:30:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1c876c50-3540-4354-a35d-f21ae7616784",
    "item-id": "item-238e8fdd-9809-4e7d-b130-1f9120f99279"
}

2020-12-28 21:30:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1c876c50-3540-4354-a35d-f21ae7616784",
    "item-id": "item-238e8fdd-9809-4e7d-b130-1f9120f99279",
    "item": [
        "<item id=\"item-238e8fdd-9809-4e7d-b130-1f9120f99279\"><test>item-238e8fdd-9809-4e7d-b130-1f9120f99279</test></item>"
    ]
}

2020-12-28 21:30:02 | [Mutex] notify: [retrieved:item:item-238e8fdd-9809-4e7d-b130-1f9120f99279:payload-matches:true:localhost]

2020-12-28 21:30:02 | [Mutex] received everything.

2020-12-28 21:30:02 | [Mutex] isItemNotified: retrieved:item:item-238e8fdd-9809-4e7d-b130-1f9120f99279:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.099s
2020-12-28 21:30:02 |

2020-12-28 21:30:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:02 | ------------------------------------

2020-12-28 21:30:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-28 21:30:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1c876c50-3540-4354-a35d-f21ae7616784",
        "test",
        "node-cac89e81-2091-42c7-ba69-ccd022682980"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2020-12-28 21:30:02 |

2020-12-28 21:30:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:02 | ------------------------------------

2020-12-28 21:30:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1c876c50-3540-4354-a35d-f21ae7616784)"
}

2020-12-28 21:30:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2020-12-28 21:30:01 |

2020-12-28 21:30:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:01 | ------------------------------------

2020-12-28 21:30:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1c876c50-3540-4354-a35d-f21ae7616784",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-28 21:30:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.068s
2020-12-28 21:30:02 |

2020-12-28 21:30:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:30:02 | ------------------------------------

2020-12-28 21:30:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1c876c50-3540-4354-a35d-f21ae7616784",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-28 21:30:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}