Generated by TestNG with ReportNG at 22:25 PDT on Sunday 29 May 2022
root@21fb2cc9076b / 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.956s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2022-05-29 22:40:03 |

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

2022-05-29 22:40:03 | ------------------------------------

2022-05-29 22:40:03 | [Mutex] waiting for: [configured:node:node-5ce9b77f-7598-441b-bfd6-f42bccc18f66:node-d1aab49f-c5c5-4839-b2ac-b3423f86025f]

2022-05-29 22:40:03 | [Mutex] received everything.

2022-05-29 22:40:03 | [Mutex] isItemNotified: configured:node:node-5ce9b77f-7598-441b-bfd6-f42bccc18f66:node-d1aab49f-c5c5-4839-b2ac-b3423f86025f :: true

2022-05-29 22:40:04 | [Mutex] waiting for: [received:nodes:4efa07fa-698f-4274-8e45-6b672d29a552:localhost]

2022-05-29 22:40:04 | [Mutex] received everything.

2022-05-29 22:40:04 | [Mutex] isItemNotified: received:node:4efa07fa-698f-4274-8e45-6b672d29a552:localhost:node-5ce9b77f-7598-441b-bfd6-f42bccc18f66:Node 5ce9b77f-7598-441b-bfd6-f42bccc18f66 :: true

2022-05-29 22:40:04 | [Mutex] waiting for: [received:nodes:a63e813b-b602-4088-9ca9-e59ceea93767:localhost]

2022-05-29 22:40:04 | [Mutex] waiting for: [received:nodes:a63e813b-b602-4088-9ca9-e59ceea93767:localhost]

2022-05-29 22:40:04 | [Mutex] received everything.

2022-05-29 22:40:04 | [Mutex] isItemNotified: received:node:a63e813b-b602-4088-9ca9-e59ceea93767:localhost:node-5ce9b77f-7598-441b-bfd6-f42bccc18f66:Node 5ce9b77f-7598-441b-bfd6-f42bccc18f66 :: false

createNodes 1.659s
2022-05-29 22:40:00 |

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

2022-05-29 22:40:00 | ------------------------------------

2022-05-29 22:40:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5ce9b77f-7598-441b-bfd6-f42bccc18f66",
    "pubsub#title": "Node 5ce9b77f-7598-441b-bfd6-f42bccc18f66"
}

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

2022-05-29 22:40:02 | [Mutex] waiting for: [received:nodes:0e9f2653-129a-49f7-b775-9d48c3582b2f:localhost]

2022-05-29 22:40:02 | [Mutex] waiting for: [received:nodes:0e9f2653-129a-49f7-b775-9d48c3582b2f:localhost]

2022-05-29 22:40:02 | [Mutex] received everything.

2022-05-29 22:40:02 | [Mutex] isItemNotified: received:node:0e9f2653-129a-49f7-b775-9d48c3582b2f:localhost:node-5ce9b77f-7598-441b-bfd6-f42bccc18f66:Node 5ce9b77f-7598-441b-bfd6-f42bccc18f66 :: true

createSubnodes 1.032s
2022-05-29 22:40:02 |

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

2022-05-29 22:40:02 | ------------------------------------

2022-05-29 22:40:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d1aab49f-c5c5-4839-b2ac-b3423f86025f",
    "pubsub#title": "Node d1aab49f-c5c5-4839-b2ac-b3423f86025f"
}

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

2022-05-29 22:40:03 | [Mutex] waiting for: [received:nodes:d40a944c-24d6-4e76-a87b-1a28668f2f5e:localhost]

2022-05-29 22:40:03 | [Mutex] received everything.

2022-05-29 22:40:03 | [Mutex] isItemNotified: received:node:d40a944c-24d6-4e76-a87b-1a28668f2f5e:localhost:node-d1aab49f-c5c5-4839-b2ac-b3423f86025f:Node d1aab49f-c5c5-4839-b2ac-b3423f86025f :: true

deleteNodes 1.026s
2022-05-29 22:40:07 |

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

2022-05-29 22:40:07 | ------------------------------------

2022-05-29 22:40:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d1aab49f-c5c5-4839-b2ac-b3423f86025f"
}

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

2022-05-29 22:40:08 | [Mutex] waiting for: [received:nodes:20ffae50-eec0-4884-8653-bb7797340b91:localhost]

2022-05-29 22:40:08 | [Mutex] received everything.

