Generated by TestNG with ReportNG at 22:09 PST on Wednesday 19 January 2022
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.901s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-01-19 22:22:58 |

2022-01-19 22:22:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:22:58 | ------------------------------------

2022-01-19 22:22:58 | [Mutex] waiting for: [configured:node:node-e03d0d1f-a7dc-4f71-a531-29960a47b513:node-1a0530cf-36c3-4078-9999-fd5dc8aa6339]

2022-01-19 22:22:58 | [Mutex] received everything.

2022-01-19 22:22:58 | [Mutex] isItemNotified: configured:node:node-e03d0d1f-a7dc-4f71-a531-29960a47b513:node-1a0530cf-36c3-4078-9999-fd5dc8aa6339 :: true

2022-01-19 22:22:59 | [Mutex] waiting for: [received:nodes:113f4d74-9877-40d0-ac9f-48126954073f:localhost]

2022-01-19 22:22:59 | [Mutex] received everything.

2022-01-19 22:22:59 | [Mutex] isItemNotified: received:node:113f4d74-9877-40d0-ac9f-48126954073f:localhost:node-e03d0d1f-a7dc-4f71-a531-29960a47b513:Node e03d0d1f-a7dc-4f71-a531-29960a47b513 :: true

2022-01-19 22:22:59 | [Mutex] waiting for: [received:nodes:831f1210-9944-47cf-8e78-8e9be3429d33:localhost]

2022-01-19 22:22:59 | [Mutex] received everything.

2022-01-19 22:22:59 | [Mutex] isItemNotified: received:node:831f1210-9944-47cf-8e78-8e9be3429d33:localhost:node-e03d0d1f-a7dc-4f71-a531-29960a47b513:Node e03d0d1f-a7dc-4f71-a531-29960a47b513 :: false

createNodes 1.650s
2022-01-19 22:22:55 |

2022-01-19 22:22:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:22:55 | ------------------------------------

2022-01-19 22:22:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e03d0d1f-a7dc-4f71-a531-29960a47b513",
    "pubsub#title": "Node e03d0d1f-a7dc-4f71-a531-29960a47b513"
}

2022-01-19 22:22:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 22:22:57 | [Mutex] waiting for: [received:nodes:f46fdf50-1a07-41f6-b4a0-de3c7794b873:localhost]

2022-01-19 22:22:57 | [Mutex] received everything.

2022-01-19 22:22:57 | [Mutex] isItemNotified: received:node:f46fdf50-1a07-41f6-b4a0-de3c7794b873:localhost:node-e03d0d1f-a7dc-4f71-a531-29960a47b513:Node e03d0d1f-a7dc-4f71-a531-29960a47b513 :: true

createSubnodes 1.023s
2022-01-19 22:22:57 |

2022-01-19 22:22:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:22:57 | ------------------------------------

2022-01-19 22:22: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-1a0530cf-36c3-4078-9999-fd5dc8aa6339",
    "pubsub#title": "Node 1a0530cf-36c3-4078-9999-fd5dc8aa6339"
}

2022-01-19 22:22:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 22:22:58 | [Mutex] waiting for: [received:nodes:5a8d66ea-329d-48cd-9c5b-6536579f78db:localhost]

2022-01-19 22:22:58 | [Mutex] received everything.

2022-01-19 22:22:58 | [Mutex] isItemNotified: received:node:5a8d66ea-329d-48cd-9c5b-6536579f78db:localhost:node-1a0530cf-36c3-4078-9999-fd5dc8aa6339:Node 1a0530cf-36c3-4078-9999-fd5dc8aa6339 :: true

deleteNodes 1.028s
2022-01-19 22:23:02 |

2022-01-19 22:23:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:23:02 | ------------------------------------

2022-01-19 22:23:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1a0530cf-36c3-4078-9999-fd5dc8aa6339"
}

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

2022-01-19 22:23:03 | [Mutex] waiting for: [received:nodes:8bed1120-94ab-47d8-8239-4d7da02f7893:localhost]

2022-01-19 22:23:03 | [Mutex] waiting for: [received:nodes:8bed1120-94ab-47d8-8239-4d7da02f7893:localhost]

2022-01-19 22:23:03 | [Mutex] received everything.

2022-01-19 22:23:03 | [Mutex] isItemNotified: received:node:8bed1120-94ab-47d8-8239-4d7da02f7893:localhost:node-1a0530cf-36c3-4078-9999-fd5dc8aa6339:Node 1a0530cf-36c3-4078-9999-fd5dc8aa6339 :: false

deleteSubnodes 1.030s
2022-01-19 22:23:01 |

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

2022-01-19 22:23:01 | ------------------------------------

