Generated by TestNG with ReportNG at 22:50 PDT on Friday 22 July 2022
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.802s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2022-07-22 23:04:50 |

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

2022-07-22 23:04:50 | ------------------------------------

2022-07-22 23:04:50 | [Mutex] waiting for: [configured:node:node-c95b2457-311e-41d5-b43e-8b08023ee944:node-b42e5bb1-97d9-4729-97c0-4095c94f2416]

2022-07-22 23:04:50 | [Mutex] received everything.

2022-07-22 23:04:50 | [Mutex] isItemNotified: configured:node:node-c95b2457-311e-41d5-b43e-8b08023ee944:node-b42e5bb1-97d9-4729-97c0-4095c94f2416 :: true

2022-07-22 23:04:51 | [Mutex] waiting for: [received:nodes:57f1aa50-d61a-49dd-9733-d4b7efbdb1b1:localhost]

2022-07-22 23:04:51 | [Mutex] received everything.

2022-07-22 23:04:51 | [Mutex] isItemNotified: received:node:57f1aa50-d61a-49dd-9733-d4b7efbdb1b1:localhost:node-c95b2457-311e-41d5-b43e-8b08023ee944:Node c95b2457-311e-41d5-b43e-8b08023ee944 :: true

2022-07-22 23:04:51 | [Mutex] waiting for: [received:nodes:1d2ffdfc-26cf-4fc3-b924-80611d7b4adb:localhost]

2022-07-22 23:04:51 | [Mutex] received everything.

2022-07-22 23:04:51 | [Mutex] isItemNotified: received:node:1d2ffdfc-26cf-4fc3-b924-80611d7b4adb:localhost:node-c95b2457-311e-41d5-b43e-8b08023ee944:Node c95b2457-311e-41d5-b43e-8b08023ee944 :: false

createNodes 1.691s
2022-07-22 23:04:47 |

2022-07-22 23:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 23:04:47 | ------------------------------------

2022-07-22 23:04:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c95b2457-311e-41d5-b43e-8b08023ee944",
    "pubsub#title": "Node c95b2457-311e-41d5-b43e-8b08023ee944"
}

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

2022-07-22 23:04:49 | [Mutex] waiting for: [received:nodes:5b65dac6-c5b2-4218-9b4a-1292e8d4bff8:localhost]

2022-07-22 23:04:49 | [Mutex] received everything.

2022-07-22 23:04:49 | [Mutex] isItemNotified: received:node:5b65dac6-c5b2-4218-9b4a-1292e8d4bff8:localhost:node-c95b2457-311e-41d5-b43e-8b08023ee944:Node c95b2457-311e-41d5-b43e-8b08023ee944 :: true

createSubnodes 1.021s
2022-07-22 23:04:49 |

2022-07-22 23:04:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-22 23:04:49 | ------------------------------------

2022-07-22 23:04:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b42e5bb1-97d9-4729-97c0-4095c94f2416",
    "pubsub#title": "Node b42e5bb1-97d9-4729-97c0-4095c94f2416"
}

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

2022-07-22 23:04:50 | [Mutex] waiting for: [received:nodes:d712b938-331a-4856-8929-f0e25ed3d709:localhost]

2022-07-22 23:04:50 | [Mutex] received everything.

2022-07-22 23:04:50 | [Mutex] isItemNotified: received:node:d712b938-331a-4856-8929-f0e25ed3d709:localhost:node-b42e5bb1-97d9-4729-97c0-4095c94f2416:Node b42e5bb1-97d9-4729-97c0-4095c94f2416 :: true

deleteNodes 1.023s
2022-07-22 23:04:54 |

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

2022-07-22 23:04:54 | ------------------------------------

2022-07-22 23:04:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b42e5bb1-97d9-4729-97c0-4095c94f2416"
}

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

2022-07-22 23:04:55 | [Mutex] waiting for: [received:nodes:05a74bcc-a15f-4029-9dd0-fe6309656270:localhost]

2022-07-22 23:04:55 | [Mutex] received everything.

2022-07-22 23:04:55 | [Mutex] isItemNotified: received:node:05a74bcc-a15f-4029-9dd0-fe6309656270:localhost:node-b42e5bb1-97d9-4729-97c0-4095c94f2416:Node b42e5bb1-97d9-4729-97c0-4095c94f2416 :: false

deleteSubnodes 1.023s
2022-07-22 23:04:53 |

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

2022-07-22 23:04:53 | ------------------------------------

2022-07-22 23:04:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c95b2457-311e-41d5-b43e-8b08023ee944"
}

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

