Generated by TestNG with ReportNG at 13:34 PDT on Monday 10 July 2023
root@8f5c98824654 / Java 17.0.6 (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.787s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.168s
2023-07-10 13:49:04 |

2023-07-10 13:49:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:04 | ------------------------------------

2023-07-10 13:49:04 | [Mutex] waiting for: [configured:node:node-83477800-7c99-45bc-909f-a0f2734fc6d7:node-cd5b2fbf-f6a7-402d-b789-307fb509c7f0]

2023-07-10 13:49:05 | [Mutex] received everything.

2023-07-10 13:49:05 | [Mutex] isItemNotified: configured:node:node-83477800-7c99-45bc-909f-a0f2734fc6d7:node-cd5b2fbf-f6a7-402d-b789-307fb509c7f0 :: true

2023-07-10 13:49:06 | [Mutex] waiting for: [received:nodes:5edf1240-6dcd-4374-8b8f-14497dd29606:localhost]

2023-07-10 13:49:06 | [Mutex] received everything.

2023-07-10 13:49:06 | [Mutex] isItemNotified: received:node:5edf1240-6dcd-4374-8b8f-14497dd29606:localhost:node-83477800-7c99-45bc-909f-a0f2734fc6d7:Node 83477800-7c99-45bc-909f-a0f2734fc6d7 :: true

2023-07-10 13:49:06 | [Mutex] waiting for: [received:nodes:8f7f1a3d-398a-44b5-8c5c-5041c138eca9:localhost]

2023-07-10 13:49:06 | [Mutex] received everything.

2023-07-10 13:49:06 | [Mutex] isItemNotified: received:node:8f7f1a3d-398a-44b5-8c5c-5041c138eca9:localhost:node-83477800-7c99-45bc-909f-a0f2734fc6d7:Node 83477800-7c99-45bc-909f-a0f2734fc6d7 :: false

createNodes 1.689s
2023-07-10 13:49:02 |

2023-07-10 13:49:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:02 | ------------------------------------

2023-07-10 13:49:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-83477800-7c99-45bc-909f-a0f2734fc6d7",
    "pubsub#title": "Node 83477800-7c99-45bc-909f-a0f2734fc6d7"
}

2023-07-10 13:49:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 13:49:03 | [Mutex] waiting for: [received:nodes:31b9822e-6f5b-48a3-9270-dbe0ef10e4ad:localhost]

2023-07-10 13:49:03 | [Mutex] waiting for: [received:nodes:31b9822e-6f5b-48a3-9270-dbe0ef10e4ad:localhost]

2023-07-10 13:49:03 | [Mutex] received everything.

2023-07-10 13:49:03 | [Mutex] isItemNotified: received:node:31b9822e-6f5b-48a3-9270-dbe0ef10e4ad:localhost:node-83477800-7c99-45bc-909f-a0f2734fc6d7:Node 83477800-7c99-45bc-909f-a0f2734fc6d7 :: true

createSubnodes 1.031s
2023-07-10 13:49:03 |

2023-07-10 13:49:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:03 | ------------------------------------

2023-07-10 13:49:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cd5b2fbf-f6a7-402d-b789-307fb509c7f0",
    "pubsub#title": "Node cd5b2fbf-f6a7-402d-b789-307fb509c7f0"
}

2023-07-10 13:49:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 13:49:04 | [Mutex] waiting for: [received:nodes:97827bce-7f22-4f52-aed3-32f25eaf1250:localhost]

2023-07-10 13:49:04 | [Mutex] waiting for: [received:nodes:97827bce-7f22-4f52-aed3-32f25eaf1250:localhost]

2023-07-10 13:49:04 | [Mutex] waiting for: [received:nodes:97827bce-7f22-4f52-aed3-32f25eaf1250:localhost]

2023-07-10 13:49:04 | [Mutex] received everything.

2023-07-10 13:49:04 | [Mutex] isItemNotified: received:node:97827bce-7f22-4f52-aed3-32f25eaf1250:localhost:node-cd5b2fbf-f6a7-402d-b789-307fb509c7f0:Node cd5b2fbf-f6a7-402d-b789-307fb509c7f0 :: true

deleteNodes 1.024s
2023-07-10 13:49:09 |

2023-07-10 13:49:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:09 | ------------------------------------

2023-07-10 13:49:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cd5b2fbf-f6a7-402d-b789-307fb509c7f0"
}

2023-07-10 13:49:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 13:49:10 | [Mutex] waiting for: [received:nodes:ef321f2a-12b2-4b78-87e8-e577bf9c8b11:localhost]

2023-07-10 13:49:10 | [Mutex] waiting for: [received:nodes:ef321f2a-12b2-4b78-87e8-e577bf9c8b11:localhost]

2023-07-10 13:49:10 | [Mutex] received everything.

2023-07-10 13:49:10 | [Mutex] isItemNotified: received:node:ef321f2a-12b2-4b78-87e8-e577bf9c8b11:localhost:node-cd5b2fbf-f6a7-402d-b789-307fb509c7f0:Node cd5b2fbf-f6a7-402d-b789-307fb509c7f0 :: false

deleteSubnodes 1.025s
2023-07-10 13:49:08 |

2023-07-10 13:49:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:08 | ------------------------------------

