Generated by TestNG with ReportNG at 22:17 PDT on Wednesday 06 July 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.531s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-07-06 22:33:02 |

2022-07-06 22:33:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:02 | ------------------------------------

2022-07-06 22:33:02 | [Mutex] waiting for: [configured:node:node-ff3750d6-3079-45c8-ae48-e3b63bfc2321:node-01b0e1e9-1b43-4ba2-b777-848110d58776]

2022-07-06 22:33:02 | [Mutex] received everything.

2022-07-06 22:33:02 | [Mutex] isItemNotified: configured:node:node-ff3750d6-3079-45c8-ae48-e3b63bfc2321:node-01b0e1e9-1b43-4ba2-b777-848110d58776 :: true

2022-07-06 22:33:03 | [Mutex] waiting for: [received:nodes:d179592a-a2ca-419d-967c-835d84326365:localhost]

2022-07-06 22:33:03 | [Mutex] received everything.

2022-07-06 22:33:03 | [Mutex] isItemNotified: received:node:d179592a-a2ca-419d-967c-835d84326365:localhost:node-ff3750d6-3079-45c8-ae48-e3b63bfc2321:Node ff3750d6-3079-45c8-ae48-e3b63bfc2321 :: true

2022-07-06 22:33:03 | [Mutex] waiting for: [received:nodes:f1b8cacc-6b13-4db2-8f6e-aa310a522579:localhost]

2022-07-06 22:33:03 | [Mutex] received everything.

2022-07-06 22:33:03 | [Mutex] isItemNotified: received:node:f1b8cacc-6b13-4db2-8f6e-aa310a522579:localhost:node-ff3750d6-3079-45c8-ae48-e3b63bfc2321:Node ff3750d6-3079-45c8-ae48-e3b63bfc2321 :: false

createNodes 1.543s
2022-07-06 22:32:59 |

2022-07-06 22:32:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:32:59 | ------------------------------------

2022-07-06 22:32:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ff3750d6-3079-45c8-ae48-e3b63bfc2321",
    "pubsub#title": "Node ff3750d6-3079-45c8-ae48-e3b63bfc2321"
}

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

2022-07-06 22:33:01 | [Mutex] waiting for: [received:nodes:aad99efb-c62d-4a4a-9db6-f32383afd20e:localhost]

2022-07-06 22:33:01 | [Mutex] waiting for: [received:nodes:aad99efb-c62d-4a4a-9db6-f32383afd20e:localhost]

2022-07-06 22:33:01 | [Mutex] waiting for: [received:nodes:aad99efb-c62d-4a4a-9db6-f32383afd20e:localhost]

2022-07-06 22:33:01 | [Mutex] received everything.

2022-07-06 22:33:01 | [Mutex] isItemNotified: received:node:aad99efb-c62d-4a4a-9db6-f32383afd20e:localhost:node-ff3750d6-3079-45c8-ae48-e3b63bfc2321:Node ff3750d6-3079-45c8-ae48-e3b63bfc2321 :: true

createSubnodes 1.022s
2022-07-06 22:33:01 |

2022-07-06 22:33:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:01 | ------------------------------------

2022-07-06 22:33: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-01b0e1e9-1b43-4ba2-b777-848110d58776",
    "pubsub#title": "Node 01b0e1e9-1b43-4ba2-b777-848110d58776"
}

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

2022-07-06 22:33:02 | [Mutex] waiting for: [received:nodes:5424d12f-cc43-4edb-aa9e-8bf712811702:localhost]

2022-07-06 22:33:02 | [Mutex] received everything.

2022-07-06 22:33:02 | [Mutex] isItemNotified: received:node:5424d12f-cc43-4edb-aa9e-8bf712811702:localhost:node-01b0e1e9-1b43-4ba2-b777-848110d58776:Node 01b0e1e9-1b43-4ba2-b777-848110d58776 :: true

deleteNodes 1.017s
2022-07-06 22:33:06 |

2022-07-06 22:33:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:06 | ------------------------------------

2022-07-06 22:33:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-01b0e1e9-1b43-4ba2-b777-848110d58776"
}

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

2022-07-06 22:33:07 | [Mutex] waiting for: [received:nodes:16cfc75b-741f-4713-b57a-479f545e0502:localhost]

2022-07-06 22:33:07 | [Mutex] received everything.

2022-07-06 22:33:07 | [Mutex] isItemNotified: received:node:16cfc75b-741f-4713-b57a-479f545e0502:localhost:node-01b0e1e9-1b43-4ba2-b777-848110d58776:Node 01b0e1e9-1b43-4ba2-b777-848110d58776 :: false

deleteSubnodes 1.024s
2022-07-06 22:33:05 |

2022-07-06 22:33:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:05 | ------------------------------------

2022-07-06 22:33:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ff3750d6-3079-45c8-ae48-e3b63bfc2321"
}

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

2022-07-06 22:33:06 | [Mutex] waiting for: [received:nodes:22544b6f-c28f-43ce-863a-30c5579084b4:localhost]

