Generated by TestNG with ReportNG at 22:15 PDT on Friday 14 May 2021
root@b2c2a8eba6e6 / 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.084s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.120s
2021-05-14 22:29:58 |

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

2021-05-14 22:29:58 | ------------------------------------

2021-05-14 22:29:58 | [Mutex] waiting for: [configured:node:node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592:node-ee6962e5-9901-4611-8cac-f516540a5356]

2021-05-14 22:29:58 | [Mutex] received everything.

2021-05-14 22:29:58 | [Mutex] isItemNotified: configured:node:node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592:node-ee6962e5-9901-4611-8cac-f516540a5356 :: true

2021-05-14 22:29:59 | [Mutex] waiting for: [received:nodes:e23d0b60-9bab-4fcb-9b42-dca1621a258c:localhost]

2021-05-14 22:29:59 | [Mutex] received everything.

2021-05-14 22:29:59 | [Mutex] isItemNotified: received:node:e23d0b60-9bab-4fcb-9b42-dca1621a258c:localhost:node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592:Node d7bc7601-ed7b-41b4-bb2c-d6d84d76c592 :: true

2021-05-14 22:29:59 | [Mutex] waiting for: [received:nodes:e2ac7703-fc8a-49af-9dc8-7c930d5face7:localhost]

2021-05-14 22:29:59 | [Mutex] waiting for: [received:nodes:e2ac7703-fc8a-49af-9dc8-7c930d5face7:localhost]

2021-05-14 22:29:59 | [Mutex] received everything.

2021-05-14 22:29:59 | [Mutex] isItemNotified: received:node:e2ac7703-fc8a-49af-9dc8-7c930d5face7:localhost:node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592:Node d7bc7601-ed7b-41b4-bb2c-d6d84d76c592 :: false

createNodes 1.775s
2021-05-14 22:29:55 |

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

2021-05-14 22:29:55 | ------------------------------------

2021-05-14 22:29:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592",
    "pubsub#title": "Node d7bc7601-ed7b-41b4-bb2c-d6d84d76c592"
}

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

2021-05-14 22:29:57 | [Mutex] waiting for: [received:nodes:e8c42716-ae74-450f-b886-2849ee4f8052:localhost]

2021-05-14 22:29:57 | [Mutex] received everything.

2021-05-14 22:29:57 | [Mutex] isItemNotified: received:node:e8c42716-ae74-450f-b886-2849ee4f8052:localhost:node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592:Node d7bc7601-ed7b-41b4-bb2c-d6d84d76c592 :: true

createSubnodes 1.022s
2021-05-14 22:29:57 |

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

2021-05-14 22:29:57 | ------------------------------------

2021-05-14 22:29: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-ee6962e5-9901-4611-8cac-f516540a5356",
    "pubsub#title": "Node ee6962e5-9901-4611-8cac-f516540a5356"
}

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

2021-05-14 22:29:58 | [Mutex] waiting for: [received:nodes:f6d9eb18-9d83-4510-8c9a-1747f02accea:localhost]

2021-05-14 22:29:58 | [Mutex] received everything.

2021-05-14 22:29:58 | [Mutex] isItemNotified: received:node:f6d9eb18-9d83-4510-8c9a-1747f02accea:localhost:node-ee6962e5-9901-4611-8cac-f516540a5356:Node ee6962e5-9901-4611-8cac-f516540a5356 :: true

deleteNodes 1.027s
2021-05-14 22:30:03 |

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

2021-05-14 22:30:03 | ------------------------------------

2021-05-14 22:30:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ee6962e5-9901-4611-8cac-f516540a5356"
}

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

2021-05-14 22:30:04 | [Mutex] waiting for: [received:nodes:5771dd87-3cad-478d-b64d-9cf90b2733a7:localhost]

2021-05-14 22:30:04 | [Mutex] received everything.

2021-05-14 22:30:04 | [Mutex] isItemNotified: received:node:5771dd87-3cad-478d-b64d-9cf90b2733a7:localhost:node-ee6962e5-9901-4611-8cac-f516540a5356:Node ee6962e5-9901-4611-8cac-f516540a5356 :: false

deleteSubnodes 1.026s
2021-05-14 22:30:02 |

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

2021-05-14 22:30:02 | ------------------------------------

2021-05-14 22:30:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592"
}

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

