Generated by TestNG with ReportNG at 22:42 PDT on Monday 21 September 2020
root@d2a27fcc5bc3 / 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.151s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2020-09-21 22:59:31 |

2020-09-21 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:31 | ------------------------------------

2020-09-21 22:59:31 | [Mutex] waiting for: [configured:node:node-9ef4387b-d342-4165-b793-8fd4f394e3d5:node-4378c4b6-b225-49c9-bb4b-a25c2aedac41]

2020-09-21 22:59:31 | [Mutex] received everything.

2020-09-21 22:59:31 | [Mutex] isItemNotified: configured:node:node-9ef4387b-d342-4165-b793-8fd4f394e3d5:node-4378c4b6-b225-49c9-bb4b-a25c2aedac41 :: true

2020-09-21 22:59:32 | [Mutex] waiting for: [received:nodes:8dd26686-80e5-488f-a698-904ab18da131:localhost]

2020-09-21 22:59:32 | [Mutex] received everything.

2020-09-21 22:59:32 | [Mutex] isItemNotified: received:node:8dd26686-80e5-488f-a698-904ab18da131:localhost:node-9ef4387b-d342-4165-b793-8fd4f394e3d5:Node 9ef4387b-d342-4165-b793-8fd4f394e3d5 :: true

2020-09-21 22:59:32 | [Mutex] waiting for: [received:nodes:64237aa5-4252-4e68-bd56-801438a01997:localhost]

2020-09-21 22:59:32 | [Mutex] received everything.

2020-09-21 22:59:32 | [Mutex] isItemNotified: received:node:64237aa5-4252-4e68-bd56-801438a01997:localhost:node-9ef4387b-d342-4165-b793-8fd4f394e3d5:Node 9ef4387b-d342-4165-b793-8fd4f394e3d5 :: false

createNodes 1.767s
2020-09-21 22:59:28 |

2020-09-21 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:28 | ------------------------------------

2020-09-21 22:59:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9ef4387b-d342-4165-b793-8fd4f394e3d5",
    "pubsub#title": "Node 9ef4387b-d342-4165-b793-8fd4f394e3d5"
}

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

2020-09-21 22:59:29 | [Mutex] waiting for: [received:nodes:a0f8349d-782d-4674-a14e-07a67bd20304:localhost]

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

2020-09-21 22:59:29 | [Mutex] isItemNotified: received:node:a0f8349d-782d-4674-a14e-07a67bd20304:localhost:node-9ef4387b-d342-4165-b793-8fd4f394e3d5:Node 9ef4387b-d342-4165-b793-8fd4f394e3d5 :: true

createSubnodes 1.026s
2020-09-21 22:59:29 |

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

2020-09-21 22:59:29 | ------------------------------------

2020-09-21 22:59:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4378c4b6-b225-49c9-bb4b-a25c2aedac41",
    "pubsub#title": "Node 4378c4b6-b225-49c9-bb4b-a25c2aedac41"
}

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

2020-09-21 22:59:30 | [Mutex] waiting for: [received:nodes:686fc064-406f-48d8-a6ec-71d7a08164fe:localhost]

2020-09-21 22:59:31 | [Mutex] received everything.

2020-09-21 22:59:31 | [Mutex] isItemNotified: received:node:686fc064-406f-48d8-a6ec-71d7a08164fe:localhost:node-4378c4b6-b225-49c9-bb4b-a25c2aedac41:Node 4378c4b6-b225-49c9-bb4b-a25c2aedac41 :: true

deleteNodes 1.024s
2020-09-21 22:59:35 |

2020-09-21 22:59:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:35 | ------------------------------------

2020-09-21 22:59:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4378c4b6-b225-49c9-bb4b-a25c2aedac41"
}

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

2020-09-21 22:59:36 | [Mutex] waiting for: [received:nodes:95c60942-038d-4bef-a721-4b177bdfff37:localhost]

2020-09-21 22:59:36 | [Mutex] received everything.

2020-09-21 22:59:36 | [Mutex] isItemNotified: received:node:95c60942-038d-4bef-a721-4b177bdfff37:localhost:node-4378c4b6-b225-49c9-bb4b-a25c2aedac41:Node 4378c4b6-b225-49c9-bb4b-a25c2aedac41 :: false

