Generated by TestNG with ReportNG at 22:15 PDT on Wednesday 15 March 2023
root@ed1b7dd8a1b3 / 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.517s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.129s
2023-03-15 22:29:48 |

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

2023-03-15 22:29:48 | ------------------------------------

2023-03-15 22:29:48 | [Mutex] waiting for: [configured:node:node-6fbc9ce6-2144-494e-9598-3551aa410287:node-c85e4572-025b-42ab-932f-4ec2d479209e]

2023-03-15 22:29:48 | [Mutex] received everything.

2023-03-15 22:29:48 | [Mutex] isItemNotified: configured:node:node-6fbc9ce6-2144-494e-9598-3551aa410287:node-c85e4572-025b-42ab-932f-4ec2d479209e :: true

2023-03-15 22:29:49 | [Mutex] waiting for: [received:nodes:907735b3-57fc-4ee9-94be-c6c829d6944c:localhost]

2023-03-15 22:29:49 | [Mutex] received everything.

2023-03-15 22:29:49 | [Mutex] isItemNotified: received:node:907735b3-57fc-4ee9-94be-c6c829d6944c:localhost:node-6fbc9ce6-2144-494e-9598-3551aa410287:Node 6fbc9ce6-2144-494e-9598-3551aa410287 :: true

2023-03-15 22:29:49 | [Mutex] waiting for: [received:nodes:8fff766d-afc5-45bc-af94-014c32374e0f:localhost]

2023-03-15 22:29:50 | [Mutex] waiting for: [received:nodes:8fff766d-afc5-45bc-af94-014c32374e0f:localhost]

2023-03-15 22:29:50 | [Mutex] waiting for: [received:nodes:8fff766d-afc5-45bc-af94-014c32374e0f:localhost]

2023-03-15 22:29:50 | [Mutex] waiting for: [received:nodes:8fff766d-afc5-45bc-af94-014c32374e0f:localhost]

2023-03-15 22:29:50 | [Mutex] received everything.

2023-03-15 22:29:50 | [Mutex] isItemNotified: received:node:8fff766d-afc5-45bc-af94-014c32374e0f:localhost:node-6fbc9ce6-2144-494e-9598-3551aa410287:Node 6fbc9ce6-2144-494e-9598-3551aa410287 :: false

createNodes 1.552s
2023-03-15 22:29:46 |

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

2023-03-15 22:29:46 | ------------------------------------

2023-03-15 22:29:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6fbc9ce6-2144-494e-9598-3551aa410287",
    "pubsub#title": "Node 6fbc9ce6-2144-494e-9598-3551aa410287"
}

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

2023-03-15 22:29:47 | [Mutex] waiting for: [received:nodes:ae76c657-db36-4629-85ba-d5af0227b0e5:localhost]

2023-03-15 22:29:47 | [Mutex] waiting for: [received:nodes:ae76c657-db36-4629-85ba-d5af0227b0e5:localhost]

2023-03-15 22:29:47 | [Mutex] waiting for: [received:nodes:ae76c657-db36-4629-85ba-d5af0227b0e5:localhost]

2023-03-15 22:29:47 | [Mutex] received everything.

2023-03-15 22:29:47 | [Mutex] isItemNotified: received:node:ae76c657-db36-4629-85ba-d5af0227b0e5:localhost:node-6fbc9ce6-2144-494e-9598-3551aa410287:Node 6fbc9ce6-2144-494e-9598-3551aa410287 :: true

createSubnodes 1.023s
2023-03-15 22:29:47 |

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

2023-03-15 22:29:47 | ------------------------------------

2023-03-15 22:29:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c85e4572-025b-42ab-932f-4ec2d479209e",
    "pubsub#title": "Node c85e4572-025b-42ab-932f-4ec2d479209e"
}

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

2023-03-15 22:29:48 | [Mutex] waiting for: [received:nodes:e9487dae-ff21-4a1d-a43e-1ace4e4ba113:localhost]

2023-03-15 22:29:48 | [Mutex] received everything.

2023-03-15 22:29:48 | [Mutex] isItemNotified: received:node:e9487dae-ff21-4a1d-a43e-1ace4e4ba113:localhost:node-c85e4572-025b-42ab-932f-4ec2d479209e:Node c85e4572-025b-42ab-932f-4ec2d479209e :: true

deleteNodes 1.021s
2023-03-15 22:29:53 |

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

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

2023-03-15 22:29:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c85e4572-025b-42ab-932f-4ec2d479209e"
}

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

2023-03-15 22:29:54 | [Mutex] waiting for: [received:nodes:5a81ed81-7058-4865-a55e-e5e8c9ae8b5d:localhost]

2023-03-15 22:29:54 | [Mutex] waiting for: [received:nodes:5a81ed81-7058-4865-a55e-e5e8c9ae8b5d:localhost]

2023-03-15 22:29:54 | [Mutex] waiting for: [received:nodes:5a81ed81-7058-4865-a55e-e5e8c9ae8b5d:localhost]

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

2023-03-15 22:29:54 | [Mutex] isItemNotified: received:node:5a81ed81-7058-4865-a55e-e5e8c9ae8b5d:localhost:node-c85e4572-025b-42ab-932f-4ec2d479209e:Node c85e4572-025b-42ab-932f-4ec2d479209e :: false

