Generated by TestNG with ReportNG at 23:42 PDT on Wednesday 09 September 2020
root@37cb6fd1939a / 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.196s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.032s
2020-09-09 23:59:02 |

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

2020-09-09 23:59:02 | ------------------------------------

2020-09-09 23:59:02 | [Mutex] waiting for: [configured:node:node-20d8bc9e-f4b0-457d-a2b1-c74709953797:node-c4f81104-55d7-40d6-a8cf-3d53839de5a3]

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

2020-09-09 23:59:02 | [Mutex] isItemNotified: configured:node:node-20d8bc9e-f4b0-457d-a2b1-c74709953797:node-c4f81104-55d7-40d6-a8cf-3d53839de5a3 :: true

2020-09-09 23:59:03 | [Mutex] waiting for: [received:nodes:fb940b40-9dc9-4686-a6c2-bcf6f9b38daf:localhost]

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

2020-09-09 23:59:03 | [Mutex] isItemNotified: received:node:fb940b40-9dc9-4686-a6c2-bcf6f9b38daf:localhost:node-20d8bc9e-f4b0-457d-a2b1-c74709953797:Node 20d8bc9e-f4b0-457d-a2b1-c74709953797 :: true

2020-09-09 23:59:03 | [Mutex] waiting for: [received:nodes:c3949653-97fc-4f0d-9920-78970d6008ba:localhost]

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

2020-09-09 23:59:04 | [Mutex] isItemNotified: received:node:c3949653-97fc-4f0d-9920-78970d6008ba:localhost:node-20d8bc9e-f4b0-457d-a2b1-c74709953797:Node 20d8bc9e-f4b0-457d-a2b1-c74709953797 :: false

createNodes 1.882s
2020-09-09 23:59:00 |

2020-09-09 23:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 23:59:00 | ------------------------------------

2020-09-09 23: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-20d8bc9e-f4b0-457d-a2b1-c74709953797",
    "pubsub#title": "Node 20d8bc9e-f4b0-457d-a2b1-c74709953797"
}

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

2020-09-09 23:59:01 | [Mutex] waiting for: [received:nodes:10e10fb9-65b8-424d-92ec-c9c6f3a71839:localhost]

2020-09-09 23:59:01 | [Mutex] waiting for: [received:nodes:10e10fb9-65b8-424d-92ec-c9c6f3a71839:localhost]

2020-09-09 23:59:01 | [Mutex] waiting for: [received:nodes:10e10fb9-65b8-424d-92ec-c9c6f3a71839:localhost]

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

2020-09-09 23:59:01 | [Mutex] isItemNotified: received:node:10e10fb9-65b8-424d-92ec-c9c6f3a71839:localhost:node-20d8bc9e-f4b0-457d-a2b1-c74709953797:Node 20d8bc9e-f4b0-457d-a2b1-c74709953797 :: true

createSubnodes 1.026s
2020-09-09 23:59:01 |

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

2020-09-09 23:59:01 | ------------------------------------

2020-09-09 23: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-c4f81104-55d7-40d6-a8cf-3d53839de5a3",
    "pubsub#title": "Node c4f81104-55d7-40d6-a8cf-3d53839de5a3"
}

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

2020-09-09 23:59:02 | [Mutex] waiting for: [received:nodes:53fd8646-ed1e-4fab-bef2-5fb6b9b3d161:localhost]

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

2020-09-09 23:59:02 | [Mutex] isItemNotified: received:node:53fd8646-ed1e-4fab-bef2-5fb6b9b3d161:localhost:node-c4f81104-55d7-40d6-a8cf-3d53839de5a3:Node c4f81104-55d7-40d6-a8cf-3d53839de5a3 :: true

deleteNodes 1.029s
2020-09-09 23:59:07 |

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

2020-09-09 23:59:07 | ------------------------------------

2020-09-09 23:59:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c4f81104-55d7-40d6-a8cf-3d53839de5a3"
}

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

2020-09-09 23:59:08 | [Mutex] waiting for: [received:nodes:db989351-0763-462e-8384-656b1a318466:localhost]

2020-09-09 23:59:08 | [Mutex] waiting for: [received:nodes:db989351-0763-462e-8384-656b1a318466:localhost]

2020-09-09 23:59:08 | [Mutex] waiting for: [received:nodes:db989351-0763-462e-8384-656b1a318466:localhost]

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

2020-09-09 23:59:08 | [Mutex] isItemNotified: received:node:db989351-0763-462e-8384-656b1a318466:localhost:node-c4f81104-55d7-40d6-a8cf-3d53839de5a3:Node c4f81104-55d7-40d6-a8cf-3d53839de5a3 :: false

deleteSubnodes 1.026s
2020-09-09 23:59:06 |

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

2020-09-09 23:59:06 | ------------------------------------

