Generated by TestNG with ReportNG at 22:21 PDT on Sunday 02 October 2022
root@ed1b7dd8a1b3 / 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.657s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2022-10-02 22:36:55 |

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

2022-10-02 22:36:55 | ------------------------------------

2022-10-02 22:36:55 | [Mutex] waiting for: [configured:node:node-d21f6f8e-26a1-49a7-aac6-e5110b799386:node-b188aed4-a254-4838-8aec-ba58c3c52d45]

2022-10-02 22:36:55 | [Mutex] received everything.

2022-10-02 22:36:55 | [Mutex] isItemNotified: configured:node:node-d21f6f8e-26a1-49a7-aac6-e5110b799386:node-b188aed4-a254-4838-8aec-ba58c3c52d45 :: true

2022-10-02 22:36:56 | [Mutex] waiting for: [received:nodes:0664d42e-51e5-48f0-ba1d-7d84ebb102f7:localhost]

2022-10-02 22:36:56 | [Mutex] received everything.

2022-10-02 22:36:56 | [Mutex] isItemNotified: received:node:0664d42e-51e5-48f0-ba1d-7d84ebb102f7:localhost:node-d21f6f8e-26a1-49a7-aac6-e5110b799386:Node d21f6f8e-26a1-49a7-aac6-e5110b799386 :: true

2022-10-02 22:36:56 | [Mutex] waiting for: [received:nodes:e69e932c-212b-450b-af32-a714deaec6bd:localhost]

2022-10-02 22:36:56 | [Mutex] received everything.

2022-10-02 22:36:56 | [Mutex] isItemNotified: received:node:e69e932c-212b-450b-af32-a714deaec6bd:localhost:node-d21f6f8e-26a1-49a7-aac6-e5110b799386:Node d21f6f8e-26a1-49a7-aac6-e5110b799386 :: false

createNodes 1.551s
2022-10-02 22:36:53 |

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

2022-10-02 22:36:53 | ------------------------------------

2022-10-02 22:36:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d21f6f8e-26a1-49a7-aac6-e5110b799386",
    "pubsub#title": "Node d21f6f8e-26a1-49a7-aac6-e5110b799386"
}

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

2022-10-02 22:36:54 | [Mutex] waiting for: [received:nodes:a7ea6a88-edc9-41be-86be-8ceab2c4161b:localhost]

2022-10-02 22:36:54 | [Mutex] received everything.

2022-10-02 22:36:54 | [Mutex] isItemNotified: received:node:a7ea6a88-edc9-41be-86be-8ceab2c4161b:localhost:node-d21f6f8e-26a1-49a7-aac6-e5110b799386:Node d21f6f8e-26a1-49a7-aac6-e5110b799386 :: true

createSubnodes 1.028s
2022-10-02 22:36:54 |

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

2022-10-02 22:36:54 | ------------------------------------

2022-10-02 22:36:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b188aed4-a254-4838-8aec-ba58c3c52d45",
    "pubsub#title": "Node b188aed4-a254-4838-8aec-ba58c3c52d45"
}

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

2022-10-02 22:36:55 | [Mutex] waiting for: [received:nodes:71b96ba9-661b-4f15-a227-ba3c4911b615:localhost]

2022-10-02 22:36:55 | [Mutex] waiting for: [received:nodes:71b96ba9-661b-4f15-a227-ba3c4911b615:localhost]

2022-10-02 22:36:55 | [Mutex] received everything.

2022-10-02 22:36:55 | [Mutex] isItemNotified: received:node:71b96ba9-661b-4f15-a227-ba3c4911b615:localhost:node-b188aed4-a254-4838-8aec-ba58c3c52d45:Node b188aed4-a254-4838-8aec-ba58c3c52d45 :: true

deleteNodes 1.024s
2022-10-02 22:37:00 |

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

2022-10-02 22:37:00 | ------------------------------------

2022-10-02 22:37:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b188aed4-a254-4838-8aec-ba58c3c52d45"
}

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

2022-10-02 22:37:01 | [Mutex] waiting for: [received:nodes:95e37b6c-ed08-4490-9f0c-fdcc47de86f3:localhost]

2022-10-02 22:37:01 | [Mutex] received everything.

2022-10-02 22:37:01 | [Mutex] isItemNotified: received:node:95e37b6c-ed08-4490-9f0c-fdcc47de86f3:localhost:node-b188aed4-a254-4838-8aec-ba58c3c52d45:Node b188aed4-a254-4838-8aec-ba58c3c52d45 :: false

