Generated by TestNG with ReportNG at 21:47 PST on Sunday 13 November 2022
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.793s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2022-11-13 22:19:02 |

2022-11-13 22:19:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:02 | ------------------------------------

2022-11-13 22:19:02 | [Mutex] waiting for: [configured:node:node-d0365793-9daf-4b50-9a7c-b5632d3e8805:node-3a1d5eb1-8009-4aef-be49-d67b4b05cb58]

2022-11-13 22:19:02 | [Mutex] received everything.

2022-11-13 22:19:02 | [Mutex] isItemNotified: configured:node:node-d0365793-9daf-4b50-9a7c-b5632d3e8805:node-3a1d5eb1-8009-4aef-be49-d67b4b05cb58 :: true

2022-11-13 22:19:03 | [Mutex] waiting for: [received:nodes:f9361c57-3894-4227-be67-8719bfe97f10:localhost]

2022-11-13 22:19:03 | [Mutex] received everything.

2022-11-13 22:19:03 | [Mutex] isItemNotified: received:node:f9361c57-3894-4227-be67-8719bfe97f10:localhost:node-d0365793-9daf-4b50-9a7c-b5632d3e8805:Node d0365793-9daf-4b50-9a7c-b5632d3e8805 :: true

2022-11-13 22:19:03 | [Mutex] waiting for: [received:nodes:143f5b50-9642-4ad9-8dcc-0709ba8548e5:localhost]

2022-11-13 22:19:03 | [Mutex] received everything.

2022-11-13 22:19:03 | [Mutex] isItemNotified: received:node:143f5b50-9642-4ad9-8dcc-0709ba8548e5:localhost:node-d0365793-9daf-4b50-9a7c-b5632d3e8805:Node d0365793-9daf-4b50-9a7c-b5632d3e8805 :: false

createNodes 1.592s
2022-11-13 22:18:59 |

2022-11-13 22:18:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:18:59 | ------------------------------------

2022-11-13 22:19:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d0365793-9daf-4b50-9a7c-b5632d3e8805",
    "pubsub#title": "Node d0365793-9daf-4b50-9a7c-b5632d3e8805"
}

2022-11-13 22:19:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-13 22:19:01 | [Mutex] waiting for: [received:nodes:c285e520-d512-425f-858d-052975cfb833:localhost]

2022-11-13 22:19:01 | [Mutex] received everything.

2022-11-13 22:19:01 | [Mutex] isItemNotified: received:node:c285e520-d512-425f-858d-052975cfb833:localhost:node-d0365793-9daf-4b50-9a7c-b5632d3e8805:Node d0365793-9daf-4b50-9a7c-b5632d3e8805 :: true

createSubnodes 1.022s
2022-11-13 22:19:01 |

2022-11-13 22:19:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:01 | ------------------------------------

2022-11-13 22:19:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3a1d5eb1-8009-4aef-be49-d67b4b05cb58",
    "pubsub#title": "Node 3a1d5eb1-8009-4aef-be49-d67b4b05cb58"
}

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

2022-11-13 22:19:02 | [Mutex] waiting for: [received:nodes:1453ba6d-2e45-420e-949f-a3f902c4a3b9:localhost]

2022-11-13 22:19:02 | [Mutex] received everything.

2022-11-13 22:19:02 | [Mutex] isItemNotified: received:node:1453ba6d-2e45-420e-949f-a3f902c4a3b9:localhost:node-3a1d5eb1-8009-4aef-be49-d67b4b05cb58:Node 3a1d5eb1-8009-4aef-be49-d67b4b05cb58 :: true

deleteNodes 1.027s
2022-11-13 22:19:06 |

2022-11-13 22:19:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:06 | ------------------------------------

2022-11-13 22:19:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3a1d5eb1-8009-4aef-be49-d67b4b05cb58"
}

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

2022-11-13 22:19:07 | [Mutex] waiting for: [received:nodes:2f8d4dbf-7d3c-4dce-ac19-acee860dc825:localhost]

2022-11-13 22:19:07 | [Mutex] received everything.

2022-11-13 22:19:07 | [Mutex] isItemNotified: received:node:2f8d4dbf-7d3c-4dce-ac19-acee860dc825:localhost:node-3a1d5eb1-8009-4aef-be49-d67b4b05cb58:Node 3a1d5eb1-8009-4aef-be49-d67b4b05cb58 :: false

deleteSubnodes 1.030s
2022-11-13 22:19:05 |

2022-11-13 22:19:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:05 | ------------------------------------

