Generated by TestNG with ReportNG at 22:22 PDT on Thursday 06 October 2022
root@7c41cec37518 / 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.664s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2022-10-06 22:44:03 |

2022-10-06 22:44:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:03 | ------------------------------------

2022-10-06 22:44:03 | [Mutex] waiting for: [configured:node:node-a7c0dfed-0249-4a23-9011-a0c1c1757461:node-158ce196-1c0d-41fb-ba7e-4e1fdb8df990]

2022-10-06 22:44:03 | [Mutex] received everything.

2022-10-06 22:44:03 | [Mutex] isItemNotified: configured:node:node-a7c0dfed-0249-4a23-9011-a0c1c1757461:node-158ce196-1c0d-41fb-ba7e-4e1fdb8df990 :: true

2022-10-06 22:44:04 | [Mutex] waiting for: [received:nodes:b7711342-5e09-4fb2-8225-abfd31fa0b62:localhost]

2022-10-06 22:44:04 | [Mutex] received everything.

2022-10-06 22:44:04 | [Mutex] isItemNotified: received:node:b7711342-5e09-4fb2-8225-abfd31fa0b62:localhost:node-a7c0dfed-0249-4a23-9011-a0c1c1757461:Node a7c0dfed-0249-4a23-9011-a0c1c1757461 :: true

2022-10-06 22:44:04 | [Mutex] waiting for: [received:nodes:fb3bd371-d79a-4814-823a-c952ee04dc5c:localhost]

2022-10-06 22:44:04 | [Mutex] received everything.

2022-10-06 22:44:04 | [Mutex] isItemNotified: received:node:fb3bd371-d79a-4814-823a-c952ee04dc5c:localhost:node-a7c0dfed-0249-4a23-9011-a0c1c1757461:Node a7c0dfed-0249-4a23-9011-a0c1c1757461 :: false

createNodes 1.616s
2022-10-06 22:44:01 |

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

2022-10-06 22:44:01 | ------------------------------------

2022-10-06 22:44:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a7c0dfed-0249-4a23-9011-a0c1c1757461",
    "pubsub#title": "Node a7c0dfed-0249-4a23-9011-a0c1c1757461"
}

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

2022-10-06 22:44:02 | [Mutex] waiting for: [received:nodes:5ea40a01-9b40-463e-aac9-ad73cc221513:localhost]

2022-10-06 22:44:02 | [Mutex] received everything.

2022-10-06 22:44:02 | [Mutex] isItemNotified: received:node:5ea40a01-9b40-463e-aac9-ad73cc221513:localhost:node-a7c0dfed-0249-4a23-9011-a0c1c1757461:Node a7c0dfed-0249-4a23-9011-a0c1c1757461 :: true

createSubnodes 1.022s
2022-10-06 22:44:02 |

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

2022-10-06 22:44:02 | ------------------------------------

2022-10-06 22:44:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-158ce196-1c0d-41fb-ba7e-4e1fdb8df990",
    "pubsub#title": "Node 158ce196-1c0d-41fb-ba7e-4e1fdb8df990"
}

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

2022-10-06 22:44:03 | [Mutex] waiting for: [received:nodes:ece1fbf1-93b7-4983-80c9-555fef6abc56:localhost]

2022-10-06 22:44:03 | [Mutex] received everything.

2022-10-06 22:44:03 | [Mutex] isItemNotified: received:node:ece1fbf1-93b7-4983-80c9-555fef6abc56:localhost:node-158ce196-1c0d-41fb-ba7e-4e1fdb8df990:Node 158ce196-1c0d-41fb-ba7e-4e1fdb8df990 :: true

deleteNodes 1.021s
2022-10-06 22:44:08 |

2022-10-06 22:44:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:08 | ------------------------------------

2022-10-06 22:44:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-158ce196-1c0d-41fb-ba7e-4e1fdb8df990"
}

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

2022-10-06 22:44:09 | [Mutex] waiting for: [received:nodes:1df67ef8-fc19-49dd-92b4-e2cf90d885b5:localhost]

2022-10-06 22:44:09 | [Mutex] waiting for: [received:nodes:1df67ef8-fc19-49dd-92b4-e2cf90d885b5:localhost]

2022-10-06 22:44:09 | [Mutex] waiting for: [received:nodes:1df67ef8-fc19-49dd-92b4-e2cf90d885b5:localhost]

2022-10-06 22:44:09 | [Mutex] received everything.

2022-10-06 22:44:09 | [Mutex] isItemNotified: received:node:1df67ef8-fc19-49dd-92b4-e2cf90d885b5:localhost:node-158ce196-1c0d-41fb-ba7e-4e1fdb8df990:Node 158ce196-1c0d-41fb-ba7e-4e1fdb8df990 :: false

deleteSubnodes 1.029s
2022-10-06 22:44:07 |

2022-10-06 22:44:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:07 | ------------------------------------

2022-10-06 22:44:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a7c0dfed-0249-4a23-9011-a0c1c1757461"
}

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

2022-10-06 22:44:08 | [Mutex] waiting for: [received:nodes:2fbaade8-1945-492e-b753-2ee1f9a30171:localhost]

