Generated by TestNG with ReportNG at 22:19 PDT on Wednesday 29 June 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.751s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2022-06-29 22:33:58 |

2022-06-29 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:33:58 | ------------------------------------

2022-06-29 22:33:58 | [Mutex] waiting for: [configured:node:node-8699380d-1121-4b2f-9934-53aa545065b6:node-f4b80907-0a2c-4d8e-b6a5-644e31728821]

2022-06-29 22:33:58 | [Mutex] received everything.

2022-06-29 22:33:58 | [Mutex] isItemNotified: configured:node:node-8699380d-1121-4b2f-9934-53aa545065b6:node-f4b80907-0a2c-4d8e-b6a5-644e31728821 :: true

2022-06-29 22:33:59 | [Mutex] waiting for: [received:nodes:c0fed1b6-e2ce-4e23-a072-4390fac26c7e:localhost]

2022-06-29 22:33:59 | [Mutex] received everything.

2022-06-29 22:33:59 | [Mutex] isItemNotified: received:node:c0fed1b6-e2ce-4e23-a072-4390fac26c7e:localhost:node-8699380d-1121-4b2f-9934-53aa545065b6:Node 8699380d-1121-4b2f-9934-53aa545065b6 :: true

2022-06-29 22:33:59 | [Mutex] waiting for: [received:nodes:61bf1132-a6ef-41a6-8961-8affad81d0a8:localhost]

2022-06-29 22:33:59 | [Mutex] waiting for: [received:nodes:61bf1132-a6ef-41a6-8961-8affad81d0a8:localhost]

2022-06-29 22:33:59 | [Mutex] waiting for: [received:nodes:61bf1132-a6ef-41a6-8961-8affad81d0a8:localhost]

2022-06-29 22:33:59 | [Mutex] received everything.

2022-06-29 22:33:59 | [Mutex] isItemNotified: received:node:61bf1132-a6ef-41a6-8961-8affad81d0a8:localhost:node-8699380d-1121-4b2f-9934-53aa545065b6:Node 8699380d-1121-4b2f-9934-53aa545065b6 :: false

createNodes 1.624s
2022-06-29 22:33:55 |

2022-06-29 22:33:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:33:55 | ------------------------------------

2022-06-29 22:33:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8699380d-1121-4b2f-9934-53aa545065b6",
    "pubsub#title": "Node 8699380d-1121-4b2f-9934-53aa545065b6"
}

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

2022-06-29 22:33:57 | [Mutex] waiting for: [received:nodes:8af08496-f60e-4889-97e8-fdbc688a0775:localhost]

2022-06-29 22:33:57 | [Mutex] waiting for: [received:nodes:8af08496-f60e-4889-97e8-fdbc688a0775:localhost]

2022-06-29 22:33:57 | [Mutex] received everything.

2022-06-29 22:33:57 | [Mutex] isItemNotified: received:node:8af08496-f60e-4889-97e8-fdbc688a0775:localhost:node-8699380d-1121-4b2f-9934-53aa545065b6:Node 8699380d-1121-4b2f-9934-53aa545065b6 :: true

createSubnodes 1.030s
2022-06-29 22:33:57 |

2022-06-29 22:33:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:33:57 | ------------------------------------

2022-06-29 22:33:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f4b80907-0a2c-4d8e-b6a5-644e31728821",
    "pubsub#title": "Node f4b80907-0a2c-4d8e-b6a5-644e31728821"
}

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

2022-06-29 22:33:58 | [Mutex] waiting for: [received:nodes:b04a2f28-062a-4b38-b00a-ff652fc07fb7:localhost]

2022-06-29 22:33:58 | [Mutex] waiting for: [received:nodes:b04a2f28-062a-4b38-b00a-ff652fc07fb7:localhost]

2022-06-29 22:33:58 | [Mutex] received everything.

2022-06-29 22:33:58 | [Mutex] isItemNotified: received:node:b04a2f28-062a-4b38-b00a-ff652fc07fb7:localhost:node-f4b80907-0a2c-4d8e-b6a5-644e31728821:Node f4b80907-0a2c-4d8e-b6a5-644e31728821 :: true

deleteNodes 1.024s
2022-06-29 22:34:02 |

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

2022-06-29 22:34:02 | ------------------------------------

2022-06-29 22:34:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f4b80907-0a2c-4d8e-b6a5-644e31728821"
}

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

2022-06-29 22:34:03 | [Mutex] waiting for: [received:nodes:0ba8f692-be97-4316-ab60-2f970bf4d40d:localhost]

2022-06-29 22:34:03 | [Mutex] received everything.

2022-06-29 22:34:03 | [Mutex] isItemNotified: received:node:0ba8f692-be97-4316-ab60-2f970bf4d40d:localhost:node-f4b80907-0a2c-4d8e-b6a5-644e31728821:Node f4b80907-0a2c-4d8e-b6a5-644e31728821 :: false

