Generated by TestNG with ReportNG at 22:20 PDT on Wednesday 07 September 2022
root@f9c07ffec79b / 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.739s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2022-09-07 22:41:52 |

2022-09-07 22:41:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:52 | ------------------------------------

2022-09-07 22:41:52 | [Mutex] waiting for: [configured:node:node-7bdebc69-6aec-4300-ba7e-b87d681146bd:node-b0ff88bb-2152-4c51-8864-9ebadc01d2ce]

2022-09-07 22:41:52 | [Mutex] received everything.

2022-09-07 22:41:52 | [Mutex] isItemNotified: configured:node:node-7bdebc69-6aec-4300-ba7e-b87d681146bd:node-b0ff88bb-2152-4c51-8864-9ebadc01d2ce :: true

2022-09-07 22:41:53 | [Mutex] waiting for: [received:nodes:e00789d6-3cd5-4f60-b3c1-a07ae6fa941e:localhost]

2022-09-07 22:41:53 | [Mutex] received everything.

2022-09-07 22:41:53 | [Mutex] isItemNotified: received:node:e00789d6-3cd5-4f60-b3c1-a07ae6fa941e:localhost:node-7bdebc69-6aec-4300-ba7e-b87d681146bd:Node 7bdebc69-6aec-4300-ba7e-b87d681146bd :: true

2022-09-07 22:41:53 | [Mutex] waiting for: [received:nodes:db79abbd-4677-43b2-93a1-cc60b97077ca:localhost]

2022-09-07 22:41:53 | [Mutex] received everything.

2022-09-07 22:41:53 | [Mutex] isItemNotified: received:node:db79abbd-4677-43b2-93a1-cc60b97077ca:localhost:node-7bdebc69-6aec-4300-ba7e-b87d681146bd:Node 7bdebc69-6aec-4300-ba7e-b87d681146bd :: false

createNodes 1.641s
2022-09-07 22:41:50 |

2022-09-07 22:41:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:50 | ------------------------------------

2022-09-07 22:41:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7bdebc69-6aec-4300-ba7e-b87d681146bd",
    "pubsub#title": "Node 7bdebc69-6aec-4300-ba7e-b87d681146bd"
}

2022-09-07 22:41:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-07 22:41:51 | [Mutex] waiting for: [received:nodes:ab4f4014-26ea-4448-ad04-c86888739127:localhost]

2022-09-07 22:41:51 | [Mutex] waiting for: [received:nodes:ab4f4014-26ea-4448-ad04-c86888739127:localhost]

2022-09-07 22:41:51 | [Mutex] received everything.

2022-09-07 22:41:51 | [Mutex] isItemNotified: received:node:ab4f4014-26ea-4448-ad04-c86888739127:localhost:node-7bdebc69-6aec-4300-ba7e-b87d681146bd:Node 7bdebc69-6aec-4300-ba7e-b87d681146bd :: true

createSubnodes 1.023s
2022-09-07 22:41:51 |

2022-09-07 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:51 | ------------------------------------

2022-09-07 22:41:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b0ff88bb-2152-4c51-8864-9ebadc01d2ce",
    "pubsub#title": "Node b0ff88bb-2152-4c51-8864-9ebadc01d2ce"
}

2022-09-07 22:41:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-07 22:41:52 | [Mutex] waiting for: [received:nodes:0aaa711a-f321-4c14-9c4d-94cbe8e75076:localhost]

2022-09-07 22:41:52 | [Mutex] waiting for: [received:nodes:0aaa711a-f321-4c14-9c4d-94cbe8e75076:localhost]

2022-09-07 22:41:52 | [Mutex] received everything.

2022-09-07 22:41:52 | [Mutex] isItemNotified: received:node:0aaa711a-f321-4c14-9c4d-94cbe8e75076:localhost:node-b0ff88bb-2152-4c51-8864-9ebadc01d2ce:Node b0ff88bb-2152-4c51-8864-9ebadc01d2ce :: true

deleteNodes 1.028s
2022-09-07 22:41:57 |

2022-09-07 22:41:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:57 | ------------------------------------

2022-09-07 22:41:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b0ff88bb-2152-4c51-8864-9ebadc01d2ce"
}

2022-09-07 22:41:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-07 22:41:58 | [Mutex] waiting for: [received:nodes:cabe39e4-83dd-4894-9d85-90a00abcac17:localhost]

2022-09-07 22:41:58 | [Mutex] waiting for: [received:nodes:cabe39e4-83dd-4894-9d85-90a00abcac17:localhost]

