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

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2020-12-30 21:36:54 |

2020-12-30 21:36:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:36:54 | ------------------------------------

2020-12-30 21:36:54 | [Mutex] waiting for: [configured:node:node-eaf480ea-af2b-4f85-a29d-3161aceaab0d:node-f4c7978b-8e96-4380-a113-2f99f7abdcdd]

2020-12-30 21:36:54 | [Mutex] received everything.

2020-12-30 21:36:54 | [Mutex] isItemNotified: configured:node:node-eaf480ea-af2b-4f85-a29d-3161aceaab0d:node-f4c7978b-8e96-4380-a113-2f99f7abdcdd :: true

2020-12-30 21:36:55 | [Mutex] waiting for: [received:nodes:abbb0062-1e65-4404-af7a-580d8d4c4831:localhost]

2020-12-30 21:36:55 | [Mutex] waiting for: [received:nodes:abbb0062-1e65-4404-af7a-580d8d4c4831:localhost]

2020-12-30 21:36:55 | [Mutex] received everything.

2020-12-30 21:36:55 | [Mutex] isItemNotified: received:node:abbb0062-1e65-4404-af7a-580d8d4c4831:localhost:node-eaf480ea-af2b-4f85-a29d-3161aceaab0d:Node eaf480ea-af2b-4f85-a29d-3161aceaab0d :: true

2020-12-30 21:36:55 | [Mutex] waiting for: [received:nodes:9e03899f-961b-4a80-b78c-ca236cd80708:localhost]

2020-12-30 21:36:55 | [Mutex] received everything.

2020-12-30 21:36:55 | [Mutex] isItemNotified: received:node:9e03899f-961b-4a80-b78c-ca236cd80708:localhost:node-eaf480ea-af2b-4f85-a29d-3161aceaab0d:Node eaf480ea-af2b-4f85-a29d-3161aceaab0d :: false

createNodes 1.606s
2020-12-30 21:36:51 |

2020-12-30 21:36:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:36:51 | ------------------------------------

2020-12-30 21:36:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-eaf480ea-af2b-4f85-a29d-3161aceaab0d",
    "pubsub#title": "Node eaf480ea-af2b-4f85-a29d-3161aceaab0d"
}

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

2020-12-30 21:36:53 | [Mutex] waiting for: [received:nodes:bbcc4137-ec22-44dc-92b5-bb9d435023e4:localhost]

2020-12-30 21:36:53 | [Mutex] waiting for: [received:nodes:bbcc4137-ec22-44dc-92b5-bb9d435023e4:localhost]

2020-12-30 21:36:53 | [Mutex] received everything.

2020-12-30 21:36:53 | [Mutex] isItemNotified: received:node:bbcc4137-ec22-44dc-92b5-bb9d435023e4:localhost:node-eaf480ea-af2b-4f85-a29d-3161aceaab0d:Node eaf480ea-af2b-4f85-a29d-3161aceaab0d :: true

createSubnodes 1.029s
2020-12-30 21:36:53 |

2020-12-30 21:36:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:36:53 | ------------------------------------

2020-12-30 21:36:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f4c7978b-8e96-4380-a113-2f99f7abdcdd",
    "pubsub#title": "Node f4c7978b-8e96-4380-a113-2f99f7abdcdd"
}

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

2020-12-30 21:36:54 | [Mutex] waiting for: [received:nodes:a9e76194-ceb3-4cc5-9928-ab16ad05398d:localhost]

2020-12-30 21:36:54 | [Mutex] received everything.

2020-12-30 21:36:54 | [Mutex] isItemNotified: received:node:a9e76194-ceb3-4cc5-9928-ab16ad05398d:localhost:node-f4c7978b-8e96-4380-a113-2f99f7abdcdd:Node f4c7978b-8e96-4380-a113-2f99f7abdcdd :: true

deleteNodes 1.018s
2020-12-30 21:36:58 |

2020-12-30 21:36:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:36:58 | ------------------------------------

2020-12-30 21:36:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f4c7978b-8e96-4380-a113-2f99f7abdcdd"
}

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

2020-12-30 21:36:59 | [Mutex] waiting for: [received:nodes:bce762e1-b84a-4362-a383-68ed32fe7ea7:localhost]

2020-12-30 21:36:59 | [Mutex] received everything.

2020-12-30 21:36:59 | [Mutex] isItemNotified: received:node:bce762e1-b84a-4362-a383-68ed32fe7ea7:localhost:node-f4c7978b-8e96-4380-a113-2f99f7abdcdd:Node f4c7978b-8e96-4380-a113-2f99f7abdcdd :: false

deleteSubnodes 1.024s
2020-12-30 21:36:57 |

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

2020-12-30 21:36:57 | ------------------------------------

2020-12-30 21:36:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eaf480ea-af2b-4f85-a29d-3161aceaab0d"
}

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

