Generated by TestNG with ReportNG at 22:52 PDT on Sunday 18 September 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.675s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.149s
2022-09-18 23:06:14 |

2022-09-18 23:06:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:14 | ------------------------------------

2022-09-18 23:06:14 | [Mutex] waiting for: [configured:node:node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c:node-e1722fa2-40be-40df-a15f-2d3c0f2b5e25]

2022-09-18 23:06:14 | [Mutex] received everything.

2022-09-18 23:06:14 | [Mutex] isItemNotified: configured:node:node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c:node-e1722fa2-40be-40df-a15f-2d3c0f2b5e25 :: true

2022-09-18 23:06:15 | [Mutex] waiting for: [received:nodes:48d219ee-ee26-41dd-aa22-2b06386ec241:localhost]

2022-09-18 23:06:15 | [Mutex] received everything.

2022-09-18 23:06:15 | [Mutex] isItemNotified: received:node:48d219ee-ee26-41dd-aa22-2b06386ec241:localhost:node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c:Node 5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c :: true

2022-09-18 23:06:15 | [Mutex] waiting for: [received:nodes:c16d0239-3148-49e8-a3c8-567c0b57e7fd:localhost]

2022-09-18 23:06:15 | [Mutex] waiting for: [received:nodes:c16d0239-3148-49e8-a3c8-567c0b57e7fd:localhost]

2022-09-18 23:06:15 | [Mutex] received everything.

2022-09-18 23:06:15 | [Mutex] isItemNotified: received:node:c16d0239-3148-49e8-a3c8-567c0b57e7fd:localhost:node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c:Node 5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c :: false

createNodes 1.632s
2022-09-18 23:06:11 |

2022-09-18 23:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:11 | ------------------------------------

2022-09-18 23:06:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c",
    "pubsub#title": "Node 5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c"
}

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

2022-09-18 23:06:13 | [Mutex] waiting for: [received:nodes:d394e181-f662-4629-b0a6-dc743218e1c4:localhost]

2022-09-18 23:06:13 | [Mutex] waiting for: [received:nodes:d394e181-f662-4629-b0a6-dc743218e1c4:localhost]

2022-09-18 23:06:13 | [Mutex] received everything.

2022-09-18 23:06:13 | [Mutex] isItemNotified: received:node:d394e181-f662-4629-b0a6-dc743218e1c4:localhost:node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c:Node 5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c :: true

createSubnodes 1.029s
2022-09-18 23:06:13 |

2022-09-18 23:06:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:13 | ------------------------------------

2022-09-18 23:06:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e1722fa2-40be-40df-a15f-2d3c0f2b5e25",
    "pubsub#title": "Node e1722fa2-40be-40df-a15f-2d3c0f2b5e25"
}

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

2022-09-18 23:06:14 | [Mutex] waiting for: [received:nodes:8d663afb-3d8a-4112-a79e-54cd216004d9:localhost]

2022-09-18 23:06:14 | [Mutex] received everything.

2022-09-18 23:06:14 | [Mutex] isItemNotified: received:node:8d663afb-3d8a-4112-a79e-54cd216004d9:localhost:node-e1722fa2-40be-40df-a15f-2d3c0f2b5e25:Node e1722fa2-40be-40df-a15f-2d3c0f2b5e25 :: true

deleteNodes 1.019s
2022-09-18 23:06:18 |

2022-09-18 23:06:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:18 | ------------------------------------

2022-09-18 23:06:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e1722fa2-40be-40df-a15f-2d3c0f2b5e25"
}

2022-09-18 23:06:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-18 23:06:19 | [Mutex] waiting for: [received:nodes:fae68958-0ddc-4e3d-8fad-554c14ba9278:localhost]

2022-09-18 23:06:19 | [Mutex] waiting for: [received:nodes:fae68958-0ddc-4e3d-8fad-554c14ba9278:localhost]

2022-09-18 23:06:19 | [Mutex] received everything.

2022-09-18 23:06:19 | [Mutex] isItemNotified: received:node:fae68958-0ddc-4e3d-8fad-554c14ba9278:localhost:node-e1722fa2-40be-40df-a15f-2d3c0f2b5e25:Node e1722fa2-40be-40df-a15f-2d3c0f2b5e25 :: false

deleteSubnodes 1.023s
2022-09-18 23:06:17 |

