Generated by TestNG with ReportNG at 23:02 PDT on Friday 10 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / 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.613s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-06-10 23:17:54 |

2022-06-10 23:17:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:54 | ------------------------------------

2022-06-10 23:17:54 | [Mutex] waiting for: [configured:node:node-c761a78c-a207-4c37-9c99-c1cc25c5f099:node-2b26c764-c220-4204-a8c8-7df4b81c5065]

2022-06-10 23:17:54 | [Mutex] received everything.

2022-06-10 23:17:54 | [Mutex] isItemNotified: configured:node:node-c761a78c-a207-4c37-9c99-c1cc25c5f099:node-2b26c764-c220-4204-a8c8-7df4b81c5065 :: true

2022-06-10 23:17:55 | [Mutex] waiting for: [received:nodes:738a739d-141d-4ae9-a9c0-b4584275c312:localhost]

2022-06-10 23:17:55 | [Mutex] received everything.

2022-06-10 23:17:55 | [Mutex] isItemNotified: received:node:738a739d-141d-4ae9-a9c0-b4584275c312:localhost:node-c761a78c-a207-4c37-9c99-c1cc25c5f099:Node c761a78c-a207-4c37-9c99-c1cc25c5f099 :: true

2022-06-10 23:17:55 | [Mutex] waiting for: [received:nodes:54bce73c-8a1f-4f15-ba19-44b4c74de611:localhost]

2022-06-10 23:17:55 | [Mutex] received everything.

2022-06-10 23:17:55 | [Mutex] isItemNotified: received:node:54bce73c-8a1f-4f15-ba19-44b4c74de611:localhost:node-c761a78c-a207-4c37-9c99-c1cc25c5f099:Node c761a78c-a207-4c37-9c99-c1cc25c5f099 :: false

createNodes 1.627s
2022-06-10 23:17:51 |

2022-06-10 23:17:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:51 | ------------------------------------

2022-06-10 23:17:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c761a78c-a207-4c37-9c99-c1cc25c5f099",
    "pubsub#title": "Node c761a78c-a207-4c37-9c99-c1cc25c5f099"
}

2022-06-10 23:17:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-10 23:17:53 | [Mutex] waiting for: [received:nodes:d1bec084-337b-4226-9650-69ebe0595ce2:localhost]

2022-06-10 23:17:53 | [Mutex] waiting for: [received:nodes:d1bec084-337b-4226-9650-69ebe0595ce2:localhost]

2022-06-10 23:17:53 | [Mutex] waiting for: [received:nodes:d1bec084-337b-4226-9650-69ebe0595ce2:localhost]

2022-06-10 23:17:53 | [Mutex] waiting for: [received:nodes:d1bec084-337b-4226-9650-69ebe0595ce2:localhost]

2022-06-10 23:17:53 | [Mutex] received everything.

2022-06-10 23:17:53 | [Mutex] isItemNotified: received:node:d1bec084-337b-4226-9650-69ebe0595ce2:localhost:node-c761a78c-a207-4c37-9c99-c1cc25c5f099:Node c761a78c-a207-4c37-9c99-c1cc25c5f099 :: true

createSubnodes 1.022s
2022-06-10 23:17:53 |

2022-06-10 23:17:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:53 | ------------------------------------

2022-06-10 23:17:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2b26c764-c220-4204-a8c8-7df4b81c5065",
    "pubsub#title": "Node 2b26c764-c220-4204-a8c8-7df4b81c5065"
}

2022-06-10 23:17:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-10 23:17:54 | [Mutex] waiting for: [received:nodes:40c732be-c066-4a8e-9fbf-9df98acac1c8:localhost]

2022-06-10 23:17:54 | [Mutex] waiting for: [received:nodes:40c732be-c066-4a8e-9fbf-9df98acac1c8:localhost]

2022-06-10 23:17:54 | [Mutex] received everything.

2022-06-10 23:17:54 | [Mutex] isItemNotified: received:node:40c732be-c066-4a8e-9fbf-9df98acac1c8:localhost:node-2b26c764-c220-4204-a8c8-7df4b81c5065:Node 2b26c764-c220-4204-a8c8-7df4b81c5065 :: true

deleteNodes 1.017s
2022-06-10 23:17:58 |

2022-06-10 23:17:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:58 | ------------------------------------

2022-06-10 23:17:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2b26c764-c220-4204-a8c8-7df4b81c5065"
}

2022-06-10 23:17:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-10 23:17:59 | [Mutex] waiting for: [received:nodes:724e2ca3-92c9-4190-9357-2d97a36d8ab5:localhost]

2022-06-10 23:18:00 | [Mutex] waiting for: [received:nodes:724e2ca3-92c9-4190-9357-2d97a36d8ab5:localhost]

2022-06-10 23:18:00 | [Mutex] waiting for: [received:nodes:724e2ca3-92c9-4190-9357-2d97a36d8ab5:localhost]

2022-06-10 23:18:00 | [Mutex] received everything.

2022-06-10 23:18:00 | [Mutex] isItemNotified: received:node:724e2ca3-92c9-4190-9357-2d97a36d8ab5:localhost:node-2b26c764-c220-4204-a8c8-7df4b81c5065:Node 2b26c764-c220-4204-a8c8-7df4b81c5065 :: false

deleteSubnodes 1.026s
2022-06-10 23:17:57 |