2020-09-09 23:59:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20d8bc9e-f4b0-457d-a2b1-c74709953797"
}

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

2020-09-09 23:59:07 | [Mutex] waiting for: [received:nodes:835ae582-8216-4bb6-b7a6-3b1b3d2e507a:localhost]

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

2020-09-09 23:59:07 | [Mutex] isItemNotified: received:node:835ae582-8216-4bb6-b7a6-3b1b3d2e507a:localhost:node-20d8bc9e-f4b0-457d-a2b1-c74709953797:Node 20d8bc9e-f4b0-457d-a2b1-c74709953797 :: false

2020-09-09 23:59:07 | [Mutex] waiting for: [received:nodes:fe094779-c816-4496-8d05-41925d26f99d:localhost]

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

2020-09-09 23:59:07 | [Mutex] isItemNotified: received:node:fe094779-c816-4496-8d05-41925d26f99d:localhost:node-20d8bc9e-f4b0-457d-a2b1-c74709953797:Node 20d8bc9e-f4b0-457d-a2b1-c74709953797 :: false

publishItemsToNodes 0.037s
2020-09-09 23:59:05 |

2020-09-09 23:59:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 23:59:05 | ------------------------------------

2020-09-09 23:59:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-20d8bc9e-f4b0-457d-a2b1-c74709953797",
    "entry": "<test>item-45c39bcf-6257-499a-9547-d4817c3e6d7f</test>",
    "item-id": "item-45c39bcf-6257-499a-9547-d4817c3e6d7f"
}

2020-09-09 23:59:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-45c39bcf-6257-499a-9547-d4817c3e6d7f"
}

2020-09-09 23:59:05 | [Mutex] waiting for: [published:item:notifieditem-45c39bcf-6257-499a-9547-d4817c3e6d7f:admin@test-domain.com]

2020-09-09 23:59:05 | [Mutex] received everything.

2020-09-09 23:59:05 | [Mutex] isItemNotified: published:item:notifieditem-45c39bcf-6257-499a-9547-d4817c3e6d7f:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-09-09 23:59:05 |

2020-09-09 23:59:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 23:59:05 | ------------------------------------

2020-09-09 23:59:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-20d8bc9e-f4b0-457d-a2b1-c74709953797",
    "item-id": "item-45c39bcf-6257-499a-9547-d4817c3e6d7f"
}

2020-09-09 23:59:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-45c39bcf-6257-499a-9547-d4817c3e6d7f"
}

2020-09-09 23:59:05 | [Mutex] received everything.

2020-09-09 23:59:05 | [Mutex] isItemNotified: retracted:item:notifieditem-45c39bcf-6257-499a-9547-d4817c3e6d7f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.054s
2020-09-09 23:59:05 |

2020-09-09 23:59:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 23:59:05 | ------------------------------------

2020-09-09 23:59:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-20d8bc9e-f4b0-457d-a2b1-c74709953797",
    "item-id": "item-45c39bcf-6257-499a-9547-d4817c3e6d7f"
}

2020-09-09 23:59:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-20d8bc9e-f4b0-457d-a2b1-c74709953797",
    "item-id": "item-45c39bcf-6257-499a-9547-d4817c3e6d7f",
    "item": [
        "<item id=\"item-45c39bcf-6257-499a-9547-d4817c3e6d7f\"><test>item-45c39bcf-6257-499a-9547-d4817c3e6d7f</test></item>"
    ]
}

2020-09-09 23:59:05 | [Mutex] notify: [retrieved:item:item-45c39bcf-6257-499a-9547-d4817c3e6d7f:payload-matches:true:localhost]

2020-09-09 23:59:05 | [Mutex] received everything.

2020-09-09 23:59:05 | [Mutex] isItemNotified: retrieved:item:item-45c39bcf-6257-499a-9547-d4817c3e6d7f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-09 23:59:05 |

2020-09-09 23:59:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 23:59:05 | ------------------------------------

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

2020-09-09 23:59:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-20d8bc9e-f4b0-457d-a2b1-c74709953797",
        "test",
        "node-c4f81104-55d7-40d6-a8cf-3d53839de5a3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-09-09 23:59:05 |

2020-09-09 23:59:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 23:59:05 | ------------------------------------

2020-09-09 23:59:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-20d8bc9e-f4b0-457d-a2b1-c74709953797)"
}

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

subscribeNodes 1.009s
2020-09-09 23:59:04 |

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

2020-09-09 23:59:04 | ------------------------------------

2020-09-09 23:59:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-20d8bc9e-f4b0-457d-a2b1-c74709953797",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.112s
2020-09-09 23:59:05 |

2020-09-09 23:59:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 23:59:05 | ------------------------------------

2020-09-09 23:59:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-20d8bc9e-f4b0-457d-a2b1-c74709953797",
    "jids": [
        "admin@test-domain.com"
    ]
}

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