Generated by TestNG with ReportNG at 21:45 PST on Sunday 29 November 2020
root@43fec6d4badf / 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.065s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2020-11-29 22:02:51 |

2020-11-29 22:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:51 | ------------------------------------

2020-11-29 22:02:51 | [Mutex] waiting for: [configured:node:node-b42cfe89-78c7-4951-b2e7-f794ac828032:node-57200db3-dcbe-4fa7-b4d1-779cb6fa6c89]

2020-11-29 22:02:51 | [Mutex] received everything.

2020-11-29 22:02:51 | [Mutex] isItemNotified: configured:node:node-b42cfe89-78c7-4951-b2e7-f794ac828032:node-57200db3-dcbe-4fa7-b4d1-779cb6fa6c89 :: true

2020-11-29 22:02:52 | [Mutex] waiting for: [received:nodes:f89a9a46-9665-4cde-bd39-f86f579bd68a:localhost]

2020-11-29 22:02:52 | [Mutex] received everything.

2020-11-29 22:02:52 | [Mutex] isItemNotified: received:node:f89a9a46-9665-4cde-bd39-f86f579bd68a:localhost:node-b42cfe89-78c7-4951-b2e7-f794ac828032:Node b42cfe89-78c7-4951-b2e7-f794ac828032 :: true

2020-11-29 22:02:52 | [Mutex] waiting for: [received:nodes:28d82af5-aa2b-4ecb-938b-59f7f18f9f0a:localhost]

2020-11-29 22:02:52 | [Mutex] received everything.

2020-11-29 22:02:52 | [Mutex] isItemNotified: received:node:28d82af5-aa2b-4ecb-938b-59f7f18f9f0a:localhost:node-b42cfe89-78c7-4951-b2e7-f794ac828032:Node b42cfe89-78c7-4951-b2e7-f794ac828032 :: false

createNodes 1.632s
2020-11-29 22:02:48 |

2020-11-29 22:02:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:48 | ------------------------------------

2020-11-29 22:02: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-b42cfe89-78c7-4951-b2e7-f794ac828032",
    "pubsub#title": "Node b42cfe89-78c7-4951-b2e7-f794ac828032"
}

2020-11-29 22:02:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 22:02:50 | [Mutex] waiting for: [received:nodes:0b43a518-11cb-4927-b667-7414326a3d7e:localhost]

2020-11-29 22:02:50 | [Mutex] received everything.

2020-11-29 22:02:50 | [Mutex] isItemNotified: received:node:0b43a518-11cb-4927-b667-7414326a3d7e:localhost:node-b42cfe89-78c7-4951-b2e7-f794ac828032:Node b42cfe89-78c7-4951-b2e7-f794ac828032 :: true

createSubnodes 1.032s
2020-11-29 22:02:50 |

2020-11-29 22:02:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:50 | ------------------------------------

2020-11-29 22:02:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-57200db3-dcbe-4fa7-b4d1-779cb6fa6c89",
    "pubsub#title": "Node 57200db3-dcbe-4fa7-b4d1-779cb6fa6c89"
}

2020-11-29 22:02:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 22:02:51 | [Mutex] waiting for: [received:nodes:edbbb325-b1d0-414d-8013-75c5afcae7b8:localhost]

2020-11-29 22:02:51 | [Mutex] received everything.

2020-11-29 22:02:51 | [Mutex] isItemNotified: received:node:edbbb325-b1d0-414d-8013-75c5afcae7b8:localhost:node-57200db3-dcbe-4fa7-b4d1-779cb6fa6c89:Node 57200db3-dcbe-4fa7-b4d1-779cb6fa6c89 :: true

deleteNodes 1.020s
2020-11-29 22:02:55 |

2020-11-29 22:02:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:55 | ------------------------------------

2020-11-29 22:02:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-57200db3-dcbe-4fa7-b4d1-779cb6fa6c89"
}

2020-11-29 22:02:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 22:02:56 | [Mutex] waiting for: [received:nodes:d280911a-ba17-4cc4-a0d6-d7c1ccd92228:localhost]

2020-11-29 22:02:56 | [Mutex] received everything.

2020-11-29 22:02:56 | [Mutex] isItemNotified: received:node:d280911a-ba17-4cc4-a0d6-d7c1ccd92228:localhost:node-57200db3-dcbe-4fa7-b4d1-779cb6fa6c89:Node 57200db3-dcbe-4fa7-b4d1-779cb6fa6c89 :: false

deleteSubnodes 1.049s
2020-11-29 22:02:54 |

2020-11-29 22:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:54 | ------------------------------------

2020-11-29 22:02:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b42cfe89-78c7-4951-b2e7-f794ac828032"
}

