Generated by TestNG with ReportNG at 22:19 PDT on Tuesday 23 August 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.569s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-08-23 22:34:08 |

2022-08-23 22:34:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:08 | ------------------------------------

2022-08-23 22:34:08 | [Mutex] waiting for: [configured:node:node-e2877f0c-1863-4196-8af0-42359a07b22f:node-f8731224-b7f7-4d64-98de-d65f8c9c439f]

2022-08-23 22:34:08 | [Mutex] received everything.

2022-08-23 22:34:08 | [Mutex] isItemNotified: configured:node:node-e2877f0c-1863-4196-8af0-42359a07b22f:node-f8731224-b7f7-4d64-98de-d65f8c9c439f :: true

2022-08-23 22:34:09 | [Mutex] waiting for: [received:nodes:c3d3b156-cdf8-4cdb-a1c7-da420c65983f:localhost]

2022-08-23 22:34:09 | [Mutex] received everything.

2022-08-23 22:34:09 | [Mutex] isItemNotified: received:node:c3d3b156-cdf8-4cdb-a1c7-da420c65983f:localhost:node-e2877f0c-1863-4196-8af0-42359a07b22f:Node e2877f0c-1863-4196-8af0-42359a07b22f :: true

2022-08-23 22:34:09 | [Mutex] waiting for: [received:nodes:8c0ef81d-24e4-4edb-936a-9326ce57d05b:localhost]

2022-08-23 22:34:09 | [Mutex] received everything.

2022-08-23 22:34:09 | [Mutex] isItemNotified: received:node:8c0ef81d-24e4-4edb-936a-9326ce57d05b:localhost:node-e2877f0c-1863-4196-8af0-42359a07b22f:Node e2877f0c-1863-4196-8af0-42359a07b22f :: false

createNodes 1.568s
2022-08-23 22:34:05 |

2022-08-23 22:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:05 | ------------------------------------

2022-08-23 22:34:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e2877f0c-1863-4196-8af0-42359a07b22f",
    "pubsub#title": "Node e2877f0c-1863-4196-8af0-42359a07b22f"
}

2022-08-23 22:34:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 22:34:07 | [Mutex] waiting for: [received:nodes:0a870adf-a0eb-4b2c-af14-d583cbb314f0:localhost]

2022-08-23 22:34:07 | [Mutex] received everything.

2022-08-23 22:34:07 | [Mutex] isItemNotified: received:node:0a870adf-a0eb-4b2c-af14-d583cbb314f0:localhost:node-e2877f0c-1863-4196-8af0-42359a07b22f:Node e2877f0c-1863-4196-8af0-42359a07b22f :: true

createSubnodes 1.021s
2022-08-23 22:34:07 |

2022-08-23 22:34:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:07 | ------------------------------------

2022-08-23 22:34:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f8731224-b7f7-4d64-98de-d65f8c9c439f",
    "pubsub#title": "Node f8731224-b7f7-4d64-98de-d65f8c9c439f"
}

2022-08-23 22:34:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 22:34:08 | [Mutex] waiting for: [received:nodes:2a37d995-e512-444f-b033-54dcb0669f16:localhost]

2022-08-23 22:34:08 | [Mutex] received everything.

2022-08-23 22:34:08 | [Mutex] isItemNotified: received:node:2a37d995-e512-444f-b033-54dcb0669f16:localhost:node-f8731224-b7f7-4d64-98de-d65f8c9c439f:Node f8731224-b7f7-4d64-98de-d65f8c9c439f :: true

deleteNodes 1.017s
2022-08-23 22:34:12 |

2022-08-23 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:12 | ------------------------------------

2022-08-23 22:34:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f8731224-b7f7-4d64-98de-d65f8c9c439f"
}

2022-08-23 22:34:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 22:34:13 | [Mutex] waiting for: [received:nodes:bec40eb8-3d78-442d-9feb-544e40f40b85:localhost]

2022-08-23 22:34:13 | [Mutex] received everything.

2022-08-23 22:34:13 | [Mutex] isItemNotified: received:node:bec40eb8-3d78-442d-9feb-544e40f40b85:localhost:node-f8731224-b7f7-4d64-98de-d65f8c9c439f:Node f8731224-b7f7-4d64-98de-d65f8c9c439f :: false

deleteSubnodes 1.030s
2022-08-23 22:34:11 |

2022-08-23 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:11 | ------------------------------------

2022-08-23 22:34:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e2877f0c-1863-4196-8af0-42359a07b22f"
}

2022-08-23 22:34:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 22:34:12 | [Mutex] waiting for: [received:nodes:64d0ac3b-02f9-4947-ac62-9aab65fc28a5:localhost]

