Generated by TestNG with ReportNG at 22:23 PDT on Thursday 26 May 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / 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.599s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-05-26 22:38:32 |

2022-05-26 22:38:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:32 | ------------------------------------

2022-05-26 22:38:32 | [Mutex] waiting for: [configured:node:node-6dc3749d-e423-42ec-8d88-809145830818:node-55ea3b4c-da89-443a-9030-37f0005c208c]

2022-05-26 22:38:32 | [Mutex] received everything.

2022-05-26 22:38:32 | [Mutex] isItemNotified: configured:node:node-6dc3749d-e423-42ec-8d88-809145830818:node-55ea3b4c-da89-443a-9030-37f0005c208c :: true

2022-05-26 22:38:33 | [Mutex] waiting for: [received:nodes:8b9b3027-74cc-4822-953a-d52bc4a8d998:localhost]

2022-05-26 22:38:33 | [Mutex] received everything.

2022-05-26 22:38:33 | [Mutex] isItemNotified: received:node:8b9b3027-74cc-4822-953a-d52bc4a8d998:localhost:node-6dc3749d-e423-42ec-8d88-809145830818:Node 6dc3749d-e423-42ec-8d88-809145830818 :: true

2022-05-26 22:38:33 | [Mutex] waiting for: [received:nodes:e59fd3ea-4a4e-4c18-93fa-c3130390ad27:localhost]

2022-05-26 22:38:33 | [Mutex] received everything.

2022-05-26 22:38:33 | [Mutex] isItemNotified: received:node:e59fd3ea-4a4e-4c18-93fa-c3130390ad27:localhost:node-6dc3749d-e423-42ec-8d88-809145830818:Node 6dc3749d-e423-42ec-8d88-809145830818 :: false

createNodes 1.500s
2022-05-26 22:38:29 |

2022-05-26 22:38:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:29 | ------------------------------------

2022-05-26 22:38:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6dc3749d-e423-42ec-8d88-809145830818",
    "pubsub#title": "Node 6dc3749d-e423-42ec-8d88-809145830818"
}

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

2022-05-26 22:38:31 | [Mutex] waiting for: [received:nodes:8f027611-f2c3-4e05-9db2-a3d2371697e9:localhost]

2022-05-26 22:38:31 | [Mutex] waiting for: [received:nodes:8f027611-f2c3-4e05-9db2-a3d2371697e9:localhost]

2022-05-26 22:38:31 | [Mutex] received everything.

2022-05-26 22:38:31 | [Mutex] isItemNotified: received:node:8f027611-f2c3-4e05-9db2-a3d2371697e9:localhost:node-6dc3749d-e423-42ec-8d88-809145830818:Node 6dc3749d-e423-42ec-8d88-809145830818 :: true

createSubnodes 1.021s
2022-05-26 22:38:31 |

2022-05-26 22:38:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:31 | ------------------------------------

2022-05-26 22:38:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-55ea3b4c-da89-443a-9030-37f0005c208c",
    "pubsub#title": "Node 55ea3b4c-da89-443a-9030-37f0005c208c"
}

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

2022-05-26 22:38:32 | [Mutex] waiting for: [received:nodes:4049686a-d7cc-4cfe-a869-4bd8647d0eca:localhost]

2022-05-26 22:38:32 | [Mutex] received everything.

2022-05-26 22:38:32 | [Mutex] isItemNotified: received:node:4049686a-d7cc-4cfe-a869-4bd8647d0eca:localhost:node-55ea3b4c-da89-443a-9030-37f0005c208c:Node 55ea3b4c-da89-443a-9030-37f0005c208c :: true

deleteNodes 1.019s
2022-05-26 22:38:36 |

2022-05-26 22:38:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:36 | ------------------------------------

2022-05-26 22:38:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-55ea3b4c-da89-443a-9030-37f0005c208c"
}

2022-05-26 22:38:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-26 22:38:37 | [Mutex] waiting for: [received:nodes:d869a63c-698d-4f9b-bf2a-4578a2a1c152:localhost]

2022-05-26 22:38:37 | [Mutex] received everything.

2022-05-26 22:38:37 | [Mutex] isItemNotified: received:node:d869a63c-698d-4f9b-bf2a-4578a2a1c152:localhost:node-55ea3b4c-da89-443a-9030-37f0005c208c:Node 55ea3b4c-da89-443a-9030-37f0005c208c :: false

deleteSubnodes 1.074s
2022-05-26 22:38:35 |

2022-05-26 22:38:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:35 | ------------------------------------

2022-05-26 22:38:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6dc3749d-e423-42ec-8d88-809145830818"
}

2022-05-26 22:38:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-26 22:38:36 | [Mutex] waiting for: [received:nodes:5d6501be-d864-429a-a28b-e0c34d76ac00:localhost]

