Generated by TestNG with ReportNG at 12:22 PDT on Thursday 27 August 2020
root@18d694fe8e0a / 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.981s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2020-08-27 12:38:45 |

2020-08-27 12:38:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:45 | ------------------------------------

2020-08-27 12:38:45 | [Mutex] waiting for: [configured:node:node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b:node-8e1fe800-df01-404d-91a1-6159562ce12b]

2020-08-27 12:38:45 | [Mutex] received everything.

2020-08-27 12:38:45 | [Mutex] isItemNotified: configured:node:node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b:node-8e1fe800-df01-404d-91a1-6159562ce12b :: true

2020-08-27 12:38:46 | [Mutex] waiting for: [received:nodes:cd7d2fb2-6f74-4976-9000-058bfc05138e:localhost]

2020-08-27 12:38:46 | [Mutex] received everything.

2020-08-27 12:38:46 | [Mutex] isItemNotified: received:node:cd7d2fb2-6f74-4976-9000-058bfc05138e:localhost:node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b:Node 75a747c2-c622-4fbc-bb85-33eba4dfbb2b :: true

2020-08-27 12:38:46 | [Mutex] waiting for: [received:nodes:37ec331d-38c4-432a-ac7a-0578cbce769d:localhost]

2020-08-27 12:38:46 | [Mutex] received everything.

2020-08-27 12:38:46 | [Mutex] isItemNotified: received:node:37ec331d-38c4-432a-ac7a-0578cbce769d:localhost:node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b:Node 75a747c2-c622-4fbc-bb85-33eba4dfbb2b :: false

createNodes 1.582s
2020-08-27 12:38:42 |

2020-08-27 12:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:42 | ------------------------------------

2020-08-27 12:38:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b",
    "pubsub#title": "Node 75a747c2-c622-4fbc-bb85-33eba4dfbb2b"
}

2020-08-27 12:38:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 12:38:44 | [Mutex] waiting for: [received:nodes:29083698-aaff-4925-8f53-5b6640809cee:localhost]

2020-08-27 12:38:44 | [Mutex] received everything.

2020-08-27 12:38:44 | [Mutex] isItemNotified: received:node:29083698-aaff-4925-8f53-5b6640809cee:localhost:node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b:Node 75a747c2-c622-4fbc-bb85-33eba4dfbb2b :: true

createSubnodes 1.022s
2020-08-27 12:38:44 |

2020-08-27 12:38:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:44 | ------------------------------------

2020-08-27 12:38:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8e1fe800-df01-404d-91a1-6159562ce12b",
    "pubsub#title": "Node 8e1fe800-df01-404d-91a1-6159562ce12b"
}

2020-08-27 12:38:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 12:38:45 | [Mutex] waiting for: [received:nodes:91dc230e-660f-4e4c-a176-3a3fbb8922f0:localhost]

2020-08-27 12:38:45 | [Mutex] received everything.

2020-08-27 12:38:45 | [Mutex] isItemNotified: received:node:91dc230e-660f-4e4c-a176-3a3fbb8922f0:localhost:node-8e1fe800-df01-404d-91a1-6159562ce12b:Node 8e1fe800-df01-404d-91a1-6159562ce12b :: true

deleteNodes 1.031s
2020-08-27 12:38:49 |

2020-08-27 12:38:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:49 | ------------------------------------

2020-08-27 12:38:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8e1fe800-df01-404d-91a1-6159562ce12b"
}

2020-08-27 12:38:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 12:38:50 | [Mutex] waiting for: [received:nodes:dc4c8343-51ed-4c8a-b32f-a37805aeff63:localhost]

2020-08-27 12:38:50 | [Mutex] received everything.

2020-08-27 12:38:50 | [Mutex] isItemNotified: received:node:dc4c8343-51ed-4c8a-b32f-a37805aeff63:localhost:node-8e1fe800-df01-404d-91a1-6159562ce12b:Node 8e1fe800-df01-404d-91a1-6159562ce12b :: false

deleteSubnodes 1.032s
2020-08-27 12:38:48 |

