Generated by TestNG with ReportNG at 22:25 PDT on Sunday 15 May 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / 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 : 8.782s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2022-05-15 22:39:39 |

2022-05-15 22:39:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:39 | ------------------------------------

2022-05-15 22:39:39 | [Mutex] waiting for: [configured:node:node-80d97321-46b2-42c5-8d4f-1c4e9efbab33:node-68c68ff1-8205-43df-b1c5-b0f392f59cd7]

2022-05-15 22:39:39 | [Mutex] received everything.

2022-05-15 22:39:39 | [Mutex] isItemNotified: configured:node:node-80d97321-46b2-42c5-8d4f-1c4e9efbab33:node-68c68ff1-8205-43df-b1c5-b0f392f59cd7 :: true

2022-05-15 22:39:40 | [Mutex] waiting for: [received:nodes:0060a96e-ebe0-40d1-9777-28cc5f3c50ed:localhost]

2022-05-15 22:39:40 | [Mutex] received everything.

2022-05-15 22:39:40 | [Mutex] isItemNotified: received:node:0060a96e-ebe0-40d1-9777-28cc5f3c50ed:localhost:node-80d97321-46b2-42c5-8d4f-1c4e9efbab33:Node 80d97321-46b2-42c5-8d4f-1c4e9efbab33 :: true

2022-05-15 22:39:40 | [Mutex] waiting for: [received:nodes:94c3e2a1-d086-491f-a42d-a90d3ac447c7:localhost]

2022-05-15 22:39:40 | [Mutex] waiting for: [received:nodes:94c3e2a1-d086-491f-a42d-a90d3ac447c7:localhost]

2022-05-15 22:39:40 | [Mutex] received everything.

2022-05-15 22:39:40 | [Mutex] isItemNotified: received:node:94c3e2a1-d086-491f-a42d-a90d3ac447c7:localhost:node-80d97321-46b2-42c5-8d4f-1c4e9efbab33:Node 80d97321-46b2-42c5-8d4f-1c4e9efbab33 :: false

createNodes 1.539s
2022-05-15 22:39:36 |

2022-05-15 22:39:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:36 | ------------------------------------

2022-05-15 22:39:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-80d97321-46b2-42c5-8d4f-1c4e9efbab33",
    "pubsub#title": "Node 80d97321-46b2-42c5-8d4f-1c4e9efbab33"
}

2022-05-15 22:39:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-15 22:39:38 | [Mutex] waiting for: [received:nodes:3a70c82d-d654-4742-bf49-bb57fac1380e:localhost]

2022-05-15 22:39:38 | [Mutex] received everything.

2022-05-15 22:39:38 | [Mutex] isItemNotified: received:node:3a70c82d-d654-4742-bf49-bb57fac1380e:localhost:node-80d97321-46b2-42c5-8d4f-1c4e9efbab33:Node 80d97321-46b2-42c5-8d4f-1c4e9efbab33 :: true

createSubnodes 1.029s
2022-05-15 22:39:38 |

2022-05-15 22:39:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:38 | ------------------------------------

2022-05-15 22:39:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-68c68ff1-8205-43df-b1c5-b0f392f59cd7",
    "pubsub#title": "Node 68c68ff1-8205-43df-b1c5-b0f392f59cd7"
}

2022-05-15 22:39:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-15 22:39:39 | [Mutex] waiting for: [received:nodes:0fcf53f4-8fa8-4904-ad4a-84e363b82b1b:localhost]

2022-05-15 22:39:39 | [Mutex] received everything.

2022-05-15 22:39:39 | [Mutex] isItemNotified: received:node:0fcf53f4-8fa8-4904-ad4a-84e363b82b1b:localhost:node-68c68ff1-8205-43df-b1c5-b0f392f59cd7:Node 68c68ff1-8205-43df-b1c5-b0f392f59cd7 :: true

deleteNodes 1.026s
2022-05-15 22:39:43 |

2022-05-15 22:39:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:43 | ------------------------------------

2022-05-15 22:39:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-68c68ff1-8205-43df-b1c5-b0f392f59cd7"
}

2022-05-15 22:39:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-15 22:39:44 | [Mutex] waiting for: [received:nodes:70ab72de-1f93-4d8f-b24d-4d549cae568d:localhost]

2022-05-15 22:39:44 | [Mutex] waiting for: [received:nodes:70ab72de-1f93-4d8f-b24d-4d549cae568d:localhost]

2022-05-15 22:39:44 | [Mutex] waiting for: [received:nodes:70ab72de-1f93-4d8f-b24d-4d549cae568d:localhost]

2022-05-15 22:39:44 | [Mutex] waiting for: [received:nodes:70ab72de-1f93-4d8f-b24d-4d549cae568d:localhost]

2022-05-15 22:39:44 | [Mutex] received everything.

2022-05-15 22:39:44 | [Mutex] isItemNotified: received:node:70ab72de-1f93-4d8f-b24d-4d549cae568d:localhost:node-68c68ff1-8205-43df-b1c5-b0f392f59cd7:Node 68c68ff1-8205-43df-b1c5-b0f392f59cd7 :: false

