Generated by TestNG with ReportNG at 22:24 PDT on Friday 18 September 2020
root@f53a97fae7d2 / 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.201s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.132s
2020-09-18 22:39:48 |

2020-09-18 22:39:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:48 | ------------------------------------

2020-09-18 22:39:48 | [Mutex] waiting for: [configured:node:node-99600094-ef45-400f-9467-0c1570e7072c:node-993b6e9a-5d79-4770-9bad-34dfd90e275d]

2020-09-18 22:39:48 | [Mutex] received everything.

2020-09-18 22:39:48 | [Mutex] isItemNotified: configured:node:node-99600094-ef45-400f-9467-0c1570e7072c:node-993b6e9a-5d79-4770-9bad-34dfd90e275d :: true

2020-09-18 22:39:49 | [Mutex] waiting for: [received:nodes:c81b6401-fa43-4301-a231-491d25e38310:localhost]

2020-09-18 22:39:49 | [Mutex] received everything.

2020-09-18 22:39:49 | [Mutex] isItemNotified: received:node:c81b6401-fa43-4301-a231-491d25e38310:localhost:node-99600094-ef45-400f-9467-0c1570e7072c:Node 99600094-ef45-400f-9467-0c1570e7072c :: true

2020-09-18 22:39:49 | [Mutex] waiting for: [received:nodes:1b4e24c5-8788-44a4-9068-e76f5c6f325f:localhost]

2020-09-18 22:39:49 | [Mutex] waiting for: [received:nodes:1b4e24c5-8788-44a4-9068-e76f5c6f325f:localhost]

2020-09-18 22:39:49 | [Mutex] waiting for: [received:nodes:1b4e24c5-8788-44a4-9068-e76f5c6f325f:localhost]

2020-09-18 22:39:49 | [Mutex] received everything.

2020-09-18 22:39:49 | [Mutex] isItemNotified: received:node:1b4e24c5-8788-44a4-9068-e76f5c6f325f:localhost:node-99600094-ef45-400f-9467-0c1570e7072c:Node 99600094-ef45-400f-9467-0c1570e7072c :: false

createNodes 1.803s
2020-09-18 22:39:45 |

2020-09-18 22:39:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:45 | ------------------------------------

2020-09-18 22:39:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-99600094-ef45-400f-9467-0c1570e7072c",
    "pubsub#title": "Node 99600094-ef45-400f-9467-0c1570e7072c"
}

2020-09-18 22:39:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 22:39:47 | [Mutex] waiting for: [received:nodes:fac6f954-45c8-41ec-9496-e58c7bc91b78:localhost]

2020-09-18 22:39:47 | [Mutex] waiting for: [received:nodes:fac6f954-45c8-41ec-9496-e58c7bc91b78:localhost]

2020-09-18 22:39:47 | [Mutex] received everything.

2020-09-18 22:39:47 | [Mutex] isItemNotified: received:node:fac6f954-45c8-41ec-9496-e58c7bc91b78:localhost:node-99600094-ef45-400f-9467-0c1570e7072c:Node 99600094-ef45-400f-9467-0c1570e7072c :: true

createSubnodes 1.030s
2020-09-18 22:39:47 |

2020-09-18 22:39:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:47 | ------------------------------------

2020-09-18 22:39:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-993b6e9a-5d79-4770-9bad-34dfd90e275d",
    "pubsub#title": "Node 993b6e9a-5d79-4770-9bad-34dfd90e275d"
}

2020-09-18 22:39:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 22:39:48 | [Mutex] waiting for: [received:nodes:4a407f7c-75f1-4c8a-80a7-0269aebff462:localhost]

2020-09-18 22:39:48 | [Mutex] received everything.

2020-09-18 22:39:48 | [Mutex] isItemNotified: received:node:4a407f7c-75f1-4c8a-80a7-0269aebff462:localhost:node-993b6e9a-5d79-4770-9bad-34dfd90e275d:Node 993b6e9a-5d79-4770-9bad-34dfd90e275d :: true

deleteNodes 1.024s
2020-09-18 22:39:53 |

2020-09-18 22:39:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:53 | ------------------------------------

2020-09-18 22:39:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-993b6e9a-5d79-4770-9bad-34dfd90e275d"
}

2020-09-18 22:39:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 22:39:54 | [Mutex] waiting for: [received:nodes:680c43c9-bc3b-4fc0-bcc2-5f7545a0c4f1:localhost]

2020-09-18 22:39:54 | [Mutex] received everything.

2020-09-18 22:39:54 | [Mutex] isItemNotified: received:node:680c43c9-bc3b-4fc0-bcc2-5f7545a0c4f1:localhost:node-993b6e9a-5d79-4770-9bad-34dfd90e275d:Node 993b6e9a-5d79-4770-9bad-34dfd90e275d :: false

