Generated by TestNG with ReportNG at 22:25 PDT on Wednesday 17 March 2021
root@87f6aca6b6f2 / 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 : 9.027s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2021-03-17 22:42:28 |

2021-03-17 22:42:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:28 | ------------------------------------

2021-03-17 22:42:28 | [Mutex] waiting for: [configured:node:node-f0396854-d81d-434b-8865-67718213440d:node-b2c2a636-6af0-4ba4-824a-ae7126c330cf]

2021-03-17 22:42:29 | [Mutex] received everything.

2021-03-17 22:42:29 | [Mutex] isItemNotified: configured:node:node-f0396854-d81d-434b-8865-67718213440d:node-b2c2a636-6af0-4ba4-824a-ae7126c330cf :: true

2021-03-17 22:42:30 | [Mutex] waiting for: [received:nodes:76c4809b-4534-4ce1-a814-249ced7e1c4c:localhost]

2021-03-17 22:42:30 | [Mutex] received everything.

2021-03-17 22:42:30 | [Mutex] isItemNotified: received:node:76c4809b-4534-4ce1-a814-249ced7e1c4c:localhost:node-f0396854-d81d-434b-8865-67718213440d:Node f0396854-d81d-434b-8865-67718213440d :: true

2021-03-17 22:42:30 | [Mutex] waiting for: [received:nodes:ac844006-24cf-43e9-86b9-d97cad1a3c9d:localhost]

2021-03-17 22:42:30 | [Mutex] received everything.

2021-03-17 22:42:30 | [Mutex] isItemNotified: received:node:ac844006-24cf-43e9-86b9-d97cad1a3c9d:localhost:node-f0396854-d81d-434b-8865-67718213440d:Node f0396854-d81d-434b-8865-67718213440d :: false

createNodes 1.639s
2021-03-17 22:42:26 |

2021-03-17 22:42:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:26 | ------------------------------------

2021-03-17 22:42:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f0396854-d81d-434b-8865-67718213440d",
    "pubsub#title": "Node f0396854-d81d-434b-8865-67718213440d"
}

2021-03-17 22:42:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:42:27 | [Mutex] waiting for: [received:nodes:37b63eb0-adf2-4d95-bace-c9f5e3f0aa41:localhost]

2021-03-17 22:42:27 | [Mutex] received everything.

2021-03-17 22:42:27 | [Mutex] isItemNotified: received:node:37b63eb0-adf2-4d95-bace-c9f5e3f0aa41:localhost:node-f0396854-d81d-434b-8865-67718213440d:Node f0396854-d81d-434b-8865-67718213440d :: true

createSubnodes 1.028s
2021-03-17 22:42:27 |

2021-03-17 22:42:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:27 | ------------------------------------

2021-03-17 22:42:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b2c2a636-6af0-4ba4-824a-ae7126c330cf",
    "pubsub#title": "Node b2c2a636-6af0-4ba4-824a-ae7126c330cf"
}

2021-03-17 22:42:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:42:28 | [Mutex] waiting for: [received:nodes:7c217335-0e18-4ed7-b9be-b944157c0b82:localhost]

2021-03-17 22:42:28 | [Mutex] received everything.

2021-03-17 22:42:28 | [Mutex] isItemNotified: received:node:7c217335-0e18-4ed7-b9be-b944157c0b82:localhost:node-b2c2a636-6af0-4ba4-824a-ae7126c330cf:Node b2c2a636-6af0-4ba4-824a-ae7126c330cf :: true

deleteNodes 1.038s
2021-03-17 22:42:33 |

2021-03-17 22:42:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:33 | ------------------------------------

2021-03-17 22:42:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b2c2a636-6af0-4ba4-824a-ae7126c330cf"
}

2021-03-17 22:42:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:42:34 | [Mutex] waiting for: [received:nodes:b9aaaec7-69f4-4e8e-af73-3c51e860f4f0:localhost]

2021-03-17 22:42:34 | [Mutex] received everything.

2021-03-17 22:42:34 | [Mutex] isItemNotified: received:node:b9aaaec7-69f4-4e8e-af73-3c51e860f4f0:localhost:node-b2c2a636-6af0-4ba4-824a-ae7126c330cf:Node b2c2a636-6af0-4ba4-824a-ae7126c330cf :: false

deleteSubnodes 1.028s
2021-03-17 22:42:32 |

2021-03-17 22:42:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:32 | ------------------------------------

2021-03-17 22:42:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f0396854-d81d-434b-8865-67718213440d"
}

2021-03-17 22:42:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:42:33 | [Mutex] waiting for: [received:nodes:9286b50d-80c4-4657-9dbc-6b8a217ce959:localhost]

