Generated by TestNG with ReportNG at 21:29 PST on Wednesday 01 February 2023
root@7c41cec37518 / 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.676s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2023-02-01 21:45:16 |

2023-02-01 21:45:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:16 | ------------------------------------

2023-02-01 21:45:16 | [Mutex] waiting for: [configured:node:node-51002aa5-a7e5-4354-9c75-4e71473cff44:node-8a2e083e-d18e-40d9-8b37-070ad2384308]

2023-02-01 21:45:16 | [Mutex] received everything.

2023-02-01 21:45:16 | [Mutex] isItemNotified: configured:node:node-51002aa5-a7e5-4354-9c75-4e71473cff44:node-8a2e083e-d18e-40d9-8b37-070ad2384308 :: true

2023-02-01 21:45:17 | [Mutex] waiting for: [received:nodes:c5faf8d5-948e-41ac-a63c-7ec0d1c4fa63:localhost]

2023-02-01 21:45:17 | [Mutex] received everything.

2023-02-01 21:45:17 | [Mutex] isItemNotified: received:node:c5faf8d5-948e-41ac-a63c-7ec0d1c4fa63:localhost:node-51002aa5-a7e5-4354-9c75-4e71473cff44:Node 51002aa5-a7e5-4354-9c75-4e71473cff44 :: true

2023-02-01 21:45:17 | [Mutex] waiting for: [received:nodes:c4bb93ac-7e4d-4de2-8372-753ef5d3f18e:localhost]

2023-02-01 21:45:17 | [Mutex] waiting for: [received:nodes:c4bb93ac-7e4d-4de2-8372-753ef5d3f18e:localhost]

2023-02-01 21:45:17 | [Mutex] waiting for: [received:nodes:c4bb93ac-7e4d-4de2-8372-753ef5d3f18e:localhost]

2023-02-01 21:45:17 | [Mutex] waiting for: [received:nodes:c4bb93ac-7e4d-4de2-8372-753ef5d3f18e:localhost]

2023-02-01 21:45:17 | [Mutex] received everything.

2023-02-01 21:45:17 | [Mutex] isItemNotified: received:node:c4bb93ac-7e4d-4de2-8372-753ef5d3f18e:localhost:node-51002aa5-a7e5-4354-9c75-4e71473cff44:Node 51002aa5-a7e5-4354-9c75-4e71473cff44 :: false

createNodes 1.646s
2023-02-01 21:45:13 |

2023-02-01 21:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:13 | ------------------------------------

2023-02-01 21:45:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-51002aa5-a7e5-4354-9c75-4e71473cff44",
    "pubsub#title": "Node 51002aa5-a7e5-4354-9c75-4e71473cff44"
}

2023-02-01 21:45:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:45:15 | [Mutex] waiting for: [received:nodes:c6f11a17-2274-4bc6-bbda-0c316a67a435:localhost]

2023-02-01 21:45:15 | [Mutex] waiting for: [received:nodes:c6f11a17-2274-4bc6-bbda-0c316a67a435:localhost]

2023-02-01 21:45:15 | [Mutex] waiting for: [received:nodes:c6f11a17-2274-4bc6-bbda-0c316a67a435:localhost]

2023-02-01 21:45:15 | [Mutex] waiting for: [received:nodes:c6f11a17-2274-4bc6-bbda-0c316a67a435:localhost]

2023-02-01 21:45:15 | [Mutex] received everything.

2023-02-01 21:45:15 | [Mutex] isItemNotified: received:node:c6f11a17-2274-4bc6-bbda-0c316a67a435:localhost:node-51002aa5-a7e5-4354-9c75-4e71473cff44:Node 51002aa5-a7e5-4354-9c75-4e71473cff44 :: true

createSubnodes 1.032s
2023-02-01 21:45:15 |

2023-02-01 21:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:15 | ------------------------------------

2023-02-01 21:45:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8a2e083e-d18e-40d9-8b37-070ad2384308",
    "pubsub#title": "Node 8a2e083e-d18e-40d9-8b37-070ad2384308"
}

2023-02-01 21:45:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:45:16 | [Mutex] waiting for: [received:nodes:dc47cfdc-5871-485b-9536-5851251e5adb:localhost]

2023-02-01 21:45:16 | [Mutex] waiting for: [received:nodes:dc47cfdc-5871-485b-9536-5851251e5adb:localhost]

2023-02-01 21:45:16 | [Mutex] waiting for: [received:nodes:dc47cfdc-5871-485b-9536-5851251e5adb:localhost]

2023-02-01 21:45:16 | [Mutex] waiting for: [received:nodes:dc47cfdc-5871-485b-9536-5851251e5adb:localhost]

2023-02-01 21:45:16 | [Mutex] waiting for: [received:nodes:dc47cfdc-5871-485b-9536-5851251e5adb:localhost]

2023-02-01 21:45:16 | [Mutex] received everything.

2023-02-01 21:45:16 | [Mutex] isItemNotified: received:node:dc47cfdc-5871-485b-9536-5851251e5adb:localhost:node-8a2e083e-d18e-40d9-8b37-070ad2384308:Node 8a2e083e-d18e-40d9-8b37-070ad2384308 :: true

deleteNodes 1.023s
2023-02-01 21:45:21 |

2023-02-01 21:45:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:21 | ------------------------------------

2023-02-01 21:45:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8a2e083e-d18e-40d9-8b37-070ad2384308"
}

2023-02-01 21:45:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:45:22 | [Mutex] waiting for: [received:nodes:c33009e4-b27d-48fa-a1bb-c29d6be73c47:localhost]

2023-02-01 21:45:22 | [Mutex] waiting for: [received:nodes:c33009e4-b27d-48fa-a1bb-c29d6be73c47:localhost]

