Generated by TestNG with ReportNG at 22:19 PDT on Tuesday 16 August 2022
root@7c41cec37518 / 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.583s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2022-08-16 22:34:31 |

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

2022-08-16 22:34:31 | ------------------------------------

2022-08-16 22:34:31 | [Mutex] waiting for: [configured:node:node-346641dd-04b1-4f0a-b6e0-461762f964e7:node-3411526b-3c9e-4653-a460-afb90dca6650]

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

2022-08-16 22:34:31 | [Mutex] isItemNotified: configured:node:node-346641dd-04b1-4f0a-b6e0-461762f964e7:node-3411526b-3c9e-4653-a460-afb90dca6650 :: true

2022-08-16 22:34:32 | [Mutex] waiting for: [received:nodes:03377778-c3b4-4020-8e09-49ef0d4852f1:localhost]

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

2022-08-16 22:34:32 | [Mutex] isItemNotified: received:node:03377778-c3b4-4020-8e09-49ef0d4852f1:localhost:node-346641dd-04b1-4f0a-b6e0-461762f964e7:Node 346641dd-04b1-4f0a-b6e0-461762f964e7 :: true

2022-08-16 22:34:32 | [Mutex] waiting for: [received:nodes:a5acf6c4-c415-4c63-b216-56105b2a92a9:localhost]

2022-08-16 22:34:32 | [Mutex] waiting for: [received:nodes:a5acf6c4-c415-4c63-b216-56105b2a92a9:localhost]

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

2022-08-16 22:34:32 | [Mutex] isItemNotified: received:node:a5acf6c4-c415-4c63-b216-56105b2a92a9:localhost:node-346641dd-04b1-4f0a-b6e0-461762f964e7:Node 346641dd-04b1-4f0a-b6e0-461762f964e7 :: false

createNodes 1.605s
2022-08-16 22:34:28 |

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

2022-08-16 22:34:28 | ------------------------------------

2022-08-16 22:34:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-346641dd-04b1-4f0a-b6e0-461762f964e7",
    "pubsub#title": "Node 346641dd-04b1-4f0a-b6e0-461762f964e7"
}

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

2022-08-16 22:34:30 | [Mutex] waiting for: [received:nodes:c27f5319-79b3-49dc-acb0-ac4435b31a12:localhost]

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

2022-08-16 22:34:30 | [Mutex] isItemNotified: received:node:c27f5319-79b3-49dc-acb0-ac4435b31a12:localhost:node-346641dd-04b1-4f0a-b6e0-461762f964e7:Node 346641dd-04b1-4f0a-b6e0-461762f964e7 :: true

createSubnodes 1.021s
2022-08-16 22:34:30 |

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

2022-08-16 22:34:30 | ------------------------------------

2022-08-16 22:34:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3411526b-3c9e-4653-a460-afb90dca6650",
    "pubsub#title": "Node 3411526b-3c9e-4653-a460-afb90dca6650"
}

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

2022-08-16 22:34:31 | [Mutex] waiting for: [received:nodes:bbcfa3bc-2b7a-444c-8506-ef36d339eb2f:localhost]

2022-08-16 22:34:31 | [Mutex] waiting for: [received:nodes:bbcfa3bc-2b7a-444c-8506-ef36d339eb2f:localhost]

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

2022-08-16 22:34:31 | [Mutex] isItemNotified: received:node:bbcfa3bc-2b7a-444c-8506-ef36d339eb2f:localhost:node-3411526b-3c9e-4653-a460-afb90dca6650:Node 3411526b-3c9e-4653-a460-afb90dca6650 :: true

deleteNodes 1.021s
2022-08-16 22:34:35 |

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

2022-08-16 22:34:35 | ------------------------------------

2022-08-16 22:34:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3411526b-3c9e-4653-a460-afb90dca6650"
}

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

2022-08-16 22:34:36 | [Mutex] waiting for: [received:nodes:17ac60dc-e5cd-4df2-8525-fe2f39402b73:localhost]

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

2022-08-16 22:34:36 | [Mutex] isItemNotified: received:node:17ac60dc-e5cd-4df2-8525-fe2f39402b73:localhost:node-3411526b-3c9e-4653-a460-afb90dca6650:Node 3411526b-3c9e-4653-a460-afb90dca6650 :: false

deleteSubnodes 1.023s
2022-08-16 22:34:34 |

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

2022-08-16 22:34:34 | ------------------------------------

2022-08-16 22:34:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-346641dd-04b1-4f0a-b6e0-461762f964e7"
}

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

