Generated by TestNG with ReportNG at 09:26 PST on Sunday 05 November 2023
root@8dfa9d99ff97 / Java 17.0.8 (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.515s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2023-11-05 09:40:58 |

2023-11-05 09:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:40:58 | ------------------------------------

2023-11-05 09:40:58 | [Mutex] waiting for: [configured:node:node-d84fd181-901e-4b34-b9ad-158f5a5556dd:node-ac8888dd-0b5b-4329-88ff-bffde019ea3b]

2023-11-05 09:40:58 | [Mutex] received everything.

2023-11-05 09:40:58 | [Mutex] isItemNotified: configured:node:node-d84fd181-901e-4b34-b9ad-158f5a5556dd:node-ac8888dd-0b5b-4329-88ff-bffde019ea3b :: true

2023-11-05 09:40:59 | [Mutex] waiting for: [received:nodes:a6732406-039e-4b01-bf7e-1238df8a6d77:localhost]

2023-11-05 09:40:59 | [Mutex] received everything.

2023-11-05 09:40:59 | [Mutex] isItemNotified: received:node:a6732406-039e-4b01-bf7e-1238df8a6d77:localhost:node-d84fd181-901e-4b34-b9ad-158f5a5556dd:Node d84fd181-901e-4b34-b9ad-158f5a5556dd :: true

2023-11-05 09:40:59 | [Mutex] waiting for: [received:nodes:da71e102-5d10-4a49-96aa-e2e33e2451c9:localhost]

2023-11-05 09:40:59 | [Mutex] waiting for: [received:nodes:da71e102-5d10-4a49-96aa-e2e33e2451c9:localhost]

2023-11-05 09:40:59 | [Mutex] waiting for: [received:nodes:da71e102-5d10-4a49-96aa-e2e33e2451c9:localhost]

2023-11-05 09:40:59 | [Mutex] received everything.

2023-11-05 09:40:59 | [Mutex] isItemNotified: received:node:da71e102-5d10-4a49-96aa-e2e33e2451c9:localhost:node-d84fd181-901e-4b34-b9ad-158f5a5556dd:Node d84fd181-901e-4b34-b9ad-158f5a5556dd :: false

createNodes 1.565s
2023-11-05 09:40:55 |

2023-11-05 09:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:40:55 | ------------------------------------

2023-11-05 09:40:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d84fd181-901e-4b34-b9ad-158f5a5556dd",
    "pubsub#title": "Node d84fd181-901e-4b34-b9ad-158f5a5556dd"
}

2023-11-05 09:40:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 09:40:57 | [Mutex] waiting for: [received:nodes:611e9a1b-df22-4048-847a-284c37b06773:localhost]

2023-11-05 09:40:57 | [Mutex] received everything.

2023-11-05 09:40:57 | [Mutex] isItemNotified: received:node:611e9a1b-df22-4048-847a-284c37b06773:localhost:node-d84fd181-901e-4b34-b9ad-158f5a5556dd:Node d84fd181-901e-4b34-b9ad-158f5a5556dd :: true

createSubnodes 1.022s
2023-11-05 09:40:57 |

2023-11-05 09:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:40:57 | ------------------------------------

2023-11-05 09:40:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ac8888dd-0b5b-4329-88ff-bffde019ea3b",
    "pubsub#title": "Node ac8888dd-0b5b-4329-88ff-bffde019ea3b"
}

2023-11-05 09:40:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 09:40:58 | [Mutex] waiting for: [received:nodes:954e64fb-76ff-4e88-86a2-7bddb0793b83:localhost]

2023-11-05 09:40:58 | [Mutex] received everything.

2023-11-05 09:40:58 | [Mutex] isItemNotified: received:node:954e64fb-76ff-4e88-86a2-7bddb0793b83:localhost:node-ac8888dd-0b5b-4329-88ff-bffde019ea3b:Node ac8888dd-0b5b-4329-88ff-bffde019ea3b :: true

deleteNodes 1.016s
2023-11-05 09:41:02 |

2023-11-05 09:41:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:41:02 | ------------------------------------

2023-11-05 09:41:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ac8888dd-0b5b-4329-88ff-bffde019ea3b"
}

2023-11-05 09:41:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 09:41:03 | [Mutex] waiting for: [received:nodes:e311b25c-6fd6-4842-ab9c-bb67d23ba970:localhost]

2023-11-05 09:41:03 | [Mutex] waiting for: [received:nodes:e311b25c-6fd6-4842-ab9c-bb67d23ba970:localhost]

2023-11-05 09:41:03 | [Mutex] waiting for: [received:nodes:e311b25c-6fd6-4842-ab9c-bb67d23ba970:localhost]

2023-11-05 09:41:03 | [Mutex] received everything.

2023-11-05 09:41:03 | [Mutex] isItemNotified: received:node:e311b25c-6fd6-4842-ab9c-bb67d23ba970:localhost:node-ac8888dd-0b5b-4329-88ff-bffde019ea3b:Node ac8888dd-0b5b-4329-88ff-bffde019ea3b :: false

deleteSubnodes 1.021s
2023-11-05 09:41:01 |

2023-11-05 09:41:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:41:01 | ------------------------------------

2023-11-05 09:41:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d84fd181-901e-4b34-b9ad-158f5a5556dd"
}