2021-05-14 22:30:03 | [Mutex] waiting for: [received:nodes:e4aa13ff-08a1-4fe0-98d8-86896c53b27d:localhost]

2021-05-14 22:30:03 | [Mutex] waiting for: [received:nodes:e4aa13ff-08a1-4fe0-98d8-86896c53b27d:localhost]

2021-05-14 22:30:03 | [Mutex] received everything.

2021-05-14 22:30:03 | [Mutex] isItemNotified: received:node:e4aa13ff-08a1-4fe0-98d8-86896c53b27d:localhost:node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592:Node d7bc7601-ed7b-41b4-bb2c-d6d84d76c592 :: false

2021-05-14 22:30:03 | [Mutex] waiting for: [received:nodes:b9ded24a-61ba-4e1d-9045-1487ca1a0a3f:localhost]

2021-05-14 22:30:03 | [Mutex] received everything.

2021-05-14 22:30:03 | [Mutex] isItemNotified: received:node:b9ded24a-61ba-4e1d-9045-1487ca1a0a3f:localhost:node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592:Node d7bc7601-ed7b-41b4-bb2c-d6d84d76c592 :: false

publishItemsToNodes 0.059s
2021-05-14 22:30:00 |

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

2021-05-14 22:30:00 | ------------------------------------

2021-05-14 22:30:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592",
    "entry": "<test>item-b0c7de99-3eea-4bba-909f-555ba0621d4a</test>",
    "item-id": "item-b0c7de99-3eea-4bba-909f-555ba0621d4a"
}

2021-05-14 22:30:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b0c7de99-3eea-4bba-909f-555ba0621d4a"
}

2021-05-14 22:30:00 | [Mutex] waiting for: [published:item:notifieditem-b0c7de99-3eea-4bba-909f-555ba0621d4a:admin@test-domain.com]

2021-05-14 22:30:00 | [Mutex] received everything.

2021-05-14 22:30:00 | [Mutex] isItemNotified: published:item:notifieditem-b0c7de99-3eea-4bba-909f-555ba0621d4a:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-05-14 22:30:00 |

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

2021-05-14 22:30:00 | ------------------------------------

2021-05-14 22:30:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592",
    "item-id": "item-b0c7de99-3eea-4bba-909f-555ba0621d4a"
}

2021-05-14 22:30:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b0c7de99-3eea-4bba-909f-555ba0621d4a"
}

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

2021-05-14 22:30:01 | [Mutex] isItemNotified: retracted:item:notifieditem-b0c7de99-3eea-4bba-909f-555ba0621d4a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.104s
2021-05-14 22:30:00 |

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

2021-05-14 22:30:00 | ------------------------------------

2021-05-14 22:30:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592",
    "item-id": "item-b0c7de99-3eea-4bba-909f-555ba0621d4a"
}

2021-05-14 22:30:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592",
    "item-id": "item-b0c7de99-3eea-4bba-909f-555ba0621d4a",
    "item": [
        "<item id=\"item-b0c7de99-3eea-4bba-909f-555ba0621d4a\"><test>item-b0c7de99-3eea-4bba-909f-555ba0621d4a</test></item>"
    ]
}

2021-05-14 22:30:00 | [Mutex] notify: [retrieved:item:item-b0c7de99-3eea-4bba-909f-555ba0621d4a:payload-matches:true:localhost]

2021-05-14 22:30:00 | [Mutex] received everything.

2021-05-14 22:30:00 | [Mutex] isItemNotified: retrieved:item:item-b0c7de99-3eea-4bba-909f-555ba0621d4a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.074s
2021-05-14 22:30:00 |

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

2021-05-14 22:30:00 | ------------------------------------

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

2021-05-14 22:30:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592",
        "node-ee6962e5-9901-4611-8cac-f516540a5356"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-14 22:30:00 |

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

2021-05-14 22:30:00 | ------------------------------------

2021-05-14 22:30:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592)"
}

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

subscribeNodes 1.010s
2021-05-14 22:29:59 |

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

2021-05-14 22:29:59 | ------------------------------------

2021-05-14 22:29:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.056s
2021-05-14 22:30:01 |

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

2021-05-14 22:30:01 | ------------------------------------

2021-05-14 22:30:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d7bc7601-ed7b-41b4-bb2c-d6d84d76c592",
    "jids": [
        "admin@test-domain.com"
    ]
}

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