Generated by TestNG with ReportNG at 08:22 PST on Tuesday 24 November 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.149s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2020-11-24 08:37:00 |

2020-11-24 08:37:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:00 | ------------------------------------

2020-11-24 08:37:00 | [Mutex] waiting for: [configured:node:node-da48ecb9-cb7e-4260-8eee-6383c6869760:node-3cc3a3ae-e016-4435-a2f4-569ac5a0b999]

2020-11-24 08:37:00 | [Mutex] received everything.

2020-11-24 08:37:00 | [Mutex] isItemNotified: configured:node:node-da48ecb9-cb7e-4260-8eee-6383c6869760:node-3cc3a3ae-e016-4435-a2f4-569ac5a0b999 :: true

2020-11-24 08:37:01 | [Mutex] waiting for: [received:nodes:77d6262b-0364-4969-a54c-e51d5dd9272b:localhost]

2020-11-24 08:37:01 | [Mutex] received everything.

2020-11-24 08:37:01 | [Mutex] isItemNotified: received:node:77d6262b-0364-4969-a54c-e51d5dd9272b:localhost:node-da48ecb9-cb7e-4260-8eee-6383c6869760:Node da48ecb9-cb7e-4260-8eee-6383c6869760 :: true

2020-11-24 08:37:01 | [Mutex] waiting for: [received:nodes:ca8e6c08-b860-4481-a77b-9bcfb1098f86:localhost]

2020-11-24 08:37:01 | [Mutex] received everything.

2020-11-24 08:37:01 | [Mutex] isItemNotified: received:node:ca8e6c08-b860-4481-a77b-9bcfb1098f86:localhost:node-da48ecb9-cb7e-4260-8eee-6383c6869760:Node da48ecb9-cb7e-4260-8eee-6383c6869760 :: false

createNodes 1.756s
2020-11-24 08:36:57 |

2020-11-24 08:36:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:36:57 | ------------------------------------

2020-11-24 08:36: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-da48ecb9-cb7e-4260-8eee-6383c6869760",
    "pubsub#title": "Node da48ecb9-cb7e-4260-8eee-6383c6869760"
}

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

2020-11-24 08:36:59 | [Mutex] waiting for: [received:nodes:5b3ddb9f-ae86-4bec-a615-fab08c8d0e68:localhost]

2020-11-24 08:36:59 | [Mutex] received everything.

2020-11-24 08:36:59 | [Mutex] isItemNotified: received:node:5b3ddb9f-ae86-4bec-a615-fab08c8d0e68:localhost:node-da48ecb9-cb7e-4260-8eee-6383c6869760:Node da48ecb9-cb7e-4260-8eee-6383c6869760 :: true

createSubnodes 1.034s
2020-11-24 08:36:59 |

2020-11-24 08:36:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:36:59 | ------------------------------------

2020-11-24 08:36: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-3cc3a3ae-e016-4435-a2f4-569ac5a0b999",
    "pubsub#title": "Node 3cc3a3ae-e016-4435-a2f4-569ac5a0b999"
}

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

2020-11-24 08:37:00 | [Mutex] waiting for: [received:nodes:8a5dcd84-ab21-4385-8bb6-21a3fc89f047:localhost]

2020-11-24 08:37:00 | [Mutex] received everything.

2020-11-24 08:37:00 | [Mutex] isItemNotified: received:node:8a5dcd84-ab21-4385-8bb6-21a3fc89f047:localhost:node-3cc3a3ae-e016-4435-a2f4-569ac5a0b999:Node 3cc3a3ae-e016-4435-a2f4-569ac5a0b999 :: true

deleteNodes 1.048s
2020-11-24 08:37:05 |

2020-11-24 08:37:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:05 | ------------------------------------

2020-11-24 08:37:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3cc3a3ae-e016-4435-a2f4-569ac5a0b999"
}

2020-11-24 08:37:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:37:06 | [Mutex] waiting for: [received:nodes:412427b8-f506-4581-9fb6-dc7fac36bcb8:localhost]

2020-11-24 08:37:06 | [Mutex] received everything.

2020-11-24 08:37:06 | [Mutex] isItemNotified: received:node:412427b8-f506-4581-9fb6-dc7fac36bcb8:localhost:node-3cc3a3ae-e016-4435-a2f4-569ac5a0b999:Node 3cc3a3ae-e016-4435-a2f4-569ac5a0b999 :: false

deleteSubnodes 1.029s
2020-11-24 08:37:04 |

2020-11-24 08:37:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:04 | ------------------------------------

2020-11-24 08:37:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-da48ecb9-cb7e-4260-8eee-6383c6869760"
}

2020-11-24 08:37:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:37:05 | [Mutex] waiting for: [received:nodes:8bc74362-2a2b-42d1-a0b2-81c79faab24e:localhost]

2020-11-24 08:37:05 | [Mutex] received everything.

