Generated by TestNG with ReportNG at 22:13 PDT on Friday 04 September 2020
root@55161683a995 / 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.934s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2020-09-04 22:28:59 |

2020-09-04 22:28:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:28:59 | ------------------------------------

2020-09-04 22:28:59 | [Mutex] waiting for: [configured:node:node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd:node-ac8f56eb-4cd7-4e83-95da-3b73e10c57ee]

2020-09-04 22:28:59 | [Mutex] received everything.

2020-09-04 22:28:59 | [Mutex] isItemNotified: configured:node:node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd:node-ac8f56eb-4cd7-4e83-95da-3b73e10c57ee :: true

2020-09-04 22:29:00 | [Mutex] waiting for: [received:nodes:2d939797-c27f-4c26-a111-406754d87feb:localhost]

2020-09-04 22:29:00 | [Mutex] received everything.

2020-09-04 22:29:00 | [Mutex] isItemNotified: received:node:2d939797-c27f-4c26-a111-406754d87feb:localhost:node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd:Node ed84a7b4-b56e-48df-b89d-ec3b5560bcbd :: true

2020-09-04 22:29:00 | [Mutex] waiting for: [received:nodes:06aeacc9-ed55-44f7-a4cf-000dc214ebca:localhost]

2020-09-04 22:29:00 | [Mutex] received everything.

2020-09-04 22:29:00 | [Mutex] isItemNotified: received:node:06aeacc9-ed55-44f7-a4cf-000dc214ebca:localhost:node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd:Node ed84a7b4-b56e-48df-b89d-ec3b5560bcbd :: false

createNodes 1.666s
2020-09-04 22:28:57 |

2020-09-04 22:28:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:28:57 | ------------------------------------

2020-09-04 22:28:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd",
    "pubsub#title": "Node ed84a7b4-b56e-48df-b89d-ec3b5560bcbd"
}

2020-09-04 22:28:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-04 22:28:58 | [Mutex] waiting for: [received:nodes:fd2fbb2b-2722-4ec4-b4c7-816de3e9d64a:localhost]

2020-09-04 22:28:58 | [Mutex] received everything.

2020-09-04 22:28:58 | [Mutex] isItemNotified: received:node:fd2fbb2b-2722-4ec4-b4c7-816de3e9d64a:localhost:node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd:Node ed84a7b4-b56e-48df-b89d-ec3b5560bcbd :: true

createSubnodes 1.023s
2020-09-04 22:28:58 |

2020-09-04 22:28:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:28:58 | ------------------------------------

2020-09-04 22:28:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ac8f56eb-4cd7-4e83-95da-3b73e10c57ee",
    "pubsub#title": "Node ac8f56eb-4cd7-4e83-95da-3b73e10c57ee"
}

2020-09-04 22:28:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-04 22:28:59 | [Mutex] waiting for: [received:nodes:74d2ef30-c997-4a9c-9954-b255030b0bbf:localhost]

2020-09-04 22:28:59 | [Mutex] received everything.

2020-09-04 22:28:59 | [Mutex] isItemNotified: received:node:74d2ef30-c997-4a9c-9954-b255030b0bbf:localhost:node-ac8f56eb-4cd7-4e83-95da-3b73e10c57ee:Node ac8f56eb-4cd7-4e83-95da-3b73e10c57ee :: true

deleteNodes 1.023s
2020-09-04 22:29:04 |

2020-09-04 22:29:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:29:04 | ------------------------------------

2020-09-04 22:29:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ac8f56eb-4cd7-4e83-95da-3b73e10c57ee"
}

2020-09-04 22:29:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-04 22:29:05 | [Mutex] waiting for: [received:nodes:f090aacd-6c7f-475f-9946-5a50f2a5ac46:localhost]

2020-09-04 22:29:05 | [Mutex] waiting for: [received:nodes:f090aacd-6c7f-475f-9946-5a50f2a5ac46:localhost]

2020-09-04 22:29:05 | [Mutex] received everything.