deleteSubnodes 1.031s
2022-05-15 22:39:42 |

2022-05-15 22:39:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:42 | ------------------------------------

2022-05-15 22:39:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-80d97321-46b2-42c5-8d4f-1c4e9efbab33"
}

2022-05-15 22:39:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-15 22:39:43 | [Mutex] waiting for: [received:nodes:cc1ee6b4-679e-4cf6-9004-7a57a67cde32:localhost]

2022-05-15 22:39:43 | [Mutex] received everything.

2022-05-15 22:39:43 | [Mutex] isItemNotified: received:node:cc1ee6b4-679e-4cf6-9004-7a57a67cde32:localhost:node-80d97321-46b2-42c5-8d4f-1c4e9efbab33:Node 80d97321-46b2-42c5-8d4f-1c4e9efbab33 :: false

2022-05-15 22:39:43 | [Mutex] waiting for: [received:nodes:0a51048b-6ba1-4024-95b6-6389a2124bc0:localhost]

2022-05-15 22:39:43 | [Mutex] received everything.

2022-05-15 22:39:43 | [Mutex] isItemNotified: received:node:0a51048b-6ba1-4024-95b6-6389a2124bc0:localhost:node-80d97321-46b2-42c5-8d4f-1c4e9efbab33:Node 80d97321-46b2-42c5-8d4f-1c4e9efbab33 :: false

publishItemsToNodes 0.048s
2022-05-15 22:39:41 |

2022-05-15 22:39:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:41 | ------------------------------------

2022-05-15 22:39:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-80d97321-46b2-42c5-8d4f-1c4e9efbab33",
    "entry": "<test>item-8162f9d6-e1da-4fea-9a92-1828da453335</test>",
    "item-id": "item-8162f9d6-e1da-4fea-9a92-1828da453335"
}

2022-05-15 22:39:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8162f9d6-e1da-4fea-9a92-1828da453335"
}

2022-05-15 22:39:41 | [Mutex] waiting for: [published:item:notifieditem-8162f9d6-e1da-4fea-9a92-1828da453335:admin@test-domain.com]

2022-05-15 22:39:41 | [Mutex] received everything.

2022-05-15 22:39:41 | [Mutex] isItemNotified: published:item:notifieditem-8162f9d6-e1da-4fea-9a92-1828da453335:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-05-15 22:39:41 |

2022-05-15 22:39:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:41 | ------------------------------------

2022-05-15 22:39:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-80d97321-46b2-42c5-8d4f-1c4e9efbab33",
    "item-id": "item-8162f9d6-e1da-4fea-9a92-1828da453335"
}

2022-05-15 22:39:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8162f9d6-e1da-4fea-9a92-1828da453335"
}

2022-05-15 22:39:41 | [Mutex] received everything.

2022-05-15 22:39:41 | [Mutex] isItemNotified: retracted:item:notifieditem-8162f9d6-e1da-4fea-9a92-1828da453335:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2022-05-15 22:39:41 |

2022-05-15 22:39:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:41 | ------------------------------------

2022-05-15 22:39:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-80d97321-46b2-42c5-8d4f-1c4e9efbab33",
    "item-id": "item-8162f9d6-e1da-4fea-9a92-1828da453335"
}

2022-05-15 22:39:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-80d97321-46b2-42c5-8d4f-1c4e9efbab33",
    "item-id": "item-8162f9d6-e1da-4fea-9a92-1828da453335",
    "item": [
        "<item id=\"item-8162f9d6-e1da-4fea-9a92-1828da453335\"><test>item-8162f9d6-e1da-4fea-9a92-1828da453335</test></item>"
    ]
}

2022-05-15 22:39:41 | [Mutex] notify: [retrieved:item:item-8162f9d6-e1da-4fea-9a92-1828da453335:payload-matches:true:localhost]

2022-05-15 22:39:41 | [Mutex] received everything.

2022-05-15 22:39:41 | [Mutex] isItemNotified: retrieved:item:item-8162f9d6-e1da-4fea-9a92-1828da453335:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-15 22:39:41 |

2022-05-15 22:39:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:41 | ------------------------------------

2022-05-15 22:39:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-15 22:39:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-80d97321-46b2-42c5-8d4f-1c4e9efbab33",
        "test",
        "node-68c68ff1-8205-43df-b1c5-b0f392f59cd7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-05-15 22:39:41 |

2022-05-15 22:39:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:41 | ------------------------------------

2022-05-15 22:39:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-80d97321-46b2-42c5-8d4f-1c4e9efbab33)"
}

2022-05-15 22:39:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2022-05-15 22:39:40 |

2022-05-15 22:39:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:40 | ------------------------------------

2022-05-15 22:39:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-80d97321-46b2-42c5-8d4f-1c4e9efbab33",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-15 22:39:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.061s
2022-05-15 22:39:41 |

2022-05-15 22:39:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-15 22:39:41 | ------------------------------------

2022-05-15 22:39:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-80d97321-46b2-42c5-8d4f-1c4e9efbab33",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-15 22:39:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}