Generated by TestNG with ReportNG at 21:47 PST on Tuesday 08 February 2022
root@f29ef40080b5 / 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.121s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2022-02-08 22:07:35 |

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

2022-02-08 22:07:35 | ------------------------------------

2022-02-08 22:07:35 | [Mutex] waiting for: [configured:node:node-120b6b52-c327-4e02-8199-149ffbe31519:node-a8df2610-31cc-4a55-93bb-540ce0c68b63]

2022-02-08 22:07:35 | [Mutex] received everything.

2022-02-08 22:07:35 | [Mutex] isItemNotified: configured:node:node-120b6b52-c327-4e02-8199-149ffbe31519:node-a8df2610-31cc-4a55-93bb-540ce0c68b63 :: true

2022-02-08 22:07:36 | [Mutex] waiting for: [received:nodes:57dc736a-f21a-44eb-a18e-22c18002caac:localhost]

2022-02-08 22:07:36 | [Mutex] received everything.

2022-02-08 22:07:36 | [Mutex] isItemNotified: received:node:57dc736a-f21a-44eb-a18e-22c18002caac:localhost:node-120b6b52-c327-4e02-8199-149ffbe31519:Node 120b6b52-c327-4e02-8199-149ffbe31519 :: true

2022-02-08 22:07:36 | [Mutex] waiting for: [received:nodes:12726140-dd46-4813-a614-0a3238e50d19:localhost]

2022-02-08 22:07:36 | [Mutex] received everything.

2022-02-08 22:07:36 | [Mutex] isItemNotified: received:node:12726140-dd46-4813-a614-0a3238e50d19:localhost:node-120b6b52-c327-4e02-8199-149ffbe31519:Node 120b6b52-c327-4e02-8199-149ffbe31519 :: false

createNodes 1.632s
2022-02-08 22:07:32 |

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

2022-02-08 22:07:32 | ------------------------------------

2022-02-08 22:07:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-120b6b52-c327-4e02-8199-149ffbe31519",
    "pubsub#title": "Node 120b6b52-c327-4e02-8199-149ffbe31519"
}

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

2022-02-08 22:07:34 | [Mutex] waiting for: [received:nodes:9c51df47-7a48-4e16-865e-52ad8fb1ac71:localhost]

2022-02-08 22:07:34 | [Mutex] received everything.

2022-02-08 22:07:34 | [Mutex] isItemNotified: received:node:9c51df47-7a48-4e16-865e-52ad8fb1ac71:localhost:node-120b6b52-c327-4e02-8199-149ffbe31519:Node 120b6b52-c327-4e02-8199-149ffbe31519 :: true

createSubnodes 1.039s
2022-02-08 22:07:34 |

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

2022-02-08 22:07:34 | ------------------------------------

2022-02-08 22:07:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a8df2610-31cc-4a55-93bb-540ce0c68b63",
    "pubsub#title": "Node a8df2610-31cc-4a55-93bb-540ce0c68b63"
}

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

2022-02-08 22:07:35 | [Mutex] waiting for: [received:nodes:63f63ad7-c99f-440a-8771-80fe78217fa0:localhost]

2022-02-08 22:07:35 | [Mutex] received everything.

2022-02-08 22:07:35 | [Mutex] isItemNotified: received:node:63f63ad7-c99f-440a-8771-80fe78217fa0:localhost:node-a8df2610-31cc-4a55-93bb-540ce0c68b63:Node a8df2610-31cc-4a55-93bb-540ce0c68b63 :: true

deleteNodes 1.030s
2022-02-08 22:07:40 |

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

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

2022-02-08 22:07:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a8df2610-31cc-4a55-93bb-540ce0c68b63"
}

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

2022-02-08 22:07:41 | [Mutex] waiting for: [received:nodes:87b73a42-00a0-468d-a3f9-8e0b9af384d0:localhost]

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

2022-02-08 22:07:41 | [Mutex] isItemNotified: received:node:87b73a42-00a0-468d-a3f9-8e0b9af384d0:localhost:node-a8df2610-31cc-4a55-93bb-540ce0c68b63:Node a8df2610-31cc-4a55-93bb-540ce0c68b63 :: false

