Generated by TestNG with ReportNG at 21:43 PST on Monday 23 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 : 8.996s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2020-11-23 21:59:02 |

2020-11-23 21:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:02 | ------------------------------------

2020-11-23 21:59:02 | [Mutex] waiting for: [configured:node:node-f22fed75-46fe-474e-a232-ffe4bfd1f23e:node-30031ba7-6463-432f-bd08-5b946dfef93c]

2020-11-23 21:59:02 | [Mutex] received everything.

2020-11-23 21:59:02 | [Mutex] isItemNotified: configured:node:node-f22fed75-46fe-474e-a232-ffe4bfd1f23e:node-30031ba7-6463-432f-bd08-5b946dfef93c :: true

2020-11-23 21:59:03 | [Mutex] waiting for: [received:nodes:f4818474-315a-46c0-b4f7-f8b4c6946fc6:localhost]

2020-11-23 21:59:03 | [Mutex] received everything.

2020-11-23 21:59:03 | [Mutex] isItemNotified: received:node:f4818474-315a-46c0-b4f7-f8b4c6946fc6:localhost:node-f22fed75-46fe-474e-a232-ffe4bfd1f23e:Node f22fed75-46fe-474e-a232-ffe4bfd1f23e :: true

2020-11-23 21:59:03 | [Mutex] waiting for: [received:nodes:2f6279b4-7bc2-4c4f-bac6-f68962e0af3a:localhost]

2020-11-23 21:59:03 | [Mutex] waiting for: [received:nodes:2f6279b4-7bc2-4c4f-bac6-f68962e0af3a:localhost]

2020-11-23 21:59:03 | [Mutex] received everything.

2020-11-23 21:59:03 | [Mutex] isItemNotified: received:node:2f6279b4-7bc2-4c4f-bac6-f68962e0af3a:localhost:node-f22fed75-46fe-474e-a232-ffe4bfd1f23e:Node f22fed75-46fe-474e-a232-ffe4bfd1f23e :: false

createNodes 1.605s
2020-11-23 21:58:59 |

2020-11-23 21:58:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:58:59 | ------------------------------------

2020-11-23 21:59:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f22fed75-46fe-474e-a232-ffe4bfd1f23e",
    "pubsub#title": "Node f22fed75-46fe-474e-a232-ffe4bfd1f23e"
}

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

2020-11-23 21:59:01 | [Mutex] waiting for: [received:nodes:b12a52fb-e076-42d0-8f57-2cb58b827fec:localhost]

2020-11-23 21:59:01 | [Mutex] received everything.

2020-11-23 21:59:01 | [Mutex] isItemNotified: received:node:b12a52fb-e076-42d0-8f57-2cb58b827fec:localhost:node-f22fed75-46fe-474e-a232-ffe4bfd1f23e:Node f22fed75-46fe-474e-a232-ffe4bfd1f23e :: true

createSubnodes 1.035s
2020-11-23 21:59:01 |

2020-11-23 21:59:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:01 | ------------------------------------

2020-11-23 21:59:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-30031ba7-6463-432f-bd08-5b946dfef93c",
    "pubsub#title": "Node 30031ba7-6463-432f-bd08-5b946dfef93c"
}

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

2020-11-23 21:59:02 | [Mutex] waiting for: [received:nodes:3143dc3b-c973-4a19-904a-b350fa7ac8cf:localhost]

2020-11-23 21:59:02 | [Mutex] received everything.

2020-11-23 21:59:02 | [Mutex] isItemNotified: received:node:3143dc3b-c973-4a19-904a-b350fa7ac8cf:localhost:node-30031ba7-6463-432f-bd08-5b946dfef93c:Node 30031ba7-6463-432f-bd08-5b946dfef93c :: true

deleteNodes 1.022s
2020-11-23 21:59:07 |

2020-11-23 21:59:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:07 | ------------------------------------

2020-11-23 21:59:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-30031ba7-6463-432f-bd08-5b946dfef93c"
}

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

2020-11-23 21:59:08 | [Mutex] waiting for: [received:nodes:2a07833a-37c4-4367-b9ae-9a1b7b87d76d:localhost]

2020-11-23 21:59:08 | [Mutex] received everything.

2020-11-23 21:59:08 | [Mutex] isItemNotified: received:node:2a07833a-37c4-4367-b9ae-9a1b7b87d76d:localhost:node-30031ba7-6463-432f-bd08-5b946dfef93c:Node 30031ba7-6463-432f-bd08-5b946dfef93c :: false