deleteSubnodes 1.026s
2020-09-18 22:39:52 |

2020-09-18 22:39:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:52 | ------------------------------------

2020-09-18 22:39:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-99600094-ef45-400f-9467-0c1570e7072c"
}

2020-09-18 22:39:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 22:39:53 | [Mutex] waiting for: [received:nodes:339b0629-d1c4-4927-9ec3-c4bd24f1d52b:localhost]

2020-09-18 22:39:53 | [Mutex] received everything.

2020-09-18 22:39:53 | [Mutex] isItemNotified: received:node:339b0629-d1c4-4927-9ec3-c4bd24f1d52b:localhost:node-99600094-ef45-400f-9467-0c1570e7072c:Node 99600094-ef45-400f-9467-0c1570e7072c :: false

2020-09-18 22:39:53 | [Mutex] waiting for: [received:nodes:454a1927-6a02-4594-8b8a-1ed586ffcda9:localhost]

2020-09-18 22:39:53 | [Mutex] received everything.

2020-09-18 22:39:53 | [Mutex] isItemNotified: received:node:454a1927-6a02-4594-8b8a-1ed586ffcda9:localhost:node-99600094-ef45-400f-9467-0c1570e7072c:Node 99600094-ef45-400f-9467-0c1570e7072c :: false

publishItemsToNodes 0.047s
2020-09-18 22:39:50 |

2020-09-18 22:39:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:50 | ------------------------------------

2020-09-18 22:39:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-99600094-ef45-400f-9467-0c1570e7072c",
    "entry": "<test>item-be8c9a54-eaad-460f-afca-ee145121b818</test>",
    "item-id": "item-be8c9a54-eaad-460f-afca-ee145121b818"
}

2020-09-18 22:39:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-be8c9a54-eaad-460f-afca-ee145121b818"
}

2020-09-18 22:39:50 | [Mutex] waiting for: [published:item:notifieditem-be8c9a54-eaad-460f-afca-ee145121b818:admin@test-domain.com]

2020-09-18 22:39:50 | [Mutex] received everything.

2020-09-18 22:39:50 | [Mutex] isItemNotified: published:item:notifieditem-be8c9a54-eaad-460f-afca-ee145121b818:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-18 22:39:50 |

2020-09-18 22:39:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:50 | ------------------------------------

2020-09-18 22:39:50 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-99600094-ef45-400f-9467-0c1570e7072c",
    "item-id": "item-be8c9a54-eaad-460f-afca-ee145121b818"
}

2020-09-18 22:39:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-be8c9a54-eaad-460f-afca-ee145121b818"
}

2020-09-18 22:39:51 | [Mutex] received everything.

2020-09-18 22:39:51 | [Mutex] isItemNotified: retracted:item:notifieditem-be8c9a54-eaad-460f-afca-ee145121b818:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2020-09-18 22:39:50 |

2020-09-18 22:39:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:50 | ------------------------------------

2020-09-18 22:39:50 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-99600094-ef45-400f-9467-0c1570e7072c",
    "item-id": "item-be8c9a54-eaad-460f-afca-ee145121b818"
}

2020-09-18 22:39:50 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-99600094-ef45-400f-9467-0c1570e7072c",
    "item-id": "item-be8c9a54-eaad-460f-afca-ee145121b818",
    "item": [
        "<item id=\"item-be8c9a54-eaad-460f-afca-ee145121b818\"><test>item-be8c9a54-eaad-460f-afca-ee145121b818</test></item>"
    ]
}

2020-09-18 22:39:50 | [Mutex] notify: [retrieved:item:item-be8c9a54-eaad-460f-afca-ee145121b818:payload-matches:true:localhost]

2020-09-18 22:39:50 | [Mutex] received everything.

2020-09-18 22:39:50 | [Mutex] isItemNotified: retrieved:item:item-be8c9a54-eaad-460f-afca-ee145121b818:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-18 22:39:50 |

2020-09-18 22:39:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:50 | ------------------------------------

2020-09-18 22:39:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-18 22:39:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-99600094-ef45-400f-9467-0c1570e7072c",
        "node-993b6e9a-5d79-4770-9bad-34dfd90e275d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-18 22:39:50 |

2020-09-18 22:39:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:50 | ------------------------------------

2020-09-18 22:39:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-99600094-ef45-400f-9467-0c1570e7072c)"
}

2020-09-18 22:39:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-09-18 22:39:49 |

2020-09-18 22:39:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:49 | ------------------------------------

2020-09-18 22:39:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-99600094-ef45-400f-9467-0c1570e7072c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 22:39:49 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-18 22:39:51 |

2020-09-18 22:39:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 22:39:51 | ------------------------------------

2020-09-18 22:39:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-99600094-ef45-400f-9467-0c1570e7072c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 22:39:51 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}