2020-08-27 12:38:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:48 | ------------------------------------

2020-08-27 12:38:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b"
}

2020-08-27 12:38:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 12:38:49 | [Mutex] waiting for: [received:nodes:36b6e0dd-f728-4c22-96a2-86212181ac8e:localhost]

2020-08-27 12:38:49 | [Mutex] received everything.

2020-08-27 12:38:49 | [Mutex] isItemNotified: received:node:36b6e0dd-f728-4c22-96a2-86212181ac8e:localhost:node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b:Node 75a747c2-c622-4fbc-bb85-33eba4dfbb2b :: false

2020-08-27 12:38:49 | [Mutex] waiting for: [received:nodes:4252cea7-fa3d-469a-8548-a4db5d753b3a:localhost]

2020-08-27 12:38:49 | [Mutex] received everything.

2020-08-27 12:38:49 | [Mutex] isItemNotified: received:node:4252cea7-fa3d-469a-8548-a4db5d753b3a:localhost:node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b:Node 75a747c2-c622-4fbc-bb85-33eba4dfbb2b :: false

publishItemsToNodes 0.050s
2020-08-27 12:38:47 |

2020-08-27 12:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:47 | ------------------------------------

2020-08-27 12:38:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b",
    "entry": "<test>item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5</test>",
    "item-id": "item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5"
}

2020-08-27 12:38:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5"
}

2020-08-27 12:38:47 | [Mutex] waiting for: [published:item:notifieditem-c4cb7c1e-753f-4812-be0c-3fbd8307ead5:admin@test-domain.com]

2020-08-27 12:38:47 | [Mutex] received everything.

2020-08-27 12:38:47 | [Mutex] isItemNotified: published:item:notifieditem-c4cb7c1e-753f-4812-be0c-3fbd8307ead5:admin@test-domain.com :: true

retractItemsFromNodes 0.089s
2020-08-27 12:38:47 |

2020-08-27 12:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:47 | ------------------------------------

2020-08-27 12:38:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b",
    "item-id": "item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5"
}

2020-08-27 12:38:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5"
}

2020-08-27 12:38:47 | [Mutex] waiting for: [retracted:item:notifieditem-c4cb7c1e-753f-4812-be0c-3fbd8307ead5:admin@test-domain.com]

2020-08-27 12:38:47 | [Mutex] received everything.

2020-08-27 12:38:47 | [Mutex] isItemNotified: retracted:item:notifieditem-c4cb7c1e-753f-4812-be0c-3fbd8307ead5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.046s
2020-08-27 12:38:47 |

2020-08-27 12:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:47 | ------------------------------------

2020-08-27 12:38:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b",
    "item-id": "item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5"
}

2020-08-27 12:38:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b",
    "item-id": "item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5",
    "item": [
        "<item id=\"item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5\"><test>item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5</test></item>"
    ]
}

2020-08-27 12:38:47 | [Mutex] notify: [retrieved:item:item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5:payload-matches:true:localhost]

2020-08-27 12:38:47 | [Mutex] received everything.

2020-08-27 12:38:47 | [Mutex] isItemNotified: retrieved:item:item-c4cb7c1e-753f-4812-be0c-3fbd8307ead5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.074s
2020-08-27 12:38:47 |

2020-08-27 12:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:47 | ------------------------------------

2020-08-27 12:38:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-27 12:38:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b",
        "node-8e1fe800-df01-404d-91a1-6159562ce12b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-27 12:38:47 |

2020-08-27 12:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:47 | ------------------------------------

2020-08-27 12:38:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b)"
}

2020-08-27 12:38:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2020-08-27 12:38:46 |

2020-08-27 12:38:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:46 | ------------------------------------

2020-08-27 12:38:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 12:38:46 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.057s
2020-08-27 12:38:47 |

2020-08-27 12:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 12:38:47 | ------------------------------------

2020-08-27 12:38:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-75a747c2-c622-4fbc-bb85-33eba4dfbb2b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 12:38:47 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}