Generated by TestNG with ReportNG at 23:12 PDT on Sunday 20 September 2020
root@1a41183091ef / 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.985s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.134s
2020-09-20 23:27:31 |

2020-09-20 23:27:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:31 | ------------------------------------

2020-09-20 23:27:31 | [Mutex] waiting for: [configured:node:node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077:node-af59eb5b-d120-4403-863a-826157049e62]

2020-09-20 23:27:31 | [Mutex] received everything.

2020-09-20 23:27:31 | [Mutex] isItemNotified: configured:node:node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077:node-af59eb5b-d120-4403-863a-826157049e62 :: true

2020-09-20 23:27:32 | [Mutex] waiting for: [received:nodes:124785e0-ce4f-4a97-9636-2300d537d7ed:localhost]

2020-09-20 23:27:32 | [Mutex] received everything.

2020-09-20 23:27:32 | [Mutex] isItemNotified: received:node:124785e0-ce4f-4a97-9636-2300d537d7ed:localhost:node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077:Node a2ccb392-b6c4-4edf-bf48-6cc4645d5077 :: true

2020-09-20 23:27:32 | [Mutex] waiting for: [received:nodes:2634b39c-4c50-4932-b255-f55dc8409860:localhost]

2020-09-20 23:27:32 | [Mutex] received everything.

2020-09-20 23:27:32 | [Mutex] isItemNotified: received:node:2634b39c-4c50-4932-b255-f55dc8409860:localhost:node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077:Node a2ccb392-b6c4-4edf-bf48-6cc4645d5077 :: false

createNodes 1.653s
2020-09-20 23:27:28 |

2020-09-20 23:27:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:28 | ------------------------------------

2020-09-20 23:27:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077",
    "pubsub#title": "Node a2ccb392-b6c4-4edf-bf48-6cc4645d5077"
}

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

2020-09-20 23:27:29 | [Mutex] waiting for: [received:nodes:40405e08-d7f8-4f37-8b32-fb6da2eee819:localhost]

2020-09-20 23:27:29 | [Mutex] received everything.

2020-09-20 23:27:29 | [Mutex] isItemNotified: received:node:40405e08-d7f8-4f37-8b32-fb6da2eee819:localhost:node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077:Node a2ccb392-b6c4-4edf-bf48-6cc4645d5077 :: true

createSubnodes 1.030s
2020-09-20 23:27:29 |

2020-09-20 23:27:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:29 | ------------------------------------

2020-09-20 23:27:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-af59eb5b-d120-4403-863a-826157049e62",
    "pubsub#title": "Node af59eb5b-d120-4403-863a-826157049e62"
}

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

2020-09-20 23:27:31 | [Mutex] waiting for: [received:nodes:57151456-9785-4946-8acb-fc94189f12e2:localhost]

2020-09-20 23:27:31 | [Mutex] waiting for: [received:nodes:57151456-9785-4946-8acb-fc94189f12e2:localhost]

2020-09-20 23:27:31 | [Mutex] received everything.

2020-09-20 23:27:31 | [Mutex] isItemNotified: received:node:57151456-9785-4946-8acb-fc94189f12e2:localhost:node-af59eb5b-d120-4403-863a-826157049e62:Node af59eb5b-d120-4403-863a-826157049e62 :: true

deleteNodes 1.021s
2020-09-20 23:27:35 |

2020-09-20 23:27:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:35 | ------------------------------------

2020-09-20 23:27:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-af59eb5b-d120-4403-863a-826157049e62"
}

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

2020-09-20 23:27:36 | [Mutex] waiting for: [received:nodes:5fb692a0-fd1a-4bb1-8e92-f37fb1c302fc:localhost]

2020-09-20 23:27:36 | [Mutex] received everything.

2020-09-20 23:27:36 | [Mutex] isItemNotified: received:node:5fb692a0-fd1a-4bb1-8e92-f37fb1c302fc:localhost:node-af59eb5b-d120-4403-863a-826157049e62:Node af59eb5b-d120-4403-863a-826157049e62 :: false

deleteSubnodes 1.029s
2020-09-20 23:27:34 |

2020-09-20 23:27:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:34 | ------------------------------------

2020-09-20 23:27:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077"
}

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

