Generated by TestNG with ReportNG at 22:50 PDT on Monday 03 April 2023
root@cc7d7fbb25f7 / Java 17.0.6 (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.581s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2023-04-03 23:04:42 |

2023-04-03 23:04:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:42 | ------------------------------------

2023-04-03 23:04:42 | [Mutex] waiting for: [configured:node:node-7ea2be30-8b5f-4348-b071-12529f292d46:node-40b942ca-3950-40c0-9393-38713f202b1d]

2023-04-03 23:04:43 | [Mutex] received everything.

2023-04-03 23:04:43 | [Mutex] isItemNotified: configured:node:node-7ea2be30-8b5f-4348-b071-12529f292d46:node-40b942ca-3950-40c0-9393-38713f202b1d :: true

2023-04-03 23:04:44 | [Mutex] waiting for: [received:nodes:b03aed60-83df-4e7a-a2a7-8de69d2d646f:localhost]

2023-04-03 23:04:44 | [Mutex] received everything.

2023-04-03 23:04:44 | [Mutex] isItemNotified: received:node:b03aed60-83df-4e7a-a2a7-8de69d2d646f:localhost:node-7ea2be30-8b5f-4348-b071-12529f292d46:Node 7ea2be30-8b5f-4348-b071-12529f292d46 :: true

2023-04-03 23:04:44 | [Mutex] waiting for: [received:nodes:ea6fbd57-dad8-4e1f-aa32-f23cd91134a8:localhost]

2023-04-03 23:04:44 | [Mutex] waiting for: [received:nodes:ea6fbd57-dad8-4e1f-aa32-f23cd91134a8:localhost]

2023-04-03 23:04:44 | [Mutex] waiting for: [received:nodes:ea6fbd57-dad8-4e1f-aa32-f23cd91134a8:localhost]

2023-04-03 23:04:44 | [Mutex] received everything.

2023-04-03 23:04:44 | [Mutex] isItemNotified: received:node:ea6fbd57-dad8-4e1f-aa32-f23cd91134a8:localhost:node-7ea2be30-8b5f-4348-b071-12529f292d46:Node 7ea2be30-8b5f-4348-b071-12529f292d46 :: false

createNodes 1.635s
2023-04-03 23:04:40 |

2023-04-03 23:04:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:40 | ------------------------------------

2023-04-03 23:04:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7ea2be30-8b5f-4348-b071-12529f292d46",
    "pubsub#title": "Node 7ea2be30-8b5f-4348-b071-12529f292d46"
}

2023-04-03 23:04:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 23:04:41 | [Mutex] waiting for: [received:nodes:9af516ce-6f60-40eb-aaf9-4efeeae27d59:localhost]

2023-04-03 23:04:41 | [Mutex] waiting for: [received:nodes:9af516ce-6f60-40eb-aaf9-4efeeae27d59:localhost]

2023-04-03 23:04:41 | [Mutex] waiting for: [received:nodes:9af516ce-6f60-40eb-aaf9-4efeeae27d59:localhost]

2023-04-03 23:04:41 | [Mutex] received everything.

2023-04-03 23:04:41 | [Mutex] isItemNotified: received:node:9af516ce-6f60-40eb-aaf9-4efeeae27d59:localhost:node-7ea2be30-8b5f-4348-b071-12529f292d46:Node 7ea2be30-8b5f-4348-b071-12529f292d46 :: true

createSubnodes 1.023s
2023-04-03 23:04:41 |

2023-04-03 23:04:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:41 | ------------------------------------

2023-04-03 23:04:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-40b942ca-3950-40c0-9393-38713f202b1d",
    "pubsub#title": "Node 40b942ca-3950-40c0-9393-38713f202b1d"
}

2023-04-03 23:04:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 23:04:42 | [Mutex] waiting for: [received:nodes:052844c5-2171-4b44-b4f6-60ffd990d762:localhost]

2023-04-03 23:04:42 | [Mutex] waiting for: [received:nodes:052844c5-2171-4b44-b4f6-60ffd990d762:localhost]

2023-04-03 23:04:42 | [Mutex] waiting for: [received:nodes:052844c5-2171-4b44-b4f6-60ffd990d762:localhost]

2023-04-03 23:04:42 | [Mutex] waiting for: [received:nodes:052844c5-2171-4b44-b4f6-60ffd990d762:localhost]

2023-04-03 23:04:42 | [Mutex] waiting for: [received:nodes:052844c5-2171-4b44-b4f6-60ffd990d762:localhost]

2023-04-03 23:04:42 | [Mutex] received everything.

2023-04-03 23:04:42 | [Mutex] isItemNotified: received:node:052844c5-2171-4b44-b4f6-60ffd990d762:localhost:node-40b942ca-3950-40c0-9393-38713f202b1d:Node 40b942ca-3950-40c0-9393-38713f202b1d :: true

deleteNodes 1.017s
2023-04-03 23:04:47 |

2023-04-03 23:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:47 | ------------------------------------

2023-04-03 23:04:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-40b942ca-3950-40c0-9393-38713f202b1d"
}

2023-04-03 23:04:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 23:04:48 | [Mutex] waiting for: [received:nodes:3cea0022-2cd2-4a42-b9a0-108703774b27:localhost]

