Generated by TestNG with ReportNG at 22:48 PDT on Thursday 25 August 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.690s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2022-08-25 23:15:08 |

2022-08-25 23:15:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:08 | ------------------------------------

2022-08-25 23:15:08 | [Mutex] waiting for: [configured:node:node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b:node-2a144631-a585-470c-aede-c7c4d049f974]

2022-08-25 23:15:08 | [Mutex] received everything.

2022-08-25 23:15:08 | [Mutex] isItemNotified: configured:node:node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b:node-2a144631-a585-470c-aede-c7c4d049f974 :: true

2022-08-25 23:15:09 | [Mutex] waiting for: [received:nodes:273acb1f-ddfd-42ad-8761-3b54686c4ec8:localhost]

2022-08-25 23:15:09 | [Mutex] received everything.

2022-08-25 23:15:09 | [Mutex] isItemNotified: received:node:273acb1f-ddfd-42ad-8761-3b54686c4ec8:localhost:node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b:Node 9cf8eec1-6cb2-4e03-ae01-d814d9a1182b :: true

2022-08-25 23:15:09 | [Mutex] waiting for: [received:nodes:e1b9cd03-57a7-4e0e-9420-16c7b4bcfac7:localhost]

2022-08-25 23:15:09 | [Mutex] received everything.

2022-08-25 23:15:09 | [Mutex] isItemNotified: received:node:e1b9cd03-57a7-4e0e-9420-16c7b4bcfac7:localhost:node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b:Node 9cf8eec1-6cb2-4e03-ae01-d814d9a1182b :: false

createNodes 1.618s
2022-08-25 23:15:06 |

2022-08-25 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:06 | ------------------------------------

2022-08-25 23:15:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b",
    "pubsub#title": "Node 9cf8eec1-6cb2-4e03-ae01-d814d9a1182b"
}

2022-08-25 23:15:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-25 23:15:07 | [Mutex] waiting for: [received:nodes:e9475ed2-8b25-4848-9fd0-9385e749717b:localhost]

2022-08-25 23:15:07 | [Mutex] waiting for: [received:nodes:e9475ed2-8b25-4848-9fd0-9385e749717b:localhost]

2022-08-25 23:15:07 | [Mutex] waiting for: [received:nodes:e9475ed2-8b25-4848-9fd0-9385e749717b:localhost]

2022-08-25 23:15:07 | [Mutex] waiting for: [received:nodes:e9475ed2-8b25-4848-9fd0-9385e749717b:localhost]

2022-08-25 23:15:07 | [Mutex] received everything.

2022-08-25 23:15:07 | [Mutex] isItemNotified: received:node:e9475ed2-8b25-4848-9fd0-9385e749717b:localhost:node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b:Node 9cf8eec1-6cb2-4e03-ae01-d814d9a1182b :: true

createSubnodes 1.021s
2022-08-25 23:15:07 |

2022-08-25 23:15:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:07 | ------------------------------------

2022-08-25 23:15:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2a144631-a585-470c-aede-c7c4d049f974",
    "pubsub#title": "Node 2a144631-a585-470c-aede-c7c4d049f974"
}

2022-08-25 23:15:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-25 23:15:08 | [Mutex] waiting for: [received:nodes:43e5bb33-eee5-4216-ac36-5b900426d3d2:localhost]

2022-08-25 23:15:08 | [Mutex] received everything.

2022-08-25 23:15:08 | [Mutex] isItemNotified: received:node:43e5bb33-eee5-4216-ac36-5b900426d3d2:localhost:node-2a144631-a585-470c-aede-c7c4d049f974:Node 2a144631-a585-470c-aede-c7c4d049f974 :: true

deleteNodes 1.017s
2022-08-25 23:15:13 |

2022-08-25 23:15:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:13 | ------------------------------------

2022-08-25 23:15:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2a144631-a585-470c-aede-c7c4d049f974"
}

2022-08-25 23:15:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-25 23:15:14 | [Mutex] waiting for: [received:nodes:55fe7014-c773-4109-957a-3770b5d7966b:localhost]

2022-08-25 23:15:14 | [Mutex] received everything.

2022-08-25 23:15:14 | [Mutex] isItemNotified: received:node:55fe7014-c773-4109-957a-3770b5d7966b:localhost:node-2a144631-a585-470c-aede-c7c4d049f974:Node 2a144631-a585-470c-aede-c7c4d049f974 :: false

deleteSubnodes 1.031s
2022-08-25 23:15:12 |

2022-08-25 23:15:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:12 | ------------------------------------

