Generated by TestNG with ReportNG at 21:18 PST on Thursday 24 November 2022
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.801s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2022-11-24 21:37:37 |

2022-11-24 21:37:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:37 | ------------------------------------

2022-11-24 21:37:37 | [Mutex] waiting for: [configured:node:node-bba1a9bc-9d98-469d-983a-a6048f08263b:node-3845a78b-d34f-48a4-808e-0f658d3b7086]

2022-11-24 21:37:37 | [Mutex] received everything.

2022-11-24 21:37:37 | [Mutex] isItemNotified: configured:node:node-bba1a9bc-9d98-469d-983a-a6048f08263b:node-3845a78b-d34f-48a4-808e-0f658d3b7086 :: true

2022-11-24 21:37:38 | [Mutex] waiting for: [received:nodes:40422442-065b-4ee5-9f12-f5c03e0d34de:localhost]

2022-11-24 21:37:38 | [Mutex] received everything.

2022-11-24 21:37:38 | [Mutex] isItemNotified: received:node:40422442-065b-4ee5-9f12-f5c03e0d34de:localhost:node-bba1a9bc-9d98-469d-983a-a6048f08263b:Node bba1a9bc-9d98-469d-983a-a6048f08263b :: true

2022-11-24 21:37:38 | [Mutex] waiting for: [received:nodes:60140ff2-51d9-45d5-be25-bad44f2d7d91:localhost]

2022-11-24 21:37:38 | [Mutex] waiting for: [received:nodes:60140ff2-51d9-45d5-be25-bad44f2d7d91:localhost]

2022-11-24 21:37:38 | [Mutex] received everything.

2022-11-24 21:37:38 | [Mutex] isItemNotified: received:node:60140ff2-51d9-45d5-be25-bad44f2d7d91:localhost:node-bba1a9bc-9d98-469d-983a-a6048f08263b:Node bba1a9bc-9d98-469d-983a-a6048f08263b :: false

createNodes 1.609s
2022-11-24 21:37:35 |

2022-11-24 21:37:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:35 | ------------------------------------

2022-11-24 21:37:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bba1a9bc-9d98-469d-983a-a6048f08263b",
    "pubsub#title": "Node bba1a9bc-9d98-469d-983a-a6048f08263b"
}

2022-11-24 21:37:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 21:37:36 | [Mutex] waiting for: [received:nodes:3ac6d19e-1e28-43a5-8a5e-b4513f2016b9:localhost]

2022-11-24 21:37:36 | [Mutex] received everything.

2022-11-24 21:37:36 | [Mutex] isItemNotified: received:node:3ac6d19e-1e28-43a5-8a5e-b4513f2016b9:localhost:node-bba1a9bc-9d98-469d-983a-a6048f08263b:Node bba1a9bc-9d98-469d-983a-a6048f08263b :: true

createSubnodes 1.022s
2022-11-24 21:37:36 |

2022-11-24 21:37:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:36 | ------------------------------------

2022-11-24 21:37:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3845a78b-d34f-48a4-808e-0f658d3b7086",
    "pubsub#title": "Node 3845a78b-d34f-48a4-808e-0f658d3b7086"
}

2022-11-24 21:37:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 21:37:37 | [Mutex] waiting for: [received:nodes:fe5f0486-3783-490e-94a3-ad8e82dc7af3:localhost]

2022-11-24 21:37:37 | [Mutex] waiting for: [received:nodes:fe5f0486-3783-490e-94a3-ad8e82dc7af3:localhost]

2022-11-24 21:37:37 | [Mutex] received everything.

2022-11-24 21:37:37 | [Mutex] isItemNotified: received:node:fe5f0486-3783-490e-94a3-ad8e82dc7af3:localhost:node-3845a78b-d34f-48a4-808e-0f658d3b7086:Node 3845a78b-d34f-48a4-808e-0f658d3b7086 :: true

deleteNodes 1.022s
2022-11-24 21:37:42 |

2022-11-24 21:37:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:42 | ------------------------------------

2022-11-24 21:37:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3845a78b-d34f-48a4-808e-0f658d3b7086"
}

2022-11-24 21:37:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 21:37:43 | [Mutex] waiting for: [received:nodes:0a1afe30-96b6-4764-8ff2-806203b5995d:localhost]

2022-11-24 21:37:43 | [Mutex] received everything.

2022-11-24 21:37:43 | [Mutex] isItemNotified: received:node:0a1afe30-96b6-4764-8ff2-806203b5995d:localhost:node-3845a78b-d34f-48a4-808e-0f658d3b7086:Node 3845a78b-d34f-48a4-808e-0f658d3b7086 :: false

deleteSubnodes 1.028s
2022-11-24 21:37:41 |

2022-11-24 21:37:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:41 | ------------------------------------

2022-11-24 21:37:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bba1a9bc-9d98-469d-983a-a6048f08263b"
}

