Generated by TestNG with ReportNG at 22:44 PDT on Wednesday 15 March 2023
root@ed1b7dd8a1b3 / Java 17.0.2 (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.629s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.076s
2023-03-15 22:59:29 |

2023-03-15 22:59:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:29 | ------------------------------------

2023-03-15 22:59:29 | [Mutex] waiting for: [configured:node:node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0:node-c17786d4-9559-4d1d-9262-036bbc462f6d]

2023-03-15 22:59:29 | [Mutex] received everything.

2023-03-15 22:59:29 | [Mutex] isItemNotified: configured:node:node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0:node-c17786d4-9559-4d1d-9262-036bbc462f6d :: true

2023-03-15 22:59:30 | [Mutex] waiting for: [received:nodes:bc0482fa-c152-4653-b994-da6aabdd87f8:localhost]

2023-03-15 22:59:30 | [Mutex] received everything.

2023-03-15 22:59:30 | [Mutex] isItemNotified: received:node:bc0482fa-c152-4653-b994-da6aabdd87f8:localhost:node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0:Node ecd4222f-bb05-42c2-ad7e-b75ab87256c0 :: true

2023-03-15 22:59:30 | [Mutex] waiting for: [received:nodes:40ad1435-33c5-41e1-aab1-9cd6bf468291:localhost]

2023-03-15 22:59:30 | [Mutex] received everything.

2023-03-15 22:59:30 | [Mutex] isItemNotified: received:node:40ad1435-33c5-41e1-aab1-9cd6bf468291:localhost:node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0:Node ecd4222f-bb05-42c2-ad7e-b75ab87256c0 :: false

createNodes 1.588s
2023-03-15 22:59:26 |

2023-03-15 22:59:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:26 | ------------------------------------

2023-03-15 22:59:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0",
    "pubsub#title": "Node ecd4222f-bb05-42c2-ad7e-b75ab87256c0"
}

2023-03-15 22:59:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 22:59:28 | [Mutex] waiting for: [received:nodes:464477df-8ae2-4861-9da6-649e53832183:localhost]

2023-03-15 22:59:28 | [Mutex] waiting for: [received:nodes:464477df-8ae2-4861-9da6-649e53832183:localhost]

2023-03-15 22:59:28 | [Mutex] waiting for: [received:nodes:464477df-8ae2-4861-9da6-649e53832183:localhost]

2023-03-15 22:59:28 | [Mutex] waiting for: [received:nodes:464477df-8ae2-4861-9da6-649e53832183:localhost]

2023-03-15 22:59:28 | [Mutex] received everything.

2023-03-15 22:59:28 | [Mutex] isItemNotified: received:node:464477df-8ae2-4861-9da6-649e53832183:localhost:node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0:Node ecd4222f-bb05-42c2-ad7e-b75ab87256c0 :: true

createSubnodes 1.026s
2023-03-15 22:59:28 |

2023-03-15 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:28 | ------------------------------------

2023-03-15 22:59:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c17786d4-9559-4d1d-9262-036bbc462f6d",
    "pubsub#title": "Node c17786d4-9559-4d1d-9262-036bbc462f6d"
}

2023-03-15 22:59:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 22:59:29 | [Mutex] waiting for: [received:nodes:b610598d-f36e-48d3-a150-7b84158b6e4e:localhost]

2023-03-15 22:59:29 | [Mutex] received everything.

2023-03-15 22:59:29 | [Mutex] isItemNotified: received:node:b610598d-f36e-48d3-a150-7b84158b6e4e:localhost:node-c17786d4-9559-4d1d-9262-036bbc462f6d:Node c17786d4-9559-4d1d-9262-036bbc462f6d :: true

deleteNodes 1.017s
2023-03-15 22:59:33 |

2023-03-15 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:33 | ------------------------------------

2023-03-15 22:59:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c17786d4-9559-4d1d-9262-036bbc462f6d"
}

2023-03-15 22:59:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 22:59:34 | [Mutex] waiting for: [received:nodes:77d784ca-2538-4bd1-a767-a3261b6aece3:localhost]

2023-03-15 22:59:34 | [Mutex] waiting for: [received:nodes:77d784ca-2538-4bd1-a767-a3261b6aece3:localhost]

2023-03-15 22:59:34 | [Mutex] waiting for: [received:nodes:77d784ca-2538-4bd1-a767-a3261b6aece3:localhost]

2023-03-15 22:59:34 | [Mutex] received everything.

2023-03-15 22:59:34 | [Mutex] isItemNotified: received:node:77d784ca-2538-4bd1-a767-a3261b6aece3:localhost:node-c17786d4-9559-4d1d-9262-036bbc462f6d:Node c17786d4-9559-4d1d-9262-036bbc462f6d :: false

deleteSubnodes 1.029s
2023-03-15 22:59:32 |

2023-03-15 22:59:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:32 | ------------------------------------