2023-11-05 09:41:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 09:41:02 | [Mutex] waiting for: [received:nodes:1c75c72c-18ce-4b81-b047-60be00396972:localhost]

2023-11-05 09:41:02 | [Mutex] waiting for: [received:nodes:1c75c72c-18ce-4b81-b047-60be00396972:localhost]

2023-11-05 09:41:02 | [Mutex] waiting for: [received:nodes:1c75c72c-18ce-4b81-b047-60be00396972:localhost]

2023-11-05 09:41:02 | [Mutex] waiting for: [received:nodes:1c75c72c-18ce-4b81-b047-60be00396972:localhost]

2023-11-05 09:41:02 | [Mutex] received everything.

2023-11-05 09:41:02 | [Mutex] isItemNotified: received:node:1c75c72c-18ce-4b81-b047-60be00396972:localhost:node-d84fd181-901e-4b34-b9ad-158f5a5556dd:Node d84fd181-901e-4b34-b9ad-158f5a5556dd :: false

2023-11-05 09:41:02 | [Mutex] waiting for: [received:nodes:9b1e8ac9-46eb-4ade-9c1a-a71adc60e071:localhost]

2023-11-05 09:41:02 | [Mutex] received everything.

2023-11-05 09:41:02 | [Mutex] isItemNotified: received:node:9b1e8ac9-46eb-4ade-9c1a-a71adc60e071:localhost:node-d84fd181-901e-4b34-b9ad-158f5a5556dd:Node d84fd181-901e-4b34-b9ad-158f5a5556dd :: false

publishItemsToNodes 0.049s
2023-11-05 09:41:00 |

2023-11-05 09:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:41:00 | ------------------------------------

2023-11-05 09:41:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d84fd181-901e-4b34-b9ad-158f5a5556dd",
    "entry": "<test>item-e4e4194a-0541-4107-83bc-985fb2479959</test>",
    "item-id": "item-e4e4194a-0541-4107-83bc-985fb2479959"
}

2023-11-05 09:41:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e4e4194a-0541-4107-83bc-985fb2479959"
}

2023-11-05 09:41:00 | [Mutex] waiting for: [published:item:notifieditem-e4e4194a-0541-4107-83bc-985fb2479959:admin@test-domain.com]

2023-11-05 09:41:00 | [Mutex] received everything.

2023-11-05 09:41:00 | [Mutex] isItemNotified: published:item:notifieditem-e4e4194a-0541-4107-83bc-985fb2479959:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2023-11-05 09:41:00 |

2023-11-05 09:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:41:00 | ------------------------------------

2023-11-05 09:41:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d84fd181-901e-4b34-b9ad-158f5a5556dd",
    "item-id": "item-e4e4194a-0541-4107-83bc-985fb2479959"
}

2023-11-05 09:41:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e4e4194a-0541-4107-83bc-985fb2479959"
}

2023-11-05 09:41:00 | [Mutex] waiting for: [retracted:item:notifieditem-e4e4194a-0541-4107-83bc-985fb2479959:admin@test-domain.com]

2023-11-05 09:41:00 | [Mutex] received everything.

2023-11-05 09:41:00 | [Mutex] isItemNotified: retracted:item:notifieditem-e4e4194a-0541-4107-83bc-985fb2479959:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2023-11-05 09:41:00 |

2023-11-05 09:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:41:00 | ------------------------------------

2023-11-05 09:41:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d84fd181-901e-4b34-b9ad-158f5a5556dd",
    "item-id": "item-e4e4194a-0541-4107-83bc-985fb2479959"
}

2023-11-05 09:41:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d84fd181-901e-4b34-b9ad-158f5a5556dd",
    "item-id": "item-e4e4194a-0541-4107-83bc-985fb2479959",
    "item": [
        "<item id=\"item-e4e4194a-0541-4107-83bc-985fb2479959\"><test>item-e4e4194a-0541-4107-83bc-985fb2479959</test></item>"
    ]
}

2023-11-05 09:41:00 | [Mutex] notify: [retrieved:item:item-e4e4194a-0541-4107-83bc-985fb2479959:payload-matches:true:localhost]

2023-11-05 09:41:00 | [Mutex] received everything.

2023-11-05 09:41:00 | [Mutex] isItemNotified: retrieved:item:item-e4e4194a-0541-4107-83bc-985fb2479959:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2023-11-05 09:41:00 |

2023-11-05 09:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:41:00 | ------------------------------------

2023-11-05 09:41:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-11-05 09:41:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d84fd181-901e-4b34-b9ad-158f5a5556dd",
        "node-ac8888dd-0b5b-4329-88ff-bffde019ea3b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-11-05 09:41:00 |

2023-11-05 09:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:41:00 | ------------------------------------

2023-11-05 09:41:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d84fd181-901e-4b34-b9ad-158f5a5556dd)"
}

2023-11-05 09:41:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-11-05 09:40:59 |

2023-11-05 09:40:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:40:59 | ------------------------------------

2023-11-05 09:40:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d84fd181-901e-4b34-b9ad-158f5a5556dd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-05 09:40:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.061s
2023-11-05 09:41:00 |

2023-11-05 09:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 09:41:00 | ------------------------------------

2023-11-05 09:41:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d84fd181-901e-4b34-b9ad-158f5a5556dd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-05 09:41:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}