2022-06-10 23:17:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:57 | ------------------------------------

2022-06-10 23:17:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c761a78c-a207-4c37-9c99-c1cc25c5f099"
}

2022-06-10 23:17:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-10 23:17:58 | [Mutex] waiting for: [received:nodes:52869665-0209-4fde-9bf7-500ae85bf89e:localhost]

2022-06-10 23:17:58 | [Mutex] waiting for: [received:nodes:52869665-0209-4fde-9bf7-500ae85bf89e:localhost]

2022-06-10 23:17:58 | [Mutex] waiting for: [received:nodes:52869665-0209-4fde-9bf7-500ae85bf89e:localhost]

2022-06-10 23:17:58 | [Mutex] received everything.

2022-06-10 23:17:58 | [Mutex] isItemNotified: received:node:52869665-0209-4fde-9bf7-500ae85bf89e:localhost:node-c761a78c-a207-4c37-9c99-c1cc25c5f099:Node c761a78c-a207-4c37-9c99-c1cc25c5f099 :: false

2022-06-10 23:17:58 | [Mutex] waiting for: [received:nodes:052d91a5-b4ba-401c-87ce-4039c747f38f:localhost]

2022-06-10 23:17:58 | [Mutex] received everything.

2022-06-10 23:17:58 | [Mutex] isItemNotified: received:node:052d91a5-b4ba-401c-87ce-4039c747f38f:localhost:node-c761a78c-a207-4c37-9c99-c1cc25c5f099:Node c761a78c-a207-4c37-9c99-c1cc25c5f099 :: false

publishItemsToNodes 0.073s
2022-06-10 23:17:56 |

2022-06-10 23:17:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:56 | ------------------------------------

2022-06-10 23:17:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c761a78c-a207-4c37-9c99-c1cc25c5f099",
    "entry": "<test>item-ec5a8d1c-c070-457d-b713-5baabcee82ee</test>",
    "item-id": "item-ec5a8d1c-c070-457d-b713-5baabcee82ee"
}

2022-06-10 23:17:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ec5a8d1c-c070-457d-b713-5baabcee82ee"
}

2022-06-10 23:17:56 | [Mutex] waiting for: [published:item:notifieditem-ec5a8d1c-c070-457d-b713-5baabcee82ee:admin@test-domain.com]

2022-06-10 23:17:56 | [Mutex] received everything.

2022-06-10 23:17:56 | [Mutex] isItemNotified: published:item:notifieditem-ec5a8d1c-c070-457d-b713-5baabcee82ee:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-06-10 23:17:56 |

2022-06-10 23:17:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:56 | ------------------------------------

2022-06-10 23:17:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c761a78c-a207-4c37-9c99-c1cc25c5f099",
    "item-id": "item-ec5a8d1c-c070-457d-b713-5baabcee82ee"
}

2022-06-10 23:17:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ec5a8d1c-c070-457d-b713-5baabcee82ee"
}

2022-06-10 23:17:56 | [Mutex] received everything.

2022-06-10 23:17:56 | [Mutex] isItemNotified: retracted:item:notifieditem-ec5a8d1c-c070-457d-b713-5baabcee82ee:admin@test-domain.com :: true

retrieveItemsFromNodes 0.046s
2022-06-10 23:17:56 |

2022-06-10 23:17:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:56 | ------------------------------------

2022-06-10 23:17:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c761a78c-a207-4c37-9c99-c1cc25c5f099",
    "item-id": "item-ec5a8d1c-c070-457d-b713-5baabcee82ee"
}

2022-06-10 23:17:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c761a78c-a207-4c37-9c99-c1cc25c5f099",
    "item-id": "item-ec5a8d1c-c070-457d-b713-5baabcee82ee",
    "item": [
        "<item id=\"item-ec5a8d1c-c070-457d-b713-5baabcee82ee\"><test>item-ec5a8d1c-c070-457d-b713-5baabcee82ee</test></item>"
    ]
}

2022-06-10 23:17:56 | [Mutex] notify: [retrieved:item:item-ec5a8d1c-c070-457d-b713-5baabcee82ee:payload-matches:true:localhost]

2022-06-10 23:17:56 | [Mutex] received everything.

2022-06-10 23:17:56 | [Mutex] isItemNotified: retrieved:item:item-ec5a8d1c-c070-457d-b713-5baabcee82ee:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-06-10 23:17:56 |

2022-06-10 23:17:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:56 | ------------------------------------

2022-06-10 23:17:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-10 23:17:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2b26c764-c220-4204-a8c8-7df4b81c5065",
        "node-c761a78c-a207-4c37-9c99-c1cc25c5f099"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-10 23:17:56 |

2022-06-10 23:17:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:56 | ------------------------------------

2022-06-10 23:17:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c761a78c-a207-4c37-9c99-c1cc25c5f099)"
}

2022-06-10 23:17:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.007s
2022-06-10 23:17:55 |

2022-06-10 23:17:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:55 | ------------------------------------

2022-06-10 23:17:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c761a78c-a207-4c37-9c99-c1cc25c5f099",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-10 23:17:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-06-10 23:17:56 |

2022-06-10 23:17:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-10 23:17:56 | ------------------------------------

2022-06-10 23:17:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c761a78c-a207-4c37-9c99-c1cc25c5f099",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-10 23:17:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}