Generated by TestNG with ReportNG at 21:47 PST on Sunday 17 January 2021
root@43fec6d4badf / 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.236s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2021-01-17 22:02:57 |

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

2021-01-17 22:02:57 | ------------------------------------

2021-01-17 22:02:57 | [Mutex] waiting for: [configured:node:node-6d034508-227f-44f1-89d5-ca8e3971a528:node-9646f2c8-11c8-4452-81b1-d906c3d7c5ba]

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

2021-01-17 22:02:57 | [Mutex] isItemNotified: configured:node:node-6d034508-227f-44f1-89d5-ca8e3971a528:node-9646f2c8-11c8-4452-81b1-d906c3d7c5ba :: true

2021-01-17 22:02:58 | [Mutex] waiting for: [received:nodes:1f65d105-e1f2-44f4-99d2-de91044ece25:localhost]

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

2021-01-17 22:02:58 | [Mutex] isItemNotified: received:node:1f65d105-e1f2-44f4-99d2-de91044ece25:localhost:node-6d034508-227f-44f1-89d5-ca8e3971a528:Node 6d034508-227f-44f1-89d5-ca8e3971a528 :: true

2021-01-17 22:02:58 | [Mutex] waiting for: [received:nodes:15fec013-8557-46e0-ac35-163efeb6e189:localhost]

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

2021-01-17 22:02:58 | [Mutex] isItemNotified: received:node:15fec013-8557-46e0-ac35-163efeb6e189:localhost:node-6d034508-227f-44f1-89d5-ca8e3971a528:Node 6d034508-227f-44f1-89d5-ca8e3971a528 :: false

createNodes 1.785s
2021-01-17 22:02:54 |

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

2021-01-17 22:02:54 | ------------------------------------

2021-01-17 22:02:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6d034508-227f-44f1-89d5-ca8e3971a528",
    "pubsub#title": "Node 6d034508-227f-44f1-89d5-ca8e3971a528"
}

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

2021-01-17 22:02:56 | [Mutex] waiting for: [received:nodes:db3be70c-422a-46dc-922f-99996f672cca:localhost]

2021-01-17 22:02:56 | [Mutex] waiting for: [received:nodes:db3be70c-422a-46dc-922f-99996f672cca:localhost]

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

2021-01-17 22:02:56 | [Mutex] isItemNotified: received:node:db3be70c-422a-46dc-922f-99996f672cca:localhost:node-6d034508-227f-44f1-89d5-ca8e3971a528:Node 6d034508-227f-44f1-89d5-ca8e3971a528 :: true

createSubnodes 1.026s
2021-01-17 22:02:56 |

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

2021-01-17 22:02:56 | ------------------------------------

2021-01-17 22:02:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9646f2c8-11c8-4452-81b1-d906c3d7c5ba",
    "pubsub#title": "Node 9646f2c8-11c8-4452-81b1-d906c3d7c5ba"
}

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

2021-01-17 22:02:57 | [Mutex] waiting for: [received:nodes:ceb32444-54ed-4e50-8a9f-9096d2924088:localhost]

2021-01-17 22:02:57 | [Mutex] waiting for: [received:nodes:ceb32444-54ed-4e50-8a9f-9096d2924088:localhost]

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

2021-01-17 22:02:57 | [Mutex] isItemNotified: received:node:ceb32444-54ed-4e50-8a9f-9096d2924088:localhost:node-9646f2c8-11c8-4452-81b1-d906c3d7c5ba:Node 9646f2c8-11c8-4452-81b1-d906c3d7c5ba :: true

deleteNodes 1.028s
2021-01-17 22:03:02 |

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

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

2021-01-17 22:03:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9646f2c8-11c8-4452-81b1-d906c3d7c5ba"
}

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

2021-01-17 22:03:03 | [Mutex] waiting for: [received:nodes:ada30d6d-cd59-401f-a69d-3295550bdd6c:localhost]

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

2021-01-17 22:03:03 | [Mutex] isItemNotified: received:node:ada30d6d-cd59-401f-a69d-3295550bdd6c:localhost:node-9646f2c8-11c8-4452-81b1-d906c3d7c5ba:Node 9646f2c8-11c8-4452-81b1-d906c3d7c5ba :: false

deleteSubnodes 1.042s
2021-01-17 22:03:01 |

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

2021-01-17 22:03:01 | ------------------------------------

2021-01-17 22:03:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6d034508-227f-44f1-89d5-ca8e3971a528"
}

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

2021-01-17 22:03:02 | [Mutex] waiting for: [received:nodes:77c8091e-2b68-46e6-8ac3-4c2b85200c86:localhost]

2021-01-17 22:03:02 | [Mutex] waiting for: [received:nodes:77c8091e-2b68-46e6-8ac3-4c2b85200c86:localhost]

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