2022-09-07 22:41:58 | [Mutex] received everything.

2022-09-07 22:41:58 | [Mutex] isItemNotified: received:node:cabe39e4-83dd-4894-9d85-90a00abcac17:localhost:node-b0ff88bb-2152-4c51-8864-9ebadc01d2ce:Node b0ff88bb-2152-4c51-8864-9ebadc01d2ce :: false

deleteSubnodes 1.025s
2022-09-07 22:41:56 |

2022-09-07 22:41:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:56 | ------------------------------------

2022-09-07 22:41:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7bdebc69-6aec-4300-ba7e-b87d681146bd"
}

2022-09-07 22:41:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-07 22:41:57 | [Mutex] waiting for: [received:nodes:e96735ee-2f58-43c8-9937-0b0e2c964a1b:localhost]

2022-09-07 22:41:57 | [Mutex] received everything.

2022-09-07 22:41:57 | [Mutex] isItemNotified: received:node:e96735ee-2f58-43c8-9937-0b0e2c964a1b:localhost:node-7bdebc69-6aec-4300-ba7e-b87d681146bd:Node 7bdebc69-6aec-4300-ba7e-b87d681146bd :: false

2022-09-07 22:41:57 | [Mutex] waiting for: [received:nodes:34239c99-e7c6-4565-b01f-7e59be552a80:localhost]

2022-09-07 22:41:57 | [Mutex] received everything.

2022-09-07 22:41:57 | [Mutex] isItemNotified: received:node:34239c99-e7c6-4565-b01f-7e59be552a80:localhost:node-7bdebc69-6aec-4300-ba7e-b87d681146bd:Node 7bdebc69-6aec-4300-ba7e-b87d681146bd :: false

publishItemsToNodes 0.032s
2022-09-07 22:41:54 |

2022-09-07 22:41:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:54 | ------------------------------------

2022-09-07 22:41:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7bdebc69-6aec-4300-ba7e-b87d681146bd",
    "entry": "<test>item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b</test>",
    "item-id": "item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b"
}

2022-09-07 22:41:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b"
}

2022-09-07 22:41:54 | [Mutex] waiting for: [published:item:notifieditem-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b:admin@test-domain.com]

2022-09-07 22:41:54 | [Mutex] received everything.

2022-09-07 22:41:54 | [Mutex] isItemNotified: published:item:notifieditem-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-09-07 22:41:54 |

2022-09-07 22:41:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:54 | ------------------------------------

2022-09-07 22:41:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7bdebc69-6aec-4300-ba7e-b87d681146bd",
    "item-id": "item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b"
}

2022-09-07 22:41:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b"
}

2022-09-07 22:41:55 | [Mutex] received everything.

2022-09-07 22:41:55 | [Mutex] isItemNotified: retracted:item:notifieditem-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2022-09-07 22:41:54 |

2022-09-07 22:41:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:54 | ------------------------------------

2022-09-07 22:41:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7bdebc69-6aec-4300-ba7e-b87d681146bd",
    "item-id": "item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b"
}

2022-09-07 22:41:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7bdebc69-6aec-4300-ba7e-b87d681146bd",
    "item-id": "item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b",
    "item": [
        "<item id=\"item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b\"><test>item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b</test></item>"
    ]
}

2022-09-07 22:41:54 | [Mutex] notify: [retrieved:item:item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b:payload-matches:true:localhost]

2022-09-07 22:41:54 | [Mutex] received everything.

2022-09-07 22:41:54 | [Mutex] isItemNotified: retrieved:item:item-6b0112ce-a9e6-47fa-a4d3-b861d1956a5b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2022-09-07 22:41:54 |

2022-09-07 22:41:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:54 | ------------------------------------

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

2022-09-07 22:41:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b0ff88bb-2152-4c51-8864-9ebadc01d2ce",
        "test",
        "node-7bdebc69-6aec-4300-ba7e-b87d681146bd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-09-07 22:41:54 |

2022-09-07 22:41:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:54 | ------------------------------------

2022-09-07 22:41:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7bdebc69-6aec-4300-ba7e-b87d681146bd)"
}

2022-09-07 22:41:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-09-07 22:41:53 |

2022-09-07 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:53 | ------------------------------------

2022-09-07 22:41:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7bdebc69-6aec-4300-ba7e-b87d681146bd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-07 22:41:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.135s
2022-09-07 22:41:55 |

2022-09-07 22:41:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:41:55 | ------------------------------------

2022-09-07 22:41:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7bdebc69-6aec-4300-ba7e-b87d681146bd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-07 22:41:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}