Generated by TestNG with ReportNG at 22:16 PST on Tuesday 08 February 2022
root@785cf647a4ab / 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.934s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2022-02-08 22:30:40 |

2022-02-08 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:40 | ------------------------------------

2022-02-08 22:30:40 | [Mutex] waiting for: [configured:node:node-a05b1415-8129-4496-a4ea-1bdc2433c00b:node-ccf0b5ce-ff70-4309-ab5c-e99a9238961c]

2022-02-08 22:30:40 | [Mutex] received everything.

2022-02-08 22:30:40 | [Mutex] isItemNotified: configured:node:node-a05b1415-8129-4496-a4ea-1bdc2433c00b:node-ccf0b5ce-ff70-4309-ab5c-e99a9238961c :: true

2022-02-08 22:30:41 | [Mutex] waiting for: [received:nodes:0eeffef0-dbfd-4046-bead-f320706ab679:localhost]

2022-02-08 22:30:41 | [Mutex] received everything.

2022-02-08 22:30:41 | [Mutex] isItemNotified: received:node:0eeffef0-dbfd-4046-bead-f320706ab679:localhost:node-a05b1415-8129-4496-a4ea-1bdc2433c00b:Node a05b1415-8129-4496-a4ea-1bdc2433c00b :: true

2022-02-08 22:30:41 | [Mutex] waiting for: [received:nodes:e593b6e8-51ab-47fd-a3eb-c8db3bc85061:localhost]

2022-02-08 22:30:41 | [Mutex] waiting for: [received:nodes:e593b6e8-51ab-47fd-a3eb-c8db3bc85061:localhost]

2022-02-08 22:30:41 | [Mutex] received everything.

2022-02-08 22:30:41 | [Mutex] isItemNotified: received:node:e593b6e8-51ab-47fd-a3eb-c8db3bc85061:localhost:node-a05b1415-8129-4496-a4ea-1bdc2433c00b:Node a05b1415-8129-4496-a4ea-1bdc2433c00b :: false

createNodes 1.595s
2022-02-08 22:30:37 |

2022-02-08 22:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:37 | ------------------------------------

2022-02-08 22:30:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a05b1415-8129-4496-a4ea-1bdc2433c00b",
    "pubsub#title": "Node a05b1415-8129-4496-a4ea-1bdc2433c00b"
}

2022-02-08 22:30:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-08 22:30:38 | [Mutex] waiting for: [received:nodes:2b4750a5-fb05-4db6-9ce5-942c916b4ff1:localhost]

2022-02-08 22:30:38 | [Mutex] waiting for: [received:nodes:2b4750a5-fb05-4db6-9ce5-942c916b4ff1:localhost]

2022-02-08 22:30:38 | [Mutex] received everything.

2022-02-08 22:30:38 | [Mutex] isItemNotified: received:node:2b4750a5-fb05-4db6-9ce5-942c916b4ff1:localhost:node-a05b1415-8129-4496-a4ea-1bdc2433c00b:Node a05b1415-8129-4496-a4ea-1bdc2433c00b :: true

createSubnodes 1.028s
2022-02-08 22:30:38 |

2022-02-08 22:30:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:38 | ------------------------------------

2022-02-08 22:30:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ccf0b5ce-ff70-4309-ab5c-e99a9238961c",
    "pubsub#title": "Node ccf0b5ce-ff70-4309-ab5c-e99a9238961c"
}

2022-02-08 22:30:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-08 22:30:39 | [Mutex] waiting for: [received:nodes:8c164d49-c642-463f-b604-2bf7c53d9821:localhost]

2022-02-08 22:30:40 | [Mutex] received everything.

2022-02-08 22:30:40 | [Mutex] isItemNotified: received:node:8c164d49-c642-463f-b604-2bf7c53d9821:localhost:node-ccf0b5ce-ff70-4309-ab5c-e99a9238961c:Node ccf0b5ce-ff70-4309-ab5c-e99a9238961c :: true

deleteNodes 1.028s
2022-02-08 22:30:44 |

2022-02-08 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:44 | ------------------------------------

2022-02-08 22:30:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ccf0b5ce-ff70-4309-ab5c-e99a9238961c"
}

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

2022-02-08 22:30:45 | [Mutex] waiting for: [received:nodes:c5c3cb98-8c2f-4015-aac8-65204ac364d6:localhost]

2022-02-08 22:30:45 | [Mutex] received everything.

2022-02-08 22:30:45 | [Mutex] isItemNotified: received:node:c5c3cb98-8c2f-4015-aac8-65204ac364d6:localhost:node-ccf0b5ce-ff70-4309-ab5c-e99a9238961c:Node ccf0b5ce-ff70-4309-ab5c-e99a9238961c :: false

deleteSubnodes 1.032s
2022-02-08 22:30:43 |

2022-02-08 22:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:43 | ------------------------------------

2022-02-08 22:30:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a05b1415-8129-4496-a4ea-1bdc2433c00b"
}

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

