Generated by TestNG with ReportNG at 22:23 PDT on Monday 09 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.733s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2022-05-09 22:37:31 |

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

2022-05-09 22:37:31 | ------------------------------------

2022-05-09 22:37:31 | [Mutex] waiting for: [configured:node:node-5980a5f1-00c8-4da3-be8d-80799f641c0b:node-5f335b05-400c-44c7-bedf-b3a1944d559e]

2022-05-09 22:37:31 | [Mutex] received everything.

2022-05-09 22:37:31 | [Mutex] isItemNotified: configured:node:node-5980a5f1-00c8-4da3-be8d-80799f641c0b:node-5f335b05-400c-44c7-bedf-b3a1944d559e :: true

2022-05-09 22:37:32 | [Mutex] waiting for: [received:nodes:3dd6baef-298c-4953-8f51-e6f8ab84978b:localhost]

2022-05-09 22:37:32 | [Mutex] received everything.

2022-05-09 22:37:32 | [Mutex] isItemNotified: received:node:3dd6baef-298c-4953-8f51-e6f8ab84978b:localhost:node-5980a5f1-00c8-4da3-be8d-80799f641c0b:Node 5980a5f1-00c8-4da3-be8d-80799f641c0b :: true

2022-05-09 22:37:32 | [Mutex] waiting for: [received:nodes:a905e34a-3a04-4f56-968c-8906ed6a2907:localhost]

2022-05-09 22:37:32 | [Mutex] received everything.

2022-05-09 22:37:32 | [Mutex] isItemNotified: received:node:a905e34a-3a04-4f56-968c-8906ed6a2907:localhost:node-5980a5f1-00c8-4da3-be8d-80799f641c0b:Node 5980a5f1-00c8-4da3-be8d-80799f641c0b :: false

createNodes 1.559s
2022-05-09 22:37:28 |

2022-05-09 22:37:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-09 22:37:28 | ------------------------------------

2022-05-09 22:37:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5980a5f1-00c8-4da3-be8d-80799f641c0b",
    "pubsub#title": "Node 5980a5f1-00c8-4da3-be8d-80799f641c0b"
}

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

2022-05-09 22:37:30 | [Mutex] waiting for: [received:nodes:8ad2df36-78e3-4148-9ae2-de7259abfd31:localhost]

2022-05-09 22:37:30 | [Mutex] waiting for: [received:nodes:8ad2df36-78e3-4148-9ae2-de7259abfd31:localhost]

2022-05-09 22:37:30 | [Mutex] received everything.

2022-05-09 22:37:30 | [Mutex] isItemNotified: received:node:8ad2df36-78e3-4148-9ae2-de7259abfd31:localhost:node-5980a5f1-00c8-4da3-be8d-80799f641c0b:Node 5980a5f1-00c8-4da3-be8d-80799f641c0b :: true

createSubnodes 1.030s
2022-05-09 22:37:30 |

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

2022-05-09 22:37:30 | ------------------------------------

2022-05-09 22:37:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5f335b05-400c-44c7-bedf-b3a1944d559e",
    "pubsub#title": "Node 5f335b05-400c-44c7-bedf-b3a1944d559e"
}

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

2022-05-09 22:37:31 | [Mutex] waiting for: [received:nodes:5ae2abef-3561-4336-86c2-1e5609aced8e:localhost]

2022-05-09 22:37:31 | [Mutex] waiting for: [received:nodes:5ae2abef-3561-4336-86c2-1e5609aced8e:localhost]

2022-05-09 22:37:31 | [Mutex] received everything.

2022-05-09 22:37:31 | [Mutex] isItemNotified: received:node:5ae2abef-3561-4336-86c2-1e5609aced8e:localhost:node-5f335b05-400c-44c7-bedf-b3a1944d559e:Node 5f335b05-400c-44c7-bedf-b3a1944d559e :: true

deleteNodes 1.033s
2022-05-09 22:37:35 |

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

2022-05-09 22:37:35 | ------------------------------------

2022-05-09 22:37:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5f335b05-400c-44c7-bedf-b3a1944d559e"
}

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

2022-05-09 22:37:36 | [Mutex] waiting for: [received:nodes:3a76abe4-2a65-4c6f-878a-94973e87f8f5:localhost]

2022-05-09 22:37:36 | [Mutex] received everything.

2022-05-09 22:37:36 | [Mutex] isItemNotified: received:node:3a76abe4-2a65-4c6f-878a-94973e87f8f5:localhost:node-5f335b05-400c-44c7-bedf-b3a1944d559e:Node 5f335b05-400c-44c7-bedf-b3a1944d559e :: false

deleteSubnodes 1.030s
2022-05-09 22:37:34 |

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

2022-05-09 22:37:34 | ------------------------------------