2021-03-17 22:42:33 | [Mutex] received everything.

2021-03-17 22:42:33 | [Mutex] isItemNotified: received:node:9286b50d-80c4-4657-9dbc-6b8a217ce959:localhost:node-f0396854-d81d-434b-8865-67718213440d:Node f0396854-d81d-434b-8865-67718213440d :: false

2021-03-17 22:42:33 | [Mutex] waiting for: [received:nodes:b911010b-32eb-47e1-b730-545bc4655a96:localhost]

2021-03-17 22:42:33 | [Mutex] received everything.

2021-03-17 22:42:33 | [Mutex] isItemNotified: received:node:b911010b-32eb-47e1-b730-545bc4655a96:localhost:node-f0396854-d81d-434b-8865-67718213440d:Node f0396854-d81d-434b-8865-67718213440d :: false

publishItemsToNodes 0.049s
2021-03-17 22:42:31 |

2021-03-17 22:42:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:31 | ------------------------------------

2021-03-17 22:42:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f0396854-d81d-434b-8865-67718213440d",
    "entry": "<test>item-4aea367b-6fc7-4811-aea9-159fa44b2c0f</test>",
    "item-id": "item-4aea367b-6fc7-4811-aea9-159fa44b2c0f"
}

2021-03-17 22:42:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4aea367b-6fc7-4811-aea9-159fa44b2c0f"
}

2021-03-17 22:42:31 | [Mutex] waiting for: [published:item:notifieditem-4aea367b-6fc7-4811-aea9-159fa44b2c0f:admin@test-domain.com]

2021-03-17 22:42:31 | [Mutex] received everything.

2021-03-17 22:42:31 | [Mutex] isItemNotified: published:item:notifieditem-4aea367b-6fc7-4811-aea9-159fa44b2c0f:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2021-03-17 22:42:31 |

2021-03-17 22:42:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:31 | ------------------------------------

2021-03-17 22:42:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f0396854-d81d-434b-8865-67718213440d",
    "item-id": "item-4aea367b-6fc7-4811-aea9-159fa44b2c0f"
}

2021-03-17 22:42:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4aea367b-6fc7-4811-aea9-159fa44b2c0f"
}

2021-03-17 22:42:31 | [Mutex] waiting for: [retracted:item:notifieditem-4aea367b-6fc7-4811-aea9-159fa44b2c0f:admin@test-domain.com]

2021-03-17 22:42:31 | [Mutex] received everything.

2021-03-17 22:42:31 | [Mutex] isItemNotified: retracted:item:notifieditem-4aea367b-6fc7-4811-aea9-159fa44b2c0f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2021-03-17 22:42:31 |

2021-03-17 22:42:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:31 | ------------------------------------

2021-03-17 22:42:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f0396854-d81d-434b-8865-67718213440d",
    "item-id": "item-4aea367b-6fc7-4811-aea9-159fa44b2c0f"
}

2021-03-17 22:42:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f0396854-d81d-434b-8865-67718213440d",
    "item-id": "item-4aea367b-6fc7-4811-aea9-159fa44b2c0f",
    "item": [
        "<item id=\"item-4aea367b-6fc7-4811-aea9-159fa44b2c0f\"><test>item-4aea367b-6fc7-4811-aea9-159fa44b2c0f</test></item>"
    ]
}

2021-03-17 22:42:31 | [Mutex] notify: [retrieved:item:item-4aea367b-6fc7-4811-aea9-159fa44b2c0f:payload-matches:true:localhost]

2021-03-17 22:42:31 | [Mutex] received everything.

2021-03-17 22:42:31 | [Mutex] isItemNotified: retrieved:item:item-4aea367b-6fc7-4811-aea9-159fa44b2c0f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-03-17 22:42:31 |

2021-03-17 22:42:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:31 | ------------------------------------

2021-03-17 22:42:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-17 22:42:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b2c2a636-6af0-4ba4-824a-ae7126c330cf",
        "node-f0396854-d81d-434b-8865-67718213440d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-03-17 22:42:31 |

2021-03-17 22:42:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:31 | ------------------------------------

2021-03-17 22:42:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f0396854-d81d-434b-8865-67718213440d)"
}

2021-03-17 22:42:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-03-17 22:42:30 |

2021-03-17 22:42:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:30 | ------------------------------------

2021-03-17 22:42:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f0396854-d81d-434b-8865-67718213440d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-17 22:42:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2021-03-17 22:42:31 |

2021-03-17 22:42:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:42:31 | ------------------------------------

2021-03-17 22:42:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f0396854-d81d-434b-8865-67718213440d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-17 22:42:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}