Generated by TestNG with ReportNG at 22:18 PDT on Monday 25 July 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.696s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2022-07-25 22:32:28 |

2022-07-25 22:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:28 | ------------------------------------

2022-07-25 22:32:28 | [Mutex] waiting for: [configured:node:node-a9fb211c-9e4d-44f8-b8f2-177bece073bc:node-dec3e411-adc5-4fe3-bd9d-9c83985bc176]

2022-07-25 22:32:28 | [Mutex] received everything.

2022-07-25 22:32:28 | [Mutex] isItemNotified: configured:node:node-a9fb211c-9e4d-44f8-b8f2-177bece073bc:node-dec3e411-adc5-4fe3-bd9d-9c83985bc176 :: true

2022-07-25 22:32:29 | [Mutex] waiting for: [received:nodes:08be6374-3708-4c3e-8e69-17318e6510c5:localhost]

2022-07-25 22:32:29 | [Mutex] received everything.

2022-07-25 22:32:29 | [Mutex] isItemNotified: received:node:08be6374-3708-4c3e-8e69-17318e6510c5:localhost:node-a9fb211c-9e4d-44f8-b8f2-177bece073bc:Node a9fb211c-9e4d-44f8-b8f2-177bece073bc :: true

2022-07-25 22:32:29 | [Mutex] waiting for: [received:nodes:340a249d-cdfe-40d3-a829-5f7e0cf9e725:localhost]

2022-07-25 22:32:29 | [Mutex] received everything.

2022-07-25 22:32:29 | [Mutex] isItemNotified: received:node:340a249d-cdfe-40d3-a829-5f7e0cf9e725:localhost:node-a9fb211c-9e4d-44f8-b8f2-177bece073bc:Node a9fb211c-9e4d-44f8-b8f2-177bece073bc :: false

createNodes 1.564s
2022-07-25 22:32:26 |

2022-07-25 22:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:26 | ------------------------------------

2022-07-25 22:32: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-a9fb211c-9e4d-44f8-b8f2-177bece073bc",
    "pubsub#title": "Node a9fb211c-9e4d-44f8-b8f2-177bece073bc"
}

2022-07-25 22:32:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 22:32:27 | [Mutex] waiting for: [received:nodes:97097f71-88f6-4619-b96a-44d777306344:localhost]

2022-07-25 22:32:27 | [Mutex] received everything.

2022-07-25 22:32:27 | [Mutex] isItemNotified: received:node:97097f71-88f6-4619-b96a-44d777306344:localhost:node-a9fb211c-9e4d-44f8-b8f2-177bece073bc:Node a9fb211c-9e4d-44f8-b8f2-177bece073bc :: true

createSubnodes 1.025s
2022-07-25 22:32:27 |

2022-07-25 22:32:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:27 | ------------------------------------

2022-07-25 22:32: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-dec3e411-adc5-4fe3-bd9d-9c83985bc176",
    "pubsub#title": "Node dec3e411-adc5-4fe3-bd9d-9c83985bc176"
}

2022-07-25 22:32:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 22:32:28 | [Mutex] waiting for: [received:nodes:8ab31f39-4412-4d06-8a44-71353f4831be:localhost]

2022-07-25 22:32:28 | [Mutex] received everything.

2022-07-25 22:32:28 | [Mutex] isItemNotified: received:node:8ab31f39-4412-4d06-8a44-71353f4831be:localhost:node-dec3e411-adc5-4fe3-bd9d-9c83985bc176:Node dec3e411-adc5-4fe3-bd9d-9c83985bc176 :: true

deleteNodes 1.023s
2022-07-25 22:32:33 |

2022-07-25 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:33 | ------------------------------------

2022-07-25 22:32:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dec3e411-adc5-4fe3-bd9d-9c83985bc176"
}

2022-07-25 22:32:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 22:32:34 | [Mutex] waiting for: [received:nodes:68a556f6-6af5-45ad-b0f9-d0f558a3d8b2:localhost]

2022-07-25 22:32:34 | [Mutex] received everything.

2022-07-25 22:32:34 | [Mutex] isItemNotified: received:node:68a556f6-6af5-45ad-b0f9-d0f558a3d8b2:localhost:node-dec3e411-adc5-4fe3-bd9d-9c83985bc176:Node dec3e411-adc5-4fe3-bd9d-9c83985bc176 :: false