2022-11-24 21:37:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 21:37:42 | [Mutex] waiting for: [received:nodes:9d59241e-b92b-47b0-9f15-d15fd4274975:localhost]

2022-11-24 21:37:42 | [Mutex] received everything.

2022-11-24 21:37:42 | [Mutex] isItemNotified: received:node:9d59241e-b92b-47b0-9f15-d15fd4274975:localhost:node-bba1a9bc-9d98-469d-983a-a6048f08263b:Node bba1a9bc-9d98-469d-983a-a6048f08263b :: false

2022-11-24 21:37:42 | [Mutex] waiting for: [received:nodes:c6a3c212-c9bb-4957-b97e-8030d8b3d6d3:localhost]

2022-11-24 21:37:42 | [Mutex] received everything.

2022-11-24 21:37:42 | [Mutex] isItemNotified: received:node:c6a3c212-c9bb-4957-b97e-8030d8b3d6d3:localhost:node-bba1a9bc-9d98-469d-983a-a6048f08263b:Node bba1a9bc-9d98-469d-983a-a6048f08263b :: false

publishItemsToNodes 0.052s
2022-11-24 21:37:39 |

2022-11-24 21:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:39 | ------------------------------------

2022-11-24 21:37:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bba1a9bc-9d98-469d-983a-a6048f08263b",
    "entry": "<test>item-1c988568-d9f2-4729-84ea-ef3b33f9af81</test>",
    "item-id": "item-1c988568-d9f2-4729-84ea-ef3b33f9af81"
}

2022-11-24 21:37:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1c988568-d9f2-4729-84ea-ef3b33f9af81"
}

2022-11-24 21:37:39 | [Mutex] waiting for: [published:item:notifieditem-1c988568-d9f2-4729-84ea-ef3b33f9af81:admin@test-domain.com]

2022-11-24 21:37:39 | [Mutex] received everything.

2022-11-24 21:37:39 | [Mutex] isItemNotified: published:item:notifieditem-1c988568-d9f2-4729-84ea-ef3b33f9af81:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-11-24 21:37:40 |

2022-11-24 21:37:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:40 | ------------------------------------

2022-11-24 21:37:40 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bba1a9bc-9d98-469d-983a-a6048f08263b",
    "item-id": "item-1c988568-d9f2-4729-84ea-ef3b33f9af81"
}

2022-11-24 21:37:40 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1c988568-d9f2-4729-84ea-ef3b33f9af81"
}

2022-11-24 21:37:40 | [Mutex] waiting for: [retracted:item:notifieditem-1c988568-d9f2-4729-84ea-ef3b33f9af81:admin@test-domain.com]

2022-11-24 21:37:40 | [Mutex] received everything.

2022-11-24 21:37:40 | [Mutex] isItemNotified: retracted:item:notifieditem-1c988568-d9f2-4729-84ea-ef3b33f9af81:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-11-24 21:37:39 |

2022-11-24 21:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:39 | ------------------------------------

2022-11-24 21:37:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bba1a9bc-9d98-469d-983a-a6048f08263b",
    "item-id": "item-1c988568-d9f2-4729-84ea-ef3b33f9af81"
}

2022-11-24 21:37:40 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bba1a9bc-9d98-469d-983a-a6048f08263b",
    "item-id": "item-1c988568-d9f2-4729-84ea-ef3b33f9af81",
    "item": [
        "<item id=\"item-1c988568-d9f2-4729-84ea-ef3b33f9af81\"><test>item-1c988568-d9f2-4729-84ea-ef3b33f9af81</test></item>"
    ]
}

2022-11-24 21:37:40 | [Mutex] notify: [retrieved:item:item-1c988568-d9f2-4729-84ea-ef3b33f9af81:payload-matches:true:localhost]

2022-11-24 21:37:40 | [Mutex] received everything.

2022-11-24 21:37:40 | [Mutex] isItemNotified: retrieved:item:item-1c988568-d9f2-4729-84ea-ef3b33f9af81:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.080s
2022-11-24 21:37:40 |

2022-11-24 21:37:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:40 | ------------------------------------

2022-11-24 21:37:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-24 21:37:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-bba1a9bc-9d98-469d-983a-a6048f08263b",
        "node-3845a78b-d34f-48a4-808e-0f658d3b7086"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-11-24 21:37:40 |

2022-11-24 21:37:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:40 | ------------------------------------

2022-11-24 21:37:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bba1a9bc-9d98-469d-983a-a6048f08263b)"
}

2022-11-24 21:37:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-11-24 21:37:38 |

2022-11-24 21:37:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:38 | ------------------------------------

2022-11-24 21:37:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bba1a9bc-9d98-469d-983a-a6048f08263b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 21:37:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.135s
2022-11-24 21:37:40 |

2022-11-24 21:37:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 21:37:40 | ------------------------------------

2022-11-24 21:37:40 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bba1a9bc-9d98-469d-983a-a6048f08263b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 21:37:40 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}