deleteSubnodes 1.029s
2020-11-23 21:59:06 |

2020-11-23 21:59:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:06 | ------------------------------------

2020-11-23 21:59:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f22fed75-46fe-474e-a232-ffe4bfd1f23e"
}

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

2020-11-23 21:59:07 | [Mutex] waiting for: [received:nodes:3176b5be-867a-40d6-827a-a6d4fbf893d4:localhost]

2020-11-23 21:59:07 | [Mutex] received everything.

2020-11-23 21:59:07 | [Mutex] isItemNotified: received:node:3176b5be-867a-40d6-827a-a6d4fbf893d4:localhost:node-f22fed75-46fe-474e-a232-ffe4bfd1f23e:Node f22fed75-46fe-474e-a232-ffe4bfd1f23e :: false

2020-11-23 21:59:07 | [Mutex] waiting for: [received:nodes:c197bf60-6bdb-464f-af36-c96e56295f1e:localhost]

2020-11-23 21:59:07 | [Mutex] received everything.

2020-11-23 21:59:07 | [Mutex] isItemNotified: received:node:c197bf60-6bdb-464f-af36-c96e56295f1e:localhost:node-f22fed75-46fe-474e-a232-ffe4bfd1f23e:Node f22fed75-46fe-474e-a232-ffe4bfd1f23e :: false

publishItemsToNodes 0.088s
2020-11-23 21:59:04 |

2020-11-23 21:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:04 | ------------------------------------

2020-11-23 21:59:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f22fed75-46fe-474e-a232-ffe4bfd1f23e",
    "entry": "<test>item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0</test>",
    "item-id": "item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0"
}

2020-11-23 21:59:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0"
}

2020-11-23 21:59:04 | [Mutex] waiting for: [published:item:notifieditem-2dc3c4e6-40f4-4379-851b-7d803cefbdd0:admin@test-domain.com]

2020-11-23 21:59:04 | [Mutex] received everything.

2020-11-23 21:59:04 | [Mutex] isItemNotified: published:item:notifieditem-2dc3c4e6-40f4-4379-851b-7d803cefbdd0:admin@test-domain.com :: true

retractItemsFromNodes 0.084s
2020-11-23 21:59:04 |

2020-11-23 21:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:04 | ------------------------------------

2020-11-23 21:59:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f22fed75-46fe-474e-a232-ffe4bfd1f23e",
    "item-id": "item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0"
}

2020-11-23 21:59:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0"
}

2020-11-23 21:59:04 | [Mutex] received everything.

2020-11-23 21:59:04 | [Mutex] isItemNotified: retracted:item:notifieditem-2dc3c4e6-40f4-4379-851b-7d803cefbdd0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.021s
2020-11-23 21:59:04 |

2020-11-23 21:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:04 | ------------------------------------

2020-11-23 21:59:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f22fed75-46fe-474e-a232-ffe4bfd1f23e",
    "item-id": "item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0"
}

2020-11-23 21:59:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f22fed75-46fe-474e-a232-ffe4bfd1f23e",
    "item-id": "item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0",
    "item": [
        "<item id=\"item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0\"><test>item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0</test></item>"
    ]
}

2020-11-23 21:59:04 | [Mutex] notify: [retrieved:item:item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0:payload-matches:true:localhost]

2020-11-23 21:59:04 | [Mutex] received everything.

2020-11-23 21:59:04 | [Mutex] isItemNotified: retrieved:item:item-2dc3c4e6-40f4-4379-851b-7d803cefbdd0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-11-23 21:59:04 |

2020-11-23 21:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:04 | ------------------------------------

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

2020-11-23 21:59:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f22fed75-46fe-474e-a232-ffe4bfd1f23e",
        "test",
        "node-30031ba7-6463-432f-bd08-5b946dfef93c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-11-23 21:59:04 |

2020-11-23 21:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:04 | ------------------------------------

2020-11-23 21:59:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f22fed75-46fe-474e-a232-ffe4bfd1f23e)"
}

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

subscribeNodes 1.013s
2020-11-23 21:59:03 |

2020-11-23 21:59:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:03 | ------------------------------------

2020-11-23 21:59:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f22fed75-46fe-474e-a232-ffe4bfd1f23e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2020-11-23 21:59:04 |

2020-11-23 21:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-23 21:59:04 | ------------------------------------

2020-11-23 21:59:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f22fed75-46fe-474e-a232-ffe4bfd1f23e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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