Generated by TestNG with ReportNG at 22:42 PDT on Wednesday 12 May 2021
root@b2c2a8eba6e6 / 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.074s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2021-05-12 22:58:07 |

2021-05-12 22:58:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:07 | ------------------------------------

2021-05-12 22:58:07 | [Mutex] waiting for: [configured:node:node-a42e148e-6946-4ff3-9af6-515788594e6a:node-bf463260-a45a-46e2-bad9-959533ff68f5]

2021-05-12 22:58:07 | [Mutex] received everything.

2021-05-12 22:58:07 | [Mutex] isItemNotified: configured:node:node-a42e148e-6946-4ff3-9af6-515788594e6a:node-bf463260-a45a-46e2-bad9-959533ff68f5 :: true

2021-05-12 22:58:08 | [Mutex] waiting for: [received:nodes:6a7d9f2d-e368-4a5b-9c26-2ebdee17c841:localhost]

2021-05-12 22:58:08 | [Mutex] waiting for: [received:nodes:6a7d9f2d-e368-4a5b-9c26-2ebdee17c841:localhost]

2021-05-12 22:58:08 | [Mutex] received everything.

2021-05-12 22:58:08 | [Mutex] isItemNotified: received:node:6a7d9f2d-e368-4a5b-9c26-2ebdee17c841:localhost:node-a42e148e-6946-4ff3-9af6-515788594e6a:Node a42e148e-6946-4ff3-9af6-515788594e6a :: true

2021-05-12 22:58:08 | [Mutex] waiting for: [received:nodes:9cb5b9ee-6aeb-468f-9d0e-afaae6add3c2:localhost]

2021-05-12 22:58:08 | [Mutex] waiting for: [received:nodes:9cb5b9ee-6aeb-468f-9d0e-afaae6add3c2:localhost]

2021-05-12 22:58:08 | [Mutex] received everything.

2021-05-12 22:58:08 | [Mutex] isItemNotified: received:node:9cb5b9ee-6aeb-468f-9d0e-afaae6add3c2:localhost:node-a42e148e-6946-4ff3-9af6-515788594e6a:Node a42e148e-6946-4ff3-9af6-515788594e6a :: false

createNodes 1.713s
2021-05-12 22:58:04 |

2021-05-12 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:04 | ------------------------------------

2021-05-12 22:58:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a42e148e-6946-4ff3-9af6-515788594e6a",
    "pubsub#title": "Node a42e148e-6946-4ff3-9af6-515788594e6a"
}

2021-05-12 22:58:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:58:06 | [Mutex] waiting for: [received:nodes:7da5f981-5647-4b51-9fad-2f4f052cc4ee:localhost]

2021-05-12 22:58:06 | [Mutex] received everything.

2021-05-12 22:58:06 | [Mutex] isItemNotified: received:node:7da5f981-5647-4b51-9fad-2f4f052cc4ee:localhost:node-a42e148e-6946-4ff3-9af6-515788594e6a:Node a42e148e-6946-4ff3-9af6-515788594e6a :: true

createSubnodes 1.030s
2021-05-12 22:58:06 |

2021-05-12 22:58:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:06 | ------------------------------------

2021-05-12 22:58:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bf463260-a45a-46e2-bad9-959533ff68f5",
    "pubsub#title": "Node bf463260-a45a-46e2-bad9-959533ff68f5"
}

2021-05-12 22:58:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:58:07 | [Mutex] waiting for: [received:nodes:5bdd8222-e46d-4345-994f-2980cc76eb53:localhost]

2021-05-12 22:58:07 | [Mutex] received everything.

2021-05-12 22:58:07 | [Mutex] isItemNotified: received:node:5bdd8222-e46d-4345-994f-2980cc76eb53:localhost:node-bf463260-a45a-46e2-bad9-959533ff68f5:Node bf463260-a45a-46e2-bad9-959533ff68f5 :: true

deleteNodes 1.032s
2021-05-12 22:58:11 |

2021-05-12 22:58:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:11 | ------------------------------------

2021-05-12 22:58:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bf463260-a45a-46e2-bad9-959533ff68f5"
}

2021-05-12 22:58:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:58:12 | [Mutex] waiting for: [received:nodes:11e09aa2-ed43-413c-afd2-d4c4b061cafd:localhost]

2021-05-12 22:58:12 | [Mutex] received everything.

2021-05-12 22:58:12 | [Mutex] isItemNotified: received:node:11e09aa2-ed43-413c-afd2-d4c4b061cafd:localhost:node-bf463260-a45a-46e2-bad9-959533ff68f5:Node bf463260-a45a-46e2-bad9-959533ff68f5 :: false

deleteSubnodes 1.034s
2021-05-12 22:58:10 |

2021-05-12 22:58:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:10 | ------------------------------------

2021-05-12 22:58:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a42e148e-6946-4ff3-9af6-515788594e6a"
}