2022-07-06 22:33:06 | [Mutex] received everything.

2022-07-06 22:33:06 | [Mutex] isItemNotified: received:node:22544b6f-c28f-43ce-863a-30c5579084b4:localhost:node-ff3750d6-3079-45c8-ae48-e3b63bfc2321:Node ff3750d6-3079-45c8-ae48-e3b63bfc2321 :: false

2022-07-06 22:33:06 | [Mutex] waiting for: [received:nodes:9c6e18fb-2fb6-4a49-b7f6-7f70190feace:localhost]

2022-07-06 22:33:06 | [Mutex] received everything.

2022-07-06 22:33:06 | [Mutex] isItemNotified: received:node:9c6e18fb-2fb6-4a49-b7f6-7f70190feace:localhost:node-ff3750d6-3079-45c8-ae48-e3b63bfc2321:Node ff3750d6-3079-45c8-ae48-e3b63bfc2321 :: false

publishItemsToNodes 0.048s
2022-07-06 22:33:04 |

2022-07-06 22:33:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:04 | ------------------------------------

2022-07-06 22:33:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ff3750d6-3079-45c8-ae48-e3b63bfc2321",
    "entry": "<test>item-aa4b4317-5773-4426-a7f2-0d54a8d332d4</test>",
    "item-id": "item-aa4b4317-5773-4426-a7f2-0d54a8d332d4"
}

2022-07-06 22:33:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa4b4317-5773-4426-a7f2-0d54a8d332d4"
}

2022-07-06 22:33:04 | [Mutex] waiting for: [published:item:notifieditem-aa4b4317-5773-4426-a7f2-0d54a8d332d4:admin@test-domain.com]

2022-07-06 22:33:04 | [Mutex] received everything.

2022-07-06 22:33:04 | [Mutex] isItemNotified: published:item:notifieditem-aa4b4317-5773-4426-a7f2-0d54a8d332d4:admin@test-domain.com :: true

retractItemsFromNodes 0.105s
2022-07-06 22:33:04 |

2022-07-06 22:33:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:04 | ------------------------------------

2022-07-06 22:33:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ff3750d6-3079-45c8-ae48-e3b63bfc2321",
    "item-id": "item-aa4b4317-5773-4426-a7f2-0d54a8d332d4"
}

2022-07-06 22:33:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa4b4317-5773-4426-a7f2-0d54a8d332d4"
}

2022-07-06 22:33:04 | [Mutex] waiting for: [retracted:item:notifieditem-aa4b4317-5773-4426-a7f2-0d54a8d332d4:admin@test-domain.com]

2022-07-06 22:33:04 | [Mutex] received everything.

2022-07-06 22:33:04 | [Mutex] isItemNotified: retracted:item:notifieditem-aa4b4317-5773-4426-a7f2-0d54a8d332d4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2022-07-06 22:33:04 |

2022-07-06 22:33:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:04 | ------------------------------------

2022-07-06 22:33:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ff3750d6-3079-45c8-ae48-e3b63bfc2321",
    "item-id": "item-aa4b4317-5773-4426-a7f2-0d54a8d332d4"
}

2022-07-06 22:33:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ff3750d6-3079-45c8-ae48-e3b63bfc2321",
    "item-id": "item-aa4b4317-5773-4426-a7f2-0d54a8d332d4",
    "item": [
        "<item id=\"item-aa4b4317-5773-4426-a7f2-0d54a8d332d4\"><test>item-aa4b4317-5773-4426-a7f2-0d54a8d332d4</test></item>"
    ]
}

2022-07-06 22:33:04 | [Mutex] notify: [retrieved:item:item-aa4b4317-5773-4426-a7f2-0d54a8d332d4:payload-matches:true:localhost]

2022-07-06 22:33:04 | [Mutex] received everything.

2022-07-06 22:33:04 | [Mutex] isItemNotified: retrieved:item:item-aa4b4317-5773-4426-a7f2-0d54a8d332d4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-07-06 22:33:04 |

2022-07-06 22:33:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:04 | ------------------------------------

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

2022-07-06 22:33:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-01b0e1e9-1b43-4ba2-b777-848110d58776",
        "test",
        "node-ff3750d6-3079-45c8-ae48-e3b63bfc2321"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-06 22:33:04 |

2022-07-06 22:33:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:04 | ------------------------------------

2022-07-06 22:33:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ff3750d6-3079-45c8-ae48-e3b63bfc2321)"
}

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

subscribeNodes 1.010s
2022-07-06 22:33:03 |

2022-07-06 22:33:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:03 | ------------------------------------

2022-07-06 22:33:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ff3750d6-3079-45c8-ae48-e3b63bfc2321",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.019s
2022-07-06 22:33:04 |

2022-07-06 22:33:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-06 22:33:04 | ------------------------------------

2022-07-06 22:33:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ff3750d6-3079-45c8-ae48-e3b63bfc2321",
    "jids": [
        "admin@test-domain.com"
    ]
}

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