deleteSubnodes 1.027s
2020-09-21 22:59:34 |

2020-09-21 22:59:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:34 | ------------------------------------

2020-09-21 22:59:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9ef4387b-d342-4165-b793-8fd4f394e3d5"
}

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

2020-09-21 22:59:35 | [Mutex] waiting for: [received:nodes:266e604a-464b-48ae-90b6-39e36fa64d28:localhost]

2020-09-21 22:59:35 | [Mutex] received everything.

2020-09-21 22:59:35 | [Mutex] isItemNotified: received:node:266e604a-464b-48ae-90b6-39e36fa64d28:localhost:node-9ef4387b-d342-4165-b793-8fd4f394e3d5:Node 9ef4387b-d342-4165-b793-8fd4f394e3d5 :: false

2020-09-21 22:59:35 | [Mutex] waiting for: [received:nodes:4a90a028-1c42-4050-8569-edbe491b482a:localhost]

2020-09-21 22:59:35 | [Mutex] received everything.

2020-09-21 22:59:35 | [Mutex] isItemNotified: received:node:4a90a028-1c42-4050-8569-edbe491b482a:localhost:node-9ef4387b-d342-4165-b793-8fd4f394e3d5:Node 9ef4387b-d342-4165-b793-8fd4f394e3d5 :: false

publishItemsToNodes 0.039s
2020-09-21 22:59:33 |

2020-09-21 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:33 | ------------------------------------

2020-09-21 22:59:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9ef4387b-d342-4165-b793-8fd4f394e3d5",
    "entry": "<test>item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114</test>",
    "item-id": "item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114"
}

2020-09-21 22:59:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114"
}

2020-09-21 22:59:33 | [Mutex] waiting for: [published:item:notifieditem-d4d3e804-7b18-47e3-9e0b-0e257f6c8114:admin@test-domain.com]

2020-09-21 22:59:33 | [Mutex] received everything.

2020-09-21 22:59:33 | [Mutex] isItemNotified: published:item:notifieditem-d4d3e804-7b18-47e3-9e0b-0e257f6c8114:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-21 22:59:33 |

2020-09-21 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:33 | ------------------------------------

2020-09-21 22:59:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9ef4387b-d342-4165-b793-8fd4f394e3d5",
    "item-id": "item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114"
}

2020-09-21 22:59:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114"
}

2020-09-21 22:59:33 | [Mutex] received everything.

2020-09-21 22:59:33 | [Mutex] isItemNotified: retracted:item:notifieditem-d4d3e804-7b18-47e3-9e0b-0e257f6c8114:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2020-09-21 22:59:33 |

2020-09-21 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:33 | ------------------------------------

2020-09-21 22:59:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9ef4387b-d342-4165-b793-8fd4f394e3d5",
    "item-id": "item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114"
}

2020-09-21 22:59:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9ef4387b-d342-4165-b793-8fd4f394e3d5",
    "item-id": "item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114",
    "item": [
        "<item id=\"item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114\"><test>item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114</test></item>"
    ]
}

2020-09-21 22:59:33 | [Mutex] notify: [retrieved:item:item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114:payload-matches:true:localhost]

2020-09-21 22:59:33 | [Mutex] received everything.

2020-09-21 22:59:33 | [Mutex] isItemNotified: retrieved:item:item-d4d3e804-7b18-47e3-9e0b-0e257f6c8114:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-21 22:59:33 |

2020-09-21 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:33 | ------------------------------------

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

2020-09-21 22:59:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9ef4387b-d342-4165-b793-8fd4f394e3d5",
        "node-4378c4b6-b225-49c9-bb4b-a25c2aedac41"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-21 22:59:33 |

2020-09-21 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:33 | ------------------------------------

2020-09-21 22:59:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9ef4387b-d342-4165-b793-8fd4f394e3d5)"
}

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

subscribeNodes 1.016s
2020-09-21 22:59:32 |

2020-09-21 22:59:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:32 | ------------------------------------

2020-09-21 22:59:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9ef4387b-d342-4165-b793-8fd4f394e3d5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2020-09-21 22:59:33 |

2020-09-21 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 22:59:33 | ------------------------------------

2020-09-21 22:59:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9ef4387b-d342-4165-b793-8fd4f394e3d5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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