Generated by TestNG with ReportNG at 22:40 PDT on Thursday 08 October 2020
root@eaa73862192b / 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.142s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2020-10-08 22:56:49 |

2020-10-08 22:56:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:49 | ------------------------------------

2020-10-08 22:56:49 | [Mutex] waiting for: [configured:node:node-ee94a2fe-d5c4-4e8a-b503-8065735049b7:node-d79c46d8-c8be-4652-bcd4-d196117c6d85]

2020-10-08 22:56:49 | [Mutex] received everything.

2020-10-08 22:56:49 | [Mutex] isItemNotified: configured:node:node-ee94a2fe-d5c4-4e8a-b503-8065735049b7:node-d79c46d8-c8be-4652-bcd4-d196117c6d85 :: true

2020-10-08 22:56:50 | [Mutex] waiting for: [received:nodes:39a798c6-4ffe-4aef-9266-707c602aa8e9:localhost]

2020-10-08 22:56:50 | [Mutex] received everything.

2020-10-08 22:56:50 | [Mutex] isItemNotified: received:node:39a798c6-4ffe-4aef-9266-707c602aa8e9:localhost:node-ee94a2fe-d5c4-4e8a-b503-8065735049b7:Node ee94a2fe-d5c4-4e8a-b503-8065735049b7 :: true

2020-10-08 22:56:50 | [Mutex] waiting for: [received:nodes:40418d6c-6ea3-448c-8a36-83caa3d2a3da:localhost]

2020-10-08 22:56:50 | [Mutex] received everything.

2020-10-08 22:56:50 | [Mutex] isItemNotified: received:node:40418d6c-6ea3-448c-8a36-83caa3d2a3da:localhost:node-ee94a2fe-d5c4-4e8a-b503-8065735049b7:Node ee94a2fe-d5c4-4e8a-b503-8065735049b7 :: false

createNodes 1.760s
2020-10-08 22:56:46 |

2020-10-08 22:56:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:46 | ------------------------------------

2020-10-08 22:56:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ee94a2fe-d5c4-4e8a-b503-8065735049b7",
    "pubsub#title": "Node ee94a2fe-d5c4-4e8a-b503-8065735049b7"
}

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

2020-10-08 22:56:48 | [Mutex] waiting for: [received:nodes:45fbfc4e-50fe-40d8-9ea2-9370d2e3d476:localhost]

2020-10-08 22:56:48 | [Mutex] received everything.

2020-10-08 22:56:48 | [Mutex] isItemNotified: received:node:45fbfc4e-50fe-40d8-9ea2-9370d2e3d476:localhost:node-ee94a2fe-d5c4-4e8a-b503-8065735049b7:Node ee94a2fe-d5c4-4e8a-b503-8065735049b7 :: true

createSubnodes 1.031s
2020-10-08 22:56:48 |

2020-10-08 22:56:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:48 | ------------------------------------

2020-10-08 22:56:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d79c46d8-c8be-4652-bcd4-d196117c6d85",
    "pubsub#title": "Node d79c46d8-c8be-4652-bcd4-d196117c6d85"
}

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

2020-10-08 22:56:49 | [Mutex] waiting for: [received:nodes:8e8bbad2-a597-4b44-969b-0e9bacd4b20d:localhost]

2020-10-08 22:56:49 | [Mutex] received everything.

2020-10-08 22:56:49 | [Mutex] isItemNotified: received:node:8e8bbad2-a597-4b44-969b-0e9bacd4b20d:localhost:node-d79c46d8-c8be-4652-bcd4-d196117c6d85:Node d79c46d8-c8be-4652-bcd4-d196117c6d85 :: true

deleteNodes 1.027s
2020-10-08 22:56:53 |

2020-10-08 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:53 | ------------------------------------

2020-10-08 22:56:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d79c46d8-c8be-4652-bcd4-d196117c6d85"
}

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

2020-10-08 22:56:54 | [Mutex] waiting for: [received:nodes:cbb052f8-f127-44ec-9a36-703026582c83:localhost]

2020-10-08 22:56:54 | [Mutex] received everything.

2020-10-08 22:56:54 | [Mutex] isItemNotified: received:node:cbb052f8-f127-44ec-9a36-703026582c83:localhost:node-d79c46d8-c8be-4652-bcd4-d196117c6d85:Node d79c46d8-c8be-4652-bcd4-d196117c6d85 :: false

deleteSubnodes 1.030s
2020-10-08 22:56:52 |

2020-10-08 22:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:52 | ------------------------------------

2020-10-08 22:56:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ee94a2fe-d5c4-4e8a-b503-8065735049b7"
}

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

2020-10-08 22:56:53 | [Mutex] waiting for: [received:nodes:10b74216-b9f4-4ed6-a51e-50669adeb328:localhost]

2020-10-08 22:56:53 | [Mutex] received everything.