deleteSubnodes 1.029s
2022-06-29 22:34:01 |

2022-06-29 22:34:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:34:01 | ------------------------------------

2022-06-29 22:34:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8699380d-1121-4b2f-9934-53aa545065b6"
}

2022-06-29 22:34:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-29 22:34:02 | [Mutex] waiting for: [received:nodes:5b5451e4-921e-4ed3-b245-9623b47ffa84:localhost]

2022-06-29 22:34:02 | [Mutex] received everything.

2022-06-29 22:34:02 | [Mutex] isItemNotified: received:node:5b5451e4-921e-4ed3-b245-9623b47ffa84:localhost:node-8699380d-1121-4b2f-9934-53aa545065b6:Node 8699380d-1121-4b2f-9934-53aa545065b6 :: false

2022-06-29 22:34:02 | [Mutex] waiting for: [received:nodes:a5b51591-a390-4fca-8a9e-3c873661017e:localhost]

2022-06-29 22:34:02 | [Mutex] received everything.

2022-06-29 22:34:02 | [Mutex] isItemNotified: received:node:a5b51591-a390-4fca-8a9e-3c873661017e:localhost:node-8699380d-1121-4b2f-9934-53aa545065b6:Node 8699380d-1121-4b2f-9934-53aa545065b6 :: false

publishItemsToNodes 0.096s
2022-06-29 22:34:00 |

2022-06-29 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:34:00 | ------------------------------------

2022-06-29 22:34:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8699380d-1121-4b2f-9934-53aa545065b6",
    "entry": "<test>item-3000aff6-4f03-4b82-b690-c933f2d6426e</test>",
    "item-id": "item-3000aff6-4f03-4b82-b690-c933f2d6426e"
}

2022-06-29 22:34:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3000aff6-4f03-4b82-b690-c933f2d6426e"
}

2022-06-29 22:34:00 | [Mutex] received everything.

2022-06-29 22:34:00 | [Mutex] isItemNotified: published:item:notifieditem-3000aff6-4f03-4b82-b690-c933f2d6426e:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-06-29 22:34:00 |

2022-06-29 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:34:00 | ------------------------------------

2022-06-29 22:34:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8699380d-1121-4b2f-9934-53aa545065b6",
    "item-id": "item-3000aff6-4f03-4b82-b690-c933f2d6426e"
}

2022-06-29 22:34:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3000aff6-4f03-4b82-b690-c933f2d6426e"
}

2022-06-29 22:34:00 | [Mutex] received everything.

2022-06-29 22:34:00 | [Mutex] isItemNotified: retracted:item:notifieditem-3000aff6-4f03-4b82-b690-c933f2d6426e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.057s
2022-06-29 22:34:00 |

2022-06-29 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:34:00 | ------------------------------------

2022-06-29 22:34:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8699380d-1121-4b2f-9934-53aa545065b6",
    "item-id": "item-3000aff6-4f03-4b82-b690-c933f2d6426e"
}

2022-06-29 22:34:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8699380d-1121-4b2f-9934-53aa545065b6",
    "item-id": "item-3000aff6-4f03-4b82-b690-c933f2d6426e",
    "item": [
        "<item id=\"item-3000aff6-4f03-4b82-b690-c933f2d6426e\"><test>item-3000aff6-4f03-4b82-b690-c933f2d6426e</test></item>"
    ]
}

2022-06-29 22:34:00 | [Mutex] notify: [retrieved:item:item-3000aff6-4f03-4b82-b690-c933f2d6426e:payload-matches:true:localhost]

2022-06-29 22:34:00 | [Mutex] received everything.

2022-06-29 22:34:00 | [Mutex] isItemNotified: retrieved:item:item-3000aff6-4f03-4b82-b690-c933f2d6426e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-06-29 22:34:00 |

2022-06-29 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:34:00 | ------------------------------------

2022-06-29 22:34:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-29 22:34:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f4b80907-0a2c-4d8e-b6a5-644e31728821",
        "test",
        "node-8699380d-1121-4b2f-9934-53aa545065b6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-06-29 22:34:00 |

2022-06-29 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:34:00 | ------------------------------------

2022-06-29 22:34:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8699380d-1121-4b2f-9934-53aa545065b6)"
}

2022-06-29 22:34:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-06-29 22:33:59 |

2022-06-29 22:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:33:59 | ------------------------------------

2022-06-29 22:33:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8699380d-1121-4b2f-9934-53aa545065b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-29 22:33:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-06-29 22:34:00 |

2022-06-29 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-29 22:34:00 | ------------------------------------

2022-06-29 22:34:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8699380d-1121-4b2f-9934-53aa545065b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-29 22:34:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}