Generated by TestNG with ReportNG at 22:43 PDT on Tuesday 04 July 2023
root@8f5c98824654 / Java 17.0.6 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.564s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-07-04 22:58:02 |

2023-07-04 22:58:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:02 | ------------------------------------

2023-07-04 22:58:02 | [Mutex] waiting for: [configured:node:node-77ffa54f-ce83-4027-bbab-20cfa75469a7:node-edf79e33-2521-4968-b755-4f4415808e47]

2023-07-04 22:58:02 | [Mutex] received everything.

2023-07-04 22:58:02 | [Mutex] isItemNotified: configured:node:node-77ffa54f-ce83-4027-bbab-20cfa75469a7:node-edf79e33-2521-4968-b755-4f4415808e47 :: true

2023-07-04 22:58:03 | [Mutex] waiting for: [received:nodes:061848f6-9693-44f4-9682-b74d43dc573f:localhost]

2023-07-04 22:58:03 | [Mutex] received everything.

2023-07-04 22:58:03 | [Mutex] isItemNotified: received:node:061848f6-9693-44f4-9682-b74d43dc573f:localhost:node-77ffa54f-ce83-4027-bbab-20cfa75469a7:Node 77ffa54f-ce83-4027-bbab-20cfa75469a7 :: true

2023-07-04 22:58:03 | [Mutex] waiting for: [received:nodes:71723ca1-83d8-47d9-a28f-7c11f65e544f:localhost]

2023-07-04 22:58:03 | [Mutex] waiting for: [received:nodes:71723ca1-83d8-47d9-a28f-7c11f65e544f:localhost]

2023-07-04 22:58:03 | [Mutex] waiting for: [received:nodes:71723ca1-83d8-47d9-a28f-7c11f65e544f:localhost]

2023-07-04 22:58:03 | [Mutex] waiting for: [received:nodes:71723ca1-83d8-47d9-a28f-7c11f65e544f:localhost]

2023-07-04 22:58:03 | [Mutex] received everything.

2023-07-04 22:58:03 | [Mutex] isItemNotified: received:node:71723ca1-83d8-47d9-a28f-7c11f65e544f:localhost:node-77ffa54f-ce83-4027-bbab-20cfa75469a7:Node 77ffa54f-ce83-4027-bbab-20cfa75469a7 :: false

createNodes 1.559s
2023-07-04 22:57:59 |

2023-07-04 22:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:57:59 | ------------------------------------

2023-07-04 22:58:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-77ffa54f-ce83-4027-bbab-20cfa75469a7",
    "pubsub#title": "Node 77ffa54f-ce83-4027-bbab-20cfa75469a7"
}

2023-07-04 22:58:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-04 22:58:01 | [Mutex] waiting for: [received:nodes:c11d693e-2b8f-4eaa-ba61-4559df18a722:localhost]

2023-07-04 22:58:01 | [Mutex] waiting for: [received:nodes:c11d693e-2b8f-4eaa-ba61-4559df18a722:localhost]

2023-07-04 22:58:01 | [Mutex] waiting for: [received:nodes:c11d693e-2b8f-4eaa-ba61-4559df18a722:localhost]

2023-07-04 22:58:01 | [Mutex] received everything.

2023-07-04 22:58:01 | [Mutex] isItemNotified: received:node:c11d693e-2b8f-4eaa-ba61-4559df18a722:localhost:node-77ffa54f-ce83-4027-bbab-20cfa75469a7:Node 77ffa54f-ce83-4027-bbab-20cfa75469a7 :: true

createSubnodes 1.022s
2023-07-04 22:58:01 |

2023-07-04 22:58:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:01 | ------------------------------------

2023-07-04 22:58:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-edf79e33-2521-4968-b755-4f4415808e47",
    "pubsub#title": "Node edf79e33-2521-4968-b755-4f4415808e47"
}

2023-07-04 22:58:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-04 22:58:02 | [Mutex] waiting for: [received:nodes:cb129212-c9fa-48cc-80f5-0f2c934339f8:localhost]

2023-07-04 22:58:02 | [Mutex] received everything.

2023-07-04 22:58:02 | [Mutex] isItemNotified: received:node:cb129212-c9fa-48cc-80f5-0f2c934339f8:localhost:node-edf79e33-2521-4968-b755-4f4415808e47:Node edf79e33-2521-4968-b755-4f4415808e47 :: true

deleteNodes 1.026s
2023-07-04 22:58:06 |

2023-07-04 22:58:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:06 | ------------------------------------

2023-07-04 22:58:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-edf79e33-2521-4968-b755-4f4415808e47"
}

2023-07-04 22:58:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-04 22:58:07 | [Mutex] waiting for: [received:nodes:f30cbc1f-082e-4b01-9c8e-445513569f24:localhost]

2023-07-04 22:58:07 | [Mutex] waiting for: [received:nodes:f30cbc1f-082e-4b01-9c8e-445513569f24:localhost]

2023-07-04 22:58:07 | [Mutex] received everything.