deleteSubnodes 1.030s
2022-02-08 22:07:39 |

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

2022-02-08 22:07:39 | ------------------------------------

2022-02-08 22:07:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-120b6b52-c327-4e02-8199-149ffbe31519"
}

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

2022-02-08 22:07:40 | [Mutex] waiting for: [received:nodes:b1e3083c-0670-4b74-9d5b-b6b86b73e6e1:localhost]

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

2022-02-08 22:07:40 | [Mutex] isItemNotified: received:node:b1e3083c-0670-4b74-9d5b-b6b86b73e6e1:localhost:node-120b6b52-c327-4e02-8199-149ffbe31519:Node 120b6b52-c327-4e02-8199-149ffbe31519 :: false

2022-02-08 22:07:40 | [Mutex] waiting for: [received:nodes:3d42d035-5bda-422f-b4b7-3e7d7458f8db:localhost]

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

2022-02-08 22:07:40 | [Mutex] isItemNotified: received:node:3d42d035-5bda-422f-b4b7-3e7d7458f8db:localhost:node-120b6b52-c327-4e02-8199-149ffbe31519:Node 120b6b52-c327-4e02-8199-149ffbe31519 :: false

publishItemsToNodes 0.052s
2022-02-08 22:07:37 |

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

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

2022-02-08 22:07:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-120b6b52-c327-4e02-8199-149ffbe31519",
    "entry": "<test>item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc</test>",
    "item-id": "item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc"
}

2022-02-08 22:07:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc"
}

2022-02-08 22:07:37 | [Mutex] waiting for: [published:item:notifieditem-54bd833b-3b85-4dcf-bff0-59b540d9e2bc:admin@test-domain.com]

2022-02-08 22:07:37 | [Mutex] received everything.

2022-02-08 22:07:37 | [Mutex] isItemNotified: published:item:notifieditem-54bd833b-3b85-4dcf-bff0-59b540d9e2bc:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-02-08 22:07:38 |

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

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

2022-02-08 22:07:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-120b6b52-c327-4e02-8199-149ffbe31519",
    "item-id": "item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc"
}

2022-02-08 22:07:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc"
}

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

2022-02-08 22:07:38 | [Mutex] isItemNotified: retracted:item:notifieditem-54bd833b-3b85-4dcf-bff0-59b540d9e2bc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2022-02-08 22:07:37 |

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

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

2022-02-08 22:07:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-120b6b52-c327-4e02-8199-149ffbe31519",
    "item-id": "item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc"
}

2022-02-08 22:07:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-120b6b52-c327-4e02-8199-149ffbe31519",
    "item-id": "item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc",
    "item": [
        "<item id=\"item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc\"><test>item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc</test></item>"
    ]
}

2022-02-08 22:07:37 | [Mutex] notify: [retrieved:item:item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc:payload-matches:true:localhost]

2022-02-08 22:07:37 | [Mutex] received everything.

2022-02-08 22:07:37 | [Mutex] isItemNotified: retrieved:item:item-54bd833b-3b85-4dcf-bff0-59b540d9e2bc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.103s
2022-02-08 22:07:37 |

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

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

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

2022-02-08 22:07:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-120b6b52-c327-4e02-8199-149ffbe31519",
        "test",
        "node-a8df2610-31cc-4a55-93bb-540ce0c68b63"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-08 22:07:37 |

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

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

2022-02-08 22:07:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-120b6b52-c327-4e02-8199-149ffbe31519)"
}

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

subscribeNodes 1.016s
2022-02-08 22:07:36 |

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

2022-02-08 22:07:36 | ------------------------------------

2022-02-08 22:07:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-120b6b52-c327-4e02-8199-149ffbe31519",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-02-08 22:07:38 |

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

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

2022-02-08 22:07:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-120b6b52-c327-4e02-8199-149ffbe31519",
    "jids": [
        "admin@test-domain.com"
    ]
}

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