2022-08-16 22:34:35 | [Mutex] waiting for: [received:nodes:7e50944a-6274-4633-8f8a-2ad35aa6adab:localhost]

2022-08-16 22:34:35 | [Mutex] waiting for: [received:nodes:7e50944a-6274-4633-8f8a-2ad35aa6adab:localhost]

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

2022-08-16 22:34:35 | [Mutex] isItemNotified: received:node:7e50944a-6274-4633-8f8a-2ad35aa6adab:localhost:node-346641dd-04b1-4f0a-b6e0-461762f964e7:Node 346641dd-04b1-4f0a-b6e0-461762f964e7 :: false

2022-08-16 22:34:35 | [Mutex] waiting for: [received:nodes:66a739a1-dc6f-42b7-be4b-b1781eaa20c7:localhost]

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

2022-08-16 22:34:35 | [Mutex] isItemNotified: received:node:66a739a1-dc6f-42b7-be4b-b1781eaa20c7:localhost:node-346641dd-04b1-4f0a-b6e0-461762f964e7:Node 346641dd-04b1-4f0a-b6e0-461762f964e7 :: false

publishItemsToNodes 0.049s
2022-08-16 22:34:33 |

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

2022-08-16 22:34:33 | ------------------------------------

2022-08-16 22:34:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-346641dd-04b1-4f0a-b6e0-461762f964e7",
    "entry": "<test>item-23de04b0-ce2c-4bfc-a699-8d03471f7b56</test>",
    "item-id": "item-23de04b0-ce2c-4bfc-a699-8d03471f7b56"
}

2022-08-16 22:34:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-23de04b0-ce2c-4bfc-a699-8d03471f7b56"
}

2022-08-16 22:34:33 | [Mutex] waiting for: [published:item:notifieditem-23de04b0-ce2c-4bfc-a699-8d03471f7b56:admin@test-domain.com]

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

2022-08-16 22:34:33 | [Mutex] isItemNotified: published:item:notifieditem-23de04b0-ce2c-4bfc-a699-8d03471f7b56:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-08-16 22:34:33 |

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

2022-08-16 22:34:33 | ------------------------------------

2022-08-16 22:34:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-346641dd-04b1-4f0a-b6e0-461762f964e7",
    "item-id": "item-23de04b0-ce2c-4bfc-a699-8d03471f7b56"
}

2022-08-16 22:34:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-23de04b0-ce2c-4bfc-a699-8d03471f7b56"
}

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

2022-08-16 22:34:33 | [Mutex] isItemNotified: retracted:item:notifieditem-23de04b0-ce2c-4bfc-a699-8d03471f7b56:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-08-16 22:34:33 |

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

2022-08-16 22:34:33 | ------------------------------------

2022-08-16 22:34:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-346641dd-04b1-4f0a-b6e0-461762f964e7",
    "item-id": "item-23de04b0-ce2c-4bfc-a699-8d03471f7b56"
}

2022-08-16 22:34:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-346641dd-04b1-4f0a-b6e0-461762f964e7",
    "item-id": "item-23de04b0-ce2c-4bfc-a699-8d03471f7b56",
    "item": [
        "<item id=\"item-23de04b0-ce2c-4bfc-a699-8d03471f7b56\"><test>item-23de04b0-ce2c-4bfc-a699-8d03471f7b56</test></item>"
    ]
}

2022-08-16 22:34:33 | [Mutex] notify: [retrieved:item:item-23de04b0-ce2c-4bfc-a699-8d03471f7b56:payload-matches:true:localhost]

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

2022-08-16 22:34:33 | [Mutex] isItemNotified: retrieved:item:item-23de04b0-ce2c-4bfc-a699-8d03471f7b56:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-08-16 22:34:33 |

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

2022-08-16 22:34:33 | ------------------------------------

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

2022-08-16 22:34:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-346641dd-04b1-4f0a-b6e0-461762f964e7",
        "test",
        "node-3411526b-3c9e-4653-a460-afb90dca6650"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-16 22:34:33 |

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

2022-08-16 22:34:33 | ------------------------------------

2022-08-16 22:34:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-346641dd-04b1-4f0a-b6e0-461762f964e7)"
}

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

subscribeNodes 1.011s
2022-08-16 22:34:32 |

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

2022-08-16 22:34:32 | ------------------------------------

2022-08-16 22:34:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-346641dd-04b1-4f0a-b6e0-461762f964e7",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-08-16 22:34:33 |

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

2022-08-16 22:34:33 | ------------------------------------

2022-08-16 22:34:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-346641dd-04b1-4f0a-b6e0-461762f964e7",
    "jids": [
        "admin@test-domain.com"
    ]
}

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