Generated by TestNG with ReportNG at 21:58 PST on Thursday 14 January 2021
root@43fec6d4badf / 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.051s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2021-01-14 22:14:11 |

2021-01-14 22:14:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:11 | ------------------------------------

2021-01-14 22:14:11 | [Mutex] waiting for: [configured:node:node-70df0770-41da-4868-9471-ec1537dca5ef:node-dc1f906b-34e5-4aeb-a458-93a528be5042]

2021-01-14 22:14:12 | [Mutex] received everything.

2021-01-14 22:14:12 | [Mutex] isItemNotified: configured:node:node-70df0770-41da-4868-9471-ec1537dca5ef:node-dc1f906b-34e5-4aeb-a458-93a528be5042 :: true

2021-01-14 22:14:13 | [Mutex] waiting for: [received:nodes:98e00011-7a98-459f-9f7d-237dd255ce15:localhost]

2021-01-14 22:14:13 | [Mutex] received everything.

2021-01-14 22:14:13 | [Mutex] isItemNotified: received:node:98e00011-7a98-459f-9f7d-237dd255ce15:localhost:node-70df0770-41da-4868-9471-ec1537dca5ef:Node 70df0770-41da-4868-9471-ec1537dca5ef :: true

2021-01-14 22:14:13 | [Mutex] waiting for: [received:nodes:0a75acb9-058a-4d1c-9a87-ccb42526c0d9:localhost]

2021-01-14 22:14:13 | [Mutex] received everything.

2021-01-14 22:14:13 | [Mutex] isItemNotified: received:node:0a75acb9-058a-4d1c-9a87-ccb42526c0d9:localhost:node-70df0770-41da-4868-9471-ec1537dca5ef:Node 70df0770-41da-4868-9471-ec1537dca5ef :: false

createNodes 1.649s
2021-01-14 22:14:09 |

2021-01-14 22:14:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:09 | ------------------------------------

2021-01-14 22:14:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-70df0770-41da-4868-9471-ec1537dca5ef",
    "pubsub#title": "Node 70df0770-41da-4868-9471-ec1537dca5ef"
}

2021-01-14 22:14:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 22:14:10 | [Mutex] waiting for: [received:nodes:3bb09c9a-8b2a-49f5-a099-f05970f37f04:localhost]

2021-01-14 22:14:10 | [Mutex] received everything.

2021-01-14 22:14:10 | [Mutex] isItemNotified: received:node:3bb09c9a-8b2a-49f5-a099-f05970f37f04:localhost:node-70df0770-41da-4868-9471-ec1537dca5ef:Node 70df0770-41da-4868-9471-ec1537dca5ef :: true

createSubnodes 1.024s
2021-01-14 22:14:10 |

2021-01-14 22:14:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:10 | ------------------------------------

2021-01-14 22:14:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dc1f906b-34e5-4aeb-a458-93a528be5042",
    "pubsub#title": "Node dc1f906b-34e5-4aeb-a458-93a528be5042"
}

2021-01-14 22:14:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 22:14:11 | [Mutex] waiting for: [received:nodes:cf562190-30f5-4f1c-99a7-3b7ee00be28f:localhost]

2021-01-14 22:14:11 | [Mutex] received everything.

2021-01-14 22:14:11 | [Mutex] isItemNotified: received:node:cf562190-30f5-4f1c-99a7-3b7ee00be28f:localhost:node-dc1f906b-34e5-4aeb-a458-93a528be5042:Node dc1f906b-34e5-4aeb-a458-93a528be5042 :: true

deleteNodes 1.035s
2021-01-14 22:14:16 |

2021-01-14 22:14:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:16 | ------------------------------------

2021-01-14 22:14:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dc1f906b-34e5-4aeb-a458-93a528be5042"
}

2021-01-14 22:14:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 22:14:17 | [Mutex] waiting for: [received:nodes:5bd9373e-3c15-481f-98f2-6a2d4150f71d:localhost]

2021-01-14 22:14:17 | [Mutex] received everything.

2021-01-14 22:14:17 | [Mutex] isItemNotified: received:node:5bd9373e-3c15-481f-98f2-6a2d4150f71d:localhost:node-dc1f906b-34e5-4aeb-a458-93a528be5042:Node dc1f906b-34e5-4aeb-a458-93a528be5042 :: false

deleteSubnodes 1.035s
2021-01-14 22:14:15 |

2021-01-14 22:14:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:15 | ------------------------------------

2021-01-14 22:14:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-70df0770-41da-4868-9471-ec1537dca5ef"
}

2021-01-14 22:14:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 22:14:16 | [Mutex] waiting for: [received:nodes:aafa63aa-5813-49eb-a498-a42e0708f520:localhost]