2022-11-13 22:19:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d0365793-9daf-4b50-9a7c-b5632d3e8805"
}

2022-11-13 22:19:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-13 22:19:06 | [Mutex] waiting for: [received:nodes:002590a5-3364-4a7b-90ea-cd21e077463b:localhost]

2022-11-13 22:19:06 | [Mutex] received everything.

2022-11-13 22:19:06 | [Mutex] isItemNotified: received:node:002590a5-3364-4a7b-90ea-cd21e077463b:localhost:node-d0365793-9daf-4b50-9a7c-b5632d3e8805:Node d0365793-9daf-4b50-9a7c-b5632d3e8805 :: false

2022-11-13 22:19:06 | [Mutex] waiting for: [received:nodes:af8ceb18-8ddf-4113-877d-b6e38cef05a2:localhost]

2022-11-13 22:19:06 | [Mutex] received everything.

2022-11-13 22:19:06 | [Mutex] isItemNotified: received:node:af8ceb18-8ddf-4113-877d-b6e38cef05a2:localhost:node-d0365793-9daf-4b50-9a7c-b5632d3e8805:Node d0365793-9daf-4b50-9a7c-b5632d3e8805 :: false

publishItemsToNodes 0.060s
2022-11-13 22:19:04 |

2022-11-13 22:19:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:04 | ------------------------------------

2022-11-13 22:19:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d0365793-9daf-4b50-9a7c-b5632d3e8805",
    "entry": "<test>item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b</test>",
    "item-id": "item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b"
}

2022-11-13 22:19:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b"
}

2022-11-13 22:19:04 | [Mutex] waiting for: [published:item:notifieditem-2230ce7c-b8c7-4784-bbf4-8018a913ee4b:admin@test-domain.com]

2022-11-13 22:19:04 | [Mutex] received everything.

2022-11-13 22:19:04 | [Mutex] isItemNotified: published:item:notifieditem-2230ce7c-b8c7-4784-bbf4-8018a913ee4b:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2022-11-13 22:19:04 |

2022-11-13 22:19:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:04 | ------------------------------------

2022-11-13 22:19:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d0365793-9daf-4b50-9a7c-b5632d3e8805",
    "item-id": "item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b"
}

2022-11-13 22:19:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b"
}

2022-11-13 22:19:04 | [Mutex] waiting for: [retracted:item:notifieditem-2230ce7c-b8c7-4784-bbf4-8018a913ee4b:admin@test-domain.com]

2022-11-13 22:19:04 | [Mutex] received everything.

2022-11-13 22:19:04 | [Mutex] isItemNotified: retracted:item:notifieditem-2230ce7c-b8c7-4784-bbf4-8018a913ee4b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.040s
2022-11-13 22:19:04 |

2022-11-13 22:19:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:04 | ------------------------------------

2022-11-13 22:19:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d0365793-9daf-4b50-9a7c-b5632d3e8805",
    "item-id": "item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b"
}

2022-11-13 22:19:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d0365793-9daf-4b50-9a7c-b5632d3e8805",
    "item-id": "item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b",
    "item": [
        "<item id=\"item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b\"><test>item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b</test></item>"
    ]
}

2022-11-13 22:19:04 | [Mutex] notify: [retrieved:item:item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b:payload-matches:true:localhost]

2022-11-13 22:19:04 | [Mutex] received everything.

2022-11-13 22:19:04 | [Mutex] isItemNotified: retrieved:item:item-2230ce7c-b8c7-4784-bbf4-8018a913ee4b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-11-13 22:19:04 |

2022-11-13 22:19:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:04 | ------------------------------------

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

2022-11-13 22:19:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d0365793-9daf-4b50-9a7c-b5632d3e8805",
        "node-3a1d5eb1-8009-4aef-be49-d67b4b05cb58"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-11-13 22:19:04 |

2022-11-13 22:19:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:04 | ------------------------------------

2022-11-13 22:19:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d0365793-9daf-4b50-9a7c-b5632d3e8805)"
}

2022-11-13 22:19:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-11-13 22:19:03 |

2022-11-13 22:19:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:03 | ------------------------------------

2022-11-13 22:19:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d0365793-9daf-4b50-9a7c-b5632d3e8805",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-13 22:19:03 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.052s
2022-11-13 22:19:04 |

2022-11-13 22:19:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-13 22:19:04 | ------------------------------------

2022-11-13 22:19:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d0365793-9daf-4b50-9a7c-b5632d3e8805",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-13 22:19:04 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}