Generated by TestNG with ReportNG at 21:50 PST on Wednesday 30 December 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.068s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2020-12-30 22:04:59 |

2020-12-30 22:04:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:04:59 | ------------------------------------

2020-12-30 22:04:59 | [Mutex] waiting for: [configured:node:node-d08561bb-af6c-45e4-bc44-18f0b483c2eb:node-89a522f2-6ddf-41ac-a5df-852ab05d9bfd]

2020-12-30 22:04:59 | [Mutex] received everything.

2020-12-30 22:04:59 | [Mutex] isItemNotified: configured:node:node-d08561bb-af6c-45e4-bc44-18f0b483c2eb:node-89a522f2-6ddf-41ac-a5df-852ab05d9bfd :: true

2020-12-30 22:05:00 | [Mutex] waiting for: [received:nodes:a1a6c40b-adbc-4161-bfd3-a30a5569a9c9:localhost]

2020-12-30 22:05:00 | [Mutex] received everything.

2020-12-30 22:05:00 | [Mutex] isItemNotified: received:node:a1a6c40b-adbc-4161-bfd3-a30a5569a9c9:localhost:node-d08561bb-af6c-45e4-bc44-18f0b483c2eb:Node d08561bb-af6c-45e4-bc44-18f0b483c2eb :: true

2020-12-30 22:05:00 | [Mutex] waiting for: [received:nodes:e1012aa9-51ce-4abc-ae8e-c6789ec5021e:localhost]

2020-12-30 22:05:00 | [Mutex] waiting for: [received:nodes:e1012aa9-51ce-4abc-ae8e-c6789ec5021e:localhost]

2020-12-30 22:05:00 | [Mutex] received everything.

2020-12-30 22:05:00 | [Mutex] isItemNotified: received:node:e1012aa9-51ce-4abc-ae8e-c6789ec5021e:localhost:node-d08561bb-af6c-45e4-bc44-18f0b483c2eb:Node d08561bb-af6c-45e4-bc44-18f0b483c2eb :: false

createNodes 1.680s
2020-12-30 22:04:56 |

2020-12-30 22:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:04:56 | ------------------------------------

2020-12-30 22:04:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d08561bb-af6c-45e4-bc44-18f0b483c2eb",
    "pubsub#title": "Node d08561bb-af6c-45e4-bc44-18f0b483c2eb"
}

2020-12-30 22:04:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-30 22:04:57 | [Mutex] waiting for: [received:nodes:184808e9-d357-4820-9d38-8b75d22cb795:localhost]

2020-12-30 22:04:57 | [Mutex] received everything.

2020-12-30 22:04:57 | [Mutex] isItemNotified: received:node:184808e9-d357-4820-9d38-8b75d22cb795:localhost:node-d08561bb-af6c-45e4-bc44-18f0b483c2eb:Node d08561bb-af6c-45e4-bc44-18f0b483c2eb :: true

createSubnodes 1.030s
2020-12-30 22:04:57 |

2020-12-30 22:04:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:04:57 | ------------------------------------

2020-12-30 22:04:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-89a522f2-6ddf-41ac-a5df-852ab05d9bfd",
    "pubsub#title": "Node 89a522f2-6ddf-41ac-a5df-852ab05d9bfd"
}

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

2020-12-30 22:04:59 | [Mutex] waiting for: [received:nodes:58f592db-f85e-4806-97db-a442662892d1:localhost]

2020-12-30 22:04:59 | [Mutex] received everything.

2020-12-30 22:04:59 | [Mutex] isItemNotified: received:node:58f592db-f85e-4806-97db-a442662892d1:localhost:node-89a522f2-6ddf-41ac-a5df-852ab05d9bfd:Node 89a522f2-6ddf-41ac-a5df-852ab05d9bfd :: true

deleteNodes 1.017s
2020-12-30 22:05:03 |

2020-12-30 22:05:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:05:03 | ------------------------------------

2020-12-30 22:05:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-89a522f2-6ddf-41ac-a5df-852ab05d9bfd"
}

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

2020-12-30 22:05:04 | [Mutex] waiting for: [received:nodes:d39c3e21-eb62-446f-927f-de51e45bc510:localhost]

2020-12-30 22:05:04 | [Mutex] received everything.

2020-12-30 22:05:04 | [Mutex] isItemNotified: received:node:d39c3e21-eb62-446f-927f-de51e45bc510:localhost:node-89a522f2-6ddf-41ac-a5df-852ab05d9bfd:Node 89a522f2-6ddf-41ac-a5df-852ab05d9bfd :: false

deleteSubnodes 1.026s
2020-12-30 22:05:02 |

2020-12-30 22:05:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:05:02 | ------------------------------------

2020-12-30 22:05:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d08561bb-af6c-45e4-bc44-18f0b483c2eb"
}

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