deleteSubnodes 1.022s
2023-03-15 22:29:52 |

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

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

2023-03-15 22:29:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6fbc9ce6-2144-494e-9598-3551aa410287"
}

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

2023-03-15 22:29:53 | [Mutex] waiting for: [received:nodes:4c7104e6-8e97-464c-92e4-d67cfbf9ab6c:localhost]

2023-03-15 22:29:53 | [Mutex] waiting for: [received:nodes:4c7104e6-8e97-464c-92e4-d67cfbf9ab6c:localhost]

2023-03-15 22:29:53 | [Mutex] waiting for: [received:nodes:4c7104e6-8e97-464c-92e4-d67cfbf9ab6c:localhost]

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

2023-03-15 22:29:53 | [Mutex] isItemNotified: received:node:4c7104e6-8e97-464c-92e4-d67cfbf9ab6c:localhost:node-6fbc9ce6-2144-494e-9598-3551aa410287:Node 6fbc9ce6-2144-494e-9598-3551aa410287 :: false

2023-03-15 22:29:53 | [Mutex] waiting for: [received:nodes:c62ab5dd-e45b-46c1-b03a-cf5ce4a44b9c:localhost]

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

2023-03-15 22:29:53 | [Mutex] isItemNotified: received:node:c62ab5dd-e45b-46c1-b03a-cf5ce4a44b9c:localhost:node-6fbc9ce6-2144-494e-9598-3551aa410287:Node 6fbc9ce6-2144-494e-9598-3551aa410287 :: false

publishItemsToNodes 0.045s
2023-03-15 22:29:51 |

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

2023-03-15 22:29:51 | ------------------------------------

2023-03-15 22:29:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6fbc9ce6-2144-494e-9598-3551aa410287",
    "entry": "<test>item-eca1f780-b15a-40f4-a6c7-647778ba536c</test>",
    "item-id": "item-eca1f780-b15a-40f4-a6c7-647778ba536c"
}

2023-03-15 22:29:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-eca1f780-b15a-40f4-a6c7-647778ba536c"
}

2023-03-15 22:29:51 | [Mutex] waiting for: [published:item:notifieditem-eca1f780-b15a-40f4-a6c7-647778ba536c:admin@test-domain.com]

2023-03-15 22:29:51 | [Mutex] received everything.

2023-03-15 22:29:51 | [Mutex] isItemNotified: published:item:notifieditem-eca1f780-b15a-40f4-a6c7-647778ba536c:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-03-15 22:29:51 |

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

2023-03-15 22:29:51 | ------------------------------------

2023-03-15 22:29:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6fbc9ce6-2144-494e-9598-3551aa410287",
    "item-id": "item-eca1f780-b15a-40f4-a6c7-647778ba536c"
}

2023-03-15 22:29:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-eca1f780-b15a-40f4-a6c7-647778ba536c"
}

2023-03-15 22:29:51 | [Mutex] received everything.

2023-03-15 22:29:51 | [Mutex] isItemNotified: retracted:item:notifieditem-eca1f780-b15a-40f4-a6c7-647778ba536c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2023-03-15 22:29:51 |

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

2023-03-15 22:29:51 | ------------------------------------

2023-03-15 22:29:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6fbc9ce6-2144-494e-9598-3551aa410287",
    "item-id": "item-eca1f780-b15a-40f4-a6c7-647778ba536c"
}

2023-03-15 22:29:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6fbc9ce6-2144-494e-9598-3551aa410287",
    "item-id": "item-eca1f780-b15a-40f4-a6c7-647778ba536c",
    "item": [
        "<item id=\"item-eca1f780-b15a-40f4-a6c7-647778ba536c\"><test>item-eca1f780-b15a-40f4-a6c7-647778ba536c</test></item>"
    ]
}

2023-03-15 22:29:51 | [Mutex] notify: [retrieved:item:item-eca1f780-b15a-40f4-a6c7-647778ba536c:payload-matches:true:localhost]

2023-03-15 22:29:51 | [Mutex] received everything.

2023-03-15 22:29:51 | [Mutex] isItemNotified: retrieved:item:item-eca1f780-b15a-40f4-a6c7-647778ba536c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2023-03-15 22:29:51 |

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

2023-03-15 22:29:51 | ------------------------------------

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

2023-03-15 22:29:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c85e4572-025b-42ab-932f-4ec2d479209e",
        "test",
        "node-6fbc9ce6-2144-494e-9598-3551aa410287"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-03-15 22:29:51 |

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

2023-03-15 22:29:51 | ------------------------------------

2023-03-15 22:29:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6fbc9ce6-2144-494e-9598-3551aa410287)"
}

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

subscribeNodes 1.010s
2023-03-15 22:29:50 |

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

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

2023-03-15 22:29:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6fbc9ce6-2144-494e-9598-3551aa410287",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2023-03-15 22:29:51 |

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

2023-03-15 22:29:51 | ------------------------------------

2023-03-15 22:29:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6fbc9ce6-2144-494e-9598-3551aa410287",
    "jids": [
        "admin@test-domain.com"
    ]
}

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