Generated by TestNG with ReportNG at 22:16 PDT on Monday 31 July 2023
root@7962bf290299 / Java 17.0.7 (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.700s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2023-07-31 22:31:31 |

2023-07-31 22:31:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:31 | ------------------------------------

2023-07-31 22:31:31 | [Mutex] waiting for: [configured:node:node-c4eb9989-e700-443f-b687-417a9ad149a7:node-1ccf7acc-465e-42b9-9138-169ec1805e18]

2023-07-31 22:31:31 | [Mutex] received everything.

2023-07-31 22:31:31 | [Mutex] isItemNotified: configured:node:node-c4eb9989-e700-443f-b687-417a9ad149a7:node-1ccf7acc-465e-42b9-9138-169ec1805e18 :: true

2023-07-31 22:31:32 | [Mutex] waiting for: [received:nodes:f963d5d4-d387-42fc-b928-6eb442f474c1:localhost]

2023-07-31 22:31:32 | [Mutex] received everything.

2023-07-31 22:31:32 | [Mutex] isItemNotified: received:node:f963d5d4-d387-42fc-b928-6eb442f474c1:localhost:node-c4eb9989-e700-443f-b687-417a9ad149a7:Node c4eb9989-e700-443f-b687-417a9ad149a7 :: true

2023-07-31 22:31:32 | [Mutex] waiting for: [received:nodes:ab060dd6-cb26-4f60-bd2b-280e1f8efd2f:localhost]

2023-07-31 22:31:32 | [Mutex] waiting for: [received:nodes:ab060dd6-cb26-4f60-bd2b-280e1f8efd2f:localhost]

2023-07-31 22:31:32 | [Mutex] waiting for: [received:nodes:ab060dd6-cb26-4f60-bd2b-280e1f8efd2f:localhost]

2023-07-31 22:31:32 | [Mutex] received everything.

2023-07-31 22:31:32 | [Mutex] isItemNotified: received:node:ab060dd6-cb26-4f60-bd2b-280e1f8efd2f:localhost:node-c4eb9989-e700-443f-b687-417a9ad149a7:Node c4eb9989-e700-443f-b687-417a9ad149a7 :: false

createNodes 1.626s
2023-07-31 22:31:28 |

2023-07-31 22:31:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:28 | ------------------------------------

2023-07-31 22:31: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-c4eb9989-e700-443f-b687-417a9ad149a7",
    "pubsub#title": "Node c4eb9989-e700-443f-b687-417a9ad149a7"
}

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

2023-07-31 22:31:30 | [Mutex] waiting for: [received:nodes:e313d2ac-2012-4fc9-bf0d-e57dd287ff5e:localhost]

2023-07-31 22:31:30 | [Mutex] waiting for: [received:nodes:e313d2ac-2012-4fc9-bf0d-e57dd287ff5e:localhost]

2023-07-31 22:31:30 | [Mutex] waiting for: [received:nodes:e313d2ac-2012-4fc9-bf0d-e57dd287ff5e:localhost]

2023-07-31 22:31:30 | [Mutex] waiting for: [received:nodes:e313d2ac-2012-4fc9-bf0d-e57dd287ff5e:localhost]

2023-07-31 22:31:30 | [Mutex] received everything.

2023-07-31 22:31:30 | [Mutex] isItemNotified: received:node:e313d2ac-2012-4fc9-bf0d-e57dd287ff5e:localhost:node-c4eb9989-e700-443f-b687-417a9ad149a7:Node c4eb9989-e700-443f-b687-417a9ad149a7 :: true

createSubnodes 1.025s
2023-07-31 22:31:30 |

2023-07-31 22:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:30 | ------------------------------------

2023-07-31 22:31: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-1ccf7acc-465e-42b9-9138-169ec1805e18",
    "pubsub#title": "Node 1ccf7acc-465e-42b9-9138-169ec1805e18"
}

2023-07-31 22:31:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-31 22:31:31 | [Mutex] waiting for: [received:nodes:7ff05ab7-6f1f-4428-b033-18b7f2c189d5:localhost]

2023-07-31 22:31:31 | [Mutex] waiting for: [received:nodes:7ff05ab7-6f1f-4428-b033-18b7f2c189d5:localhost]

2023-07-31 22:31:31 | [Mutex] waiting for: [received:nodes:7ff05ab7-6f1f-4428-b033-18b7f2c189d5:localhost]

2023-07-31 22:31:31 | [Mutex] waiting for: [received:nodes:7ff05ab7-6f1f-4428-b033-18b7f2c189d5:localhost]

2023-07-31 22:31:31 | [Mutex] received everything.

2023-07-31 22:31:31 | [Mutex] isItemNotified: received:node:7ff05ab7-6f1f-4428-b033-18b7f2c189d5:localhost:node-1ccf7acc-465e-42b9-9138-169ec1805e18:Node 1ccf7acc-465e-42b9-9138-169ec1805e18 :: true

deleteNodes 1.024s
2023-07-31 22:31:35 |

2023-07-31 22:31:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:35 | ------------------------------------

2023-07-31 22:31:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1ccf7acc-465e-42b9-9138-169ec1805e18"
}

2023-07-31 22:31:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-31 22:31:36 | [Mutex] waiting for: [received:nodes:a7a8d8a9-1b54-4906-ae41-c1335d478a4a:localhost]