2022-07-22 23:04:54 | [Mutex] waiting for: [received:nodes:2db7d2fc-538a-4b90-82dc-a5ca7be82317:localhost]

2022-07-22 23:04:54 | [Mutex] received everything.

2022-07-22 23:04:54 | [Mutex] isItemNotified: received:node:2db7d2fc-538a-4b90-82dc-a5ca7be82317:localhost:node-c95b2457-311e-41d5-b43e-8b08023ee944:Node c95b2457-311e-41d5-b43e-8b08023ee944 :: false

2022-07-22 23:04:54 | [Mutex] waiting for: [received:nodes:946931ea-8203-44ad-a463-ad8f43f2e653:localhost]

2022-07-22 23:04:54 | [Mutex] received everything.

2022-07-22 23:04:54 | [Mutex] isItemNotified: received:node:946931ea-8203-44ad-a463-ad8f43f2e653:localhost:node-c95b2457-311e-41d5-b43e-8b08023ee944:Node c95b2457-311e-41d5-b43e-8b08023ee944 :: false

publishItemsToNodes 0.031s
2022-07-22 23:04:52 |

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

2022-07-22 23:04:52 | ------------------------------------

2022-07-22 23:04:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c95b2457-311e-41d5-b43e-8b08023ee944",
    "entry": "<test>item-62eb30c2-b979-46c0-9bab-133e754acb8c</test>",
    "item-id": "item-62eb30c2-b979-46c0-9bab-133e754acb8c"
}

2022-07-22 23:04:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-62eb30c2-b979-46c0-9bab-133e754acb8c"
}

2022-07-22 23:04:52 | [Mutex] waiting for: [published:item:notifieditem-62eb30c2-b979-46c0-9bab-133e754acb8c:admin@test-domain.com]

2022-07-22 23:04:52 | [Mutex] received everything.

2022-07-22 23:04:52 | [Mutex] isItemNotified: published:item:notifieditem-62eb30c2-b979-46c0-9bab-133e754acb8c:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2022-07-22 23:04:52 |

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

2022-07-22 23:04:52 | ------------------------------------

2022-07-22 23:04:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c95b2457-311e-41d5-b43e-8b08023ee944",
    "item-id": "item-62eb30c2-b979-46c0-9bab-133e754acb8c"
}

2022-07-22 23:04:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-62eb30c2-b979-46c0-9bab-133e754acb8c"
}

2022-07-22 23:04:52 | [Mutex] received everything.

2022-07-22 23:04:52 | [Mutex] isItemNotified: retracted:item:notifieditem-62eb30c2-b979-46c0-9bab-133e754acb8c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-07-22 23:04:52 |

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

2022-07-22 23:04:52 | ------------------------------------

2022-07-22 23:04:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c95b2457-311e-41d5-b43e-8b08023ee944",
    "item-id": "item-62eb30c2-b979-46c0-9bab-133e754acb8c"
}

2022-07-22 23:04:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c95b2457-311e-41d5-b43e-8b08023ee944",
    "item-id": "item-62eb30c2-b979-46c0-9bab-133e754acb8c",
    "item": [
        "<item id=\"item-62eb30c2-b979-46c0-9bab-133e754acb8c\"><test>item-62eb30c2-b979-46c0-9bab-133e754acb8c</test></item>"
    ]
}

2022-07-22 23:04:52 | [Mutex] notify: [retrieved:item:item-62eb30c2-b979-46c0-9bab-133e754acb8c:payload-matches:true:localhost]

2022-07-22 23:04:52 | [Mutex] received everything.

2022-07-22 23:04:52 | [Mutex] isItemNotified: retrieved:item:item-62eb30c2-b979-46c0-9bab-133e754acb8c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-07-22 23:04:52 |

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

2022-07-22 23:04:52 | ------------------------------------

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

2022-07-22 23:04:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b42e5bb1-97d9-4729-97c0-4095c94f2416",
        "node-c95b2457-311e-41d5-b43e-8b08023ee944"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-07-22 23:04:52 |

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

2022-07-22 23:04:52 | ------------------------------------

2022-07-22 23:04:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c95b2457-311e-41d5-b43e-8b08023ee944)"
}

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

subscribeNodes 1.009s
2022-07-22 23:04:51 |

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

2022-07-22 23:04:51 | ------------------------------------

2022-07-22 23:04:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c95b2457-311e-41d5-b43e-8b08023ee944",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.074s
2022-07-22 23:04:52 |

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

2022-07-22 23:04:52 | ------------------------------------

2022-07-22 23:04:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c95b2457-311e-41d5-b43e-8b08023ee944",
    "jids": [
        "admin@test-domain.com"
    ]
}

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