2022-05-09 22:37:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5980a5f1-00c8-4da3-be8d-80799f641c0b"
}

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

2022-05-09 22:37:35 | [Mutex] waiting for: [received:nodes:e74e8f4f-8b2f-407d-be80-e24582de9631:localhost]

2022-05-09 22:37:35 | [Mutex] received everything.

2022-05-09 22:37:35 | [Mutex] isItemNotified: received:node:e74e8f4f-8b2f-407d-be80-e24582de9631:localhost:node-5980a5f1-00c8-4da3-be8d-80799f641c0b:Node 5980a5f1-00c8-4da3-be8d-80799f641c0b :: false

2022-05-09 22:37:35 | [Mutex] waiting for: [received:nodes:b599fed8-a64a-4e2a-8660-0c9662a7ff02:localhost]

2022-05-09 22:37:35 | [Mutex] received everything.

2022-05-09 22:37:35 | [Mutex] isItemNotified: received:node:b599fed8-a64a-4e2a-8660-0c9662a7ff02:localhost:node-5980a5f1-00c8-4da3-be8d-80799f641c0b:Node 5980a5f1-00c8-4da3-be8d-80799f641c0b :: false

publishItemsToNodes 0.064s
2022-05-09 22:37:33 |

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

2022-05-09 22:37:33 | ------------------------------------

2022-05-09 22:37:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5980a5f1-00c8-4da3-be8d-80799f641c0b",
    "entry": "<test>item-9a15684e-ae2c-4086-9c55-01e5bca0be5a</test>",
    "item-id": "item-9a15684e-ae2c-4086-9c55-01e5bca0be5a"
}

2022-05-09 22:37:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9a15684e-ae2c-4086-9c55-01e5bca0be5a"
}

2022-05-09 22:37:33 | [Mutex] waiting for: [published:item:notifieditem-9a15684e-ae2c-4086-9c55-01e5bca0be5a:admin@test-domain.com]

2022-05-09 22:37:33 | [Mutex] received everything.

2022-05-09 22:37:33 | [Mutex] isItemNotified: published:item:notifieditem-9a15684e-ae2c-4086-9c55-01e5bca0be5a:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-05-09 22:37:33 |

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

2022-05-09 22:37:33 | ------------------------------------

2022-05-09 22:37:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5980a5f1-00c8-4da3-be8d-80799f641c0b",
    "item-id": "item-9a15684e-ae2c-4086-9c55-01e5bca0be5a"
}

2022-05-09 22:37:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9a15684e-ae2c-4086-9c55-01e5bca0be5a"
}

2022-05-09 22:37:33 | [Mutex] received everything.

2022-05-09 22:37:33 | [Mutex] isItemNotified: retracted:item:notifieditem-9a15684e-ae2c-4086-9c55-01e5bca0be5a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-05-09 22:37:33 |

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

2022-05-09 22:37:33 | ------------------------------------

2022-05-09 22:37:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5980a5f1-00c8-4da3-be8d-80799f641c0b",
    "item-id": "item-9a15684e-ae2c-4086-9c55-01e5bca0be5a"
}

2022-05-09 22:37:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5980a5f1-00c8-4da3-be8d-80799f641c0b",
    "item-id": "item-9a15684e-ae2c-4086-9c55-01e5bca0be5a",
    "item": [
        "<item id=\"item-9a15684e-ae2c-4086-9c55-01e5bca0be5a\"><test>item-9a15684e-ae2c-4086-9c55-01e5bca0be5a</test></item>"
    ]
}

2022-05-09 22:37:33 | [Mutex] notify: [retrieved:item:item-9a15684e-ae2c-4086-9c55-01e5bca0be5a:payload-matches:true:localhost]

2022-05-09 22:37:33 | [Mutex] received everything.

2022-05-09 22:37:33 | [Mutex] isItemNotified: retrieved:item:item-9a15684e-ae2c-4086-9c55-01e5bca0be5a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2022-05-09 22:37:33 |

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

2022-05-09 22:37:33 | ------------------------------------

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

2022-05-09 22:37:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5980a5f1-00c8-4da3-be8d-80799f641c0b",
        "test",
        "node-5f335b05-400c-44c7-bedf-b3a1944d559e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-05-09 22:37:33 |

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

2022-05-09 22:37:33 | ------------------------------------

2022-05-09 22:37:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5980a5f1-00c8-4da3-be8d-80799f641c0b)"
}

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

subscribeNodes 1.013s
2022-05-09 22:37:32 |

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

2022-05-09 22:37:32 | ------------------------------------

2022-05-09 22:37:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5980a5f1-00c8-4da3-be8d-80799f641c0b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-05-09 22:37:33 |

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

2022-05-09 22:37:33 | ------------------------------------

2022-05-09 22:37:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5980a5f1-00c8-4da3-be8d-80799f641c0b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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