2023-07-10 13:49:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-83477800-7c99-45bc-909f-a0f2734fc6d7"
}

2023-07-10 13:49:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 13:49:09 | [Mutex] waiting for: [received:nodes:6cd6202d-ea24-4dc5-90f1-54382d48d804:localhost]

2023-07-10 13:49:09 | [Mutex] waiting for: [received:nodes:6cd6202d-ea24-4dc5-90f1-54382d48d804:localhost]

2023-07-10 13:49:09 | [Mutex] waiting for: [received:nodes:6cd6202d-ea24-4dc5-90f1-54382d48d804:localhost]

2023-07-10 13:49:09 | [Mutex] received everything.

2023-07-10 13:49:09 | [Mutex] isItemNotified: received:node:6cd6202d-ea24-4dc5-90f1-54382d48d804:localhost:node-83477800-7c99-45bc-909f-a0f2734fc6d7:Node 83477800-7c99-45bc-909f-a0f2734fc6d7 :: false

2023-07-10 13:49:09 | [Mutex] waiting for: [received:nodes:012a0f58-5b1c-4167-8ff1-1ab17380aa87:localhost]

2023-07-10 13:49:09 | [Mutex] received everything.

2023-07-10 13:49:09 | [Mutex] isItemNotified: received:node:012a0f58-5b1c-4167-8ff1-1ab17380aa87:localhost:node-83477800-7c99-45bc-909f-a0f2734fc6d7:Node 83477800-7c99-45bc-909f-a0f2734fc6d7 :: false

publishItemsToNodes 0.049s
2023-07-10 13:49:07 |

2023-07-10 13:49:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:07 | ------------------------------------

2023-07-10 13:49:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-83477800-7c99-45bc-909f-a0f2734fc6d7",
    "entry": "<test>item-aae60aa8-1cba-4b76-8c40-6d04f83554c2</test>",
    "item-id": "item-aae60aa8-1cba-4b76-8c40-6d04f83554c2"
}

2023-07-10 13:49:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aae60aa8-1cba-4b76-8c40-6d04f83554c2"
}

2023-07-10 13:49:07 | [Mutex] waiting for: [published:item:notifieditem-aae60aa8-1cba-4b76-8c40-6d04f83554c2:admin@test-domain.com]

2023-07-10 13:49:07 | [Mutex] received everything.

2023-07-10 13:49:07 | [Mutex] isItemNotified: published:item:notifieditem-aae60aa8-1cba-4b76-8c40-6d04f83554c2:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2023-07-10 13:49:07 |

2023-07-10 13:49:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:07 | ------------------------------------

2023-07-10 13:49:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-83477800-7c99-45bc-909f-a0f2734fc6d7",
    "item-id": "item-aae60aa8-1cba-4b76-8c40-6d04f83554c2"
}

2023-07-10 13:49:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aae60aa8-1cba-4b76-8c40-6d04f83554c2"
}

2023-07-10 13:49:07 | [Mutex] received everything.

2023-07-10 13:49:07 | [Mutex] isItemNotified: retracted:item:notifieditem-aae60aa8-1cba-4b76-8c40-6d04f83554c2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.079s
2023-07-10 13:49:07 |

2023-07-10 13:49:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:07 | ------------------------------------

2023-07-10 13:49:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-83477800-7c99-45bc-909f-a0f2734fc6d7",
    "item-id": "item-aae60aa8-1cba-4b76-8c40-6d04f83554c2"
}

2023-07-10 13:49:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-83477800-7c99-45bc-909f-a0f2734fc6d7",
    "item-id": "item-aae60aa8-1cba-4b76-8c40-6d04f83554c2",
    "item": [
        "<item id=\"item-aae60aa8-1cba-4b76-8c40-6d04f83554c2\"><test>item-aae60aa8-1cba-4b76-8c40-6d04f83554c2</test></item>"
    ]
}

2023-07-10 13:49:07 | [Mutex] notify: [retrieved:item:item-aae60aa8-1cba-4b76-8c40-6d04f83554c2:payload-matches:true:localhost]

2023-07-10 13:49:07 | [Mutex] received everything.

2023-07-10 13:49:07 | [Mutex] isItemNotified: retrieved:item:item-aae60aa8-1cba-4b76-8c40-6d04f83554c2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2023-07-10 13:49:07 |

2023-07-10 13:49:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:07 | ------------------------------------

2023-07-10 13:49:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-10 13:49:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-cd5b2fbf-f6a7-402d-b789-307fb509c7f0",
        "test",
        "node-83477800-7c99-45bc-909f-a0f2734fc6d7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-10 13:49:07 |

2023-07-10 13:49:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:07 | ------------------------------------

2023-07-10 13:49:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-83477800-7c99-45bc-909f-a0f2734fc6d7)"
}

2023-07-10 13:49:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.021s
2023-07-10 13:49:06 |

2023-07-10 13:49:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:06 | ------------------------------------

2023-07-10 13:49:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-83477800-7c99-45bc-909f-a0f2734fc6d7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-10 13:49:06 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2023-07-10 13:49:07 |

2023-07-10 13:49:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:49:07 | ------------------------------------

2023-07-10 13:49:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-83477800-7c99-45bc-909f-a0f2734fc6d7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-10 13:49:07 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}