2022-09-18 23:06:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:17 | ------------------------------------

2022-09-18 23:06:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c"
}

2022-09-18 23:06:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-18 23:06:18 | [Mutex] waiting for: [received:nodes:6ac7b345-178e-4302-9fe7-bd58144944b1:localhost]

2022-09-18 23:06:18 | [Mutex] received everything.

2022-09-18 23:06:18 | [Mutex] isItemNotified: received:node:6ac7b345-178e-4302-9fe7-bd58144944b1:localhost:node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c:Node 5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c :: false

2022-09-18 23:06:18 | [Mutex] waiting for: [received:nodes:cf4af086-9294-42cd-abc9-d0c44dc7fcf6:localhost]

2022-09-18 23:06:18 | [Mutex] received everything.

2022-09-18 23:06:18 | [Mutex] isItemNotified: received:node:cf4af086-9294-42cd-abc9-d0c44dc7fcf6:localhost:node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c:Node 5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c :: false

publishItemsToNodes 0.034s
2022-09-18 23:06:16 |

2022-09-18 23:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:16 | ------------------------------------

2022-09-18 23:06:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c",
    "entry": "<test>item-afb5e090-aadb-44f4-8e95-84b90ede8abf</test>",
    "item-id": "item-afb5e090-aadb-44f4-8e95-84b90ede8abf"
}

2022-09-18 23:06:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-afb5e090-aadb-44f4-8e95-84b90ede8abf"
}

2022-09-18 23:06:16 | [Mutex] waiting for: [published:item:notifieditem-afb5e090-aadb-44f4-8e95-84b90ede8abf:admin@test-domain.com]

2022-09-18 23:06:16 | [Mutex] received everything.

2022-09-18 23:06:16 | [Mutex] isItemNotified: published:item:notifieditem-afb5e090-aadb-44f4-8e95-84b90ede8abf:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2022-09-18 23:06:16 |

2022-09-18 23:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:16 | ------------------------------------

2022-09-18 23:06:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c",
    "item-id": "item-afb5e090-aadb-44f4-8e95-84b90ede8abf"
}

2022-09-18 23:06:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-afb5e090-aadb-44f4-8e95-84b90ede8abf"
}

2022-09-18 23:06:16 | [Mutex] waiting for: [retracted:item:notifieditem-afb5e090-aadb-44f4-8e95-84b90ede8abf:admin@test-domain.com]

2022-09-18 23:06:16 | [Mutex] received everything.

2022-09-18 23:06:16 | [Mutex] isItemNotified: retracted:item:notifieditem-afb5e090-aadb-44f4-8e95-84b90ede8abf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-09-18 23:06:16 |

2022-09-18 23:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:16 | ------------------------------------

2022-09-18 23:06:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c",
    "item-id": "item-afb5e090-aadb-44f4-8e95-84b90ede8abf"
}

2022-09-18 23:06:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c",
    "item-id": "item-afb5e090-aadb-44f4-8e95-84b90ede8abf",
    "item": [
        "<item id=\"item-afb5e090-aadb-44f4-8e95-84b90ede8abf\"><test>item-afb5e090-aadb-44f4-8e95-84b90ede8abf</test></item>"
    ]
}

2022-09-18 23:06:16 | [Mutex] notify: [retrieved:item:item-afb5e090-aadb-44f4-8e95-84b90ede8abf:payload-matches:true:localhost]

2022-09-18 23:06:16 | [Mutex] received everything.

2022-09-18 23:06:16 | [Mutex] isItemNotified: retrieved:item:item-afb5e090-aadb-44f4-8e95-84b90ede8abf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-09-18 23:06:16 |

2022-09-18 23:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:16 | ------------------------------------

2022-09-18 23:06:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-18 23:06:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c",
        "node-e1722fa2-40be-40df-a15f-2d3c0f2b5e25"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-09-18 23:06:16 |

2022-09-18 23:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:16 | ------------------------------------

2022-09-18 23:06:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c)"
}

2022-09-18 23:06:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-09-18 23:06:15 |

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

2022-09-18 23:06:15 | ------------------------------------

2022-09-18 23:06:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-09-18 23:06:16 |

2022-09-18 23:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:06:16 | ------------------------------------

2022-09-18 23:06:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5c2e96bd-40d3-4064-a69d-f52a8e3c3d6c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-18 23:06:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}