2021-01-14 22:14:16 | [Mutex] waiting for: [received:nodes:aafa63aa-5813-49eb-a498-a42e0708f520:localhost]

2021-01-14 22:14:16 | [Mutex] received everything.

2021-01-14 22:14:16 | [Mutex] isItemNotified: received:node:aafa63aa-5813-49eb-a498-a42e0708f520:localhost:node-70df0770-41da-4868-9471-ec1537dca5ef:Node 70df0770-41da-4868-9471-ec1537dca5ef :: false

2021-01-14 22:14:16 | [Mutex] waiting for: [received:nodes:70cfe7a2-0004-4d9c-a02a-92fea95eeb2c:localhost]

2021-01-14 22:14:16 | [Mutex] received everything.

2021-01-14 22:14:16 | [Mutex] isItemNotified: received:node:70cfe7a2-0004-4d9c-a02a-92fea95eeb2c:localhost:node-70df0770-41da-4868-9471-ec1537dca5ef:Node 70df0770-41da-4868-9471-ec1537dca5ef :: false

publishItemsToNodes 0.055s
2021-01-14 22:14:14 |

2021-01-14 22:14:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:14 | ------------------------------------

2021-01-14 22:14:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-70df0770-41da-4868-9471-ec1537dca5ef",
    "entry": "<test>item-73657e0e-66fa-42e3-aa67-aade0581a11a</test>",
    "item-id": "item-73657e0e-66fa-42e3-aa67-aade0581a11a"
}

2021-01-14 22:14:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-73657e0e-66fa-42e3-aa67-aade0581a11a"
}

2021-01-14 22:14:14 | [Mutex] waiting for: [published:item:notifieditem-73657e0e-66fa-42e3-aa67-aade0581a11a:admin@test-domain.com]

2021-01-14 22:14:14 | [Mutex] received everything.

2021-01-14 22:14:14 | [Mutex] isItemNotified: published:item:notifieditem-73657e0e-66fa-42e3-aa67-aade0581a11a:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-01-14 22:14:14 |

2021-01-14 22:14:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:14 | ------------------------------------

2021-01-14 22:14:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-70df0770-41da-4868-9471-ec1537dca5ef",
    "item-id": "item-73657e0e-66fa-42e3-aa67-aade0581a11a"
}

2021-01-14 22:14:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-73657e0e-66fa-42e3-aa67-aade0581a11a"
}

2021-01-14 22:14:14 | [Mutex] received everything.

2021-01-14 22:14:14 | [Mutex] isItemNotified: retracted:item:notifieditem-73657e0e-66fa-42e3-aa67-aade0581a11a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2021-01-14 22:14:14 |

2021-01-14 22:14:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:14 | ------------------------------------

2021-01-14 22:14:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-70df0770-41da-4868-9471-ec1537dca5ef",
    "item-id": "item-73657e0e-66fa-42e3-aa67-aade0581a11a"
}

2021-01-14 22:14:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-70df0770-41da-4868-9471-ec1537dca5ef",
    "item-id": "item-73657e0e-66fa-42e3-aa67-aade0581a11a",
    "item": [
        "<item id=\"item-73657e0e-66fa-42e3-aa67-aade0581a11a\"><test>item-73657e0e-66fa-42e3-aa67-aade0581a11a</test></item>"
    ]
}

2021-01-14 22:14:14 | [Mutex] notify: [retrieved:item:item-73657e0e-66fa-42e3-aa67-aade0581a11a:payload-matches:true:localhost]

2021-01-14 22:14:14 | [Mutex] received everything.

2021-01-14 22:14:14 | [Mutex] isItemNotified: retrieved:item:item-73657e0e-66fa-42e3-aa67-aade0581a11a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-14 22:14:14 |

2021-01-14 22:14:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:14 | ------------------------------------

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

2021-01-14 22:14:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-70df0770-41da-4868-9471-ec1537dca5ef",
        "node-dc1f906b-34e5-4aeb-a458-93a528be5042"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-14 22:14:14 |

2021-01-14 22:14:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:14 | ------------------------------------

2021-01-14 22:14:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-70df0770-41da-4868-9471-ec1537dca5ef)"
}

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

subscribeNodes 1.016s
2021-01-14 22:14:13 |

2021-01-14 22:14:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:13 | ------------------------------------

2021-01-14 22:14:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-70df0770-41da-4868-9471-ec1537dca5ef",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-14 22:14:13 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-01-14 22:14:14 |

2021-01-14 22:14:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 22:14:14 | ------------------------------------

2021-01-14 22:14:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-70df0770-41da-4868-9471-ec1537dca5ef",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-14 22:14:14 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}