Generated by TestNG with ReportNG at 22:51 PDT on Thursday 29 April 2021
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 : 9.194s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2021-04-29 23:07:05 |

2021-04-29 23:07:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:05 | ------------------------------------

2021-04-29 23:07:05 | [Mutex] waiting for: [configured:node:node-dc26486e-ef44-4cf0-bbdf-3a287d620022:node-0116b71f-a218-44e3-bab9-a6515dd0c483]

2021-04-29 23:07:05 | [Mutex] received everything.

2021-04-29 23:07:05 | [Mutex] isItemNotified: configured:node:node-dc26486e-ef44-4cf0-bbdf-3a287d620022:node-0116b71f-a218-44e3-bab9-a6515dd0c483 :: true

2021-04-29 23:07:06 | [Mutex] waiting for: [received:nodes:8f9bf32a-92d0-4681-ad10-d2f73d1e3524:localhost]

2021-04-29 23:07:06 | [Mutex] received everything.

2021-04-29 23:07:06 | [Mutex] isItemNotified: received:node:8f9bf32a-92d0-4681-ad10-d2f73d1e3524:localhost:node-dc26486e-ef44-4cf0-bbdf-3a287d620022:Node dc26486e-ef44-4cf0-bbdf-3a287d620022 :: true

2021-04-29 23:07:06 | [Mutex] waiting for: [received:nodes:850d7a22-bca9-4f53-b36d-f2056df5db0b:localhost]

2021-04-29 23:07:06 | [Mutex] received everything.

2021-04-29 23:07:06 | [Mutex] isItemNotified: received:node:850d7a22-bca9-4f53-b36d-f2056df5db0b:localhost:node-dc26486e-ef44-4cf0-bbdf-3a287d620022:Node dc26486e-ef44-4cf0-bbdf-3a287d620022 :: false

createNodes 1.734s
2021-04-29 23:07:02 |

2021-04-29 23:07:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:02 | ------------------------------------

2021-04-29 23:07:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-dc26486e-ef44-4cf0-bbdf-3a287d620022",
    "pubsub#title": "Node dc26486e-ef44-4cf0-bbdf-3a287d620022"
}

2021-04-29 23:07:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-29 23:07:04 | [Mutex] waiting for: [received:nodes:5d9a8be4-be90-4b98-87fc-53f4f67694c9:localhost]

2021-04-29 23:07:04 | [Mutex] waiting for: [received:nodes:5d9a8be4-be90-4b98-87fc-53f4f67694c9:localhost]

2021-04-29 23:07:04 | [Mutex] received everything.

2021-04-29 23:07:04 | [Mutex] isItemNotified: received:node:5d9a8be4-be90-4b98-87fc-53f4f67694c9:localhost:node-dc26486e-ef44-4cf0-bbdf-3a287d620022:Node dc26486e-ef44-4cf0-bbdf-3a287d620022 :: true

createSubnodes 1.032s
2021-04-29 23:07:04 |

2021-04-29 23:07:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:04 | ------------------------------------

2021-04-29 23:07:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0116b71f-a218-44e3-bab9-a6515dd0c483",
    "pubsub#title": "Node 0116b71f-a218-44e3-bab9-a6515dd0c483"
}

2021-04-29 23:07:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-29 23:07:05 | [Mutex] waiting for: [received:nodes:599478a1-3f91-4d07-ab29-775c6cb88b06:localhost]

2021-04-29 23:07:05 | [Mutex] received everything.

2021-04-29 23:07:05 | [Mutex] isItemNotified: received:node:599478a1-3f91-4d07-ab29-775c6cb88b06:localhost:node-0116b71f-a218-44e3-bab9-a6515dd0c483:Node 0116b71f-a218-44e3-bab9-a6515dd0c483 :: true

deleteNodes 1.033s
2021-04-29 23:07:10 |

2021-04-29 23:07:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:10 | ------------------------------------

2021-04-29 23:07:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0116b71f-a218-44e3-bab9-a6515dd0c483"
}

2021-04-29 23:07:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-29 23:07:11 | [Mutex] waiting for: [received:nodes:86733d8f-0d8e-4561-9987-b69e8ac6ac94:localhost]

2021-04-29 23:07:11 | [Mutex] waiting for: [received:nodes:86733d8f-0d8e-4561-9987-b69e8ac6ac94:localhost]

2021-04-29 23:07:11 | [Mutex] received everything.

2021-04-29 23:07:11 | [Mutex] isItemNotified: received:node:86733d8f-0d8e-4561-9987-b69e8ac6ac94:localhost:node-0116b71f-a218-44e3-bab9-a6515dd0c483:Node 0116b71f-a218-44e3-bab9-a6515dd0c483 :: false

deleteSubnodes 1.036s
2021-04-29 23:07:09 |

2021-04-29 23:07:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:09 | ------------------------------------

2021-04-29 23:07:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dc26486e-ef44-4cf0-bbdf-3a287d620022"
}

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

2021-04-29 23:07:10 | [Mutex] waiting for: [received:nodes:43a7ec83-87c3-4081-a5f9-f73c51a8f34c:localhost]