2023-04-03 23:04:48 | [Mutex] waiting for: [received:nodes:3cea0022-2cd2-4a42-b9a0-108703774b27:localhost]

2023-04-03 23:04:48 | [Mutex] waiting for: [received:nodes:3cea0022-2cd2-4a42-b9a0-108703774b27:localhost]

2023-04-03 23:04:48 | [Mutex] received everything.

2023-04-03 23:04:48 | [Mutex] isItemNotified: received:node:3cea0022-2cd2-4a42-b9a0-108703774b27:localhost:node-40b942ca-3950-40c0-9393-38713f202b1d:Node 40b942ca-3950-40c0-9393-38713f202b1d :: false

deleteSubnodes 1.024s
2023-04-03 23:04:46 |

2023-04-03 23:04:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:46 | ------------------------------------

2023-04-03 23:04:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7ea2be30-8b5f-4348-b071-12529f292d46"
}

2023-04-03 23:04:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 23:04:47 | [Mutex] waiting for: [received:nodes:e65161c6-d657-4488-9a3e-10a6e1f69b14:localhost]

2023-04-03 23:04:47 | [Mutex] waiting for: [received:nodes:e65161c6-d657-4488-9a3e-10a6e1f69b14:localhost]

2023-04-03 23:04:47 | [Mutex] waiting for: [received:nodes:e65161c6-d657-4488-9a3e-10a6e1f69b14:localhost]

2023-04-03 23:04:47 | [Mutex] received everything.

2023-04-03 23:04:47 | [Mutex] isItemNotified: received:node:e65161c6-d657-4488-9a3e-10a6e1f69b14:localhost:node-7ea2be30-8b5f-4348-b071-12529f292d46:Node 7ea2be30-8b5f-4348-b071-12529f292d46 :: false

2023-04-03 23:04:47 | [Mutex] waiting for: [received:nodes:f59880cc-4fd4-4670-87e8-2a087dff1e1c:localhost]

2023-04-03 23:04:47 | [Mutex] received everything.

2023-04-03 23:04:47 | [Mutex] isItemNotified: received:node:f59880cc-4fd4-4670-87e8-2a087dff1e1c:localhost:node-7ea2be30-8b5f-4348-b071-12529f292d46:Node 7ea2be30-8b5f-4348-b071-12529f292d46 :: false

publishItemsToNodes 0.057s
2023-04-03 23:04:45 |

2023-04-03 23:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:45 | ------------------------------------

2023-04-03 23:04:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7ea2be30-8b5f-4348-b071-12529f292d46",
    "entry": "<test>item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c</test>",
    "item-id": "item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c"
}

2023-04-03 23:04:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c"
}

2023-04-03 23:04:45 | [Mutex] waiting for: [published:item:notifieditem-174c5c32-e85a-428a-a049-9fc3fbbd4b9c:admin@test-domain.com]

2023-04-03 23:04:45 | [Mutex] received everything.

2023-04-03 23:04:45 | [Mutex] isItemNotified: published:item:notifieditem-174c5c32-e85a-428a-a049-9fc3fbbd4b9c:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-04-03 23:04:45 |

2023-04-03 23:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:45 | ------------------------------------

2023-04-03 23:04:45 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7ea2be30-8b5f-4348-b071-12529f292d46",
    "item-id": "item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c"
}

2023-04-03 23:04:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c"
}

2023-04-03 23:04:45 | [Mutex] received everything.

2023-04-03 23:04:45 | [Mutex] isItemNotified: retracted:item:notifieditem-174c5c32-e85a-428a-a049-9fc3fbbd4b9c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.032s
2023-04-03 23:04:45 |

2023-04-03 23:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:45 | ------------------------------------

2023-04-03 23:04:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7ea2be30-8b5f-4348-b071-12529f292d46",
    "item-id": "item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c"
}

2023-04-03 23:04:45 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7ea2be30-8b5f-4348-b071-12529f292d46",
    "item-id": "item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c",
    "item": [
        "<item id=\"item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c\"><test>item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c</test></item>"
    ]
}

2023-04-03 23:04:45 | [Mutex] notify: [retrieved:item:item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c:payload-matches:true:localhost]

2023-04-03 23:04:45 | [Mutex] received everything.

2023-04-03 23:04:45 | [Mutex] isItemNotified: retrieved:item:item-174c5c32-e85a-428a-a049-9fc3fbbd4b9c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-04-03 23:04:45 |

2023-04-03 23:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:45 | ------------------------------------

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

2023-04-03 23:04:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7ea2be30-8b5f-4348-b071-12529f292d46",
        "node-40b942ca-3950-40c0-9393-38713f202b1d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-04-03 23:04:45 |

2023-04-03 23:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:45 | ------------------------------------

2023-04-03 23:04:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7ea2be30-8b5f-4348-b071-12529f292d46)"
}

2023-04-03 23:04:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-04-03 23:04:44 |

2023-04-03 23:04:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:44 | ------------------------------------

2023-04-03 23:04:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7ea2be30-8b5f-4348-b071-12529f292d46",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-04-03 23:04:44 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2023-04-03 23:04:45 |

2023-04-03 23:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:04:45 | ------------------------------------

2023-04-03 23:04:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7ea2be30-8b5f-4348-b071-12529f292d46",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-04-03 23:04:45 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}