2021-05-12 22:58:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:58:11 | [Mutex] waiting for: [received:nodes:a5731d82-e912-475d-9c27-50d6d767ff17:localhost]

2021-05-12 22:58:11 | [Mutex] received everything.

2021-05-12 22:58:11 | [Mutex] isItemNotified: received:node:a5731d82-e912-475d-9c27-50d6d767ff17:localhost:node-a42e148e-6946-4ff3-9af6-515788594e6a:Node a42e148e-6946-4ff3-9af6-515788594e6a :: false

2021-05-12 22:58:11 | [Mutex] waiting for: [received:nodes:0df8ae43-812a-42f4-8262-ee7ef05133e8:localhost]

2021-05-12 22:58:11 | [Mutex] received everything.

2021-05-12 22:58:11 | [Mutex] isItemNotified: received:node:0df8ae43-812a-42f4-8262-ee7ef05133e8:localhost:node-a42e148e-6946-4ff3-9af6-515788594e6a:Node a42e148e-6946-4ff3-9af6-515788594e6a :: false

publishItemsToNodes 0.032s
2021-05-12 22:58:09 |

2021-05-12 22:58:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:09 | ------------------------------------

2021-05-12 22:58:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a42e148e-6946-4ff3-9af6-515788594e6a",
    "entry": "<test>item-2dede9fd-1861-479c-928c-ebd11061cce7</test>",
    "item-id": "item-2dede9fd-1861-479c-928c-ebd11061cce7"
}

2021-05-12 22:58:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2dede9fd-1861-479c-928c-ebd11061cce7"
}

2021-05-12 22:58:09 | [Mutex] waiting for: [published:item:notifieditem-2dede9fd-1861-479c-928c-ebd11061cce7:admin@test-domain.com]

2021-05-12 22:58:09 | [Mutex] received everything.

2021-05-12 22:58:09 | [Mutex] isItemNotified: published:item:notifieditem-2dede9fd-1861-479c-928c-ebd11061cce7:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2021-05-12 22:58:09 |

2021-05-12 22:58:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:09 | ------------------------------------

2021-05-12 22:58:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a42e148e-6946-4ff3-9af6-515788594e6a",
    "item-id": "item-2dede9fd-1861-479c-928c-ebd11061cce7"
}

2021-05-12 22:58:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2dede9fd-1861-479c-928c-ebd11061cce7"
}

2021-05-12 22:58:09 | [Mutex] waiting for: [retracted:item:notifieditem-2dede9fd-1861-479c-928c-ebd11061cce7:admin@test-domain.com]

2021-05-12 22:58:09 | [Mutex] received everything.

2021-05-12 22:58:09 | [Mutex] isItemNotified: retracted:item:notifieditem-2dede9fd-1861-479c-928c-ebd11061cce7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.079s
2021-05-12 22:58:09 |

2021-05-12 22:58:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:09 | ------------------------------------

2021-05-12 22:58:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a42e148e-6946-4ff3-9af6-515788594e6a",
    "item-id": "item-2dede9fd-1861-479c-928c-ebd11061cce7"
}

2021-05-12 22:58:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a42e148e-6946-4ff3-9af6-515788594e6a",
    "item-id": "item-2dede9fd-1861-479c-928c-ebd11061cce7",
    "item": [
        "<item id=\"item-2dede9fd-1861-479c-928c-ebd11061cce7\"><test>item-2dede9fd-1861-479c-928c-ebd11061cce7</test></item>"
    ]
}

2021-05-12 22:58:09 | [Mutex] notify: [retrieved:item:item-2dede9fd-1861-479c-928c-ebd11061cce7:payload-matches:true:localhost]

2021-05-12 22:58:09 | [Mutex] received everything.

2021-05-12 22:58:09 | [Mutex] isItemNotified: retrieved:item:item-2dede9fd-1861-479c-928c-ebd11061cce7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.063s
2021-05-12 22:58:09 |

2021-05-12 22:58:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:09 | ------------------------------------

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

2021-05-12 22:58:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-bf463260-a45a-46e2-bad9-959533ff68f5",
        "node-a42e148e-6946-4ff3-9af6-515788594e6a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-05-12 22:58:09 |

2021-05-12 22:58:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:09 | ------------------------------------

2021-05-12 22:58:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a42e148e-6946-4ff3-9af6-515788594e6a)"
}

2021-05-12 22:58:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-05-12 22:58:08 |

2021-05-12 22:58:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:08 | ------------------------------------

2021-05-12 22:58:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a42e148e-6946-4ff3-9af6-515788594e6a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-12 22:58:08 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.087s
2021-05-12 22:58:09 |

2021-05-12 22:58:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:58:09 | ------------------------------------

2021-05-12 22:58:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a42e148e-6946-4ff3-9af6-515788594e6a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-12 22:58:09 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}