2023-07-31 22:31:36 | [Mutex] waiting for: [received:nodes:a7a8d8a9-1b54-4906-ae41-c1335d478a4a:localhost]

2023-07-31 22:31:36 | [Mutex] waiting for: [received:nodes:a7a8d8a9-1b54-4906-ae41-c1335d478a4a:localhost]

2023-07-31 22:31:36 | [Mutex] received everything.

2023-07-31 22:31:36 | [Mutex] isItemNotified: received:node:a7a8d8a9-1b54-4906-ae41-c1335d478a4a:localhost:node-1ccf7acc-465e-42b9-9138-169ec1805e18:Node 1ccf7acc-465e-42b9-9138-169ec1805e18 :: false

deleteSubnodes 1.027s
2023-07-31 22:31:34 |

2023-07-31 22:31:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:34 | ------------------------------------

2023-07-31 22:31:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c4eb9989-e700-443f-b687-417a9ad149a7"
}

2023-07-31 22:31:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-31 22:31:35 | [Mutex] waiting for: [received:nodes:4761f702-3b63-4243-8856-ad488291df37:localhost]

2023-07-31 22:31:35 | [Mutex] waiting for: [received:nodes:4761f702-3b63-4243-8856-ad488291df37:localhost]

2023-07-31 22:31:35 | [Mutex] waiting for: [received:nodes:4761f702-3b63-4243-8856-ad488291df37:localhost]

2023-07-31 22:31:35 | [Mutex] waiting for: [received:nodes:4761f702-3b63-4243-8856-ad488291df37:localhost]

2023-07-31 22:31:35 | [Mutex] received everything.

2023-07-31 22:31:35 | [Mutex] isItemNotified: received:node:4761f702-3b63-4243-8856-ad488291df37:localhost:node-c4eb9989-e700-443f-b687-417a9ad149a7:Node c4eb9989-e700-443f-b687-417a9ad149a7 :: false

2023-07-31 22:31:35 | [Mutex] waiting for: [received:nodes:03d2aa43-d625-43ee-ac05-180def5aca70:localhost]

2023-07-31 22:31:35 | [Mutex] received everything.

2023-07-31 22:31:35 | [Mutex] isItemNotified: received:node:03d2aa43-d625-43ee-ac05-180def5aca70:localhost:node-c4eb9989-e700-443f-b687-417a9ad149a7:Node c4eb9989-e700-443f-b687-417a9ad149a7 :: false

publishItemsToNodes 0.052s
2023-07-31 22:31:33 |

2023-07-31 22:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:33 | ------------------------------------

2023-07-31 22:31:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c4eb9989-e700-443f-b687-417a9ad149a7",
    "entry": "<test>item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f</test>",
    "item-id": "item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f"
}

2023-07-31 22:31:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f"
}

2023-07-31 22:31:33 | [Mutex] waiting for: [published:item:notifieditem-3344fd6a-bc77-446d-8d3b-acafca6a8d4f:admin@test-domain.com]

2023-07-31 22:31:33 | [Mutex] received everything.

2023-07-31 22:31:33 | [Mutex] isItemNotified: published:item:notifieditem-3344fd6a-bc77-446d-8d3b-acafca6a8d4f:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-07-31 22:31:33 |

2023-07-31 22:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:33 | ------------------------------------

2023-07-31 22:31:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c4eb9989-e700-443f-b687-417a9ad149a7",
    "item-id": "item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f"
}

2023-07-31 22:31:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f"
}

2023-07-31 22:31:33 | [Mutex] received everything.

2023-07-31 22:31:33 | [Mutex] isItemNotified: retracted:item:notifieditem-3344fd6a-bc77-446d-8d3b-acafca6a8d4f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2023-07-31 22:31:33 |

2023-07-31 22:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:33 | ------------------------------------

2023-07-31 22:31:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c4eb9989-e700-443f-b687-417a9ad149a7",
    "item-id": "item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f"
}

2023-07-31 22:31:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c4eb9989-e700-443f-b687-417a9ad149a7",
    "item-id": "item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f",
    "item": [
        "<item id=\"item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f\"><test>item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f</test></item>"
    ]
}

2023-07-31 22:31:33 | [Mutex] notify: [retrieved:item:item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f:payload-matches:true:localhost]

2023-07-31 22:31:33 | [Mutex] received everything.

2023-07-31 22:31:33 | [Mutex] isItemNotified: retrieved:item:item-3344fd6a-bc77-446d-8d3b-acafca6a8d4f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-31 22:31:33 |

2023-07-31 22:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:33 | ------------------------------------

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

2023-07-31 22:31:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1ccf7acc-465e-42b9-9138-169ec1805e18",
        "test",
        "node-c4eb9989-e700-443f-b687-417a9ad149a7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-31 22:31:33 |

2023-07-31 22:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:33 | ------------------------------------

2023-07-31 22:31:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c4eb9989-e700-443f-b687-417a9ad149a7)"
}

2023-07-31 22:31:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-07-31 22:31:32 |

2023-07-31 22:31:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:32 | ------------------------------------

2023-07-31 22:31:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c4eb9989-e700-443f-b687-417a9ad149a7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-31 22:31:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.074s
2023-07-31 22:31:33 |

2023-07-31 22:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-31 22:31:33 | ------------------------------------

2023-07-31 22:31:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c4eb9989-e700-443f-b687-417a9ad149a7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-31 22:31:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}