Generated by TestNG with ReportNG at 21:28 PST on Sunday 05 December 2021
root@785cf647a4ab / 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.090s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.175s
2021-12-05 21:43:09 |

2021-12-05 21:43:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:09 | ------------------------------------

2021-12-05 21:43:09 | [Mutex] waiting for: [configured:node:node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8:node-68293d1b-dcbe-40b7-9c87-e9ad393b5292]

2021-12-05 21:43:09 | [Mutex] received everything.

2021-12-05 21:43:09 | [Mutex] isItemNotified: configured:node:node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8:node-68293d1b-dcbe-40b7-9c87-e9ad393b5292 :: true

2021-12-05 21:43:10 | [Mutex] waiting for: [received:nodes:3d0a6866-309e-45dd-9629-9e6d90ff44b1:localhost]

2021-12-05 21:43:10 | [Mutex] received everything.

2021-12-05 21:43:10 | [Mutex] isItemNotified: received:node:3d0a6866-309e-45dd-9629-9e6d90ff44b1:localhost:node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8:Node 53ef4b31-a2ae-4fbb-8639-97db8436e1e8 :: true

2021-12-05 21:43:10 | [Mutex] waiting for: [received:nodes:087f38e4-021b-463c-9a24-608abd0c9161:localhost]

2021-12-05 21:43:10 | [Mutex] received everything.

2021-12-05 21:43:10 | [Mutex] isItemNotified: received:node:087f38e4-021b-463c-9a24-608abd0c9161:localhost:node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8:Node 53ef4b31-a2ae-4fbb-8639-97db8436e1e8 :: false

createNodes 1.597s
2021-12-05 21:43:06 |

2021-12-05 21:43:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:06 | ------------------------------------

2021-12-05 21:43:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8",
    "pubsub#title": "Node 53ef4b31-a2ae-4fbb-8639-97db8436e1e8"
}

2021-12-05 21:43:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-05 21:43:08 | [Mutex] waiting for: [received:nodes:40f4b594-394c-4dce-aeba-a1ffd761395a:localhost]

2021-12-05 21:43:08 | [Mutex] received everything.

2021-12-05 21:43:08 | [Mutex] isItemNotified: received:node:40f4b594-394c-4dce-aeba-a1ffd761395a:localhost:node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8:Node 53ef4b31-a2ae-4fbb-8639-97db8436e1e8 :: true

createSubnodes 1.036s
2021-12-05 21:43:08 |

2021-12-05 21:43:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:08 | ------------------------------------

2021-12-05 21:43:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-68293d1b-dcbe-40b7-9c87-e9ad393b5292",
    "pubsub#title": "Node 68293d1b-dcbe-40b7-9c87-e9ad393b5292"
}

2021-12-05 21:43:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-05 21:43:09 | [Mutex] waiting for: [received:nodes:05d6144d-4f11-483f-ab2b-f6f3bbaa868c:localhost]

2021-12-05 21:43:09 | [Mutex] received everything.

2021-12-05 21:43:09 | [Mutex] isItemNotified: received:node:05d6144d-4f11-483f-ab2b-f6f3bbaa868c:localhost:node-68293d1b-dcbe-40b7-9c87-e9ad393b5292:Node 68293d1b-dcbe-40b7-9c87-e9ad393b5292 :: true

deleteNodes 1.029s
2021-12-05 21:43:13 |

2021-12-05 21:43:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:13 | ------------------------------------

2021-12-05 21:43:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-68293d1b-dcbe-40b7-9c87-e9ad393b5292"
}

2021-12-05 21:43:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-05 21:43:14 | [Mutex] waiting for: [received:nodes:fd2aa94c-15da-4816-82dc-a40caf24e210:localhost]

2021-12-05 21:43:14 | [Mutex] received everything.

2021-12-05 21:43:14 | [Mutex] isItemNotified: received:node:fd2aa94c-15da-4816-82dc-a40caf24e210:localhost:node-68293d1b-dcbe-40b7-9c87-e9ad393b5292:Node 68293d1b-dcbe-40b7-9c87-e9ad393b5292 :: false

deleteSubnodes 1.036s
2021-12-05 21:43:12 |

2021-12-05 21:43:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:12 | ------------------------------------

2021-12-05 21:43:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8"
}

2021-12-05 21:43:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-05 21:43:13 | [Mutex] waiting for: [received:nodes:a7204182-3e9f-4dcc-89a2-724a8f764955:localhost]