2022-05-29 22:40:08 | [Mutex] isItemNotified: received:node:20ffae50-eec0-4884-8653-bb7797340b91:localhost:node-d1aab49f-c5c5-4839-b2ac-b3423f86025f:Node d1aab49f-c5c5-4839-b2ac-b3423f86025f :: false

deleteSubnodes 1.030s
2022-05-29 22:40:06 |

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

2022-05-29 22:40:06 | ------------------------------------

2022-05-29 22:40:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5ce9b77f-7598-441b-bfd6-f42bccc18f66"
}

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

2022-05-29 22:40:07 | [Mutex] waiting for: [received:nodes:818942c0-df22-4bd1-8083-d593d1693f22:localhost]

2022-05-29 22:40:07 | [Mutex] received everything.

2022-05-29 22:40:07 | [Mutex] isItemNotified: received:node:818942c0-df22-4bd1-8083-d593d1693f22:localhost:node-5ce9b77f-7598-441b-bfd6-f42bccc18f66:Node 5ce9b77f-7598-441b-bfd6-f42bccc18f66 :: false

2022-05-29 22:40:07 | [Mutex] waiting for: [received:nodes:cede11ae-5fa6-47fb-8d8a-3f01595f0465:localhost]

2022-05-29 22:40:07 | [Mutex] received everything.

2022-05-29 22:40:07 | [Mutex] isItemNotified: received:node:cede11ae-5fa6-47fb-8d8a-3f01595f0465:localhost:node-5ce9b77f-7598-441b-bfd6-f42bccc18f66:Node 5ce9b77f-7598-441b-bfd6-f42bccc18f66 :: false

publishItemsToNodes 0.048s
2022-05-29 22:40:05 |

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

2022-05-29 22:40:05 | ------------------------------------

2022-05-29 22:40:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5ce9b77f-7598-441b-bfd6-f42bccc18f66",
    "entry": "<test>item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42</test>",
    "item-id": "item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42"
}

2022-05-29 22:40:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42"
}

2022-05-29 22:40:05 | [Mutex] waiting for: [published:item:notifieditem-e6f4d3d9-376f-47ae-b838-cd250dc0bf42:admin@test-domain.com]

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

2022-05-29 22:40:05 | [Mutex] isItemNotified: published:item:notifieditem-e6f4d3d9-376f-47ae-b838-cd250dc0bf42:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-05-29 22:40:05 |

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

2022-05-29 22:40:05 | ------------------------------------

2022-05-29 22:40:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5ce9b77f-7598-441b-bfd6-f42bccc18f66",
    "item-id": "item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42"
}

2022-05-29 22:40:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42"
}

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

2022-05-29 22:40:05 | [Mutex] isItemNotified: retracted:item:notifieditem-e6f4d3d9-376f-47ae-b838-cd250dc0bf42:admin@test-domain.com :: true

retrieveItemsFromNodes 0.107s
2022-05-29 22:40:05 |

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

2022-05-29 22:40:05 | ------------------------------------

2022-05-29 22:40:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5ce9b77f-7598-441b-bfd6-f42bccc18f66",
    "item-id": "item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42"
}

2022-05-29 22:40:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5ce9b77f-7598-441b-bfd6-f42bccc18f66",
    "item-id": "item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42",
    "item": [
        "<item id=\"item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42\"><test>item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42</test></item>"
    ]
}

2022-05-29 22:40:05 | [Mutex] notify: [retrieved:item:item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42:payload-matches:true:localhost]

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

2022-05-29 22:40:05 | [Mutex] isItemNotified: retrieved:item:item-e6f4d3d9-376f-47ae-b838-cd250dc0bf42:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-29 22:40:05 |

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

2022-05-29 22:40:05 | ------------------------------------

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

2022-05-29 22:40:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d1aab49f-c5c5-4839-b2ac-b3423f86025f",
        "node-5ce9b77f-7598-441b-bfd6-f42bccc18f66"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-05-29 22:40:05 |

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

2022-05-29 22:40:05 | ------------------------------------

2022-05-29 22:40:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5ce9b77f-7598-441b-bfd6-f42bccc18f66)"
}

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

subscribeNodes 1.015s
2022-05-29 22:40:04 |

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

2022-05-29 22:40:04 | ------------------------------------

2022-05-29 22:40:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5ce9b77f-7598-441b-bfd6-f42bccc18f66",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.083s
2022-05-29 22:40:05 |

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

2022-05-29 22:40:05 | ------------------------------------

2022-05-29 22:40:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5ce9b77f-7598-441b-bfd6-f42bccc18f66",
    "jids": [
        "admin@test-domain.com"
    ]
}

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