2023-03-15 22:59:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0"
}

2023-03-15 22:59:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 22:59:33 | [Mutex] waiting for: [received:nodes:c3030fe9-8589-449b-b9d4-6af0d5a5a409:localhost]

2023-03-15 22:59:33 | [Mutex] waiting for: [received:nodes:c3030fe9-8589-449b-b9d4-6af0d5a5a409:localhost]

2023-03-15 22:59:33 | [Mutex] waiting for: [received:nodes:c3030fe9-8589-449b-b9d4-6af0d5a5a409:localhost]

2023-03-15 22:59:33 | [Mutex] waiting for: [received:nodes:c3030fe9-8589-449b-b9d4-6af0d5a5a409:localhost]

2023-03-15 22:59:33 | [Mutex] received everything.

2023-03-15 22:59:33 | [Mutex] isItemNotified: received:node:c3030fe9-8589-449b-b9d4-6af0d5a5a409:localhost:node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0:Node ecd4222f-bb05-42c2-ad7e-b75ab87256c0 :: false

2023-03-15 22:59:33 | [Mutex] waiting for: [received:nodes:87b10229-36ed-45cb-b4ac-b46daade98b9:localhost]

2023-03-15 22:59:33 | [Mutex] received everything.

2023-03-15 22:59:33 | [Mutex] isItemNotified: received:node:87b10229-36ed-45cb-b4ac-b46daade98b9:localhost:node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0:Node ecd4222f-bb05-42c2-ad7e-b75ab87256c0 :: false

publishItemsToNodes 0.036s
2023-03-15 22:59:31 |

2023-03-15 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:31 | ------------------------------------

2023-03-15 22:59:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0",
    "entry": "<test>item-be21b53b-6dcc-4d8e-a1ce-6921733161d7</test>",
    "item-id": "item-be21b53b-6dcc-4d8e-a1ce-6921733161d7"
}

2023-03-15 22:59:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-be21b53b-6dcc-4d8e-a1ce-6921733161d7"
}

2023-03-15 22:59:31 | [Mutex] waiting for: [published:item:notifieditem-be21b53b-6dcc-4d8e-a1ce-6921733161d7:admin@test-domain.com]

2023-03-15 22:59:31 | [Mutex] received everything.

2023-03-15 22:59:31 | [Mutex] isItemNotified: published:item:notifieditem-be21b53b-6dcc-4d8e-a1ce-6921733161d7:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2023-03-15 22:59:31 |

2023-03-15 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:31 | ------------------------------------

2023-03-15 22:59:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0",
    "item-id": "item-be21b53b-6dcc-4d8e-a1ce-6921733161d7"
}

2023-03-15 22:59:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-be21b53b-6dcc-4d8e-a1ce-6921733161d7"
}

2023-03-15 22:59:31 | [Mutex] waiting for: [retracted:item:notifieditem-be21b53b-6dcc-4d8e-a1ce-6921733161d7:admin@test-domain.com]

2023-03-15 22:59:31 | [Mutex] received everything.

2023-03-15 22:59:31 | [Mutex] isItemNotified: retracted:item:notifieditem-be21b53b-6dcc-4d8e-a1ce-6921733161d7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.053s
2023-03-15 22:59:31 |

2023-03-15 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:31 | ------------------------------------

2023-03-15 22:59:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0",
    "item-id": "item-be21b53b-6dcc-4d8e-a1ce-6921733161d7"
}

2023-03-15 22:59:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0",
    "item-id": "item-be21b53b-6dcc-4d8e-a1ce-6921733161d7",
    "item": [
        "<item id=\"item-be21b53b-6dcc-4d8e-a1ce-6921733161d7\"><test>item-be21b53b-6dcc-4d8e-a1ce-6921733161d7</test></item>"
    ]
}

2023-03-15 22:59:31 | [Mutex] notify: [retrieved:item:item-be21b53b-6dcc-4d8e-a1ce-6921733161d7:payload-matches:true:localhost]

2023-03-15 22:59:31 | [Mutex] received everything.

2023-03-15 22:59:31 | [Mutex] isItemNotified: retrieved:item:item-be21b53b-6dcc-4d8e-a1ce-6921733161d7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2023-03-15 22:59:31 |

2023-03-15 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:31 | ------------------------------------

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

2023-03-15 22:59:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0",
        "node-c17786d4-9559-4d1d-9262-036bbc462f6d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2023-03-15 22:59:31 |

2023-03-15 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:31 | ------------------------------------

2023-03-15 22:59:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0)"
}

2023-03-15 22:59:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-03-15 22:59:30 |

2023-03-15 22:59:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:30 | ------------------------------------

2023-03-15 22:59:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2023-03-15 22:59:31 |

2023-03-15 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:59:31 | ------------------------------------

2023-03-15 22:59:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ecd4222f-bb05-42c2-ad7e-b75ab87256c0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-15 22:59:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}