2020-12-30 22:05:03 | [Mutex] waiting for: [received:nodes:df1f9ecf-54bc-4300-b295-fda173a4b5ae:localhost]

2020-12-30 22:05:03 | [Mutex] received everything.

2020-12-30 22:05:03 | [Mutex] isItemNotified: received:node:df1f9ecf-54bc-4300-b295-fda173a4b5ae:localhost:node-d08561bb-af6c-45e4-bc44-18f0b483c2eb:Node d08561bb-af6c-45e4-bc44-18f0b483c2eb :: false

2020-12-30 22:05:03 | [Mutex] waiting for: [received:nodes:fa9c73ad-6e0e-408e-b058-7e134739c520:localhost]

2020-12-30 22:05:03 | [Mutex] received everything.

2020-12-30 22:05:03 | [Mutex] isItemNotified: received:node:fa9c73ad-6e0e-408e-b058-7e134739c520:localhost:node-d08561bb-af6c-45e4-bc44-18f0b483c2eb:Node d08561bb-af6c-45e4-bc44-18f0b483c2eb :: false

publishItemsToNodes 0.036s
2020-12-30 22:05:01 |

2020-12-30 22:05:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:05:01 | ------------------------------------

2020-12-30 22:05:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d08561bb-af6c-45e4-bc44-18f0b483c2eb",
    "entry": "<test>item-56fdc9ee-bcd6-42ad-ba47-c69051237f76</test>",
    "item-id": "item-56fdc9ee-bcd6-42ad-ba47-c69051237f76"
}

2020-12-30 22:05:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-56fdc9ee-bcd6-42ad-ba47-c69051237f76"
}

2020-12-30 22:05:01 | [Mutex] waiting for: [published:item:notifieditem-56fdc9ee-bcd6-42ad-ba47-c69051237f76:admin@test-domain.com]

2020-12-30 22:05:01 | [Mutex] received everything.

2020-12-30 22:05:01 | [Mutex] isItemNotified: published:item:notifieditem-56fdc9ee-bcd6-42ad-ba47-c69051237f76:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2020-12-30 22:05:01 |

2020-12-30 22:05:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:05:01 | ------------------------------------

2020-12-30 22:05:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d08561bb-af6c-45e4-bc44-18f0b483c2eb",
    "item-id": "item-56fdc9ee-bcd6-42ad-ba47-c69051237f76"
}

2020-12-30 22:05:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-56fdc9ee-bcd6-42ad-ba47-c69051237f76"
}

2020-12-30 22:05:01 | [Mutex] received everything.

2020-12-30 22:05:01 | [Mutex] isItemNotified: retracted:item:notifieditem-56fdc9ee-bcd6-42ad-ba47-c69051237f76:admin@test-domain.com :: true

retrieveItemsFromNodes 0.087s
2020-12-30 22:05:01 |

2020-12-30 22:05:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:05:01 | ------------------------------------

2020-12-30 22:05:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d08561bb-af6c-45e4-bc44-18f0b483c2eb",
    "item-id": "item-56fdc9ee-bcd6-42ad-ba47-c69051237f76"
}

2020-12-30 22:05:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d08561bb-af6c-45e4-bc44-18f0b483c2eb",
    "item-id": "item-56fdc9ee-bcd6-42ad-ba47-c69051237f76",
    "item": [
        "<item id=\"item-56fdc9ee-bcd6-42ad-ba47-c69051237f76\"><test>item-56fdc9ee-bcd6-42ad-ba47-c69051237f76</test></item>"
    ]
}

2020-12-30 22:05:01 | [Mutex] notify: [retrieved:item:item-56fdc9ee-bcd6-42ad-ba47-c69051237f76:payload-matches:true:localhost]

2020-12-30 22:05:01 | [Mutex] received everything.

2020-12-30 22:05:01 | [Mutex] isItemNotified: retrieved:item:item-56fdc9ee-bcd6-42ad-ba47-c69051237f76:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-12-30 22:05:01 |

2020-12-30 22:05:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:05:01 | ------------------------------------

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

2020-12-30 22:05:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d08561bb-af6c-45e4-bc44-18f0b483c2eb",
        "node-89a522f2-6ddf-41ac-a5df-852ab05d9bfd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-12-30 22:05:01 |

2020-12-30 22:05:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:05:01 | ------------------------------------

2020-12-30 22:05:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d08561bb-af6c-45e4-bc44-18f0b483c2eb)"
}

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

subscribeNodes 1.010s
2020-12-30 22:05:00 |

2020-12-30 22:05:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:05:00 | ------------------------------------

2020-12-30 22:05:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d08561bb-af6c-45e4-bc44-18f0b483c2eb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.076s
2020-12-30 22:05:01 |

2020-12-30 22:05:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 22:05:01 | ------------------------------------

2020-12-30 22:05:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d08561bb-af6c-45e4-bc44-18f0b483c2eb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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