Generated by TestNG with ReportNG at 22:44 PDT on Wednesday 05 May 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.056s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.126s
2021-05-05 23:00:03 |

2021-05-05 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 23:00:03 | ------------------------------------

2021-05-05 23:00:03 | [Mutex] waiting for: [configured:node:node-676afae3-edc2-45b3-85e0-92cae64825a1:node-7f4ae8db-8c0b-40f3-9b19-b758db7e21b3]

2021-05-05 23:00:03 | [Mutex] received everything.

2021-05-05 23:00:03 | [Mutex] isItemNotified: configured:node:node-676afae3-edc2-45b3-85e0-92cae64825a1:node-7f4ae8db-8c0b-40f3-9b19-b758db7e21b3 :: true

2021-05-05 23:00:04 | [Mutex] waiting for: [received:nodes:3d271b12-ba12-4873-9043-63263cbdea7c:localhost]

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

2021-05-05 23:00:04 | [Mutex] isItemNotified: received:node:3d271b12-ba12-4873-9043-63263cbdea7c:localhost:node-676afae3-edc2-45b3-85e0-92cae64825a1:Node 676afae3-edc2-45b3-85e0-92cae64825a1 :: true

2021-05-05 23:00:04 | [Mutex] waiting for: [received:nodes:3b7a0b08-0225-492d-8b3c-6053d965ac5d:localhost]

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

2021-05-05 23:00:04 | [Mutex] isItemNotified: received:node:3b7a0b08-0225-492d-8b3c-6053d965ac5d:localhost:node-676afae3-edc2-45b3-85e0-92cae64825a1:Node 676afae3-edc2-45b3-85e0-92cae64825a1 :: false

createNodes 1.614s
2021-05-05 23:00:00 |

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

2021-05-05 23:00:00 | ------------------------------------

2021-05-05 23:00:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-676afae3-edc2-45b3-85e0-92cae64825a1",
    "pubsub#title": "Node 676afae3-edc2-45b3-85e0-92cae64825a1"
}

2021-05-05 23:00:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-05 23:00:02 | [Mutex] waiting for: [received:nodes:4a1dbd23-625a-453a-82fb-cb93039b5c0c:localhost]

2021-05-05 23:00:02 | [Mutex] received everything.

2021-05-05 23:00:02 | [Mutex] isItemNotified: received:node:4a1dbd23-625a-453a-82fb-cb93039b5c0c:localhost:node-676afae3-edc2-45b3-85e0-92cae64825a1:Node 676afae3-edc2-45b3-85e0-92cae64825a1 :: true

createSubnodes 1.030s
2021-05-05 23:00:02 |

2021-05-05 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 23:00:02 | ------------------------------------

2021-05-05 23:00:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7f4ae8db-8c0b-40f3-9b19-b758db7e21b3",
    "pubsub#title": "Node 7f4ae8db-8c0b-40f3-9b19-b758db7e21b3"
}

2021-05-05 23:00:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-05 23:00:03 | [Mutex] waiting for: [received:nodes:6521437b-0a94-4f78-a258-c50d3c65882c:localhost]

2021-05-05 23:00:03 | [Mutex] received everything.

2021-05-05 23:00:03 | [Mutex] isItemNotified: received:node:6521437b-0a94-4f78-a258-c50d3c65882c:localhost:node-7f4ae8db-8c0b-40f3-9b19-b758db7e21b3:Node 7f4ae8db-8c0b-40f3-9b19-b758db7e21b3 :: true

deleteNodes 1.022s
2021-05-05 23:00:07 |

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

2021-05-05 23:00:07 | ------------------------------------

2021-05-05 23:00:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7f4ae8db-8c0b-40f3-9b19-b758db7e21b3"
}

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

2021-05-05 23:00:08 | [Mutex] waiting for: [received:nodes:690f915d-f246-4cb0-896b-b8345f21f1bb:localhost]

2021-05-05 23:00:08 | [Mutex] received everything.

2021-05-05 23:00:08 | [Mutex] isItemNotified: received:node:690f915d-f246-4cb0-896b-b8345f21f1bb:localhost:node-7f4ae8db-8c0b-40f3-9b19-b758db7e21b3:Node 7f4ae8db-8c0b-40f3-9b19-b758db7e21b3 :: false

deleteSubnodes 1.033s
2021-05-05 23:00:06 |

2021-05-05 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 23:00:06 | ------------------------------------

2021-05-05 23:00:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-676afae3-edc2-45b3-85e0-92cae64825a1"
}

2021-05-05 23:00:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-05 23:00:07 | [Mutex] waiting for: [received:nodes:5d66559e-9f75-488e-b7d4-192e35097dca:localhost]

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