2020-11-24 08:37:05 | [Mutex] isItemNotified: received:node:8bc74362-2a2b-42d1-a0b2-81c79faab24e:localhost:node-da48ecb9-cb7e-4260-8eee-6383c6869760:Node da48ecb9-cb7e-4260-8eee-6383c6869760 :: false

2020-11-24 08:37:05 | [Mutex] waiting for: [received:nodes:068da75e-215c-4878-8b23-e2ab1a4ca344:localhost]

2020-11-24 08:37:05 | [Mutex] received everything.

2020-11-24 08:37:05 | [Mutex] isItemNotified: received:node:068da75e-215c-4878-8b23-e2ab1a4ca344:localhost:node-da48ecb9-cb7e-4260-8eee-6383c6869760:Node da48ecb9-cb7e-4260-8eee-6383c6869760 :: false

publishItemsToNodes 0.054s
2020-11-24 08:37:02 |

2020-11-24 08:37:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:02 | ------------------------------------

2020-11-24 08:37:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-da48ecb9-cb7e-4260-8eee-6383c6869760",
    "entry": "<test>item-ba7dca22-61bf-4ea0-9dbe-848604909914</test>",
    "item-id": "item-ba7dca22-61bf-4ea0-9dbe-848604909914"
}

2020-11-24 08:37:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ba7dca22-61bf-4ea0-9dbe-848604909914"
}

2020-11-24 08:37:02 | [Mutex] waiting for: [published:item:notifieditem-ba7dca22-61bf-4ea0-9dbe-848604909914:admin@test-domain.com]

2020-11-24 08:37:02 | [Mutex] received everything.

2020-11-24 08:37:02 | [Mutex] isItemNotified: published:item:notifieditem-ba7dca22-61bf-4ea0-9dbe-848604909914:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2020-11-24 08:37:03 |

2020-11-24 08:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:03 | ------------------------------------

2020-11-24 08:37:03 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-da48ecb9-cb7e-4260-8eee-6383c6869760",
    "item-id": "item-ba7dca22-61bf-4ea0-9dbe-848604909914"
}

2020-11-24 08:37:03 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ba7dca22-61bf-4ea0-9dbe-848604909914"
}

2020-11-24 08:37:03 | [Mutex] waiting for: [retracted:item:notifieditem-ba7dca22-61bf-4ea0-9dbe-848604909914:admin@test-domain.com]

2020-11-24 08:37:03 | [Mutex] received everything.

2020-11-24 08:37:03 | [Mutex] isItemNotified: retracted:item:notifieditem-ba7dca22-61bf-4ea0-9dbe-848604909914:admin@test-domain.com :: true

retrieveItemsFromNodes 0.026s
2020-11-24 08:37:02 |

2020-11-24 08:37:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:02 | ------------------------------------

2020-11-24 08:37:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-da48ecb9-cb7e-4260-8eee-6383c6869760",
    "item-id": "item-ba7dca22-61bf-4ea0-9dbe-848604909914"
}

2020-11-24 08:37:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-da48ecb9-cb7e-4260-8eee-6383c6869760",
    "item-id": "item-ba7dca22-61bf-4ea0-9dbe-848604909914",
    "item": [
        "<item id=\"item-ba7dca22-61bf-4ea0-9dbe-848604909914\"><test>item-ba7dca22-61bf-4ea0-9dbe-848604909914</test></item>"
    ]
}

2020-11-24 08:37:02 | [Mutex] notify: [retrieved:item:item-ba7dca22-61bf-4ea0-9dbe-848604909914:payload-matches:true:localhost]

2020-11-24 08:37:02 | [Mutex] received everything.

2020-11-24 08:37:02 | [Mutex] isItemNotified: retrieved:item:item-ba7dca22-61bf-4ea0-9dbe-848604909914:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2020-11-24 08:37:02 |

2020-11-24 08:37:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:02 | ------------------------------------

2020-11-24 08:37:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-24 08:37:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3cc3a3ae-e016-4435-a2f4-569ac5a0b999",
        "test",
        "node-da48ecb9-cb7e-4260-8eee-6383c6869760"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-11-24 08:37:03 |

2020-11-24 08:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:03 | ------------------------------------

2020-11-24 08:37:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-da48ecb9-cb7e-4260-8eee-6383c6869760)"
}

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

subscribeNodes 1.012s
2020-11-24 08:37:01 |

2020-11-24 08:37:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:01 | ------------------------------------

2020-11-24 08:37:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-da48ecb9-cb7e-4260-8eee-6383c6869760",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-24 08:37:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2020-11-24 08:37:03 |

2020-11-24 08:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:37:03 | ------------------------------------

2020-11-24 08:37:03 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-da48ecb9-cb7e-4260-8eee-6383c6869760",
    "jids": [
        "admin@test-domain.com"
    ]
}

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