Generated by TestNG with ReportNG at 21:44 PST on Tuesday 02 February 2021
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 : 8.939s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2021-02-02 22:01:00 |

2021-02-02 22:01:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:00 | ------------------------------------

2021-02-02 22:01:00 | [Mutex] waiting for: [configured:node:node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92:node-56c203eb-6108-49b9-9055-8ec9bd4de6c5]

2021-02-02 22:01:00 | [Mutex] received everything.

2021-02-02 22:01:00 | [Mutex] isItemNotified: configured:node:node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92:node-56c203eb-6108-49b9-9055-8ec9bd4de6c5 :: true

2021-02-02 22:01:01 | [Mutex] waiting for: [received:nodes:86e4467d-2029-4298-8464-c80bd2bc292f:localhost]

2021-02-02 22:01:01 | [Mutex] received everything.

2021-02-02 22:01:01 | [Mutex] isItemNotified: received:node:86e4467d-2029-4298-8464-c80bd2bc292f:localhost:node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92:Node 10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92 :: true

2021-02-02 22:01:01 | [Mutex] waiting for: [received:nodes:3407397e-8698-4bcd-9e9b-9fb58d81f0b6:localhost]

2021-02-02 22:01:01 | [Mutex] received everything.

2021-02-02 22:01:01 | [Mutex] isItemNotified: received:node:3407397e-8698-4bcd-9e9b-9fb58d81f0b6:localhost:node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92:Node 10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92 :: false

createNodes 1.645s
2021-02-02 22:00:57 |

2021-02-02 22:00:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:00:57 | ------------------------------------

2021-02-02 22:00: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-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92",
    "pubsub#title": "Node 10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92"
}

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

2021-02-02 22:00:59 | [Mutex] waiting for: [received:nodes:cc171081-c757-4331-9efc-07fa314f7b6a:localhost]

2021-02-02 22:00:59 | [Mutex] received everything.

2021-02-02 22:00:59 | [Mutex] isItemNotified: received:node:cc171081-c757-4331-9efc-07fa314f7b6a:localhost:node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92:Node 10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92 :: true

createSubnodes 1.025s
2021-02-02 22:00:59 |

2021-02-02 22:00:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:00:59 | ------------------------------------

2021-02-02 22:00: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-56c203eb-6108-49b9-9055-8ec9bd4de6c5",
    "pubsub#title": "Node 56c203eb-6108-49b9-9055-8ec9bd4de6c5"
}

2021-02-02 22:00:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-02 22:01:00 | [Mutex] waiting for: [received:nodes:d0634db3-002f-45b0-890f-e8a1c1bb3567:localhost]

2021-02-02 22:01:00 | [Mutex] received everything.

2021-02-02 22:01:00 | [Mutex] isItemNotified: received:node:d0634db3-002f-45b0-890f-e8a1c1bb3567:localhost:node-56c203eb-6108-49b9-9055-8ec9bd4de6c5:Node 56c203eb-6108-49b9-9055-8ec9bd4de6c5 :: true

deleteNodes 1.019s
2021-02-02 22:01:05 |

2021-02-02 22:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:05 | ------------------------------------

2021-02-02 22:01:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-56c203eb-6108-49b9-9055-8ec9bd4de6c5"
}

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

2021-02-02 22:01:06 | [Mutex] waiting for: [received:nodes:4437d420-c682-4f08-98c3-5e1775edc4af:localhost]

2021-02-02 22:01:06 | [Mutex] received everything.

2021-02-02 22:01:06 | [Mutex] isItemNotified: received:node:4437d420-c682-4f08-98c3-5e1775edc4af:localhost:node-56c203eb-6108-49b9-9055-8ec9bd4de6c5:Node 56c203eb-6108-49b9-9055-8ec9bd4de6c5 :: false

deleteSubnodes 1.030s
2021-02-02 22:01:04 |

2021-02-02 22:01:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:04 | ------------------------------------

2021-02-02 22:01:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92"
}

2021-02-02 22:01:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-02 22:01:05 | [Mutex] waiting for: [received:nodes:96dd6afe-c1b4-4c67-9ef8-2b8aa3e0ef7a:localhost]

2021-02-02 22:01:05 | [Mutex] waiting for: [received:nodes:96dd6afe-c1b4-4c67-9ef8-2b8aa3e0ef7a:localhost]

