Generated by TestNG with ReportNG at 22:19 PDT on Monday 15 August 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.639s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2022-08-15 22:33:12 |

2022-08-15 22:33:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:12 | ------------------------------------

2022-08-15 22:33:12 | [Mutex] waiting for: [configured:node:node-79f19e8e-1745-44ca-8c6b-6cedc27bd897:node-20ecdfe3-e31a-4035-96bc-d0f3ece25a44]

2022-08-15 22:33:12 | [Mutex] received everything.

2022-08-15 22:33:12 | [Mutex] isItemNotified: configured:node:node-79f19e8e-1745-44ca-8c6b-6cedc27bd897:node-20ecdfe3-e31a-4035-96bc-d0f3ece25a44 :: true

2022-08-15 22:33:13 | [Mutex] waiting for: [received:nodes:9c03f4a5-115a-4fd4-9ce5-b849cdded63e:localhost]

2022-08-15 22:33:13 | [Mutex] received everything.

2022-08-15 22:33:13 | [Mutex] isItemNotified: received:node:9c03f4a5-115a-4fd4-9ce5-b849cdded63e:localhost:node-79f19e8e-1745-44ca-8c6b-6cedc27bd897:Node 79f19e8e-1745-44ca-8c6b-6cedc27bd897 :: true

2022-08-15 22:33:14 | [Mutex] waiting for: [received:nodes:5b47c0f3-1839-45e3-a603-71c59cf40ec7:localhost]

2022-08-15 22:33:14 | [Mutex] received everything.

2022-08-15 22:33:14 | [Mutex] isItemNotified: received:node:5b47c0f3-1839-45e3-a603-71c59cf40ec7:localhost:node-79f19e8e-1745-44ca-8c6b-6cedc27bd897:Node 79f19e8e-1745-44ca-8c6b-6cedc27bd897 :: false

createNodes 1.531s
2022-08-15 22:33:10 |

2022-08-15 22:33:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:10 | ------------------------------------

2022-08-15 22:33:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-79f19e8e-1745-44ca-8c6b-6cedc27bd897",
    "pubsub#title": "Node 79f19e8e-1745-44ca-8c6b-6cedc27bd897"
}

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

2022-08-15 22:33:11 | [Mutex] waiting for: [received:nodes:2e537060-4695-4dd8-bcb3-b00e3b8d050a:localhost]

2022-08-15 22:33:11 | [Mutex] received everything.

2022-08-15 22:33:11 | [Mutex] isItemNotified: received:node:2e537060-4695-4dd8-bcb3-b00e3b8d050a:localhost:node-79f19e8e-1745-44ca-8c6b-6cedc27bd897:Node 79f19e8e-1745-44ca-8c6b-6cedc27bd897 :: true

createSubnodes 1.025s
2022-08-15 22:33:11 |

2022-08-15 22:33:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:11 | ------------------------------------

2022-08-15 22:33:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-20ecdfe3-e31a-4035-96bc-d0f3ece25a44",
    "pubsub#title": "Node 20ecdfe3-e31a-4035-96bc-d0f3ece25a44"
}

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

2022-08-15 22:33:12 | [Mutex] waiting for: [received:nodes:6ad9f765-7a22-48b5-a11e-b8c4023643d3:localhost]

2022-08-15 22:33:12 | [Mutex] waiting for: [received:nodes:6ad9f765-7a22-48b5-a11e-b8c4023643d3:localhost]

2022-08-15 22:33:12 | [Mutex] received everything.

2022-08-15 22:33:12 | [Mutex] isItemNotified: received:node:6ad9f765-7a22-48b5-a11e-b8c4023643d3:localhost:node-20ecdfe3-e31a-4035-96bc-d0f3ece25a44:Node 20ecdfe3-e31a-4035-96bc-d0f3ece25a44 :: true

deleteNodes 1.019s
2022-08-15 22:33:17 |

2022-08-15 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:17 | ------------------------------------

2022-08-15 22:33:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20ecdfe3-e31a-4035-96bc-d0f3ece25a44"
}

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

2022-08-15 22:33:18 | [Mutex] waiting for: [received:nodes:c66c65e6-3669-43cc-8cab-8319c5983ee0:localhost]

2022-08-15 22:33:18 | [Mutex] received everything.

2022-08-15 22:33:18 | [Mutex] isItemNotified: received:node:c66c65e6-3669-43cc-8cab-8319c5983ee0:localhost:node-20ecdfe3-e31a-4035-96bc-d0f3ece25a44:Node 20ecdfe3-e31a-4035-96bc-d0f3ece25a44 :: false

deleteSubnodes 1.026s
2022-08-15 22:33:16 |

2022-08-15 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:16 | ------------------------------------

2022-08-15 22:33:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-79f19e8e-1745-44ca-8c6b-6cedc27bd897"
}

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

2022-08-15 22:33:17 | [Mutex] waiting for: [received:nodes:42056f0e-37bc-4b25-a8ff-e3ab27e40b4b:localhost]