2021-04-29 23:07:10 | [Mutex] waiting for: [received:nodes:43a7ec83-87c3-4081-a5f9-f73c51a8f34c:localhost]

2021-04-29 23:07:10 | [Mutex] received everything.

2021-04-29 23:07:10 | [Mutex] isItemNotified: received:node:43a7ec83-87c3-4081-a5f9-f73c51a8f34c:localhost:node-dc26486e-ef44-4cf0-bbdf-3a287d620022:Node dc26486e-ef44-4cf0-bbdf-3a287d620022 :: false

2021-04-29 23:07:10 | [Mutex] waiting for: [received:nodes:117c3c57-42ff-40e2-9e2d-64cd99d1dd6a:localhost]

2021-04-29 23:07:10 | [Mutex] received everything.

2021-04-29 23:07:10 | [Mutex] isItemNotified: received:node:117c3c57-42ff-40e2-9e2d-64cd99d1dd6a:localhost:node-dc26486e-ef44-4cf0-bbdf-3a287d620022:Node dc26486e-ef44-4cf0-bbdf-3a287d620022 :: false

publishItemsToNodes 0.066s
2021-04-29 23:07:07 |

2021-04-29 23:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:07 | ------------------------------------

2021-04-29 23:07:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dc26486e-ef44-4cf0-bbdf-3a287d620022",
    "entry": "<test>item-34c4eb0c-0db0-4981-b468-92f86d8ceafc</test>",
    "item-id": "item-34c4eb0c-0db0-4981-b468-92f86d8ceafc"
}

2021-04-29 23:07:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-34c4eb0c-0db0-4981-b468-92f86d8ceafc"
}

2021-04-29 23:07:07 | [Mutex] waiting for: [published:item:notifieditem-34c4eb0c-0db0-4981-b468-92f86d8ceafc:admin@test-domain.com]

2021-04-29 23:07:07 | [Mutex] received everything.

2021-04-29 23:07:07 | [Mutex] isItemNotified: published:item:notifieditem-34c4eb0c-0db0-4981-b468-92f86d8ceafc:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2021-04-29 23:07:07 |

2021-04-29 23:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:07 | ------------------------------------

2021-04-29 23:07:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dc26486e-ef44-4cf0-bbdf-3a287d620022",
    "item-id": "item-34c4eb0c-0db0-4981-b468-92f86d8ceafc"
}

2021-04-29 23:07:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-34c4eb0c-0db0-4981-b468-92f86d8ceafc"
}

2021-04-29 23:07:08 | [Mutex] waiting for: [retracted:item:notifieditem-34c4eb0c-0db0-4981-b468-92f86d8ceafc:admin@test-domain.com]

2021-04-29 23:07:08 | [Mutex] received everything.

2021-04-29 23:07:08 | [Mutex] isItemNotified: retracted:item:notifieditem-34c4eb0c-0db0-4981-b468-92f86d8ceafc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.018s
2021-04-29 23:07:07 |

2021-04-29 23:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:07 | ------------------------------------

2021-04-29 23:07:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dc26486e-ef44-4cf0-bbdf-3a287d620022",
    "item-id": "item-34c4eb0c-0db0-4981-b468-92f86d8ceafc"
}

2021-04-29 23:07:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dc26486e-ef44-4cf0-bbdf-3a287d620022",
    "item-id": "item-34c4eb0c-0db0-4981-b468-92f86d8ceafc",
    "item": [
        "<item id=\"item-34c4eb0c-0db0-4981-b468-92f86d8ceafc\"><test>item-34c4eb0c-0db0-4981-b468-92f86d8ceafc</test></item>"
    ]
}

2021-04-29 23:07:07 | [Mutex] notify: [retrieved:item:item-34c4eb0c-0db0-4981-b468-92f86d8ceafc:payload-matches:true:localhost]

2021-04-29 23:07:07 | [Mutex] received everything.

2021-04-29 23:07:07 | [Mutex] isItemNotified: retrieved:item:item-34c4eb0c-0db0-4981-b468-92f86d8ceafc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.072s
2021-04-29 23:07:07 |

2021-04-29 23:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:07 | ------------------------------------

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

2021-04-29 23:07:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0116b71f-a218-44e3-bab9-a6515dd0c483",
        "node-dc26486e-ef44-4cf0-bbdf-3a287d620022"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-29 23:07:07 |

2021-04-29 23:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:07 | ------------------------------------

2021-04-29 23:07:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dc26486e-ef44-4cf0-bbdf-3a287d620022)"
}

2021-04-29 23:07:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-04-29 23:07:06 |

2021-04-29 23:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:06 | ------------------------------------

2021-04-29 23:07:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dc26486e-ef44-4cf0-bbdf-3a287d620022",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-29 23:07:06 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2021-04-29 23:07:08 |

2021-04-29 23:07:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-29 23:07:08 | ------------------------------------

2021-04-29 23:07:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dc26486e-ef44-4cf0-bbdf-3a287d620022",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-29 23:07:08 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}