Generated by TestNG with ReportNG at 21:43 PST on Tuesday 03 November 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.114s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2020-11-03 21:58:44 |

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

2020-11-03 21:58:44 | ------------------------------------

2020-11-03 21:58:44 | [Mutex] waiting for: [configured:node:node-500b56ca-a2bb-4b3c-bd6b-47a6597585de:node-7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f]

2020-11-03 21:58:44 | [Mutex] received everything.

2020-11-03 21:58:44 | [Mutex] isItemNotified: configured:node:node-500b56ca-a2bb-4b3c-bd6b-47a6597585de:node-7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f :: true

2020-11-03 21:58:45 | [Mutex] waiting for: [received:nodes:357ee190-9391-4fc1-b13f-54200077d720:localhost]

2020-11-03 21:58:45 | [Mutex] received everything.

2020-11-03 21:58:45 | [Mutex] isItemNotified: received:node:357ee190-9391-4fc1-b13f-54200077d720:localhost:node-500b56ca-a2bb-4b3c-bd6b-47a6597585de:Node 500b56ca-a2bb-4b3c-bd6b-47a6597585de :: true

2020-11-03 21:58:45 | [Mutex] waiting for: [received:nodes:6b35db9d-3ffc-4766-85ee-ac13cb06cd23:localhost]

2020-11-03 21:58:45 | [Mutex] waiting for: [received:nodes:6b35db9d-3ffc-4766-85ee-ac13cb06cd23:localhost]

2020-11-03 21:58:45 | [Mutex] waiting for: [received:nodes:6b35db9d-3ffc-4766-85ee-ac13cb06cd23:localhost]

2020-11-03 21:58:45 | [Mutex] received everything.

2020-11-03 21:58:45 | [Mutex] isItemNotified: received:node:6b35db9d-3ffc-4766-85ee-ac13cb06cd23:localhost:node-500b56ca-a2bb-4b3c-bd6b-47a6597585de:Node 500b56ca-a2bb-4b3c-bd6b-47a6597585de :: false

createNodes 1.748s
2020-11-03 21:58:41 |

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

2020-11-03 21:58:41 | ------------------------------------

2020-11-03 21:58:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-500b56ca-a2bb-4b3c-bd6b-47a6597585de",
    "pubsub#title": "Node 500b56ca-a2bb-4b3c-bd6b-47a6597585de"
}

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

2020-11-03 21:58:43 | [Mutex] waiting for: [received:nodes:2f7d1883-ba91-4595-9637-9847fe7f3160:localhost]

2020-11-03 21:58:43 | [Mutex] received everything.

2020-11-03 21:58:43 | [Mutex] isItemNotified: received:node:2f7d1883-ba91-4595-9637-9847fe7f3160:localhost:node-500b56ca-a2bb-4b3c-bd6b-47a6597585de:Node 500b56ca-a2bb-4b3c-bd6b-47a6597585de :: true

createSubnodes 1.025s
2020-11-03 21:58:43 |

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

2020-11-03 21:58:43 | ------------------------------------

2020-11-03 21:58:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f",
    "pubsub#title": "Node 7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f"
}

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

2020-11-03 21:58:44 | [Mutex] waiting for: [received:nodes:7f8d7cf1-1d49-4b68-87c7-a0ea1d6de6ad:localhost]

2020-11-03 21:58:44 | [Mutex] waiting for: [received:nodes:7f8d7cf1-1d49-4b68-87c7-a0ea1d6de6ad:localhost]

2020-11-03 21:58:44 | [Mutex] received everything.

2020-11-03 21:58:44 | [Mutex] isItemNotified: received:node:7f8d7cf1-1d49-4b68-87c7-a0ea1d6de6ad:localhost:node-7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f:Node 7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f :: true

deleteNodes 1.027s
2020-11-03 21:58:49 |

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

2020-11-03 21:58:49 | ------------------------------------

2020-11-03 21:58:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f"
}

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

2020-11-03 21:58:50 | [Mutex] waiting for: [received:nodes:e742f050-eed4-4408-8a79-56fcf1cdf261:localhost]

2020-11-03 21:58:50 | [Mutex] waiting for: [received:nodes:e742f050-eed4-4408-8a79-56fcf1cdf261:localhost]

2020-11-03 21:58:50 | [Mutex] received everything.

2020-11-03 21:58:50 | [Mutex] isItemNotified: received:node:e742f050-eed4-4408-8a79-56fcf1cdf261:localhost:node-7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f:Node 7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f :: false

deleteSubnodes 1.027s
2020-11-03 21:58:48 |

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

2020-11-03 21:58:48 | ------------------------------------

2020-11-03 21:58:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-500b56ca-a2bb-4b3c-bd6b-47a6597585de"
}

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

2020-11-03 21:58:49 | [Mutex] waiting for: [received:nodes:b3e2e770-cb08-4126-98c6-144a05372998:localhost]