2021-01-17 22:03:02 | [Mutex] isItemNotified: received:node:77c8091e-2b68-46e6-8ac3-4c2b85200c86:localhost:node-6d034508-227f-44f1-89d5-ca8e3971a528:Node 6d034508-227f-44f1-89d5-ca8e3971a528 :: false

2021-01-17 22:03:02 | [Mutex] waiting for: [received:nodes:979b78af-e650-4dee-986a-f94666888794:localhost]

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

2021-01-17 22:03:02 | [Mutex] isItemNotified: received:node:979b78af-e650-4dee-986a-f94666888794:localhost:node-6d034508-227f-44f1-89d5-ca8e3971a528:Node 6d034508-227f-44f1-89d5-ca8e3971a528 :: false

publishItemsToNodes 0.119s
2021-01-17 22:02:59 |

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

2021-01-17 22:02:59 | ------------------------------------

2021-01-17 22:02:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6d034508-227f-44f1-89d5-ca8e3971a528",
    "entry": "<test>item-45f113ac-fd8f-41a2-91a0-f48c8e687ead</test>",
    "item-id": "item-45f113ac-fd8f-41a2-91a0-f48c8e687ead"
}

2021-01-17 22:02:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-45f113ac-fd8f-41a2-91a0-f48c8e687ead"
}

2021-01-17 22:02:59 | [Mutex] waiting for: [published:item:notifieditem-45f113ac-fd8f-41a2-91a0-f48c8e687ead:admin@test-domain.com]

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

2021-01-17 22:02:59 | [Mutex] isItemNotified: published:item:notifieditem-45f113ac-fd8f-41a2-91a0-f48c8e687ead:admin@test-domain.com :: true

retractItemsFromNodes 0.081s
2021-01-17 22:02:59 |

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

2021-01-17 22:02:59 | ------------------------------------

2021-01-17 22:02:59 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6d034508-227f-44f1-89d5-ca8e3971a528",
    "item-id": "item-45f113ac-fd8f-41a2-91a0-f48c8e687ead"
}

2021-01-17 22:03:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-45f113ac-fd8f-41a2-91a0-f48c8e687ead"
}

2021-01-17 22:03:00 | [Mutex] waiting for: [retracted:item:notifieditem-45f113ac-fd8f-41a2-91a0-f48c8e687ead:admin@test-domain.com]

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

2021-01-17 22:03:00 | [Mutex] isItemNotified: retracted:item:notifieditem-45f113ac-fd8f-41a2-91a0-f48c8e687ead:admin@test-domain.com :: true

retrieveItemsFromNodes 0.018s
2021-01-17 22:02:59 |

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

2021-01-17 22:02:59 | ------------------------------------

2021-01-17 22:02:59 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6d034508-227f-44f1-89d5-ca8e3971a528",
    "item-id": "item-45f113ac-fd8f-41a2-91a0-f48c8e687ead"
}

2021-01-17 22:02:59 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6d034508-227f-44f1-89d5-ca8e3971a528",
    "item-id": "item-45f113ac-fd8f-41a2-91a0-f48c8e687ead",
    "item": [
        "<item id=\"item-45f113ac-fd8f-41a2-91a0-f48c8e687ead\"><test>item-45f113ac-fd8f-41a2-91a0-f48c8e687ead</test></item>"
    ]
}

2021-01-17 22:02:59 | [Mutex] notify: [retrieved:item:item-45f113ac-fd8f-41a2-91a0-f48c8e687ead:payload-matches:true:localhost]

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

2021-01-17 22:02:59 | [Mutex] isItemNotified: retrieved:item:item-45f113ac-fd8f-41a2-91a0-f48c8e687ead:payload-matches:true:localhost :: true

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

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

2021-01-17 22:02:59 | ------------------------------------

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

2021-01-17 22:02:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6d034508-227f-44f1-89d5-ca8e3971a528",
        "node-9646f2c8-11c8-4452-81b1-d906c3d7c5ba",
        "test"
    ]
}

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

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

2021-01-17 22:02:59 | ------------------------------------

2021-01-17 22:02:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6d034508-227f-44f1-89d5-ca8e3971a528)"
}

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

subscribeNodes 1.011s
2021-01-17 22:02:58 |

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

2021-01-17 22:02:58 | ------------------------------------

2021-01-17 22:02:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6d034508-227f-44f1-89d5-ca8e3971a528",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.058s
2021-01-17 22:03:00 |

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

2021-01-17 22:03:00 | ------------------------------------

2021-01-17 22:03:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6d034508-227f-44f1-89d5-ca8e3971a528",
    "jids": [
        "admin@test-domain.com"
    ]
}

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