2020-12-30 21:36:58 | [Mutex] waiting for: [received:nodes:7bfa86f4-e504-43ab-8425-9f822720e789:localhost]

2020-12-30 21:36:58 | [Mutex] received everything.

2020-12-30 21:36:58 | [Mutex] isItemNotified: received:node:7bfa86f4-e504-43ab-8425-9f822720e789:localhost:node-eaf480ea-af2b-4f85-a29d-3161aceaab0d:Node eaf480ea-af2b-4f85-a29d-3161aceaab0d :: false

2020-12-30 21:36:58 | [Mutex] waiting for: [received:nodes:b185fd01-3194-467d-9d7d-6fe71a775233:localhost]

2020-12-30 21:36:58 | [Mutex] received everything.

2020-12-30 21:36:58 | [Mutex] isItemNotified: received:node:b185fd01-3194-467d-9d7d-6fe71a775233:localhost:node-eaf480ea-af2b-4f85-a29d-3161aceaab0d:Node eaf480ea-af2b-4f85-a29d-3161aceaab0d :: false

publishItemsToNodes 0.046s
2020-12-30 21:36:56 |

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

2020-12-30 21:36:56 | ------------------------------------

2020-12-30 21:36:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-eaf480ea-af2b-4f85-a29d-3161aceaab0d",
    "entry": "<test>item-f1641e78-fa10-4e4e-ba9e-533848020f8a</test>",
    "item-id": "item-f1641e78-fa10-4e4e-ba9e-533848020f8a"
}

2020-12-30 21:36:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f1641e78-fa10-4e4e-ba9e-533848020f8a"
}

2020-12-30 21:36:56 | [Mutex] waiting for: [published:item:notifieditem-f1641e78-fa10-4e4e-ba9e-533848020f8a:admin@test-domain.com]

2020-12-30 21:36:56 | [Mutex] received everything.

2020-12-30 21:36:56 | [Mutex] isItemNotified: published:item:notifieditem-f1641e78-fa10-4e4e-ba9e-533848020f8a:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-12-30 21:36:56 |

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

2020-12-30 21:36:56 | ------------------------------------

2020-12-30 21:36:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-eaf480ea-af2b-4f85-a29d-3161aceaab0d",
    "item-id": "item-f1641e78-fa10-4e4e-ba9e-533848020f8a"
}

2020-12-30 21:36:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f1641e78-fa10-4e4e-ba9e-533848020f8a"
}

2020-12-30 21:36:56 | [Mutex] waiting for: [retracted:item:notifieditem-f1641e78-fa10-4e4e-ba9e-533848020f8a:admin@test-domain.com]

2020-12-30 21:36:56 | [Mutex] received everything.

2020-12-30 21:36:56 | [Mutex] isItemNotified: retracted:item:notifieditem-f1641e78-fa10-4e4e-ba9e-533848020f8a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.092s
2020-12-30 21:36:56 |

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

2020-12-30 21:36:56 | ------------------------------------

2020-12-30 21:36:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-eaf480ea-af2b-4f85-a29d-3161aceaab0d",
    "item-id": "item-f1641e78-fa10-4e4e-ba9e-533848020f8a"
}

2020-12-30 21:36:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-eaf480ea-af2b-4f85-a29d-3161aceaab0d",
    "item-id": "item-f1641e78-fa10-4e4e-ba9e-533848020f8a",
    "item": [
        "<item id=\"item-f1641e78-fa10-4e4e-ba9e-533848020f8a\"><test>item-f1641e78-fa10-4e4e-ba9e-533848020f8a</test></item>"
    ]
}

2020-12-30 21:36:56 | [Mutex] notify: [retrieved:item:item-f1641e78-fa10-4e4e-ba9e-533848020f8a:payload-matches:true:localhost]

2020-12-30 21:36:56 | [Mutex] received everything.

2020-12-30 21:36:56 | [Mutex] isItemNotified: retrieved:item:item-f1641e78-fa10-4e4e-ba9e-533848020f8a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-12-30 21:36:56 |

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

2020-12-30 21:36:56 | ------------------------------------

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

2020-12-30 21:36:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f4c7978b-8e96-4380-a113-2f99f7abdcdd",
        "node-eaf480ea-af2b-4f85-a29d-3161aceaab0d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-12-30 21:36:56 |

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

2020-12-30 21:36:56 | ------------------------------------

2020-12-30 21:36:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-eaf480ea-af2b-4f85-a29d-3161aceaab0d)"
}

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

subscribeNodes 1.012s
2020-12-30 21:36:55 |

2020-12-30 21:36:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:36:55 | ------------------------------------

2020-12-30 21:36:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-eaf480ea-af2b-4f85-a29d-3161aceaab0d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.107s
2020-12-30 21:36:56 |

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

2020-12-30 21:36:56 | ------------------------------------

2020-12-30 21:36:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-eaf480ea-af2b-4f85-a29d-3161aceaab0d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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