2021-05-05 23:00:07 | [Mutex] isItemNotified: received:node:5d66559e-9f75-488e-b7d4-192e35097dca:localhost:node-676afae3-edc2-45b3-85e0-92cae64825a1:Node 676afae3-edc2-45b3-85e0-92cae64825a1 :: false

2021-05-05 23:00:07 | [Mutex] waiting for: [received:nodes:8ae3da6f-b70a-4975-8472-734284cb6cbf:localhost]

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

2021-05-05 23:00:07 | [Mutex] isItemNotified: received:node:8ae3da6f-b70a-4975-8472-734284cb6cbf:localhost:node-676afae3-edc2-45b3-85e0-92cae64825a1:Node 676afae3-edc2-45b3-85e0-92cae64825a1 :: false

publishItemsToNodes 0.160s
2021-05-05 23:00:05 |

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

2021-05-05 23:00:05 | ------------------------------------

2021-05-05 23:00:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-676afae3-edc2-45b3-85e0-92cae64825a1",
    "entry": "<test>item-4aa027f0-3178-46d1-92af-4b3c0786e141</test>",
    "item-id": "item-4aa027f0-3178-46d1-92af-4b3c0786e141"
}

2021-05-05 23:00:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4aa027f0-3178-46d1-92af-4b3c0786e141"
}

2021-05-05 23:00:05 | [Mutex] waiting for: [published:item:notifieditem-4aa027f0-3178-46d1-92af-4b3c0786e141:admin@test-domain.com]

2021-05-05 23:00:05 | [Mutex] received everything.

2021-05-05 23:00:05 | [Mutex] isItemNotified: published:item:notifieditem-4aa027f0-3178-46d1-92af-4b3c0786e141:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2021-05-05 23:00:05 |

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

2021-05-05 23:00:05 | ------------------------------------

2021-05-05 23:00:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-676afae3-edc2-45b3-85e0-92cae64825a1",
    "item-id": "item-4aa027f0-3178-46d1-92af-4b3c0786e141"
}

2021-05-05 23:00:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4aa027f0-3178-46d1-92af-4b3c0786e141"
}

2021-05-05 23:00:05 | [Mutex] waiting for: [retracted:item:notifieditem-4aa027f0-3178-46d1-92af-4b3c0786e141:admin@test-domain.com]

2021-05-05 23:00:05 | [Mutex] received everything.

2021-05-05 23:00:05 | [Mutex] isItemNotified: retracted:item:notifieditem-4aa027f0-3178-46d1-92af-4b3c0786e141:admin@test-domain.com :: true

retrieveItemsFromNodes 0.015s
2021-05-05 23:00:05 |

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

2021-05-05 23:00:05 | ------------------------------------

2021-05-05 23:00:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-676afae3-edc2-45b3-85e0-92cae64825a1",
    "item-id": "item-4aa027f0-3178-46d1-92af-4b3c0786e141"
}

2021-05-05 23:00:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-676afae3-edc2-45b3-85e0-92cae64825a1",
    "item-id": "item-4aa027f0-3178-46d1-92af-4b3c0786e141",
    "item": [
        "<item id=\"item-4aa027f0-3178-46d1-92af-4b3c0786e141\"><test>item-4aa027f0-3178-46d1-92af-4b3c0786e141</test></item>"
    ]
}

2021-05-05 23:00:05 | [Mutex] notify: [retrieved:item:item-4aa027f0-3178-46d1-92af-4b3c0786e141:payload-matches:true:localhost]

2021-05-05 23:00:05 | [Mutex] received everything.

2021-05-05 23:00:05 | [Mutex] isItemNotified: retrieved:item:item-4aa027f0-3178-46d1-92af-4b3c0786e141:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2021-05-05 23:00:05 |

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

2021-05-05 23:00:05 | ------------------------------------

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

2021-05-05 23:00:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-676afae3-edc2-45b3-85e0-92cae64825a1",
        "node-7f4ae8db-8c0b-40f3-9b19-b758db7e21b3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-05-05 23:00:05 |

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

2021-05-05 23:00:05 | ------------------------------------

2021-05-05 23:00:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-676afae3-edc2-45b3-85e0-92cae64825a1)"
}

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

subscribeNodes 1.011s
2021-05-05 23:00:04 |

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

2021-05-05 23:00:04 | ------------------------------------

2021-05-05 23:00:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-676afae3-edc2-45b3-85e0-92cae64825a1",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.070s
2021-05-05 23:00:05 |

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

2021-05-05 23:00:05 | ------------------------------------

2021-05-05 23:00:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-676afae3-edc2-45b3-85e0-92cae64825a1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-05 23:00:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}