Generated by TestNG with ReportNG at 22:25 PDT on Tuesday 10 May 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.807s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2022-05-10 22:39:35 |

2022-05-10 22:39:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:35 | ------------------------------------

2022-05-10 22:39:35 | [Mutex] waiting for: [configured:node:node-995b8d5e-300d-4f86-b2c3-fd73e010ef76:node-6edc6441-6214-4769-bb70-5a9178661671]

2022-05-10 22:39:35 | [Mutex] received everything.

2022-05-10 22:39:35 | [Mutex] isItemNotified: configured:node:node-995b8d5e-300d-4f86-b2c3-fd73e010ef76:node-6edc6441-6214-4769-bb70-5a9178661671 :: true

2022-05-10 22:39:36 | [Mutex] waiting for: [received:nodes:ed7ca245-3c1a-474a-9c9d-a01a4ad2fc31:localhost]

2022-05-10 22:39:36 | [Mutex] received everything.

2022-05-10 22:39:36 | [Mutex] isItemNotified: received:node:ed7ca245-3c1a-474a-9c9d-a01a4ad2fc31:localhost:node-995b8d5e-300d-4f86-b2c3-fd73e010ef76:Node 995b8d5e-300d-4f86-b2c3-fd73e010ef76 :: true

2022-05-10 22:39:36 | [Mutex] waiting for: [received:nodes:699ab2a4-c920-4b94-9739-65ae2eaca974:localhost]

2022-05-10 22:39:36 | [Mutex] received everything.

2022-05-10 22:39:36 | [Mutex] isItemNotified: received:node:699ab2a4-c920-4b94-9739-65ae2eaca974:localhost:node-995b8d5e-300d-4f86-b2c3-fd73e010ef76:Node 995b8d5e-300d-4f86-b2c3-fd73e010ef76 :: false

createNodes 1.596s
2022-05-10 22:39:33 |

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

2022-05-10 22:39:33 | ------------------------------------

2022-05-10 22:39:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-995b8d5e-300d-4f86-b2c3-fd73e010ef76",
    "pubsub#title": "Node 995b8d5e-300d-4f86-b2c3-fd73e010ef76"
}

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

2022-05-10 22:39:34 | [Mutex] waiting for: [received:nodes:fad8aca7-a351-4992-9cf9-297b99833769:localhost]

2022-05-10 22:39:34 | [Mutex] waiting for: [received:nodes:fad8aca7-a351-4992-9cf9-297b99833769:localhost]

2022-05-10 22:39:34 | [Mutex] received everything.

2022-05-10 22:39:34 | [Mutex] isItemNotified: received:node:fad8aca7-a351-4992-9cf9-297b99833769:localhost:node-995b8d5e-300d-4f86-b2c3-fd73e010ef76:Node 995b8d5e-300d-4f86-b2c3-fd73e010ef76 :: true

createSubnodes 1.032s
2022-05-10 22:39:34 |

2022-05-10 22:39:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:34 | ------------------------------------

2022-05-10 22:39:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6edc6441-6214-4769-bb70-5a9178661671",
    "pubsub#title": "Node 6edc6441-6214-4769-bb70-5a9178661671"
}

2022-05-10 22:39:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-10 22:39:35 | [Mutex] waiting for: [received:nodes:44030e08-f267-432e-b702-3b8270156b6b:localhost]

2022-05-10 22:39:35 | [Mutex] waiting for: [received:nodes:44030e08-f267-432e-b702-3b8270156b6b:localhost]

2022-05-10 22:39:35 | [Mutex] received everything.

2022-05-10 22:39:35 | [Mutex] isItemNotified: received:node:44030e08-f267-432e-b702-3b8270156b6b:localhost:node-6edc6441-6214-4769-bb70-5a9178661671:Node 6edc6441-6214-4769-bb70-5a9178661671 :: true

deleteNodes 1.030s
2022-05-10 22:39:40 |

2022-05-10 22:39:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:40 | ------------------------------------

2022-05-10 22:39:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6edc6441-6214-4769-bb70-5a9178661671"
}

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

2022-05-10 22:39:41 | [Mutex] waiting for: [received:nodes:efb66a62-9fd9-4a84-85f3-af2e37093e12:localhost]

2022-05-10 22:39:41 | [Mutex] waiting for: [received:nodes:efb66a62-9fd9-4a84-85f3-af2e37093e12:localhost]

2022-05-10 22:39:41 | [Mutex] received everything.