2020-09-04 22:29:05 | [Mutex] isItemNotified: received:node:f090aacd-6c7f-475f-9946-5a50f2a5ac46:localhost:node-ac8f56eb-4cd7-4e83-95da-3b73e10c57ee:Node ac8f56eb-4cd7-4e83-95da-3b73e10c57ee :: false

deleteSubnodes 1.027s
2020-09-04 22:29:03 |

2020-09-04 22:29:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:29:03 | ------------------------------------

2020-09-04 22:29:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd"
}

2020-09-04 22:29:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-04 22:29:04 | [Mutex] waiting for: [received:nodes:f836aa4f-24b4-439d-9087-4740b32daa9c:localhost]

2020-09-04 22:29:04 | [Mutex] received everything.

2020-09-04 22:29:04 | [Mutex] isItemNotified: received:node:f836aa4f-24b4-439d-9087-4740b32daa9c:localhost:node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd:Node ed84a7b4-b56e-48df-b89d-ec3b5560bcbd :: false

2020-09-04 22:29:04 | [Mutex] waiting for: [received:nodes:0220726c-cba9-4b40-bb8f-5ef03fc5960b:localhost]

2020-09-04 22:29:04 | [Mutex] received everything.

2020-09-04 22:29:04 | [Mutex] isItemNotified: received:node:0220726c-cba9-4b40-bb8f-5ef03fc5960b:localhost:node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd:Node ed84a7b4-b56e-48df-b89d-ec3b5560bcbd :: false

publishItemsToNodes 0.048s
2020-09-04 22:29:01 |

2020-09-04 22:29:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:29:01 | ------------------------------------

2020-09-04 22:29:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd",
    "entry": "<test>item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf</test>",
    "item-id": "item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf"
}

2020-09-04 22:29:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf"
}

2020-09-04 22:29:01 | [Mutex] waiting for: [published:item:notifieditem-ca33ab78-564b-4ae5-bd28-01f68d04dcaf:admin@test-domain.com]

2020-09-04 22:29:02 | [Mutex] received everything.

2020-09-04 22:29:02 | [Mutex] isItemNotified: published:item:notifieditem-ca33ab78-564b-4ae5-bd28-01f68d04dcaf:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-09-04 22:29:02 |

2020-09-04 22:29:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:29:02 | ------------------------------------

2020-09-04 22:29:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd",
    "item-id": "item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf"
}

2020-09-04 22:29:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf"
}

2020-09-04 22:29:02 | [Mutex] received everything.

2020-09-04 22:29:02 | [Mutex] isItemNotified: retracted:item:notifieditem-ca33ab78-564b-4ae5-bd28-01f68d04dcaf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2020-09-04 22:29:02 |

2020-09-04 22:29:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:29:02 | ------------------------------------

2020-09-04 22:29:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd",
    "item-id": "item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf"
}

2020-09-04 22:29:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd",
    "item-id": "item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf",
    "item": [
        "<item id=\"item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf\"><test>item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf</test></item>"
    ]
}

2020-09-04 22:29:02 | [Mutex] notify: [retrieved:item:item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf:payload-matches:true:localhost]

2020-09-04 22:29:02 | [Mutex] received everything.

2020-09-04 22:29:02 | [Mutex] isItemNotified: retrieved:item:item-ca33ab78-564b-4ae5-bd28-01f68d04dcaf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-04 22:29:02 |

2020-09-04 22:29:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:29:02 | ------------------------------------

2020-09-04 22:29:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-04 22:29:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ac8f56eb-4cd7-4e83-95da-3b73e10c57ee",
        "node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2020-09-04 22:29:02 |

2020-09-04 22:29:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:29:02 | ------------------------------------

2020-09-04 22:29:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd)"
}

2020-09-04 22:29:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2020-09-04 22:29:00 |

2020-09-04 22:29:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:29:00 | ------------------------------------

2020-09-04 22:29:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-04 22:29:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-09-04 22:29:02 |

2020-09-04 22:29:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 22:29:02 | ------------------------------------

2020-09-04 22:29:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ed84a7b4-b56e-48df-b89d-ec3b5560bcbd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-04 22:29:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}