2022-05-26 22:38:36 | [Mutex] waiting for: [received:nodes:5d6501be-d864-429a-a28b-e0c34d76ac00:localhost]

2022-05-26 22:38:36 | [Mutex] received everything.

2022-05-26 22:38:36 | [Mutex] isItemNotified: received:node:5d6501be-d864-429a-a28b-e0c34d76ac00:localhost:node-6dc3749d-e423-42ec-8d88-809145830818:Node 6dc3749d-e423-42ec-8d88-809145830818 :: false

2022-05-26 22:38:36 | [Mutex] waiting for: [received:nodes:2840f618-d39f-48c8-a838-98613574da9d:localhost]

2022-05-26 22:38:36 | [Mutex] received everything.

2022-05-26 22:38:36 | [Mutex] isItemNotified: received:node:2840f618-d39f-48c8-a838-98613574da9d:localhost:node-6dc3749d-e423-42ec-8d88-809145830818:Node 6dc3749d-e423-42ec-8d88-809145830818 :: false

publishItemsToNodes 0.043s
2022-05-26 22:38:34 |

2022-05-26 22:38:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:34 | ------------------------------------

2022-05-26 22:38:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6dc3749d-e423-42ec-8d88-809145830818",
    "entry": "<test>item-230c99c0-ce0d-441f-81a3-d402ed91b0ed</test>",
    "item-id": "item-230c99c0-ce0d-441f-81a3-d402ed91b0ed"
}

2022-05-26 22:38:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-230c99c0-ce0d-441f-81a3-d402ed91b0ed"
}

2022-05-26 22:38:34 | [Mutex] waiting for: [published:item:notifieditem-230c99c0-ce0d-441f-81a3-d402ed91b0ed:admin@test-domain.com]

2022-05-26 22:38:34 | [Mutex] received everything.

2022-05-26 22:38:34 | [Mutex] isItemNotified: published:item:notifieditem-230c99c0-ce0d-441f-81a3-d402ed91b0ed:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-05-26 22:38:34 |

2022-05-26 22:38:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:34 | ------------------------------------

2022-05-26 22:38:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6dc3749d-e423-42ec-8d88-809145830818",
    "item-id": "item-230c99c0-ce0d-441f-81a3-d402ed91b0ed"
}

2022-05-26 22:38:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-230c99c0-ce0d-441f-81a3-d402ed91b0ed"
}

2022-05-26 22:38:34 | [Mutex] received everything.

2022-05-26 22:38:34 | [Mutex] isItemNotified: retracted:item:notifieditem-230c99c0-ce0d-441f-81a3-d402ed91b0ed:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2022-05-26 22:38:34 |

2022-05-26 22:38:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:34 | ------------------------------------

2022-05-26 22:38:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6dc3749d-e423-42ec-8d88-809145830818",
    "item-id": "item-230c99c0-ce0d-441f-81a3-d402ed91b0ed"
}

2022-05-26 22:38:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6dc3749d-e423-42ec-8d88-809145830818",
    "item-id": "item-230c99c0-ce0d-441f-81a3-d402ed91b0ed",
    "item": [
        "<item id=\"item-230c99c0-ce0d-441f-81a3-d402ed91b0ed\"><test>item-230c99c0-ce0d-441f-81a3-d402ed91b0ed</test></item>"
    ]
}

2022-05-26 22:38:34 | [Mutex] notify: [retrieved:item:item-230c99c0-ce0d-441f-81a3-d402ed91b0ed:payload-matches:true:localhost]

2022-05-26 22:38:34 | [Mutex] received everything.

2022-05-26 22:38:34 | [Mutex] isItemNotified: retrieved:item:item-230c99c0-ce0d-441f-81a3-d402ed91b0ed:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-05-26 22:38:34 |

2022-05-26 22:38:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:34 | ------------------------------------

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

2022-05-26 22:38:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-55ea3b4c-da89-443a-9030-37f0005c208c",
        "test",
        "node-6dc3749d-e423-42ec-8d88-809145830818"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-26 22:38:34 |

2022-05-26 22:38:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:34 | ------------------------------------

2022-05-26 22:38:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6dc3749d-e423-42ec-8d88-809145830818)"
}

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

subscribeNodes 1.012s
2022-05-26 22:38:33 |

2022-05-26 22:38:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:33 | ------------------------------------

2022-05-26 22:38:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6dc3749d-e423-42ec-8d88-809145830818",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2022-05-26 22:38:34 |

2022-05-26 22:38:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 22:38:34 | ------------------------------------

2022-05-26 22:38:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6dc3749d-e423-42ec-8d88-809145830818",
    "jids": [
        "admin@test-domain.com"
    ]
}

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