2022-01-19 22:23:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e03d0d1f-a7dc-4f71-a531-29960a47b513"
}

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

2022-01-19 22:23:02 | [Mutex] waiting for: [received:nodes:b54215d6-5437-4a5e-8576-d016c5a76f82:localhost]

2022-01-19 22:23:02 | [Mutex] waiting for: [received:nodes:b54215d6-5437-4a5e-8576-d016c5a76f82:localhost]

2022-01-19 22:23:02 | [Mutex] received everything.

2022-01-19 22:23:02 | [Mutex] isItemNotified: received:node:b54215d6-5437-4a5e-8576-d016c5a76f82:localhost:node-e03d0d1f-a7dc-4f71-a531-29960a47b513:Node e03d0d1f-a7dc-4f71-a531-29960a47b513 :: false

2022-01-19 22:23:02 | [Mutex] waiting for: [received:nodes:ae5b8e7b-2ea8-406d-8d9e-e86d713faf5f:localhost]

2022-01-19 22:23:02 | [Mutex] received everything.

2022-01-19 22:23:02 | [Mutex] isItemNotified: received:node:ae5b8e7b-2ea8-406d-8d9e-e86d713faf5f:localhost:node-e03d0d1f-a7dc-4f71-a531-29960a47b513:Node e03d0d1f-a7dc-4f71-a531-29960a47b513 :: false

publishItemsToNodes 0.055s
2022-01-19 22:23:00 |

2022-01-19 22:23:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:23:00 | ------------------------------------

2022-01-19 22:23:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e03d0d1f-a7dc-4f71-a531-29960a47b513",
    "entry": "<test>item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca</test>",
    "item-id": "item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca"
}

2022-01-19 22:23:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca"
}

2022-01-19 22:23:00 | [Mutex] waiting for: [published:item:notifieditem-5cdc1636-f2d8-46b5-a1cd-0218cd026cca:admin@test-domain.com]

2022-01-19 22:23:00 | [Mutex] received everything.

2022-01-19 22:23:00 | [Mutex] isItemNotified: published:item:notifieditem-5cdc1636-f2d8-46b5-a1cd-0218cd026cca:admin@test-domain.com :: true

retractItemsFromNodes 0.086s
2022-01-19 22:23:00 |

2022-01-19 22:23:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:23:00 | ------------------------------------

2022-01-19 22:23:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e03d0d1f-a7dc-4f71-a531-29960a47b513",
    "item-id": "item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca"
}

2022-01-19 22:23:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca"
}

2022-01-19 22:23:00 | [Mutex] received everything.

2022-01-19 22:23:00 | [Mutex] isItemNotified: retracted:item:notifieditem-5cdc1636-f2d8-46b5-a1cd-0218cd026cca:admin@test-domain.com :: true

retrieveItemsFromNodes 0.028s
2022-01-19 22:23:00 |

2022-01-19 22:23:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:23:00 | ------------------------------------

2022-01-19 22:23:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e03d0d1f-a7dc-4f71-a531-29960a47b513",
    "item-id": "item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca"
}

2022-01-19 22:23:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e03d0d1f-a7dc-4f71-a531-29960a47b513",
    "item-id": "item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca",
    "item": [
        "<item id=\"item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca\"><test>item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca</test></item>"
    ]
}

2022-01-19 22:23:00 | [Mutex] notify: [retrieved:item:item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca:payload-matches:true:localhost]

2022-01-19 22:23:00 | [Mutex] received everything.

2022-01-19 22:23:00 | [Mutex] isItemNotified: retrieved:item:item-5cdc1636-f2d8-46b5-a1cd-0218cd026cca:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.072s
2022-01-19 22:23:00 |

2022-01-19 22:23:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:23:00 | ------------------------------------

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

2022-01-19 22:23:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1a0530cf-36c3-4078-9999-fd5dc8aa6339",
        "test",
        "node-e03d0d1f-a7dc-4f71-a531-29960a47b513"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-01-19 22:23:00 |

2022-01-19 22:23:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:23:00 | ------------------------------------

2022-01-19 22:23:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e03d0d1f-a7dc-4f71-a531-29960a47b513)"
}

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

subscribeNodes 1.010s
2022-01-19 22:22:59 |

2022-01-19 22:22:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:22:59 | ------------------------------------

2022-01-19 22:22:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e03d0d1f-a7dc-4f71-a531-29960a47b513",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-01-19 22:22:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.062s
2022-01-19 22:23:00 |

2022-01-19 22:23:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 22:23:00 | ------------------------------------

2022-01-19 22:23:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e03d0d1f-a7dc-4f71-a531-29960a47b513",
    "jids": [
        "admin@test-domain.com"
    ]
}

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