2021-02-02 22:01:05 | [Mutex] waiting for: [received:nodes:96dd6afe-c1b4-4c67-9ef8-2b8aa3e0ef7a:localhost]

2021-02-02 22:01:05 | [Mutex] received everything.

2021-02-02 22:01:05 | [Mutex] isItemNotified: received:node:96dd6afe-c1b4-4c67-9ef8-2b8aa3e0ef7a:localhost:node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92:Node 10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92 :: false

2021-02-02 22:01:05 | [Mutex] waiting for: [received:nodes:63154f44-86dc-4a52-a04a-c1d235ac9386:localhost]

2021-02-02 22:01:05 | [Mutex] received everything.

2021-02-02 22:01:05 | [Mutex] isItemNotified: received:node:63154f44-86dc-4a52-a04a-c1d235ac9386:localhost:node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92:Node 10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92 :: false

publishItemsToNodes 0.039s
2021-02-02 22:01:02 |

2021-02-02 22:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:02 | ------------------------------------

2021-02-02 22:01:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92",
    "entry": "<test>item-296ac04c-d7cb-4db7-895f-2218280479f6</test>",
    "item-id": "item-296ac04c-d7cb-4db7-895f-2218280479f6"
}

2021-02-02 22:01:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-296ac04c-d7cb-4db7-895f-2218280479f6"
}

2021-02-02 22:01:02 | [Mutex] waiting for: [published:item:notifieditem-296ac04c-d7cb-4db7-895f-2218280479f6:admin@test-domain.com]

2021-02-02 22:01:02 | [Mutex] received everything.

2021-02-02 22:01:02 | [Mutex] isItemNotified: published:item:notifieditem-296ac04c-d7cb-4db7-895f-2218280479f6:admin@test-domain.com :: true

retractItemsFromNodes 0.091s
2021-02-02 22:01:02 |

2021-02-02 22:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:02 | ------------------------------------

2021-02-02 22:01:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92",
    "item-id": "item-296ac04c-d7cb-4db7-895f-2218280479f6"
}

2021-02-02 22:01:03 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-296ac04c-d7cb-4db7-895f-2218280479f6"
}

2021-02-02 22:01:03 | [Mutex] waiting for: [retracted:item:notifieditem-296ac04c-d7cb-4db7-895f-2218280479f6:admin@test-domain.com]

2021-02-02 22:01:03 | [Mutex] received everything.

2021-02-02 22:01:03 | [Mutex] isItemNotified: retracted:item:notifieditem-296ac04c-d7cb-4db7-895f-2218280479f6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2021-02-02 22:01:02 |

2021-02-02 22:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:02 | ------------------------------------

2021-02-02 22:01:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92",
    "item-id": "item-296ac04c-d7cb-4db7-895f-2218280479f6"
}

2021-02-02 22:01:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92",
    "item-id": "item-296ac04c-d7cb-4db7-895f-2218280479f6",
    "item": [
        "<item id=\"item-296ac04c-d7cb-4db7-895f-2218280479f6\"><test>item-296ac04c-d7cb-4db7-895f-2218280479f6</test></item>"
    ]
}

2021-02-02 22:01:02 | [Mutex] notify: [retrieved:item:item-296ac04c-d7cb-4db7-895f-2218280479f6:payload-matches:true:localhost]

2021-02-02 22:01:02 | [Mutex] received everything.

2021-02-02 22:01:02 | [Mutex] isItemNotified: retrieved:item:item-296ac04c-d7cb-4db7-895f-2218280479f6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-02-02 22:01:02 |

2021-02-02 22:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:02 | ------------------------------------

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

2021-02-02 22:01:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-56c203eb-6108-49b9-9055-8ec9bd4de6c5",
        "test",
        "node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-02-02 22:01:02 |

2021-02-02 22:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:02 | ------------------------------------

2021-02-02 22:01:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92)"
}

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

subscribeNodes 1.015s
2021-02-02 22:01:01 |

2021-02-02 22:01:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:01 | ------------------------------------

2021-02-02 22:01:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-02 22:01:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-02-02 22:01:03 |

2021-02-02 22:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-02 22:01:03 | ------------------------------------

2021-02-02 22:01:03 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-10b3cd6d-adb7-4e9e-8e91-4921d1fe7e92",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-02 22:01:03 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}