2022-08-25 23:15:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b"
}

2022-08-25 23:15:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-25 23:15:13 | [Mutex] waiting for: [received:nodes:d8b02478-0f49-4bfb-8358-a003d9caa80b:localhost]

2022-08-25 23:15:13 | [Mutex] waiting for: [received:nodes:d8b02478-0f49-4bfb-8358-a003d9caa80b:localhost]

2022-08-25 23:15:13 | [Mutex] received everything.

2022-08-25 23:15:13 | [Mutex] isItemNotified: received:node:d8b02478-0f49-4bfb-8358-a003d9caa80b:localhost:node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b:Node 9cf8eec1-6cb2-4e03-ae01-d814d9a1182b :: false

2022-08-25 23:15:13 | [Mutex] waiting for: [received:nodes:75acdf21-e1e2-423f-ae37-1f72877d4872:localhost]

2022-08-25 23:15:13 | [Mutex] received everything.

2022-08-25 23:15:13 | [Mutex] isItemNotified: received:node:75acdf21-e1e2-423f-ae37-1f72877d4872:localhost:node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b:Node 9cf8eec1-6cb2-4e03-ae01-d814d9a1182b :: false

publishItemsToNodes 0.055s
2022-08-25 23:15:10 |

2022-08-25 23:15:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:10 | ------------------------------------

2022-08-25 23:15:10 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b",
    "entry": "<test>item-e78a34b7-f897-4f4c-9792-2943bb136bc0</test>",
    "item-id": "item-e78a34b7-f897-4f4c-9792-2943bb136bc0"
}

2022-08-25 23:15:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e78a34b7-f897-4f4c-9792-2943bb136bc0"
}

2022-08-25 23:15:10 | [Mutex] waiting for: [published:item:notifieditem-e78a34b7-f897-4f4c-9792-2943bb136bc0:admin@test-domain.com]

2022-08-25 23:15:10 | [Mutex] received everything.

2022-08-25 23:15:10 | [Mutex] isItemNotified: published:item:notifieditem-e78a34b7-f897-4f4c-9792-2943bb136bc0:admin@test-domain.com :: true

retractItemsFromNodes 0.076s
2022-08-25 23:15:11 |

2022-08-25 23:15:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:11 | ------------------------------------

2022-08-25 23:15:11 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b",
    "item-id": "item-e78a34b7-f897-4f4c-9792-2943bb136bc0"
}

2022-08-25 23:15:11 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e78a34b7-f897-4f4c-9792-2943bb136bc0"
}

2022-08-25 23:15:11 | [Mutex] received everything.

2022-08-25 23:15:11 | [Mutex] isItemNotified: retracted:item:notifieditem-e78a34b7-f897-4f4c-9792-2943bb136bc0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.024s
2022-08-25 23:15:10 |

2022-08-25 23:15:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:10 | ------------------------------------

2022-08-25 23:15:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b",
    "item-id": "item-e78a34b7-f897-4f4c-9792-2943bb136bc0"
}

2022-08-25 23:15:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b",
    "item-id": "item-e78a34b7-f897-4f4c-9792-2943bb136bc0",
    "item": [
        "<item id=\"item-e78a34b7-f897-4f4c-9792-2943bb136bc0\"><test>item-e78a34b7-f897-4f4c-9792-2943bb136bc0</test></item>"
    ]
}

2022-08-25 23:15:10 | [Mutex] notify: [retrieved:item:item-e78a34b7-f897-4f4c-9792-2943bb136bc0:payload-matches:true:localhost]

2022-08-25 23:15:10 | [Mutex] received everything.

2022-08-25 23:15:10 | [Mutex] isItemNotified: retrieved:item:item-e78a34b7-f897-4f4c-9792-2943bb136bc0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.075s
2022-08-25 23:15:10 |

2022-08-25 23:15:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:10 | ------------------------------------

2022-08-25 23:15:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-25 23:15:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b",
        "node-2a144631-a585-470c-aede-c7c4d049f974"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-08-25 23:15:11 |

2022-08-25 23:15:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:11 | ------------------------------------

2022-08-25 23:15:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b)"
}

2022-08-25 23:15:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-08-25 23:15:09 |

2022-08-25 23:15:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:09 | ------------------------------------

2022-08-25 23:15:09 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-25 23:15:09 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2022-08-25 23:15:11 |

2022-08-25 23:15:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 23:15:11 | ------------------------------------

2022-08-25 23:15:11 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9cf8eec1-6cb2-4e03-ae01-d814d9a1182b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-25 23:15:11 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}