2020-11-29 22:02:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 22:02:55 | [Mutex] waiting for: [received:nodes:77f20482-bfec-4c02-9324-15385d5c48f1:localhost]

2020-11-29 22:02:55 | [Mutex] received everything.

2020-11-29 22:02:55 | [Mutex] isItemNotified: received:node:77f20482-bfec-4c02-9324-15385d5c48f1:localhost:node-b42cfe89-78c7-4951-b2e7-f794ac828032:Node b42cfe89-78c7-4951-b2e7-f794ac828032 :: false

2020-11-29 22:02:55 | [Mutex] waiting for: [received:nodes:54af77cc-dd59-4169-950f-d7db4343ea87:localhost]

2020-11-29 22:02:55 | [Mutex] received everything.

2020-11-29 22:02:55 | [Mutex] isItemNotified: received:node:54af77cc-dd59-4169-950f-d7db4343ea87:localhost:node-b42cfe89-78c7-4951-b2e7-f794ac828032:Node b42cfe89-78c7-4951-b2e7-f794ac828032 :: false

publishItemsToNodes 0.037s
2020-11-29 22:02:53 |

2020-11-29 22:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:53 | ------------------------------------

2020-11-29 22:02:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b42cfe89-78c7-4951-b2e7-f794ac828032",
    "entry": "<test>item-eed3d45f-e11c-4f99-a176-90cb006fe9a0</test>",
    "item-id": "item-eed3d45f-e11c-4f99-a176-90cb006fe9a0"
}

2020-11-29 22:02:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-eed3d45f-e11c-4f99-a176-90cb006fe9a0"
}

2020-11-29 22:02:53 | [Mutex] waiting for: [published:item:notifieditem-eed3d45f-e11c-4f99-a176-90cb006fe9a0:admin@test-domain.com]

2020-11-29 22:02:53 | [Mutex] received everything.

2020-11-29 22:02:53 | [Mutex] isItemNotified: published:item:notifieditem-eed3d45f-e11c-4f99-a176-90cb006fe9a0:admin@test-domain.com :: true

retractItemsFromNodes 0.075s
2020-11-29 22:02:53 |

2020-11-29 22:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:53 | ------------------------------------

2020-11-29 22:02:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b42cfe89-78c7-4951-b2e7-f794ac828032",
    "item-id": "item-eed3d45f-e11c-4f99-a176-90cb006fe9a0"
}

2020-11-29 22:02:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-eed3d45f-e11c-4f99-a176-90cb006fe9a0"
}

2020-11-29 22:02:53 | [Mutex] received everything.

2020-11-29 22:02:53 | [Mutex] isItemNotified: retracted:item:notifieditem-eed3d45f-e11c-4f99-a176-90cb006fe9a0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.085s
2020-11-29 22:02:53 |

2020-11-29 22:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:53 | ------------------------------------

2020-11-29 22:02:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b42cfe89-78c7-4951-b2e7-f794ac828032",
    "item-id": "item-eed3d45f-e11c-4f99-a176-90cb006fe9a0"
}

2020-11-29 22:02:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b42cfe89-78c7-4951-b2e7-f794ac828032",
    "item-id": "item-eed3d45f-e11c-4f99-a176-90cb006fe9a0",
    "item": [
        "<item id=\"item-eed3d45f-e11c-4f99-a176-90cb006fe9a0\"><test>item-eed3d45f-e11c-4f99-a176-90cb006fe9a0</test></item>"
    ]
}

2020-11-29 22:02:53 | [Mutex] notify: [retrieved:item:item-eed3d45f-e11c-4f99-a176-90cb006fe9a0:payload-matches:true:localhost]

2020-11-29 22:02:53 | [Mutex] received everything.

2020-11-29 22:02:53 | [Mutex] isItemNotified: retrieved:item:item-eed3d45f-e11c-4f99-a176-90cb006fe9a0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-11-29 22:02:53 |

2020-11-29 22:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:53 | ------------------------------------

2020-11-29 22:02:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-29 22:02:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b42cfe89-78c7-4951-b2e7-f794ac828032",
        "node-57200db3-dcbe-4fa7-b4d1-779cb6fa6c89"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-29 22:02:53 |

2020-11-29 22:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:53 | ------------------------------------

2020-11-29 22:02:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b42cfe89-78c7-4951-b2e7-f794ac828032)"
}

2020-11-29 22:02:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2020-11-29 22:02:52 |

2020-11-29 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:52 | ------------------------------------

2020-11-29 22:02:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b42cfe89-78c7-4951-b2e7-f794ac828032",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-29 22:02:52 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2020-11-29 22:02:53 |

2020-11-29 22:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:02:53 | ------------------------------------

2020-11-29 22:02:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b42cfe89-78c7-4951-b2e7-f794ac828032",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-29 22:02:53 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}