2022-08-23 22:34:12 | [Mutex] received everything.

2022-08-23 22:34:12 | [Mutex] isItemNotified: received:node:64d0ac3b-02f9-4947-ac62-9aab65fc28a5:localhost:node-e2877f0c-1863-4196-8af0-42359a07b22f:Node e2877f0c-1863-4196-8af0-42359a07b22f :: false

2022-08-23 22:34:12 | [Mutex] waiting for: [received:nodes:088c0f4a-0136-48cc-b849-f4f052c5f54d:localhost]

2022-08-23 22:34:12 | [Mutex] received everything.

2022-08-23 22:34:12 | [Mutex] isItemNotified: received:node:088c0f4a-0136-48cc-b849-f4f052c5f54d:localhost:node-e2877f0c-1863-4196-8af0-42359a07b22f:Node e2877f0c-1863-4196-8af0-42359a07b22f :: false

publishItemsToNodes 0.063s
2022-08-23 22:34:10 |

2022-08-23 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:10 | ------------------------------------

2022-08-23 22:34:10 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e2877f0c-1863-4196-8af0-42359a07b22f",
    "entry": "<test>item-4ad69a08-4f69-479e-8b78-6329a9f4bc83</test>",
    "item-id": "item-4ad69a08-4f69-479e-8b78-6329a9f4bc83"
}

2022-08-23 22:34:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4ad69a08-4f69-479e-8b78-6329a9f4bc83"
}

2022-08-23 22:34:10 | [Mutex] waiting for: [published:item:notifieditem-4ad69a08-4f69-479e-8b78-6329a9f4bc83:admin@test-domain.com]

2022-08-23 22:34:10 | [Mutex] received everything.

2022-08-23 22:34:10 | [Mutex] isItemNotified: published:item:notifieditem-4ad69a08-4f69-479e-8b78-6329a9f4bc83:admin@test-domain.com :: true

retractItemsFromNodes 0.080s
2022-08-23 22:34:10 |

2022-08-23 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:10 | ------------------------------------

2022-08-23 22:34:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e2877f0c-1863-4196-8af0-42359a07b22f",
    "item-id": "item-4ad69a08-4f69-479e-8b78-6329a9f4bc83"
}

2022-08-23 22:34:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4ad69a08-4f69-479e-8b78-6329a9f4bc83"
}

2022-08-23 22:34:10 | [Mutex] received everything.

2022-08-23 22:34:10 | [Mutex] isItemNotified: retracted:item:notifieditem-4ad69a08-4f69-479e-8b78-6329a9f4bc83:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-08-23 22:34:10 |

2022-08-23 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:10 | ------------------------------------

2022-08-23 22:34:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e2877f0c-1863-4196-8af0-42359a07b22f",
    "item-id": "item-4ad69a08-4f69-479e-8b78-6329a9f4bc83"
}

2022-08-23 22:34:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e2877f0c-1863-4196-8af0-42359a07b22f",
    "item-id": "item-4ad69a08-4f69-479e-8b78-6329a9f4bc83",
    "item": [
        "<item id=\"item-4ad69a08-4f69-479e-8b78-6329a9f4bc83\"><test>item-4ad69a08-4f69-479e-8b78-6329a9f4bc83</test></item>"
    ]
}

2022-08-23 22:34:10 | [Mutex] notify: [retrieved:item:item-4ad69a08-4f69-479e-8b78-6329a9f4bc83:payload-matches:true:localhost]

2022-08-23 22:34:10 | [Mutex] received everything.

2022-08-23 22:34:10 | [Mutex] isItemNotified: retrieved:item:item-4ad69a08-4f69-479e-8b78-6329a9f4bc83:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2022-08-23 22:34:10 |

2022-08-23 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:10 | ------------------------------------

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

2022-08-23 22:34:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f8731224-b7f7-4d64-98de-d65f8c9c439f",
        "node-e2877f0c-1863-4196-8af0-42359a07b22f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-08-23 22:34:10 |

2022-08-23 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:10 | ------------------------------------

2022-08-23 22:34:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e2877f0c-1863-4196-8af0-42359a07b22f)"
}

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

subscribeNodes 1.010s
2022-08-23 22:34:09 |

2022-08-23 22:34:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:09 | ------------------------------------

2022-08-23 22:34:09 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e2877f0c-1863-4196-8af0-42359a07b22f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-23 22:34:09 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-08-23 22:34:10 |

2022-08-23 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:10 | ------------------------------------

2022-08-23 22:34:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e2877f0c-1863-4196-8af0-42359a07b22f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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