Generated by TestNG with ReportNG at 21:29 PST on Wednesday 19 January 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 : 9.058s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.162s
2022-01-19 21:44:49 |

2022-01-19 21:44:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:49 | ------------------------------------

2022-01-19 21:44:49 | [Mutex] waiting for: [configured:node:node-b68cb96a-2d6b-47d6-a448-9f6797bccc84:node-ee93c398-88bc-47da-a855-d298b9f2f0f3]

2022-01-19 21:44:49 | [Mutex] received everything.

2022-01-19 21:44:49 | [Mutex] isItemNotified: configured:node:node-b68cb96a-2d6b-47d6-a448-9f6797bccc84:node-ee93c398-88bc-47da-a855-d298b9f2f0f3 :: true

2022-01-19 21:44:50 | [Mutex] waiting for: [received:nodes:ca8737fd-f8ed-4336-883d-63b5fbd05a6e:localhost]

2022-01-19 21:44:50 | [Mutex] received everything.

2022-01-19 21:44:50 | [Mutex] isItemNotified: received:node:ca8737fd-f8ed-4336-883d-63b5fbd05a6e:localhost:node-b68cb96a-2d6b-47d6-a448-9f6797bccc84:Node b68cb96a-2d6b-47d6-a448-9f6797bccc84 :: true

2022-01-19 21:44:50 | [Mutex] waiting for: [received:nodes:644c3c8b-b784-49f7-8092-f0593f8acf58:localhost]

2022-01-19 21:44:50 | [Mutex] received everything.

2022-01-19 21:44:50 | [Mutex] isItemNotified: received:node:644c3c8b-b784-49f7-8092-f0593f8acf58:localhost:node-b68cb96a-2d6b-47d6-a448-9f6797bccc84:Node b68cb96a-2d6b-47d6-a448-9f6797bccc84 :: false

createNodes 1.684s
2022-01-19 21:44:47 |

2022-01-19 21:44:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:47 | ------------------------------------

2022-01-19 21:44:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b68cb96a-2d6b-47d6-a448-9f6797bccc84",
    "pubsub#title": "Node b68cb96a-2d6b-47d6-a448-9f6797bccc84"
}

2022-01-19 21:44:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 21:44:48 | [Mutex] waiting for: [received:nodes:a188c8ff-bc31-4d07-8a43-2f7e4acc46c2:localhost]

2022-01-19 21:44:48 | [Mutex] received everything.

2022-01-19 21:44:48 | [Mutex] isItemNotified: received:node:a188c8ff-bc31-4d07-8a43-2f7e4acc46c2:localhost:node-b68cb96a-2d6b-47d6-a448-9f6797bccc84:Node b68cb96a-2d6b-47d6-a448-9f6797bccc84 :: true

createSubnodes 1.043s
2022-01-19 21:44:48 |

2022-01-19 21:44:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:48 | ------------------------------------

2022-01-19 21:44:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ee93c398-88bc-47da-a855-d298b9f2f0f3",
    "pubsub#title": "Node ee93c398-88bc-47da-a855-d298b9f2f0f3"
}

2022-01-19 21:44:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 21:44:49 | [Mutex] waiting for: [received:nodes:1b028335-368a-47e1-8a51-3cc1a9e80072:localhost]

2022-01-19 21:44:49 | [Mutex] received everything.

2022-01-19 21:44:49 | [Mutex] isItemNotified: received:node:1b028335-368a-47e1-8a51-3cc1a9e80072:localhost:node-ee93c398-88bc-47da-a855-d298b9f2f0f3:Node ee93c398-88bc-47da-a855-d298b9f2f0f3 :: true

deleteNodes 1.027s
2022-01-19 21:44:54 |

2022-01-19 21:44:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:54 | ------------------------------------

2022-01-19 21:44:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ee93c398-88bc-47da-a855-d298b9f2f0f3"
}

2022-01-19 21:44:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 21:44:55 | [Mutex] waiting for: [received:nodes:d51b57c9-45bf-4b63-b714-dfe81db8e467:localhost]

2022-01-19 21:44:55 | [Mutex] received everything.

2022-01-19 21:44:55 | [Mutex] isItemNotified: received:node:d51b57c9-45bf-4b63-b714-dfe81db8e467:localhost:node-ee93c398-88bc-47da-a855-d298b9f2f0f3:Node ee93c398-88bc-47da-a855-d298b9f2f0f3 :: false

deleteSubnodes 1.029s
2022-01-19 21:44:53 |

2022-01-19 21:44:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:53 | ------------------------------------

2022-01-19 21:44:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b68cb96a-2d6b-47d6-a448-9f6797bccc84"
}

2022-01-19 21:44:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 21:44:54 | [Mutex] waiting for: [received:nodes:4b94d05e-81f8-4951-9988-e2ccbe8788e6:localhost]