2022-05-10 22:39:41 | [Mutex] isItemNotified: received:node:efb66a62-9fd9-4a84-85f3-af2e37093e12:localhost:node-6edc6441-6214-4769-bb70-5a9178661671:Node 6edc6441-6214-4769-bb70-5a9178661671 :: false

deleteSubnodes 1.027s
2022-05-10 22:39:39 |

2022-05-10 22:39:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:39 | ------------------------------------

2022-05-10 22:39:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-995b8d5e-300d-4f86-b2c3-fd73e010ef76"
}

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

2022-05-10 22:39:40 | [Mutex] waiting for: [received:nodes:c165a4da-e870-4683-8fd9-c5f84b8b5f24:localhost]

2022-05-10 22:39:40 | [Mutex] waiting for: [received:nodes:c165a4da-e870-4683-8fd9-c5f84b8b5f24:localhost]

2022-05-10 22:39:40 | [Mutex] received everything.

2022-05-10 22:39:40 | [Mutex] isItemNotified: received:node:c165a4da-e870-4683-8fd9-c5f84b8b5f24:localhost:node-995b8d5e-300d-4f86-b2c3-fd73e010ef76:Node 995b8d5e-300d-4f86-b2c3-fd73e010ef76 :: false

2022-05-10 22:39:40 | [Mutex] waiting for: [received:nodes:ae3f9e93-1559-49ae-b0a8-34c80be52d8b:localhost]

2022-05-10 22:39:40 | [Mutex] received everything.

2022-05-10 22:39:40 | [Mutex] isItemNotified: received:node:ae3f9e93-1559-49ae-b0a8-34c80be52d8b:localhost:node-995b8d5e-300d-4f86-b2c3-fd73e010ef76:Node 995b8d5e-300d-4f86-b2c3-fd73e010ef76 :: false

publishItemsToNodes 0.051s
2022-05-10 22:39:37 |

2022-05-10 22:39:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:37 | ------------------------------------

2022-05-10 22:39:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-995b8d5e-300d-4f86-b2c3-fd73e010ef76",
    "entry": "<test>item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d</test>",
    "item-id": "item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d"
}

2022-05-10 22:39:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d"
}

2022-05-10 22:39:38 | [Mutex] received everything.

2022-05-10 22:39:38 | [Mutex] isItemNotified: published:item:notifieditem-32bb4bbc-9735-4336-8ade-7b16dcc9f23d:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-05-10 22:39:38 |

2022-05-10 22:39:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:38 | ------------------------------------

2022-05-10 22:39:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-995b8d5e-300d-4f86-b2c3-fd73e010ef76",
    "item-id": "item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d"
}

2022-05-10 22:39:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d"
}

2022-05-10 22:39:38 | [Mutex] received everything.

2022-05-10 22:39:38 | [Mutex] isItemNotified: retracted:item:notifieditem-32bb4bbc-9735-4336-8ade-7b16dcc9f23d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2022-05-10 22:39:38 |

2022-05-10 22:39:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:38 | ------------------------------------

2022-05-10 22:39:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-995b8d5e-300d-4f86-b2c3-fd73e010ef76",
    "item-id": "item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d"
}

2022-05-10 22:39:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-995b8d5e-300d-4f86-b2c3-fd73e010ef76",
    "item-id": "item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d",
    "item": [
        "<item id=\"item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d\"><test>item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d</test></item>"
    ]
}

2022-05-10 22:39:38 | [Mutex] notify: [retrieved:item:item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d:payload-matches:true:localhost]

2022-05-10 22:39:38 | [Mutex] received everything.

2022-05-10 22:39:38 | [Mutex] isItemNotified: retrieved:item:item-32bb4bbc-9735-4336-8ade-7b16dcc9f23d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-05-10 22:39:38 |

2022-05-10 22:39:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:38 | ------------------------------------

2022-05-10 22:39:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-10 22:39:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-995b8d5e-300d-4f86-b2c3-fd73e010ef76",
        "test",
        "node-6edc6441-6214-4769-bb70-5a9178661671"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-05-10 22:39:38 |

2022-05-10 22:39:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:38 | ------------------------------------

2022-05-10 22:39:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-995b8d5e-300d-4f86-b2c3-fd73e010ef76)"
}

2022-05-10 22:39:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-05-10 22:39:36 |

2022-05-10 22:39:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:36 | ------------------------------------

2022-05-10 22:39:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-995b8d5e-300d-4f86-b2c3-fd73e010ef76",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-10 22:39:36 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-05-10 22:39:38 |

2022-05-10 22:39:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-10 22:39:38 | ------------------------------------

2022-05-10 22:39:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-995b8d5e-300d-4f86-b2c3-fd73e010ef76",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-10 22:39:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}