deleteSubnodes 1.030s
2022-10-02 22:36:59 |

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

2022-10-02 22:36:59 | ------------------------------------

2022-10-02 22:36:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d21f6f8e-26a1-49a7-aac6-e5110b799386"
}

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

2022-10-02 22:37:00 | [Mutex] waiting for: [received:nodes:043543c4-538f-4708-baf5-ca9dbc13ba8c:localhost]

2022-10-02 22:37:00 | [Mutex] waiting for: [received:nodes:043543c4-538f-4708-baf5-ca9dbc13ba8c:localhost]

2022-10-02 22:37:00 | [Mutex] received everything.

2022-10-02 22:37:00 | [Mutex] isItemNotified: received:node:043543c4-538f-4708-baf5-ca9dbc13ba8c:localhost:node-d21f6f8e-26a1-49a7-aac6-e5110b799386:Node d21f6f8e-26a1-49a7-aac6-e5110b799386 :: false

2022-10-02 22:37:00 | [Mutex] waiting for: [received:nodes:0f0b819f-a39f-416e-9c65-110f2cab1594:localhost]

2022-10-02 22:37:00 | [Mutex] received everything.

2022-10-02 22:37:00 | [Mutex] isItemNotified: received:node:0f0b819f-a39f-416e-9c65-110f2cab1594:localhost:node-d21f6f8e-26a1-49a7-aac6-e5110b799386:Node d21f6f8e-26a1-49a7-aac6-e5110b799386 :: false

publishItemsToNodes 0.055s
2022-10-02 22:36:57 |

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

2022-10-02 22:36:57 | ------------------------------------

2022-10-02 22:36:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d21f6f8e-26a1-49a7-aac6-e5110b799386",
    "entry": "<test>item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4</test>",
    "item-id": "item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4"
}

2022-10-02 22:36:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4"
}

2022-10-02 22:36:57 | [Mutex] waiting for: [published:item:notifieditem-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4:admin@test-domain.com]

2022-10-02 22:36:58 | [Mutex] received everything.

2022-10-02 22:36:58 | [Mutex] isItemNotified: published:item:notifieditem-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-10-02 22:36:58 |

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

2022-10-02 22:36:58 | ------------------------------------

2022-10-02 22:36:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d21f6f8e-26a1-49a7-aac6-e5110b799386",
    "item-id": "item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4"
}

2022-10-02 22:36:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4"
}

2022-10-02 22:36:58 | [Mutex] received everything.

2022-10-02 22:36:58 | [Mutex] isItemNotified: retracted:item:notifieditem-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2022-10-02 22:36:58 |

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

2022-10-02 22:36:58 | ------------------------------------

2022-10-02 22:36:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d21f6f8e-26a1-49a7-aac6-e5110b799386",
    "item-id": "item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4"
}

2022-10-02 22:36:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d21f6f8e-26a1-49a7-aac6-e5110b799386",
    "item-id": "item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4",
    "item": [
        "<item id=\"item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4\"><test>item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4</test></item>"
    ]
}

2022-10-02 22:36:58 | [Mutex] notify: [retrieved:item:item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4:payload-matches:true:localhost]

2022-10-02 22:36:58 | [Mutex] received everything.

2022-10-02 22:36:58 | [Mutex] isItemNotified: retrieved:item:item-ca9acb71-4df6-4f7d-b5b2-a46bd954cba4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-10-02 22:36:58 |

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

2022-10-02 22:36:58 | ------------------------------------

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

2022-10-02 22:36:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b188aed4-a254-4838-8aec-ba58c3c52d45",
        "test",
        "node-d21f6f8e-26a1-49a7-aac6-e5110b799386"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-10-02 22:36:58 |

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

2022-10-02 22:36:58 | ------------------------------------

2022-10-02 22:36:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d21f6f8e-26a1-49a7-aac6-e5110b799386)"
}

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

subscribeNodes 1.011s
2022-10-02 22:36:56 |

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

2022-10-02 22:36:56 | ------------------------------------

2022-10-02 22:36:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d21f6f8e-26a1-49a7-aac6-e5110b799386",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.111s
2022-10-02 22:36:58 |

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

2022-10-02 22:36:58 | ------------------------------------

2022-10-02 22:36:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d21f6f8e-26a1-49a7-aac6-e5110b799386",
    "jids": [
        "admin@test-domain.com"
    ]
}

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