2022-01-19 21:44:54 | [Mutex] waiting for: [received:nodes:4b94d05e-81f8-4951-9988-e2ccbe8788e6:localhost]

2022-01-19 21:44:54 | [Mutex] received everything.

2022-01-19 21:44:54 | [Mutex] isItemNotified: received:node:4b94d05e-81f8-4951-9988-e2ccbe8788e6:localhost:node-b68cb96a-2d6b-47d6-a448-9f6797bccc84:Node b68cb96a-2d6b-47d6-a448-9f6797bccc84 :: false

2022-01-19 21:44:54 | [Mutex] waiting for: [received:nodes:344a420f-fe0c-4625-99b1-1c3f10e66349:localhost]

2022-01-19 21:44:54 | [Mutex] received everything.

2022-01-19 21:44:54 | [Mutex] isItemNotified: received:node:344a420f-fe0c-4625-99b1-1c3f10e66349:localhost:node-b68cb96a-2d6b-47d6-a448-9f6797bccc84:Node b68cb96a-2d6b-47d6-a448-9f6797bccc84 :: false

publishItemsToNodes 0.056s
2022-01-19 21:44:51 |

2022-01-19 21:44:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:51 | ------------------------------------

2022-01-19 21:44:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b68cb96a-2d6b-47d6-a448-9f6797bccc84",
    "entry": "<test>item-a81d4f65-0f9d-48a2-ba18-0103654e22b8</test>",
    "item-id": "item-a81d4f65-0f9d-48a2-ba18-0103654e22b8"
}

2022-01-19 21:44:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a81d4f65-0f9d-48a2-ba18-0103654e22b8"
}

2022-01-19 21:44:51 | [Mutex] waiting for: [published:item:notifieditem-a81d4f65-0f9d-48a2-ba18-0103654e22b8:admin@test-domain.com]

2022-01-19 21:44:51 | [Mutex] received everything.

2022-01-19 21:44:51 | [Mutex] isItemNotified: published:item:notifieditem-a81d4f65-0f9d-48a2-ba18-0103654e22b8:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-01-19 21:44:52 |

2022-01-19 21:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:52 | ------------------------------------

2022-01-19 21:44:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b68cb96a-2d6b-47d6-a448-9f6797bccc84",
    "item-id": "item-a81d4f65-0f9d-48a2-ba18-0103654e22b8"
}

2022-01-19 21:44:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a81d4f65-0f9d-48a2-ba18-0103654e22b8"
}

2022-01-19 21:44:52 | [Mutex] received everything.

2022-01-19 21:44:52 | [Mutex] isItemNotified: retracted:item:notifieditem-a81d4f65-0f9d-48a2-ba18-0103654e22b8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.031s
2022-01-19 21:44:51 |

2022-01-19 21:44:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:51 | ------------------------------------

2022-01-19 21:44:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b68cb96a-2d6b-47d6-a448-9f6797bccc84",
    "item-id": "item-a81d4f65-0f9d-48a2-ba18-0103654e22b8"
}

2022-01-19 21:44:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b68cb96a-2d6b-47d6-a448-9f6797bccc84",
    "item-id": "item-a81d4f65-0f9d-48a2-ba18-0103654e22b8",
    "item": [
        "<item id=\"item-a81d4f65-0f9d-48a2-ba18-0103654e22b8\"><test>item-a81d4f65-0f9d-48a2-ba18-0103654e22b8</test></item>"
    ]
}

2022-01-19 21:44:52 | [Mutex] notify: [retrieved:item:item-a81d4f65-0f9d-48a2-ba18-0103654e22b8:payload-matches:true:localhost]

2022-01-19 21:44:52 | [Mutex] received everything.

2022-01-19 21:44:52 | [Mutex] isItemNotified: retrieved:item:item-a81d4f65-0f9d-48a2-ba18-0103654e22b8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.082s
2022-01-19 21:44:52 |

2022-01-19 21:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:52 | ------------------------------------

2022-01-19 21:44:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-01-19 21:44:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b68cb96a-2d6b-47d6-a448-9f6797bccc84",
        "node-ee93c398-88bc-47da-a855-d298b9f2f0f3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2022-01-19 21:44:52 |

2022-01-19 21:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:52 | ------------------------------------

2022-01-19 21:44:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b68cb96a-2d6b-47d6-a448-9f6797bccc84)"
}

2022-01-19 21:44:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-01-19 21:44:50 |

2022-01-19 21:44:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:50 | ------------------------------------

2022-01-19 21:44:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b68cb96a-2d6b-47d6-a448-9f6797bccc84",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-01-19 21:44:50 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-01-19 21:44:52 |

2022-01-19 21:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:44:52 | ------------------------------------

2022-01-19 21:44:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b68cb96a-2d6b-47d6-a448-9f6797bccc84",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-01-19 21:44:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}