2020-10-08 22:56:53 | [Mutex] isItemNotified: received:node:10b74216-b9f4-4ed6-a51e-50669adeb328:localhost:node-ee94a2fe-d5c4-4e8a-b503-8065735049b7:Node ee94a2fe-d5c4-4e8a-b503-8065735049b7 :: false

2020-10-08 22:56:53 | [Mutex] waiting for: [received:nodes:ffa9b609-46e8-45c1-9b2e-dd5f9cfacc71:localhost]

2020-10-08 22:56:53 | [Mutex] received everything.

2020-10-08 22:56:53 | [Mutex] isItemNotified: received:node:ffa9b609-46e8-45c1-9b2e-dd5f9cfacc71:localhost:node-ee94a2fe-d5c4-4e8a-b503-8065735049b7:Node ee94a2fe-d5c4-4e8a-b503-8065735049b7 :: false

publishItemsToNodes 0.056s
2020-10-08 22:56:51 |

2020-10-08 22:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:51 | ------------------------------------

2020-10-08 22:56:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ee94a2fe-d5c4-4e8a-b503-8065735049b7",
    "entry": "<test>item-3d1b9716-8fc1-45e3-9e90-a66d44388c85</test>",
    "item-id": "item-3d1b9716-8fc1-45e3-9e90-a66d44388c85"
}

2020-10-08 22:56:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3d1b9716-8fc1-45e3-9e90-a66d44388c85"
}

2020-10-08 22:56:51 | [Mutex] waiting for: [published:item:notifieditem-3d1b9716-8fc1-45e3-9e90-a66d44388c85:admin@test-domain.com]

2020-10-08 22:56:51 | [Mutex] received everything.

2020-10-08 22:56:51 | [Mutex] isItemNotified: published:item:notifieditem-3d1b9716-8fc1-45e3-9e90-a66d44388c85:admin@test-domain.com :: true

retractItemsFromNodes 0.080s
2020-10-08 22:56:51 |

2020-10-08 22:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:51 | ------------------------------------

2020-10-08 22:56:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ee94a2fe-d5c4-4e8a-b503-8065735049b7",
    "item-id": "item-3d1b9716-8fc1-45e3-9e90-a66d44388c85"
}

2020-10-08 22:56:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3d1b9716-8fc1-45e3-9e90-a66d44388c85"
}

2020-10-08 22:56:51 | [Mutex] waiting for: [retracted:item:notifieditem-3d1b9716-8fc1-45e3-9e90-a66d44388c85:admin@test-domain.com]

2020-10-08 22:56:51 | [Mutex] received everything.

2020-10-08 22:56:51 | [Mutex] isItemNotified: retracted:item:notifieditem-3d1b9716-8fc1-45e3-9e90-a66d44388c85:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2020-10-08 22:56:51 |

2020-10-08 22:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:51 | ------------------------------------

2020-10-08 22:56:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ee94a2fe-d5c4-4e8a-b503-8065735049b7",
    "item-id": "item-3d1b9716-8fc1-45e3-9e90-a66d44388c85"
}

2020-10-08 22:56:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ee94a2fe-d5c4-4e8a-b503-8065735049b7",
    "item-id": "item-3d1b9716-8fc1-45e3-9e90-a66d44388c85",
    "item": [
        "<item id=\"item-3d1b9716-8fc1-45e3-9e90-a66d44388c85\"><test>item-3d1b9716-8fc1-45e3-9e90-a66d44388c85</test></item>"
    ]
}

2020-10-08 22:56:51 | [Mutex] notify: [retrieved:item:item-3d1b9716-8fc1-45e3-9e90-a66d44388c85:payload-matches:true:localhost]

2020-10-08 22:56:51 | [Mutex] received everything.

2020-10-08 22:56:51 | [Mutex] isItemNotified: retrieved:item:item-3d1b9716-8fc1-45e3-9e90-a66d44388c85:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-10-08 22:56:51 |

2020-10-08 22:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:51 | ------------------------------------

2020-10-08 22:56:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-08 22:56:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ee94a2fe-d5c4-4e8a-b503-8065735049b7",
        "node-d79c46d8-c8be-4652-bcd4-d196117c6d85"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-08 22:56:51 |

2020-10-08 22:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:51 | ------------------------------------

2020-10-08 22:56:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ee94a2fe-d5c4-4e8a-b503-8065735049b7)"
}

2020-10-08 22:56:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-10-08 22:56:50 |

2020-10-08 22:56:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:50 | ------------------------------------

2020-10-08 22:56:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ee94a2fe-d5c4-4e8a-b503-8065735049b7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-08 22:56:50 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2020-10-08 22:56:51 |

2020-10-08 22:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-08 22:56:51 | ------------------------------------

2020-10-08 22:56:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ee94a2fe-d5c4-4e8a-b503-8065735049b7",
    "jids": [
        "admin@test-domain.com"
    ]
}

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