2023-07-04 22:58:07 | [Mutex] isItemNotified: received:node:f30cbc1f-082e-4b01-9c8e-445513569f24:localhost:node-edf79e33-2521-4968-b755-4f4415808e47:Node edf79e33-2521-4968-b755-4f4415808e47 :: false

deleteSubnodes 1.023s
2023-07-04 22:58:05 |

2023-07-04 22:58:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:05 | ------------------------------------

2023-07-04 22:58:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-77ffa54f-ce83-4027-bbab-20cfa75469a7"
}

2023-07-04 22:58:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-04 22:58:06 | [Mutex] waiting for: [received:nodes:c87a1b7e-a6fa-4ec6-b377-9d58f363c280:localhost]

2023-07-04 22:58:06 | [Mutex] waiting for: [received:nodes:c87a1b7e-a6fa-4ec6-b377-9d58f363c280:localhost]

2023-07-04 22:58:06 | [Mutex] waiting for: [received:nodes:c87a1b7e-a6fa-4ec6-b377-9d58f363c280:localhost]

2023-07-04 22:58:06 | [Mutex] received everything.

2023-07-04 22:58:06 | [Mutex] isItemNotified: received:node:c87a1b7e-a6fa-4ec6-b377-9d58f363c280:localhost:node-77ffa54f-ce83-4027-bbab-20cfa75469a7:Node 77ffa54f-ce83-4027-bbab-20cfa75469a7 :: false

2023-07-04 22:58:06 | [Mutex] waiting for: [received:nodes:5046b3b7-7be2-467b-93f2-b119c823913f:localhost]

2023-07-04 22:58:06 | [Mutex] received everything.

2023-07-04 22:58:06 | [Mutex] isItemNotified: received:node:5046b3b7-7be2-467b-93f2-b119c823913f:localhost:node-77ffa54f-ce83-4027-bbab-20cfa75469a7:Node 77ffa54f-ce83-4027-bbab-20cfa75469a7 :: false

publishItemsToNodes 0.045s
2023-07-04 22:58:04 |

2023-07-04 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:04 | ------------------------------------

2023-07-04 22:58:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-77ffa54f-ce83-4027-bbab-20cfa75469a7",
    "entry": "<test>item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9</test>",
    "item-id": "item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9"
}

2023-07-04 22:58:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9"
}

2023-07-04 22:58:04 | [Mutex] waiting for: [published:item:notifieditem-25dc4cc4-cc42-414f-bcf4-5518397ae4b9:admin@test-domain.com]

2023-07-04 22:58:04 | [Mutex] received everything.

2023-07-04 22:58:04 | [Mutex] isItemNotified: published:item:notifieditem-25dc4cc4-cc42-414f-bcf4-5518397ae4b9:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-07-04 22:58:04 |

2023-07-04 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:04 | ------------------------------------

2023-07-04 22:58:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-77ffa54f-ce83-4027-bbab-20cfa75469a7",
    "item-id": "item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9"
}

2023-07-04 22:58:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9"
}

2023-07-04 22:58:04 | [Mutex] waiting for: [retracted:item:notifieditem-25dc4cc4-cc42-414f-bcf4-5518397ae4b9:admin@test-domain.com]

2023-07-04 22:58:04 | [Mutex] received everything.

2023-07-04 22:58:04 | [Mutex] isItemNotified: retracted:item:notifieditem-25dc4cc4-cc42-414f-bcf4-5518397ae4b9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2023-07-04 22:58:04 |

2023-07-04 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:04 | ------------------------------------

2023-07-04 22:58:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-77ffa54f-ce83-4027-bbab-20cfa75469a7",
    "item-id": "item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9"
}

2023-07-04 22:58:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-77ffa54f-ce83-4027-bbab-20cfa75469a7",
    "item-id": "item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9",
    "item": [
        "<item id=\"item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9\"><test>item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9</test></item>"
    ]
}

2023-07-04 22:58:04 | [Mutex] notify: [retrieved:item:item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9:payload-matches:true:localhost]

2023-07-04 22:58:04 | [Mutex] received everything.

2023-07-04 22:58:04 | [Mutex] isItemNotified: retrieved:item:item-25dc4cc4-cc42-414f-bcf4-5518397ae4b9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-04 22:58:04 |

2023-07-04 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:04 | ------------------------------------

2023-07-04 22:58:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-04 22:58:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-77ffa54f-ce83-4027-bbab-20cfa75469a7",
        "node-edf79e33-2521-4968-b755-4f4415808e47"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-07-04 22:58:04 |

2023-07-04 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:04 | ------------------------------------

2023-07-04 22:58:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-77ffa54f-ce83-4027-bbab-20cfa75469a7)"
}

2023-07-04 22:58:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2023-07-04 22:58:03 |

2023-07-04 22:58:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:03 | ------------------------------------

2023-07-04 22:58:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-77ffa54f-ce83-4027-bbab-20cfa75469a7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-04 22:58:03 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2023-07-04 22:58:04 |

2023-07-04 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:58:04 | ------------------------------------

2023-07-04 22:58:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-77ffa54f-ce83-4027-bbab-20cfa75469a7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-04 22:58:04 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}