2022-02-08 22:30:44 | [Mutex] waiting for: [received:nodes:bf4dbf90-4f6f-4d49-89ce-735df9c30cc8:localhost]

2022-02-08 22:30:44 | [Mutex] waiting for: [received:nodes:bf4dbf90-4f6f-4d49-89ce-735df9c30cc8:localhost]

2022-02-08 22:30:44 | [Mutex] received everything.

2022-02-08 22:30:44 | [Mutex] isItemNotified: received:node:bf4dbf90-4f6f-4d49-89ce-735df9c30cc8:localhost:node-a05b1415-8129-4496-a4ea-1bdc2433c00b:Node a05b1415-8129-4496-a4ea-1bdc2433c00b :: false

2022-02-08 22:30:44 | [Mutex] waiting for: [received:nodes:c4f58d60-bf0b-46f9-b4ae-522241c4208b:localhost]

2022-02-08 22:30:44 | [Mutex] received everything.

2022-02-08 22:30:44 | [Mutex] isItemNotified: received:node:c4f58d60-bf0b-46f9-b4ae-522241c4208b:localhost:node-a05b1415-8129-4496-a4ea-1bdc2433c00b:Node a05b1415-8129-4496-a4ea-1bdc2433c00b :: false

publishItemsToNodes 0.058s
2022-02-08 22:30:42 |

2022-02-08 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:42 | ------------------------------------

2022-02-08 22:30:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a05b1415-8129-4496-a4ea-1bdc2433c00b",
    "entry": "<test>item-154a4602-c0b2-42aa-9e4c-b225b95e27db</test>",
    "item-id": "item-154a4602-c0b2-42aa-9e4c-b225b95e27db"
}

2022-02-08 22:30:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-154a4602-c0b2-42aa-9e4c-b225b95e27db"
}

2022-02-08 22:30:42 | [Mutex] waiting for: [published:item:notifieditem-154a4602-c0b2-42aa-9e4c-b225b95e27db:admin@test-domain.com]

2022-02-08 22:30:42 | [Mutex] received everything.

2022-02-08 22:30:42 | [Mutex] isItemNotified: published:item:notifieditem-154a4602-c0b2-42aa-9e4c-b225b95e27db:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2022-02-08 22:30:42 |

2022-02-08 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:42 | ------------------------------------

2022-02-08 22:30:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a05b1415-8129-4496-a4ea-1bdc2433c00b",
    "item-id": "item-154a4602-c0b2-42aa-9e4c-b225b95e27db"
}

2022-02-08 22:30:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-154a4602-c0b2-42aa-9e4c-b225b95e27db"
}

2022-02-08 22:30:42 | [Mutex] received everything.

2022-02-08 22:30:42 | [Mutex] isItemNotified: retracted:item:notifieditem-154a4602-c0b2-42aa-9e4c-b225b95e27db:admin@test-domain.com :: true

retrieveItemsFromNodes 0.036s
2022-02-08 22:30:42 |

2022-02-08 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:42 | ------------------------------------

2022-02-08 22:30:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a05b1415-8129-4496-a4ea-1bdc2433c00b",
    "item-id": "item-154a4602-c0b2-42aa-9e4c-b225b95e27db"
}

2022-02-08 22:30:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a05b1415-8129-4496-a4ea-1bdc2433c00b",
    "item-id": "item-154a4602-c0b2-42aa-9e4c-b225b95e27db",
    "item": [
        "<item id=\"item-154a4602-c0b2-42aa-9e4c-b225b95e27db\"><test>item-154a4602-c0b2-42aa-9e4c-b225b95e27db</test></item>"
    ]
}

2022-02-08 22:30:42 | [Mutex] notify: [retrieved:item:item-154a4602-c0b2-42aa-9e4c-b225b95e27db:payload-matches:true:localhost]

2022-02-08 22:30:42 | [Mutex] received everything.

2022-02-08 22:30:42 | [Mutex] isItemNotified: retrieved:item:item-154a4602-c0b2-42aa-9e4c-b225b95e27db:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.067s
2022-02-08 22:30:42 |

2022-02-08 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:42 | ------------------------------------

2022-02-08 22:30:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-08 22:30:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a05b1415-8129-4496-a4ea-1bdc2433c00b",
        "node-ccf0b5ce-ff70-4309-ab5c-e99a9238961c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-08 22:30:42 |

2022-02-08 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:42 | ------------------------------------

2022-02-08 22:30:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a05b1415-8129-4496-a4ea-1bdc2433c00b)"
}

2022-02-08 22:30:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-02-08 22:30:41 |

2022-02-08 22:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:41 | ------------------------------------

2022-02-08 22:30:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a05b1415-8129-4496-a4ea-1bdc2433c00b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-08 22:30:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-02-08 22:30:42 |

2022-02-08 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 22:30:42 | ------------------------------------

2022-02-08 22:30:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a05b1415-8129-4496-a4ea-1bdc2433c00b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-08 22:30:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}