2020-09-20 23:27:35 | [Mutex] waiting for: [received:nodes:01cfe28c-77f3-4755-959d-a4f4f7f12c6a:localhost]

2020-09-20 23:27:35 | [Mutex] waiting for: [received:nodes:01cfe28c-77f3-4755-959d-a4f4f7f12c6a:localhost]

2020-09-20 23:27:35 | [Mutex] received everything.

2020-09-20 23:27:35 | [Mutex] isItemNotified: received:node:01cfe28c-77f3-4755-959d-a4f4f7f12c6a:localhost:node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077:Node a2ccb392-b6c4-4edf-bf48-6cc4645d5077 :: false

2020-09-20 23:27:35 | [Mutex] waiting for: [received:nodes:6c09ce2b-cb7f-4051-b372-bf83774c90f4:localhost]

2020-09-20 23:27:35 | [Mutex] received everything.

2020-09-20 23:27:35 | [Mutex] isItemNotified: received:node:6c09ce2b-cb7f-4051-b372-bf83774c90f4:localhost:node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077:Node a2ccb392-b6c4-4edf-bf48-6cc4645d5077 :: false

publishItemsToNodes 0.045s
2020-09-20 23:27:33 |

2020-09-20 23:27:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:33 | ------------------------------------

2020-09-20 23:27:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077",
    "entry": "<test>item-aceb9d82-f20e-4011-a9a2-584a7991293b</test>",
    "item-id": "item-aceb9d82-f20e-4011-a9a2-584a7991293b"
}

2020-09-20 23:27:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aceb9d82-f20e-4011-a9a2-584a7991293b"
}

2020-09-20 23:27:33 | [Mutex] waiting for: [published:item:notifieditem-aceb9d82-f20e-4011-a9a2-584a7991293b:admin@test-domain.com]

2020-09-20 23:27:33 | [Mutex] received everything.

2020-09-20 23:27:33 | [Mutex] isItemNotified: published:item:notifieditem-aceb9d82-f20e-4011-a9a2-584a7991293b:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-09-20 23:27:33 |

2020-09-20 23:27:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:33 | ------------------------------------

2020-09-20 23:27:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077",
    "item-id": "item-aceb9d82-f20e-4011-a9a2-584a7991293b"
}

2020-09-20 23:27:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aceb9d82-f20e-4011-a9a2-584a7991293b"
}

2020-09-20 23:27:33 | [Mutex] received everything.

2020-09-20 23:27:33 | [Mutex] isItemNotified: retracted:item:notifieditem-aceb9d82-f20e-4011-a9a2-584a7991293b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2020-09-20 23:27:33 |

2020-09-20 23:27:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:33 | ------------------------------------

2020-09-20 23:27:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077",
    "item-id": "item-aceb9d82-f20e-4011-a9a2-584a7991293b"
}

2020-09-20 23:27:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077",
    "item-id": "item-aceb9d82-f20e-4011-a9a2-584a7991293b",
    "item": [
        "<item id=\"item-aceb9d82-f20e-4011-a9a2-584a7991293b\"><test>item-aceb9d82-f20e-4011-a9a2-584a7991293b</test></item>"
    ]
}

2020-09-20 23:27:33 | [Mutex] notify: [retrieved:item:item-aceb9d82-f20e-4011-a9a2-584a7991293b:payload-matches:true:localhost]

2020-09-20 23:27:33 | [Mutex] received everything.

2020-09-20 23:27:33 | [Mutex] isItemNotified: retrieved:item:item-aceb9d82-f20e-4011-a9a2-584a7991293b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-09-20 23:27:33 |

2020-09-20 23:27:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:33 | ------------------------------------

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

2020-09-20 23:27:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-af59eb5b-d120-4403-863a-826157049e62",
        "node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2020-09-20 23:27:33 |

2020-09-20 23:27:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:33 | ------------------------------------

2020-09-20 23:27:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077)"
}

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

subscribeNodes 1.021s
2020-09-20 23:27:32 |

2020-09-20 23:27:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:32 | ------------------------------------

2020-09-20 23:27:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.056s
2020-09-20 23:27:33 |

2020-09-20 23:27:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 23:27:33 | ------------------------------------

2020-09-20 23:27:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a2ccb392-b6c4-4edf-bf48-6cc4645d5077",
    "jids": [
        "admin@test-domain.com"
    ]
}

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