2022-08-15 22:33:17 | [Mutex] waiting for: [received:nodes:42056f0e-37bc-4b25-a8ff-e3ab27e40b4b:localhost]

2022-08-15 22:33:17 | [Mutex] received everything.

2022-08-15 22:33:17 | [Mutex] isItemNotified: received:node:42056f0e-37bc-4b25-a8ff-e3ab27e40b4b:localhost:node-79f19e8e-1745-44ca-8c6b-6cedc27bd897:Node 79f19e8e-1745-44ca-8c6b-6cedc27bd897 :: false

2022-08-15 22:33:17 | [Mutex] waiting for: [received:nodes:5b347bd8-5f67-4e37-9738-c84cd09e9ceb:localhost]

2022-08-15 22:33:17 | [Mutex] received everything.

2022-08-15 22:33:17 | [Mutex] isItemNotified: received:node:5b347bd8-5f67-4e37-9738-c84cd09e9ceb:localhost:node-79f19e8e-1745-44ca-8c6b-6cedc27bd897:Node 79f19e8e-1745-44ca-8c6b-6cedc27bd897 :: false

publishItemsToNodes 0.049s
2022-08-15 22:33:15 |

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

2022-08-15 22:33:15 | ------------------------------------

2022-08-15 22:33:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-79f19e8e-1745-44ca-8c6b-6cedc27bd897",
    "entry": "<test>item-56dde981-3fac-49e2-8dc8-d775114f6e52</test>",
    "item-id": "item-56dde981-3fac-49e2-8dc8-d775114f6e52"
}

2022-08-15 22:33:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-56dde981-3fac-49e2-8dc8-d775114f6e52"
}

2022-08-15 22:33:15 | [Mutex] waiting for: [published:item:notifieditem-56dde981-3fac-49e2-8dc8-d775114f6e52:admin@test-domain.com]

2022-08-15 22:33:15 | [Mutex] received everything.

2022-08-15 22:33:15 | [Mutex] isItemNotified: published:item:notifieditem-56dde981-3fac-49e2-8dc8-d775114f6e52:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-08-15 22:33:15 |

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

2022-08-15 22:33:15 | ------------------------------------

2022-08-15 22:33:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-79f19e8e-1745-44ca-8c6b-6cedc27bd897",
    "item-id": "item-56dde981-3fac-49e2-8dc8-d775114f6e52"
}

2022-08-15 22:33:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-56dde981-3fac-49e2-8dc8-d775114f6e52"
}

2022-08-15 22:33:15 | [Mutex] received everything.

2022-08-15 22:33:15 | [Mutex] isItemNotified: retracted:item:notifieditem-56dde981-3fac-49e2-8dc8-d775114f6e52:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2022-08-15 22:33:15 |

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

2022-08-15 22:33:15 | ------------------------------------

2022-08-15 22:33:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-79f19e8e-1745-44ca-8c6b-6cedc27bd897",
    "item-id": "item-56dde981-3fac-49e2-8dc8-d775114f6e52"
}

2022-08-15 22:33:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-79f19e8e-1745-44ca-8c6b-6cedc27bd897",
    "item-id": "item-56dde981-3fac-49e2-8dc8-d775114f6e52",
    "item": [
        "<item id=\"item-56dde981-3fac-49e2-8dc8-d775114f6e52\"><test>item-56dde981-3fac-49e2-8dc8-d775114f6e52</test></item>"
    ]
}

2022-08-15 22:33:15 | [Mutex] notify: [retrieved:item:item-56dde981-3fac-49e2-8dc8-d775114f6e52:payload-matches:true:localhost]

2022-08-15 22:33:15 | [Mutex] received everything.

2022-08-15 22:33:15 | [Mutex] isItemNotified: retrieved:item:item-56dde981-3fac-49e2-8dc8-d775114f6e52:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.068s
2022-08-15 22:33:15 |

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

2022-08-15 22:33:15 | ------------------------------------

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

2022-08-15 22:33:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-20ecdfe3-e31a-4035-96bc-d0f3ece25a44",
        "node-79f19e8e-1745-44ca-8c6b-6cedc27bd897"
    ]
}

retrieveUserSubscriptionsWithRegex 0.087s
2022-08-15 22:33:15 |

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

2022-08-15 22:33:15 | ------------------------------------

2022-08-15 22:33:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-79f19e8e-1745-44ca-8c6b-6cedc27bd897)"
}

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

subscribeNodes 1.018s
2022-08-15 22:33:14 |

2022-08-15 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:14 | ------------------------------------

2022-08-15 22:33:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-79f19e8e-1745-44ca-8c6b-6cedc27bd897",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.067s
2022-08-15 22:33:15 |

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

2022-08-15 22:33:15 | ------------------------------------

2022-08-15 22:33:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-79f19e8e-1745-44ca-8c6b-6cedc27bd897",
    "jids": [
        "admin@test-domain.com"
    ]
}

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