2020-11-03 21:58:49 | [Mutex] waiting for: [received:nodes:b3e2e770-cb08-4126-98c6-144a05372998:localhost]

2020-11-03 21:58:49 | [Mutex] received everything.

2020-11-03 21:58:49 | [Mutex] isItemNotified: received:node:b3e2e770-cb08-4126-98c6-144a05372998:localhost:node-500b56ca-a2bb-4b3c-bd6b-47a6597585de:Node 500b56ca-a2bb-4b3c-bd6b-47a6597585de :: false

2020-11-03 21:58:49 | [Mutex] waiting for: [received:nodes:b4eb83eb-2c77-4321-a380-44b41826efc3:localhost]

2020-11-03 21:58:49 | [Mutex] received everything.

2020-11-03 21:58:49 | [Mutex] isItemNotified: received:node:b4eb83eb-2c77-4321-a380-44b41826efc3:localhost:node-500b56ca-a2bb-4b3c-bd6b-47a6597585de:Node 500b56ca-a2bb-4b3c-bd6b-47a6597585de :: false

publishItemsToNodes 0.048s
2020-11-03 21:58:46 |

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

2020-11-03 21:58:46 | ------------------------------------

2020-11-03 21:58:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-500b56ca-a2bb-4b3c-bd6b-47a6597585de",
    "entry": "<test>item-39a6d9db-e708-41f7-9750-13895ade5a7b</test>",
    "item-id": "item-39a6d9db-e708-41f7-9750-13895ade5a7b"
}

2020-11-03 21:58:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-39a6d9db-e708-41f7-9750-13895ade5a7b"
}

2020-11-03 21:58:46 | [Mutex] waiting for: [published:item:notifieditem-39a6d9db-e708-41f7-9750-13895ade5a7b:admin@test-domain.com]

2020-11-03 21:58:46 | [Mutex] received everything.

2020-11-03 21:58:46 | [Mutex] isItemNotified: published:item:notifieditem-39a6d9db-e708-41f7-9750-13895ade5a7b:admin@test-domain.com :: true

retractItemsFromNodes 0.112s
2020-11-03 21:58:47 |

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

2020-11-03 21:58:47 | ------------------------------------

2020-11-03 21:58:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-500b56ca-a2bb-4b3c-bd6b-47a6597585de",
    "item-id": "item-39a6d9db-e708-41f7-9750-13895ade5a7b"
}

2020-11-03 21:58:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-39a6d9db-e708-41f7-9750-13895ade5a7b"
}

2020-11-03 21:58:47 | [Mutex] received everything.

2020-11-03 21:58:47 | [Mutex] isItemNotified: retracted:item:notifieditem-39a6d9db-e708-41f7-9750-13895ade5a7b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2020-11-03 21:58:46 |

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

2020-11-03 21:58:46 | ------------------------------------

2020-11-03 21:58:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-500b56ca-a2bb-4b3c-bd6b-47a6597585de",
    "item-id": "item-39a6d9db-e708-41f7-9750-13895ade5a7b"
}

2020-11-03 21:58:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-500b56ca-a2bb-4b3c-bd6b-47a6597585de",
    "item-id": "item-39a6d9db-e708-41f7-9750-13895ade5a7b",
    "item": [
        "<item id=\"item-39a6d9db-e708-41f7-9750-13895ade5a7b\"><test>item-39a6d9db-e708-41f7-9750-13895ade5a7b</test></item>"
    ]
}

2020-11-03 21:58:46 | [Mutex] notify: [retrieved:item:item-39a6d9db-e708-41f7-9750-13895ade5a7b:payload-matches:true:localhost]

2020-11-03 21:58:46 | [Mutex] received everything.

2020-11-03 21:58:46 | [Mutex] isItemNotified: retrieved:item:item-39a6d9db-e708-41f7-9750-13895ade5a7b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-11-03 21:58:46 |

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

2020-11-03 21:58:46 | ------------------------------------

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

2020-11-03 21:58:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-500b56ca-a2bb-4b3c-bd6b-47a6597585de",
        "node-7b5e17b9-e15b-49f1-9dd0-cd97efd4c09f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-03 21:58:46 |

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

2020-11-03 21:58:46 | ------------------------------------

2020-11-03 21:58:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-500b56ca-a2bb-4b3c-bd6b-47a6597585de)"
}

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

subscribeNodes 1.010s
2020-11-03 21:58:45 |

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

2020-11-03 21:58:45 | ------------------------------------

2020-11-03 21:58:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-500b56ca-a2bb-4b3c-bd6b-47a6597585de",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.072s
2020-11-03 21:58:47 |

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

2020-11-03 21:58:47 | ------------------------------------

2020-11-03 21:58:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-500b56ca-a2bb-4b3c-bd6b-47a6597585de",
    "jids": [
        "admin@test-domain.com"
    ]
}

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