Generated by TestNG with ReportNG at 22:47 PDT on Wednesday 15 March 2023
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.542s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2023-03-15 23:01:40 |

2023-03-15 23:01:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:40 | ------------------------------------

2023-03-15 23:01:40 | [Mutex] waiting for: [configured:node:node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd:node-914d2d3b-e85d-46a5-a18f-56c79f0b483b]

2023-03-15 23:01:40 | [Mutex] received everything.

2023-03-15 23:01:40 | [Mutex] isItemNotified: configured:node:node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd:node-914d2d3b-e85d-46a5-a18f-56c79f0b483b :: true

2023-03-15 23:01:41 | [Mutex] waiting for: [received:nodes:18098620-ab87-42f8-98b6-c914ca5d7ca1:localhost]

2023-03-15 23:01:41 | [Mutex] received everything.

2023-03-15 23:01:41 | [Mutex] isItemNotified: received:node:18098620-ab87-42f8-98b6-c914ca5d7ca1:localhost:node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd:Node e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd :: true

2023-03-15 23:01:41 | [Mutex] waiting for: [received:nodes:e0f78ff1-c61f-4f05-abe6-9bd9394d7b4f:localhost]

2023-03-15 23:01:41 | [Mutex] waiting for: [received:nodes:e0f78ff1-c61f-4f05-abe6-9bd9394d7b4f:localhost]

2023-03-15 23:01:41 | [Mutex] waiting for: [received:nodes:e0f78ff1-c61f-4f05-abe6-9bd9394d7b4f:localhost]

2023-03-15 23:01:41 | [Mutex] waiting for: [received:nodes:e0f78ff1-c61f-4f05-abe6-9bd9394d7b4f:localhost]

2023-03-15 23:01:41 | [Mutex] received everything.

2023-03-15 23:01:41 | [Mutex] isItemNotified: received:node:e0f78ff1-c61f-4f05-abe6-9bd9394d7b4f:localhost:node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd:Node e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd :: false

createNodes 1.531s
2023-03-15 23:01:38 |

2023-03-15 23:01:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:38 | ------------------------------------

2023-03-15 23:01:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd",
    "pubsub#title": "Node e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd"
}

2023-03-15 23:01:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 23:01:39 | [Mutex] waiting for: [received:nodes:f64b9d27-2383-4cdd-9fe5-cbbba4d68391:localhost]

2023-03-15 23:01:39 | [Mutex] waiting for: [received:nodes:f64b9d27-2383-4cdd-9fe5-cbbba4d68391:localhost]

2023-03-15 23:01:39 | [Mutex] waiting for: [received:nodes:f64b9d27-2383-4cdd-9fe5-cbbba4d68391:localhost]

2023-03-15 23:01:39 | [Mutex] waiting for: [received:nodes:f64b9d27-2383-4cdd-9fe5-cbbba4d68391:localhost]

2023-03-15 23:01:39 | [Mutex] received everything.

2023-03-15 23:01:39 | [Mutex] isItemNotified: received:node:f64b9d27-2383-4cdd-9fe5-cbbba4d68391:localhost:node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd:Node e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd :: true

createSubnodes 1.019s
2023-03-15 23:01:39 |

2023-03-15 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:39 | ------------------------------------

2023-03-15 23:01:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-914d2d3b-e85d-46a5-a18f-56c79f0b483b",
    "pubsub#title": "Node 914d2d3b-e85d-46a5-a18f-56c79f0b483b"
}

2023-03-15 23:01:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 23:01:40 | [Mutex] waiting for: [received:nodes:0b4cb109-bb6c-4283-b922-0e11b8860d51:localhost]

2023-03-15 23:01:40 | [Mutex] waiting for: [received:nodes:0b4cb109-bb6c-4283-b922-0e11b8860d51:localhost]

2023-03-15 23:01:40 | [Mutex] waiting for: [received:nodes:0b4cb109-bb6c-4283-b922-0e11b8860d51:localhost]

2023-03-15 23:01:40 | [Mutex] waiting for: [received:nodes:0b4cb109-bb6c-4283-b922-0e11b8860d51:localhost]

2023-03-15 23:01:40 | [Mutex] received everything.

2023-03-15 23:01:40 | [Mutex] isItemNotified: received:node:0b4cb109-bb6c-4283-b922-0e11b8860d51:localhost:node-914d2d3b-e85d-46a5-a18f-56c79f0b483b:Node 914d2d3b-e85d-46a5-a18f-56c79f0b483b :: true

deleteNodes 1.020s
2023-03-15 23:01:45 |

2023-03-15 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:45 | ------------------------------------

2023-03-15 23:01:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-914d2d3b-e85d-46a5-a18f-56c79f0b483b"
}

2023-03-15 23:01:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 23:01:46 | [Mutex] waiting for: [received:nodes:168d9ca0-da2d-4480-a8c7-f000209da1b5:localhost]

2023-03-15 23:01:46 | [Mutex] waiting for: [received:nodes:168d9ca0-da2d-4480-a8c7-f000209da1b5:localhost]

2023-03-15 23:01:46 | [Mutex] waiting for: [received:nodes:168d9ca0-da2d-4480-a8c7-f000209da1b5:localhost]

