Generated by TestNG with ReportNG at 22:15 PDT on Monday 27 March 2023
root@f9c07ffec79b / 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.643s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2023-03-27 22:29:53 |

2023-03-27 22:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:53 | ------------------------------------

2023-03-27 22:29:53 | [Mutex] waiting for: [configured:node:node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8:node-0a6e9d53-a67e-4b61-b989-e973a4c174a1]

2023-03-27 22:29:53 | [Mutex] received everything.

2023-03-27 22:29:53 | [Mutex] isItemNotified: configured:node:node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8:node-0a6e9d53-a67e-4b61-b989-e973a4c174a1 :: true

2023-03-27 22:29:54 | [Mutex] waiting for: [received:nodes:8f154f7c-a9e0-45f5-8e85-a2a1251cb083:localhost]

2023-03-27 22:29:54 | [Mutex] received everything.

2023-03-27 22:29:54 | [Mutex] isItemNotified: received:node:8f154f7c-a9e0-45f5-8e85-a2a1251cb083:localhost:node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8:Node 6d749ba2-936d-4f92-ac32-319c5fc9bbd8 :: true

2023-03-27 22:29:54 | [Mutex] waiting for: [received:nodes:f10fb96c-dd7a-42d5-a95f-c22c2c70a09b:localhost]

2023-03-27 22:29:54 | [Mutex] waiting for: [received:nodes:f10fb96c-dd7a-42d5-a95f-c22c2c70a09b:localhost]

2023-03-27 22:29:54 | [Mutex] waiting for: [received:nodes:f10fb96c-dd7a-42d5-a95f-c22c2c70a09b:localhost]

2023-03-27 22:29:54 | [Mutex] waiting for: [received:nodes:f10fb96c-dd7a-42d5-a95f-c22c2c70a09b:localhost]

2023-03-27 22:29:54 | [Mutex] received everything.

2023-03-27 22:29:54 | [Mutex] isItemNotified: received:node:f10fb96c-dd7a-42d5-a95f-c22c2c70a09b:localhost:node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8:Node 6d749ba2-936d-4f92-ac32-319c5fc9bbd8 :: false

createNodes 1.633s
2023-03-27 22:29:50 |

2023-03-27 22:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:50 | ------------------------------------

2023-03-27 22:29:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8",
    "pubsub#title": "Node 6d749ba2-936d-4f92-ac32-319c5fc9bbd8"
}

2023-03-27 22:29:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-27 22:29:52 | [Mutex] waiting for: [received:nodes:6759b6e2-88a9-488a-b149-b1cae3750a19:localhost]

2023-03-27 22:29:52 | [Mutex] waiting for: [received:nodes:6759b6e2-88a9-488a-b149-b1cae3750a19:localhost]

2023-03-27 22:29:52 | [Mutex] waiting for: [received:nodes:6759b6e2-88a9-488a-b149-b1cae3750a19:localhost]

2023-03-27 22:29:52 | [Mutex] waiting for: [received:nodes:6759b6e2-88a9-488a-b149-b1cae3750a19:localhost]

2023-03-27 22:29:52 | [Mutex] received everything.

2023-03-27 22:29:52 | [Mutex] isItemNotified: received:node:6759b6e2-88a9-488a-b149-b1cae3750a19:localhost:node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8:Node 6d749ba2-936d-4f92-ac32-319c5fc9bbd8 :: true

createSubnodes 1.020s
2023-03-27 22:29:52 |

2023-03-27 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:52 | ------------------------------------

2023-03-27 22:29:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0a6e9d53-a67e-4b61-b989-e973a4c174a1",
    "pubsub#title": "Node 0a6e9d53-a67e-4b61-b989-e973a4c174a1"
}

2023-03-27 22:29:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-27 22:29:53 | [Mutex] waiting for: [received:nodes:d7f225f8-7f4d-495e-9d00-f7c7198e1faf:localhost]

2023-03-27 22:29:53 | [Mutex] waiting for: [received:nodes:d7f225f8-7f4d-495e-9d00-f7c7198e1faf:localhost]

2023-03-27 22:29:53 | [Mutex] waiting for: [received:nodes:d7f225f8-7f4d-495e-9d00-f7c7198e1faf:localhost]

2023-03-27 22:29:53 | [Mutex] waiting for: [received:nodes:d7f225f8-7f4d-495e-9d00-f7c7198e1faf:localhost]

2023-03-27 22:29:53 | [Mutex] waiting for: [received:nodes:d7f225f8-7f4d-495e-9d00-f7c7198e1faf:localhost]

2023-03-27 22:29:53 | [Mutex] received everything.

2023-03-27 22:29:53 | [Mutex] isItemNotified: received:node:d7f225f8-7f4d-495e-9d00-f7c7198e1faf:localhost:node-0a6e9d53-a67e-4b61-b989-e973a4c174a1:Node 0a6e9d53-a67e-4b61-b989-e973a4c174a1 :: true

deleteNodes 1.016s
2023-03-27 22:29:57 |

2023-03-27 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:57 | ------------------------------------

2023-03-27 22:29:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0a6e9d53-a67e-4b61-b989-e973a4c174a1"
}

2023-03-27 22:29:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-27 22:29:58 | [Mutex] waiting for: [received:nodes:2e45a22d-9f60-4b54-a1bf-742ab7516452:localhost]