2021-12-05 21:43:13 | [Mutex] waiting for: [received:nodes:a7204182-3e9f-4dcc-89a2-724a8f764955:localhost]

2021-12-05 21:43:13 | [Mutex] received everything.

2021-12-05 21:43:13 | [Mutex] isItemNotified: received:node:a7204182-3e9f-4dcc-89a2-724a8f764955:localhost:node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8:Node 53ef4b31-a2ae-4fbb-8639-97db8436e1e8 :: false

2021-12-05 21:43:13 | [Mutex] waiting for: [received:nodes:d3c76533-0f5f-47a9-b156-5876551ff84e:localhost]

2021-12-05 21:43:13 | [Mutex] received everything.

2021-12-05 21:43:13 | [Mutex] isItemNotified: received:node:d3c76533-0f5f-47a9-b156-5876551ff84e:localhost:node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8:Node 53ef4b31-a2ae-4fbb-8639-97db8436e1e8 :: false

publishItemsToNodes 0.061s
2021-12-05 21:43:11 |

2021-12-05 21:43:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:11 | ------------------------------------

2021-12-05 21:43:11 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8",
    "entry": "<test>item-2862f37b-6112-4fd9-bdf5-569cdef2177a</test>",
    "item-id": "item-2862f37b-6112-4fd9-bdf5-569cdef2177a"
}

2021-12-05 21:43:11 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2862f37b-6112-4fd9-bdf5-569cdef2177a"
}

2021-12-05 21:43:11 | [Mutex] waiting for: [published:item:notifieditem-2862f37b-6112-4fd9-bdf5-569cdef2177a:admin@test-domain.com]

2021-12-05 21:43:11 | [Mutex] received everything.

2021-12-05 21:43:11 | [Mutex] isItemNotified: published:item:notifieditem-2862f37b-6112-4fd9-bdf5-569cdef2177a:admin@test-domain.com :: true

retractItemsFromNodes 0.073s
2021-12-05 21:43:11 |

2021-12-05 21:43:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:11 | ------------------------------------

2021-12-05 21:43:11 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8",
    "item-id": "item-2862f37b-6112-4fd9-bdf5-569cdef2177a"
}

2021-12-05 21:43:11 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2862f37b-6112-4fd9-bdf5-569cdef2177a"
}

2021-12-05 21:43:11 | [Mutex] waiting for: [retracted:item:notifieditem-2862f37b-6112-4fd9-bdf5-569cdef2177a:admin@test-domain.com]

2021-12-05 21:43:11 | [Mutex] received everything.

2021-12-05 21:43:11 | [Mutex] isItemNotified: retracted:item:notifieditem-2862f37b-6112-4fd9-bdf5-569cdef2177a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2021-12-05 21:43:11 |

2021-12-05 21:43:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:11 | ------------------------------------

2021-12-05 21:43:11 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8",
    "item-id": "item-2862f37b-6112-4fd9-bdf5-569cdef2177a"
}

2021-12-05 21:43:11 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8",
    "item-id": "item-2862f37b-6112-4fd9-bdf5-569cdef2177a",
    "item": [
        "<item id=\"item-2862f37b-6112-4fd9-bdf5-569cdef2177a\"><test>item-2862f37b-6112-4fd9-bdf5-569cdef2177a</test></item>"
    ]
}

2021-12-05 21:43:11 | [Mutex] notify: [retrieved:item:item-2862f37b-6112-4fd9-bdf5-569cdef2177a:payload-matches:true:localhost]

2021-12-05 21:43:11 | [Mutex] received everything.

2021-12-05 21:43:11 | [Mutex] isItemNotified: retrieved:item:item-2862f37b-6112-4fd9-bdf5-569cdef2177a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-12-05 21:43:11 |

2021-12-05 21:43:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:11 | ------------------------------------

2021-12-05 21:43:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-12-05 21:43:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8",
        "node-68293d1b-dcbe-40b7-9c87-e9ad393b5292"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-12-05 21:43:11 |

2021-12-05 21:43:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:11 | ------------------------------------

2021-12-05 21:43:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8)"
}

2021-12-05 21:43:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-12-05 21:43:10 |

2021-12-05 21:43:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:10 | ------------------------------------

2021-12-05 21:43:10 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-05 21:43:10 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.057s
2021-12-05 21:43:11 |

2021-12-05 21:43:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 21:43:11 | ------------------------------------

2021-12-05 21:43:11 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-53ef4b31-a2ae-4fbb-8639-97db8436e1e8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-05 21:43:11 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}