2023-02-01 21:45:22 | [Mutex] received everything.

2023-02-01 21:45:22 | [Mutex] isItemNotified: received:node:c33009e4-b27d-48fa-a1bb-c29d6be73c47:localhost:node-8a2e083e-d18e-40d9-8b37-070ad2384308:Node 8a2e083e-d18e-40d9-8b37-070ad2384308 :: false

deleteSubnodes 1.028s
2023-02-01 21:45:20 |

2023-02-01 21:45:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:20 | ------------------------------------

2023-02-01 21:45:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-51002aa5-a7e5-4354-9c75-4e71473cff44"
}

2023-02-01 21:45:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:45:21 | [Mutex] waiting for: [received:nodes:d965ecf2-44f2-4494-a4da-55f38494fa43:localhost]

2023-02-01 21:45:21 | [Mutex] waiting for: [received:nodes:d965ecf2-44f2-4494-a4da-55f38494fa43:localhost]

2023-02-01 21:45:21 | [Mutex] waiting for: [received:nodes:d965ecf2-44f2-4494-a4da-55f38494fa43:localhost]

2023-02-01 21:45:21 | [Mutex] waiting for: [received:nodes:d965ecf2-44f2-4494-a4da-55f38494fa43:localhost]

2023-02-01 21:45:21 | [Mutex] received everything.

2023-02-01 21:45:21 | [Mutex] isItemNotified: received:node:d965ecf2-44f2-4494-a4da-55f38494fa43:localhost:node-51002aa5-a7e5-4354-9c75-4e71473cff44:Node 51002aa5-a7e5-4354-9c75-4e71473cff44 :: false

2023-02-01 21:45:21 | [Mutex] waiting for: [received:nodes:4d4dcb73-5548-4e48-8b16-d22af9ce43a1:localhost]

2023-02-01 21:45:21 | [Mutex] received everything.

2023-02-01 21:45:21 | [Mutex] isItemNotified: received:node:4d4dcb73-5548-4e48-8b16-d22af9ce43a1:localhost:node-51002aa5-a7e5-4354-9c75-4e71473cff44:Node 51002aa5-a7e5-4354-9c75-4e71473cff44 :: false

publishItemsToNodes 0.045s
2023-02-01 21:45:18 |

2023-02-01 21:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:18 | ------------------------------------

2023-02-01 21:45:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-51002aa5-a7e5-4354-9c75-4e71473cff44",
    "entry": "<test>item-aa5c373b-79c2-404d-847d-b3666300b47b</test>",
    "item-id": "item-aa5c373b-79c2-404d-847d-b3666300b47b"
}

2023-02-01 21:45:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa5c373b-79c2-404d-847d-b3666300b47b"
}

2023-02-01 21:45:18 | [Mutex] waiting for: [published:item:notifieditem-aa5c373b-79c2-404d-847d-b3666300b47b:admin@test-domain.com]

2023-02-01 21:45:18 | [Mutex] received everything.

2023-02-01 21:45:18 | [Mutex] isItemNotified: published:item:notifieditem-aa5c373b-79c2-404d-847d-b3666300b47b:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-02-01 21:45:18 |

2023-02-01 21:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:18 | ------------------------------------

2023-02-01 21:45:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-51002aa5-a7e5-4354-9c75-4e71473cff44",
    "item-id": "item-aa5c373b-79c2-404d-847d-b3666300b47b"
}

2023-02-01 21:45:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa5c373b-79c2-404d-847d-b3666300b47b"
}

2023-02-01 21:45:18 | [Mutex] received everything.

2023-02-01 21:45:18 | [Mutex] isItemNotified: retracted:item:notifieditem-aa5c373b-79c2-404d-847d-b3666300b47b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2023-02-01 21:45:18 |

2023-02-01 21:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:18 | ------------------------------------

2023-02-01 21:45:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-51002aa5-a7e5-4354-9c75-4e71473cff44",
    "item-id": "item-aa5c373b-79c2-404d-847d-b3666300b47b"
}

2023-02-01 21:45:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-51002aa5-a7e5-4354-9c75-4e71473cff44",
    "item-id": "item-aa5c373b-79c2-404d-847d-b3666300b47b",
    "item": [
        "<item id=\"item-aa5c373b-79c2-404d-847d-b3666300b47b\"><test>item-aa5c373b-79c2-404d-847d-b3666300b47b</test></item>"
    ]
}

2023-02-01 21:45:18 | [Mutex] notify: [retrieved:item:item-aa5c373b-79c2-404d-847d-b3666300b47b:payload-matches:true:localhost]

2023-02-01 21:45:18 | [Mutex] received everything.

2023-02-01 21:45:18 | [Mutex] isItemNotified: retrieved:item:item-aa5c373b-79c2-404d-847d-b3666300b47b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-02-01 21:45:18 |

2023-02-01 21:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:18 | ------------------------------------

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

2023-02-01 21:45:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-51002aa5-a7e5-4354-9c75-4e71473cff44",
        "node-8a2e083e-d18e-40d9-8b37-070ad2384308"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-02-01 21:45:18 |

2023-02-01 21:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:18 | ------------------------------------

2023-02-01 21:45:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-51002aa5-a7e5-4354-9c75-4e71473cff44)"
}

2023-02-01 21:45:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-02-01 21:45:17 |

2023-02-01 21:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:17 | ------------------------------------

2023-02-01 21:45:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-51002aa5-a7e5-4354-9c75-4e71473cff44",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-01 21:45:17 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2023-02-01 21:45:18 |

2023-02-01 21:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:45:18 | ------------------------------------

2023-02-01 21:45:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-51002aa5-a7e5-4354-9c75-4e71473cff44",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-01 21:45:19 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}