2023-03-15 23:01:46 | [Mutex] received everything.

2023-03-15 23:01:46 | [Mutex] isItemNotified: received:node:168d9ca0-da2d-4480-a8c7-f000209da1b5:localhost:node-914d2d3b-e85d-46a5-a18f-56c79f0b483b:Node 914d2d3b-e85d-46a5-a18f-56c79f0b483b :: false

deleteSubnodes 1.023s
2023-03-15 23:01:44 |

2023-03-15 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:44 | ------------------------------------

2023-03-15 23:01:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd"
}

2023-03-15 23:01:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 23:01:45 | [Mutex] waiting for: [received:nodes:7624dae7-8a87-44c8-8368-58aaed080cf2:localhost]

2023-03-15 23:01:45 | [Mutex] waiting for: [received:nodes:7624dae7-8a87-44c8-8368-58aaed080cf2:localhost]

2023-03-15 23:01:45 | [Mutex] waiting for: [received:nodes:7624dae7-8a87-44c8-8368-58aaed080cf2:localhost]

2023-03-15 23:01:45 | [Mutex] waiting for: [received:nodes:7624dae7-8a87-44c8-8368-58aaed080cf2:localhost]

2023-03-15 23:01:45 | [Mutex] received everything.

2023-03-15 23:01:45 | [Mutex] isItemNotified: received:node:7624dae7-8a87-44c8-8368-58aaed080cf2:localhost:node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd:Node e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd :: false

2023-03-15 23:01:45 | [Mutex] waiting for: [received:nodes:62773999-6e67-4196-9fd2-c7cbf9bcb7dd:localhost]

2023-03-15 23:01:45 | [Mutex] received everything.

2023-03-15 23:01:45 | [Mutex] isItemNotified: received:node:62773999-6e67-4196-9fd2-c7cbf9bcb7dd:localhost:node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd:Node e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd :: false

publishItemsToNodes 0.048s
2023-03-15 23:01:42 |

2023-03-15 23:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:42 | ------------------------------------

2023-03-15 23:01:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd",
    "entry": "<test>item-66cb31c7-540a-479b-99f3-4f9ed72e754f</test>",
    "item-id": "item-66cb31c7-540a-479b-99f3-4f9ed72e754f"
}

2023-03-15 23:01:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-66cb31c7-540a-479b-99f3-4f9ed72e754f"
}

2023-03-15 23:01:42 | [Mutex] waiting for: [published:item:notifieditem-66cb31c7-540a-479b-99f3-4f9ed72e754f:admin@test-domain.com]

2023-03-15 23:01:42 | [Mutex] received everything.

2023-03-15 23:01:42 | [Mutex] isItemNotified: published:item:notifieditem-66cb31c7-540a-479b-99f3-4f9ed72e754f:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2023-03-15 23:01:43 |

2023-03-15 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:43 | ------------------------------------

2023-03-15 23:01:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd",
    "item-id": "item-66cb31c7-540a-479b-99f3-4f9ed72e754f"
}

2023-03-15 23:01:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-66cb31c7-540a-479b-99f3-4f9ed72e754f"
}

2023-03-15 23:01:43 | [Mutex] waiting for: [retracted:item:notifieditem-66cb31c7-540a-479b-99f3-4f9ed72e754f:admin@test-domain.com]

2023-03-15 23:01:43 | [Mutex] received everything.

2023-03-15 23:01:43 | [Mutex] isItemNotified: retracted:item:notifieditem-66cb31c7-540a-479b-99f3-4f9ed72e754f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2023-03-15 23:01:42 |

2023-03-15 23:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:42 | ------------------------------------

2023-03-15 23:01:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd",
    "item-id": "item-66cb31c7-540a-479b-99f3-4f9ed72e754f"
}

2023-03-15 23:01:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd",
    "item-id": "item-66cb31c7-540a-479b-99f3-4f9ed72e754f",
    "item": [
        "<item id=\"item-66cb31c7-540a-479b-99f3-4f9ed72e754f\"><test>item-66cb31c7-540a-479b-99f3-4f9ed72e754f</test></item>"
    ]
}

2023-03-15 23:01:42 | [Mutex] notify: [retrieved:item:item-66cb31c7-540a-479b-99f3-4f9ed72e754f:payload-matches:true:localhost]

2023-03-15 23:01:42 | [Mutex] received everything.

2023-03-15 23:01:42 | [Mutex] isItemNotified: retrieved:item:item-66cb31c7-540a-479b-99f3-4f9ed72e754f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2023-03-15 23:01:42 |

2023-03-15 23:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:42 | ------------------------------------

2023-03-15 23:01:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-15 23:01:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd",
        "node-914d2d3b-e85d-46a5-a18f-56c79f0b483b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2023-03-15 23:01:43 |

2023-03-15 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:43 | ------------------------------------

2023-03-15 23:01:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd)"
}

2023-03-15 23:01:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-03-15 23:01:41 |

2023-03-15 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:41 | ------------------------------------

2023-03-15 23:01:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-15 23:01:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2023-03-15 23:01:43 |

2023-03-15 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 23:01:43 | ------------------------------------

2023-03-15 23:01:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e8b3cfd2-9679-4e5f-9cb7-fe724584a3dd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-15 23:01:43 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}