Generated by TestNG with ReportNG at 22:41 PDT on Thursday 29 October 2020
root@87f6aca6b6f2 / 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.448s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2020-10-29 23:00:00 |

2020-10-29 23:00:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:00 | ------------------------------------

2020-10-29 23:00:00 | [Mutex] waiting for: [configured:node:node-2b6bec86-4c51-41df-9701-7eacb61a5488:node-5bf52b84-17f5-4da6-b48c-b00d7d4561ef]

2020-10-29 23:00:01 | [Mutex] received everything.

2020-10-29 23:00:01 | [Mutex] isItemNotified: configured:node:node-2b6bec86-4c51-41df-9701-7eacb61a5488:node-5bf52b84-17f5-4da6-b48c-b00d7d4561ef :: true

2020-10-29 23:00:02 | [Mutex] waiting for: [received:nodes:8322adc5-ea32-4f41-915e-790796bc3cd8:localhost]

2020-10-29 23:00:02 | [Mutex] received everything.

2020-10-29 23:00:02 | [Mutex] isItemNotified: received:node:8322adc5-ea32-4f41-915e-790796bc3cd8:localhost:node-2b6bec86-4c51-41df-9701-7eacb61a5488:Node 2b6bec86-4c51-41df-9701-7eacb61a5488 :: true

2020-10-29 23:00:02 | [Mutex] waiting for: [received:nodes:bb235f0b-5c36-4002-8ec3-0682cec0743b:localhost]

2020-10-29 23:00:02 | [Mutex] received everything.

2020-10-29 23:00:02 | [Mutex] isItemNotified: received:node:bb235f0b-5c36-4002-8ec3-0682cec0743b:localhost:node-2b6bec86-4c51-41df-9701-7eacb61a5488:Node 2b6bec86-4c51-41df-9701-7eacb61a5488 :: false

createNodes 1.896s
2020-10-29 22:59:58 |

2020-10-29 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:59:58 | ------------------------------------

2020-10-29 22:59:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2b6bec86-4c51-41df-9701-7eacb61a5488",
    "pubsub#title": "Node 2b6bec86-4c51-41df-9701-7eacb61a5488"
}

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

2020-10-29 22:59:59 | [Mutex] waiting for: [received:nodes:2a361686-f01f-4596-9511-58d5fc5288bd:localhost]

2020-10-29 22:59:59 | [Mutex] received everything.

2020-10-29 22:59:59 | [Mutex] isItemNotified: received:node:2a361686-f01f-4596-9511-58d5fc5288bd:localhost:node-2b6bec86-4c51-41df-9701-7eacb61a5488:Node 2b6bec86-4c51-41df-9701-7eacb61a5488 :: true

createSubnodes 1.043s
2020-10-29 22:59:59 |

2020-10-29 22:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 22:59:59 | ------------------------------------

2020-10-29 22:59:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5bf52b84-17f5-4da6-b48c-b00d7d4561ef",
    "pubsub#title": "Node 5bf52b84-17f5-4da6-b48c-b00d7d4561ef"
}

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

2020-10-29 23:00:00 | [Mutex] waiting for: [received:nodes:3085367f-142b-4331-a76a-f27379547c5a:localhost]

2020-10-29 23:00:00 | [Mutex] received everything.

2020-10-29 23:00:00 | [Mutex] isItemNotified: received:node:3085367f-142b-4331-a76a-f27379547c5a:localhost:node-5bf52b84-17f5-4da6-b48c-b00d7d4561ef:Node 5bf52b84-17f5-4da6-b48c-b00d7d4561ef :: true

deleteNodes 1.029s
2020-10-29 23:00:05 |

2020-10-29 23:00:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:05 | ------------------------------------

2020-10-29 23:00:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5bf52b84-17f5-4da6-b48c-b00d7d4561ef"
}

2020-10-29 23:00:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-29 23:00:06 | [Mutex] waiting for: [received:nodes:b261274b-1769-493b-932a-76b583b88cd0:localhost]

2020-10-29 23:00:06 | [Mutex] received everything.

2020-10-29 23:00:06 | [Mutex] isItemNotified: received:node:b261274b-1769-493b-932a-76b583b88cd0:localhost:node-5bf52b84-17f5-4da6-b48c-b00d7d4561ef:Node 5bf52b84-17f5-4da6-b48c-b00d7d4561ef :: false

