Generated by TestNG with ReportNG at 05:54 PDT on Friday 23 September 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.627s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-09-23 06:08:46 |

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

2022-09-23 06:08:46 | ------------------------------------

2022-09-23 06:08:46 | [Mutex] waiting for: [configured:node:node-d52c4235-fc6a-41c3-bca9-5a36713006b0:node-7a9480ce-843f-4d80-8aa3-191f1b09d59f]

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

2022-09-23 06:08:46 | [Mutex] isItemNotified: configured:node:node-d52c4235-fc6a-41c3-bca9-5a36713006b0:node-7a9480ce-843f-4d80-8aa3-191f1b09d59f :: true

2022-09-23 06:08:47 | [Mutex] waiting for: [received:nodes:58b2dae5-08ae-4e49-8ae7-942a2560e294:localhost]

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

2022-09-23 06:08:47 | [Mutex] isItemNotified: received:node:58b2dae5-08ae-4e49-8ae7-942a2560e294:localhost:node-d52c4235-fc6a-41c3-bca9-5a36713006b0:Node d52c4235-fc6a-41c3-bca9-5a36713006b0 :: true

2022-09-23 06:08:47 | [Mutex] waiting for: [received:nodes:f57a4965-b4a9-404f-b6b3-bc2bd4b1f5b8:localhost]

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

2022-09-23 06:08:47 | [Mutex] isItemNotified: received:node:f57a4965-b4a9-404f-b6b3-bc2bd4b1f5b8:localhost:node-d52c4235-fc6a-41c3-bca9-5a36713006b0:Node d52c4235-fc6a-41c3-bca9-5a36713006b0 :: false

createNodes 1.594s
2022-09-23 06:08:44 |

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

2022-09-23 06:08:44 | ------------------------------------

2022-09-23 06:08:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d52c4235-fc6a-41c3-bca9-5a36713006b0",
    "pubsub#title": "Node d52c4235-fc6a-41c3-bca9-5a36713006b0"
}

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

2022-09-23 06:08:45 | [Mutex] waiting for: [received:nodes:bd397697-66cb-4367-8d7b-6a24ce95a207:localhost]

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

2022-09-23 06:08:45 | [Mutex] isItemNotified: received:node:bd397697-66cb-4367-8d7b-6a24ce95a207:localhost:node-d52c4235-fc6a-41c3-bca9-5a36713006b0:Node d52c4235-fc6a-41c3-bca9-5a36713006b0 :: true

createSubnodes 1.022s
2022-09-23 06:08:45 |

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

2022-09-23 06:08:45 | ------------------------------------

2022-09-23 06:08:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7a9480ce-843f-4d80-8aa3-191f1b09d59f",
    "pubsub#title": "Node 7a9480ce-843f-4d80-8aa3-191f1b09d59f"
}

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

2022-09-23 06:08:46 | [Mutex] waiting for: [received:nodes:5c73bb74-8cc8-47cc-85d6-b4a682a94c5e:localhost]

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

2022-09-23 06:08:46 | [Mutex] isItemNotified: received:node:5c73bb74-8cc8-47cc-85d6-b4a682a94c5e:localhost:node-7a9480ce-843f-4d80-8aa3-191f1b09d59f:Node 7a9480ce-843f-4d80-8aa3-191f1b09d59f :: true

deleteNodes 1.019s
2022-09-23 06:08:51 |

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

2022-09-23 06:08:51 | ------------------------------------

2022-09-23 06:08:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7a9480ce-843f-4d80-8aa3-191f1b09d59f"
}

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

2022-09-23 06:08:52 | [Mutex] waiting for: [received:nodes:2bd12747-7cbd-4b5f-a88a-fc00bd02e3aa:localhost]

2022-09-23 06:08:52 | [Mutex] waiting for: [received:nodes:2bd12747-7cbd-4b5f-a88a-fc00bd02e3aa:localhost]

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

2022-09-23 06:08:52 | [Mutex] isItemNotified: received:node:2bd12747-7cbd-4b5f-a88a-fc00bd02e3aa:localhost:node-7a9480ce-843f-4d80-8aa3-191f1b09d59f:Node 7a9480ce-843f-4d80-8aa3-191f1b09d59f :: false