2023-03-27 22:29:58 | [Mutex] waiting for: [received:nodes:2e45a22d-9f60-4b54-a1bf-742ab7516452:localhost]

2023-03-27 22:29:58 | [Mutex] waiting for: [received:nodes:2e45a22d-9f60-4b54-a1bf-742ab7516452:localhost]

2023-03-27 22:29:58 | [Mutex] received everything.

2023-03-27 22:29:58 | [Mutex] isItemNotified: received:node:2e45a22d-9f60-4b54-a1bf-742ab7516452:localhost:node-0a6e9d53-a67e-4b61-b989-e973a4c174a1:Node 0a6e9d53-a67e-4b61-b989-e973a4c174a1 :: false

deleteSubnodes 1.022s
2023-03-27 22:29:56 |

2023-03-27 22:29:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:56 | ------------------------------------

2023-03-27 22:29:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8"
}

2023-03-27 22:29:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-27 22:29:57 | [Mutex] waiting for: [received:nodes:c77cae0c-0789-47d3-976f-a967159ed61f:localhost]

2023-03-27 22:29:57 | [Mutex] waiting for: [received:nodes:c77cae0c-0789-47d3-976f-a967159ed61f:localhost]

2023-03-27 22:29:57 | [Mutex] waiting for: [received:nodes:c77cae0c-0789-47d3-976f-a967159ed61f:localhost]

2023-03-27 22:29:57 | [Mutex] received everything.

2023-03-27 22:29:57 | [Mutex] isItemNotified: received:node:c77cae0c-0789-47d3-976f-a967159ed61f:localhost:node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8:Node 6d749ba2-936d-4f92-ac32-319c5fc9bbd8 :: false

2023-03-27 22:29:57 | [Mutex] waiting for: [received:nodes:b98fff8e-c34a-41b9-9436-1f03c54f3182:localhost]

2023-03-27 22:29:57 | [Mutex] received everything.

2023-03-27 22:29:57 | [Mutex] isItemNotified: received:node:b98fff8e-c34a-41b9-9436-1f03c54f3182:localhost:node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8:Node 6d749ba2-936d-4f92-ac32-319c5fc9bbd8 :: false

publishItemsToNodes 0.060s
2023-03-27 22:29:55 |

2023-03-27 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:55 | ------------------------------------

2023-03-27 22:29:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8",
    "entry": "<test>item-b449a3e2-2550-446c-8366-a2072f35cc03</test>",
    "item-id": "item-b449a3e2-2550-446c-8366-a2072f35cc03"
}

2023-03-27 22:29:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b449a3e2-2550-446c-8366-a2072f35cc03"
}

2023-03-27 22:29:55 | [Mutex] waiting for: [published:item:notifieditem-b449a3e2-2550-446c-8366-a2072f35cc03:admin@test-domain.com]

2023-03-27 22:29:55 | [Mutex] received everything.

2023-03-27 22:29:55 | [Mutex] isItemNotified: published:item:notifieditem-b449a3e2-2550-446c-8366-a2072f35cc03:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2023-03-27 22:29:55 |

2023-03-27 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:55 | ------------------------------------

2023-03-27 22:29:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8",
    "item-id": "item-b449a3e2-2550-446c-8366-a2072f35cc03"
}

2023-03-27 22:29:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b449a3e2-2550-446c-8366-a2072f35cc03"
}

2023-03-27 22:29:55 | [Mutex] received everything.

2023-03-27 22:29:55 | [Mutex] isItemNotified: retracted:item:notifieditem-b449a3e2-2550-446c-8366-a2072f35cc03:admin@test-domain.com :: true

retrieveItemsFromNodes 0.035s
2023-03-27 22:29:55 |

2023-03-27 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:55 | ------------------------------------

2023-03-27 22:29:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8",
    "item-id": "item-b449a3e2-2550-446c-8366-a2072f35cc03"
}

2023-03-27 22:29:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8",
    "item-id": "item-b449a3e2-2550-446c-8366-a2072f35cc03",
    "item": [
        "<item id=\"item-b449a3e2-2550-446c-8366-a2072f35cc03\"><test>item-b449a3e2-2550-446c-8366-a2072f35cc03</test></item>"
    ]
}

2023-03-27 22:29:55 | [Mutex] notify: [retrieved:item:item-b449a3e2-2550-446c-8366-a2072f35cc03:payload-matches:true:localhost]

2023-03-27 22:29:55 | [Mutex] received everything.

2023-03-27 22:29:55 | [Mutex] isItemNotified: retrieved:item:item-b449a3e2-2550-446c-8366-a2072f35cc03:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2023-03-27 22:29:55 |

2023-03-27 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:55 | ------------------------------------

2023-03-27 22:29:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-27 22:29:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8",
        "node-0a6e9d53-a67e-4b61-b989-e973a4c174a1",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2023-03-27 22:29:55 |

2023-03-27 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:55 | ------------------------------------

2023-03-27 22:29:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8)"
}

2023-03-27 22:29:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-03-27 22:29:54 |

2023-03-27 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:54 | ------------------------------------

2023-03-27 22:29:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-27 22:29:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.108s
2023-03-27 22:29:55 |

2023-03-27 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-27 22:29:55 | ------------------------------------

2023-03-27 22:29:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6d749ba2-936d-4f92-ac32-319c5fc9bbd8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-27 22:29:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}