2022-10-06 22:44:08 | [Mutex] waiting for: [received:nodes:2fbaade8-1945-492e-b753-2ee1f9a30171:localhost]

2022-10-06 22:44:08 | [Mutex] waiting for: [received:nodes:2fbaade8-1945-492e-b753-2ee1f9a30171:localhost]

2022-10-06 22:44:08 | [Mutex] waiting for: [received:nodes:2fbaade8-1945-492e-b753-2ee1f9a30171:localhost]

2022-10-06 22:44:08 | [Mutex] received everything.

2022-10-06 22:44:08 | [Mutex] isItemNotified: received:node:2fbaade8-1945-492e-b753-2ee1f9a30171:localhost:node-a7c0dfed-0249-4a23-9011-a0c1c1757461:Node a7c0dfed-0249-4a23-9011-a0c1c1757461 :: false

2022-10-06 22:44:08 | [Mutex] waiting for: [received:nodes:505047c9-2cd0-451e-a38c-9b6001c346de:localhost]

2022-10-06 22:44:08 | [Mutex] received everything.

2022-10-06 22:44:08 | [Mutex] isItemNotified: received:node:505047c9-2cd0-451e-a38c-9b6001c346de:localhost:node-a7c0dfed-0249-4a23-9011-a0c1c1757461:Node a7c0dfed-0249-4a23-9011-a0c1c1757461 :: false

publishItemsToNodes 0.042s
2022-10-06 22:44:05 |

2022-10-06 22:44:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:05 | ------------------------------------

2022-10-06 22:44:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a7c0dfed-0249-4a23-9011-a0c1c1757461",
    "entry": "<test>item-1009652d-bddf-44cc-9fe2-bb48bfe3634b</test>",
    "item-id": "item-1009652d-bddf-44cc-9fe2-bb48bfe3634b"
}

2022-10-06 22:44:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1009652d-bddf-44cc-9fe2-bb48bfe3634b"
}

2022-10-06 22:44:05 | [Mutex] waiting for: [published:item:notifieditem-1009652d-bddf-44cc-9fe2-bb48bfe3634b:admin@test-domain.com]

2022-10-06 22:44:05 | [Mutex] received everything.

2022-10-06 22:44:05 | [Mutex] isItemNotified: published:item:notifieditem-1009652d-bddf-44cc-9fe2-bb48bfe3634b:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-10-06 22:44:06 |

2022-10-06 22:44:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:06 | ------------------------------------

2022-10-06 22:44:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a7c0dfed-0249-4a23-9011-a0c1c1757461",
    "item-id": "item-1009652d-bddf-44cc-9fe2-bb48bfe3634b"
}

2022-10-06 22:44:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1009652d-bddf-44cc-9fe2-bb48bfe3634b"
}

2022-10-06 22:44:06 | [Mutex] received everything.

2022-10-06 22:44:06 | [Mutex] isItemNotified: retracted:item:notifieditem-1009652d-bddf-44cc-9fe2-bb48bfe3634b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2022-10-06 22:44:05 |

2022-10-06 22:44:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:05 | ------------------------------------

2022-10-06 22:44:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a7c0dfed-0249-4a23-9011-a0c1c1757461",
    "item-id": "item-1009652d-bddf-44cc-9fe2-bb48bfe3634b"
}

2022-10-06 22:44:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a7c0dfed-0249-4a23-9011-a0c1c1757461",
    "item-id": "item-1009652d-bddf-44cc-9fe2-bb48bfe3634b",
    "item": [
        "<item id=\"item-1009652d-bddf-44cc-9fe2-bb48bfe3634b\"><test>item-1009652d-bddf-44cc-9fe2-bb48bfe3634b</test></item>"
    ]
}

2022-10-06 22:44:06 | [Mutex] notify: [retrieved:item:item-1009652d-bddf-44cc-9fe2-bb48bfe3634b:payload-matches:true:localhost]

2022-10-06 22:44:06 | [Mutex] received everything.

2022-10-06 22:44:06 | [Mutex] isItemNotified: retrieved:item:item-1009652d-bddf-44cc-9fe2-bb48bfe3634b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-10-06 22:44:06 |

2022-10-06 22:44:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:06 | ------------------------------------

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

2022-10-06 22:44:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-158ce196-1c0d-41fb-ba7e-4e1fdb8df990",
        "test",
        "node-a7c0dfed-0249-4a23-9011-a0c1c1757461"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-10-06 22:44:06 |

2022-10-06 22:44:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:06 | ------------------------------------

2022-10-06 22:44:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a7c0dfed-0249-4a23-9011-a0c1c1757461)"
}

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

subscribeNodes 1.010s
2022-10-06 22:44:04 |

2022-10-06 22:44:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:04 | ------------------------------------

2022-10-06 22:44:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a7c0dfed-0249-4a23-9011-a0c1c1757461",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.068s
2022-10-06 22:44:06 |

2022-10-06 22:44:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 22:44:06 | ------------------------------------

2022-10-06 22:44:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a7c0dfed-0249-4a23-9011-a0c1c1757461",
    "jids": [
        "admin@test-domain.com"
    ]
}

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