deleteSubnodes 1.024s
2022-09-23 06:08:50 |

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

2022-09-23 06:08:50 | ------------------------------------

2022-09-23 06:08:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d52c4235-fc6a-41c3-bca9-5a36713006b0"
}

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

2022-09-23 06:08:51 | [Mutex] waiting for: [received:nodes:45fdacca-338b-48ec-a770-4cc66d6454e1:localhost]

2022-09-23 06:08:51 | [Mutex] waiting for: [received:nodes:45fdacca-338b-48ec-a770-4cc66d6454e1:localhost]

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

2022-09-23 06:08:51 | [Mutex] isItemNotified: received:node:45fdacca-338b-48ec-a770-4cc66d6454e1:localhost:node-d52c4235-fc6a-41c3-bca9-5a36713006b0:Node d52c4235-fc6a-41c3-bca9-5a36713006b0 :: false

2022-09-23 06:08:51 | [Mutex] waiting for: [received:nodes:7c2d546f-c6ca-409b-82a6-dda2e0b259ac:localhost]

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

2022-09-23 06:08:51 | [Mutex] isItemNotified: received:node:7c2d546f-c6ca-409b-82a6-dda2e0b259ac:localhost:node-d52c4235-fc6a-41c3-bca9-5a36713006b0:Node d52c4235-fc6a-41c3-bca9-5a36713006b0 :: false

publishItemsToNodes 0.040s
2022-09-23 06:08:48 |

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

2022-09-23 06:08:48 | ------------------------------------

2022-09-23 06:08:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d52c4235-fc6a-41c3-bca9-5a36713006b0",
    "entry": "<test>item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208</test>",
    "item-id": "item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208"
}

2022-09-23 06:08:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208"
}

2022-09-23 06:08:48 | [Mutex] waiting for: [published:item:notifieditem-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208:admin@test-domain.com]

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

2022-09-23 06:08:48 | [Mutex] isItemNotified: published:item:notifieditem-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-09-23 06:08:48 |

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

2022-09-23 06:08:48 | ------------------------------------

2022-09-23 06:08:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d52c4235-fc6a-41c3-bca9-5a36713006b0",
    "item-id": "item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208"
}

2022-09-23 06:08:49 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208"
}

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

2022-09-23 06:08:49 | [Mutex] isItemNotified: retracted:item:notifieditem-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2022-09-23 06:08:48 |

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

2022-09-23 06:08:48 | ------------------------------------

2022-09-23 06:08:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d52c4235-fc6a-41c3-bca9-5a36713006b0",
    "item-id": "item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208"
}

2022-09-23 06:08:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d52c4235-fc6a-41c3-bca9-5a36713006b0",
    "item-id": "item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208",
    "item": [
        "<item id=\"item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208\"><test>item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208</test></item>"
    ]
}

2022-09-23 06:08:48 | [Mutex] notify: [retrieved:item:item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208:payload-matches:true:localhost]

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

2022-09-23 06:08:48 | [Mutex] isItemNotified: retrieved:item:item-f6e5fa38-cc7b-4feb-aaa9-b38821ddc208:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-09-23 06:08:48 |

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

2022-09-23 06:08:48 | ------------------------------------

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

2022-09-23 06:08:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d52c4235-fc6a-41c3-bca9-5a36713006b0",
        "test",
        "node-7a9480ce-843f-4d80-8aa3-191f1b09d59f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-09-23 06:08:48 |

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

2022-09-23 06:08:48 | ------------------------------------

2022-09-23 06:08:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d52c4235-fc6a-41c3-bca9-5a36713006b0)"
}

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

subscribeNodes 1.011s
2022-09-23 06:08:47 |

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

2022-09-23 06:08:47 | ------------------------------------

2022-09-23 06:08:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d52c4235-fc6a-41c3-bca9-5a36713006b0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.083s
2022-09-23 06:08:49 |

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

2022-09-23 06:08:49 | ------------------------------------

2022-09-23 06:08:49 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d52c4235-fc6a-41c3-bca9-5a36713006b0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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