deleteSubnodes 1.039s
2020-10-29 23:00:04 |

2020-10-29 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:04 | ------------------------------------

2020-10-29 23:00:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2b6bec86-4c51-41df-9701-7eacb61a5488"
}

2020-10-29 23:00:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-29 23:00:05 | [Mutex] waiting for: [received:nodes:61a02618-0d89-4c49-bd59-513ec8881bc5:localhost]

2020-10-29 23:00:05 | [Mutex] received everything.

2020-10-29 23:00:05 | [Mutex] isItemNotified: received:node:61a02618-0d89-4c49-bd59-513ec8881bc5:localhost:node-2b6bec86-4c51-41df-9701-7eacb61a5488:Node 2b6bec86-4c51-41df-9701-7eacb61a5488 :: false

2020-10-29 23:00:05 | [Mutex] waiting for: [received:nodes:22f746c3-447c-43ba-8a9b-7b643a84c1df:localhost]

2020-10-29 23:00:05 | [Mutex] received everything.

2020-10-29 23:00:05 | [Mutex] isItemNotified: received:node:22f746c3-447c-43ba-8a9b-7b643a84c1df:localhost:node-2b6bec86-4c51-41df-9701-7eacb61a5488:Node 2b6bec86-4c51-41df-9701-7eacb61a5488 :: false

publishItemsToNodes 0.070s
2020-10-29 23:00:03 |

2020-10-29 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:03 | ------------------------------------

2020-10-29 23:00:03 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2b6bec86-4c51-41df-9701-7eacb61a5488",
    "entry": "<test>item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e</test>",
    "item-id": "item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e"
}

2020-10-29 23:00:03 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e"
}

2020-10-29 23:00:03 | [Mutex] waiting for: [published:item:notifieditem-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e:admin@test-domain.com]

2020-10-29 23:00:03 | [Mutex] received everything.

2020-10-29 23:00:03 | [Mutex] isItemNotified: published:item:notifieditem-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-10-29 23:00:03 |

2020-10-29 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:03 | ------------------------------------

2020-10-29 23:00:03 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2b6bec86-4c51-41df-9701-7eacb61a5488",
    "item-id": "item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e"
}

2020-10-29 23:00:03 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e"
}

2020-10-29 23:00:03 | [Mutex] waiting for: [retracted:item:notifieditem-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e:admin@test-domain.com]

2020-10-29 23:00:03 | [Mutex] received everything.

2020-10-29 23:00:03 | [Mutex] isItemNotified: retracted:item:notifieditem-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2020-10-29 23:00:03 |

2020-10-29 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:03 | ------------------------------------

2020-10-29 23:00:03 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2b6bec86-4c51-41df-9701-7eacb61a5488",
    "item-id": "item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e"
}

2020-10-29 23:00:03 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2b6bec86-4c51-41df-9701-7eacb61a5488",
    "item-id": "item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e",
    "item": [
        "<item id=\"item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e\"><test>item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e</test></item>"
    ]
}

2020-10-29 23:00:03 | [Mutex] notify: [retrieved:item:item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e:payload-matches:true:localhost]

2020-10-29 23:00:03 | [Mutex] received everything.

2020-10-29 23:00:03 | [Mutex] isItemNotified: retrieved:item:item-de8f0fb4-a824-49e7-b7c4-dc5e0f89fb2e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.074s
2020-10-29 23:00:03 |

2020-10-29 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:03 | ------------------------------------

2020-10-29 23:00:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-29 23:00:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2b6bec86-4c51-41df-9701-7eacb61a5488",
        "node-5bf52b84-17f5-4da6-b48c-b00d7d4561ef"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-29 23:00:03 |

2020-10-29 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:03 | ------------------------------------

2020-10-29 23:00:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2b6bec86-4c51-41df-9701-7eacb61a5488)"
}

2020-10-29 23:00:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2020-10-29 23:00:02 |

2020-10-29 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:02 | ------------------------------------

2020-10-29 23:00:02 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2b6bec86-4c51-41df-9701-7eacb61a5488",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2020-10-29 23:00:03 |

2020-10-29 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-29 23:00:03 | ------------------------------------

2020-10-29 23:00:03 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2b6bec86-4c51-41df-9701-7eacb61a5488",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-29 23:00:03 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}