deleteSubnodes 1.026s
2022-07-25 22:32:32 |

2022-07-25 22:32:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:32 | ------------------------------------

2022-07-25 22:32:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a9fb211c-9e4d-44f8-b8f2-177bece073bc"
}

2022-07-25 22:32:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 22:32:33 | [Mutex] waiting for: [received:nodes:498a56f0-ebe0-4cc5-ad40-a5e1199dae69:localhost]

2022-07-25 22:32:33 | [Mutex] received everything.

2022-07-25 22:32:33 | [Mutex] isItemNotified: received:node:498a56f0-ebe0-4cc5-ad40-a5e1199dae69:localhost:node-a9fb211c-9e4d-44f8-b8f2-177bece073bc:Node a9fb211c-9e4d-44f8-b8f2-177bece073bc :: false

2022-07-25 22:32:33 | [Mutex] waiting for: [received:nodes:5688a38d-4584-4fa8-9102-a8a132e7bb18:localhost]

2022-07-25 22:32:33 | [Mutex] received everything.

2022-07-25 22:32:33 | [Mutex] isItemNotified: received:node:5688a38d-4584-4fa8-9102-a8a132e7bb18:localhost:node-a9fb211c-9e4d-44f8-b8f2-177bece073bc:Node a9fb211c-9e4d-44f8-b8f2-177bece073bc :: false

publishItemsToNodes 0.061s
2022-07-25 22:32:30 |

2022-07-25 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:30 | ------------------------------------

2022-07-25 22:32:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a9fb211c-9e4d-44f8-b8f2-177bece073bc",
    "entry": "<test>item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b</test>",
    "item-id": "item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b"
}

2022-07-25 22:32:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b"
}

2022-07-25 22:32:31 | [Mutex] received everything.

2022-07-25 22:32:31 | [Mutex] isItemNotified: published:item:notifieditem-2c0f6ec1-b426-4dc9-b504-88267ad4d42b:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-25 22:32:31 |

2022-07-25 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:31 | ------------------------------------

2022-07-25 22:32:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a9fb211c-9e4d-44f8-b8f2-177bece073bc",
    "item-id": "item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b"
}

2022-07-25 22:32:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b"
}

2022-07-25 22:32:31 | [Mutex] waiting for: [retracted:item:notifieditem-2c0f6ec1-b426-4dc9-b504-88267ad4d42b:admin@test-domain.com]

2022-07-25 22:32:31 | [Mutex] received everything.

2022-07-25 22:32:31 | [Mutex] isItemNotified: retracted:item:notifieditem-2c0f6ec1-b426-4dc9-b504-88267ad4d42b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.081s
2022-07-25 22:32:31 |

2022-07-25 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:31 | ------------------------------------

2022-07-25 22:32:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a9fb211c-9e4d-44f8-b8f2-177bece073bc",
    "item-id": "item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b"
}

2022-07-25 22:32:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a9fb211c-9e4d-44f8-b8f2-177bece073bc",
    "item-id": "item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b",
    "item": [
        "<item id=\"item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b\"><test>item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b</test></item>"
    ]
}

2022-07-25 22:32:31 | [Mutex] notify: [retrieved:item:item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b:payload-matches:true:localhost]

2022-07-25 22:32:31 | [Mutex] received everything.

2022-07-25 22:32:31 | [Mutex] isItemNotified: retrieved:item:item-2c0f6ec1-b426-4dc9-b504-88267ad4d42b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-07-25 22:32:31 |

2022-07-25 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:31 | ------------------------------------

2022-07-25 22:32:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-25 22:32:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a9fb211c-9e4d-44f8-b8f2-177bece073bc",
        "node-dec3e411-adc5-4fe3-bd9d-9c83985bc176"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-25 22:32:31 |

2022-07-25 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:31 | ------------------------------------

2022-07-25 22:32:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a9fb211c-9e4d-44f8-b8f2-177bece073bc)"
}

2022-07-25 22:32:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-07-25 22:32:29 |

2022-07-25 22:32:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:29 | ------------------------------------

2022-07-25 22:32:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a9fb211c-9e4d-44f8-b8f2-177bece073bc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-25 22:32:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2022-07-25 22:32:31 |

2022-07-25 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 22:32:31 | ------------------------------------

2022-07-25 22:32:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a9fb211c-9e4d-44f8-b8f2-177bece073bc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-25 22:32:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}