Generated by TestNG with ReportNG at 22:18 PDT on Friday 01 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.958s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2022-07-01 22:33:21 |

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

2022-07-01 22:33:21 | ------------------------------------

2022-07-01 22:33:21 | [Mutex] waiting for: [configured:node:node-e17238ae-b15b-4b1c-ab1a-ec106f344c32:node-b830be01-e721-4f29-b5b4-b4464cf9fc4b]

2022-07-01 22:33:21 | [Mutex] received everything.

2022-07-01 22:33:21 | [Mutex] isItemNotified: configured:node:node-e17238ae-b15b-4b1c-ab1a-ec106f344c32:node-b830be01-e721-4f29-b5b4-b4464cf9fc4b :: true

2022-07-01 22:33:22 | [Mutex] waiting for: [received:nodes:3f8bf020-3957-4da6-8ad6-c31c90b81c6c:localhost]

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

2022-07-01 22:33:22 | [Mutex] isItemNotified: received:node:3f8bf020-3957-4da6-8ad6-c31c90b81c6c:localhost:node-e17238ae-b15b-4b1c-ab1a-ec106f344c32:Node e17238ae-b15b-4b1c-ab1a-ec106f344c32 :: true

2022-07-01 22:33:22 | [Mutex] waiting for: [received:nodes:511182b8-a9a2-4c4d-86aa-13fd13d53057:localhost]

2022-07-01 22:33:22 | [Mutex] waiting for: [received:nodes:511182b8-a9a2-4c4d-86aa-13fd13d53057:localhost]

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

2022-07-01 22:33:22 | [Mutex] isItemNotified: received:node:511182b8-a9a2-4c4d-86aa-13fd13d53057:localhost:node-e17238ae-b15b-4b1c-ab1a-ec106f344c32:Node e17238ae-b15b-4b1c-ab1a-ec106f344c32 :: false

createNodes 1.734s
2022-07-01 22:33:18 |

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

2022-07-01 22:33:18 | ------------------------------------

2022-07-01 22:33:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e17238ae-b15b-4b1c-ab1a-ec106f344c32",
    "pubsub#title": "Node e17238ae-b15b-4b1c-ab1a-ec106f344c32"
}

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

2022-07-01 22:33:20 | [Mutex] waiting for: [received:nodes:8759168d-22ed-4d50-bcd3-1f207b30014b:localhost]

2022-07-01 22:33:20 | [Mutex] received everything.

2022-07-01 22:33:20 | [Mutex] isItemNotified: received:node:8759168d-22ed-4d50-bcd3-1f207b30014b:localhost:node-e17238ae-b15b-4b1c-ab1a-ec106f344c32:Node e17238ae-b15b-4b1c-ab1a-ec106f344c32 :: true

createSubnodes 1.026s
2022-07-01 22:33:20 |

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

2022-07-01 22:33:20 | ------------------------------------

2022-07-01 22:33:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b830be01-e721-4f29-b5b4-b4464cf9fc4b",
    "pubsub#title": "Node b830be01-e721-4f29-b5b4-b4464cf9fc4b"
}

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

2022-07-01 22:33:21 | [Mutex] waiting for: [received:nodes:23b6b2d3-374b-45d2-bce3-2aca5f4f096b:localhost]

2022-07-01 22:33:21 | [Mutex] waiting for: [received:nodes:23b6b2d3-374b-45d2-bce3-2aca5f4f096b:localhost]

2022-07-01 22:33:21 | [Mutex] received everything.

2022-07-01 22:33:21 | [Mutex] isItemNotified: received:node:23b6b2d3-374b-45d2-bce3-2aca5f4f096b:localhost:node-b830be01-e721-4f29-b5b4-b4464cf9fc4b:Node b830be01-e721-4f29-b5b4-b4464cf9fc4b :: true

deleteNodes 1.020s
2022-07-01 22:33:26 |

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

2022-07-01 22:33:26 | ------------------------------------

2022-07-01 22:33:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b830be01-e721-4f29-b5b4-b4464cf9fc4b"
}

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

2022-07-01 22:33:27 | [Mutex] waiting for: [received:nodes:ee86752a-6197-4cb7-8602-f83441419265:localhost]

2022-07-01 22:33:27 | [Mutex] received everything.

2022-07-01 22:33:27 | [Mutex] isItemNotified: received:node:ee86752a-6197-4cb7-8602-f83441419265:localhost:node-b830be01-e721-4f29-b5b4-b4464cf9fc4b:Node b830be01-e721-4f29-b5b4-b4464cf9fc4b :: false

deleteSubnodes 1.031s
2022-07-01 22:33:25 |

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

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

2022-07-01 22:33:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e17238ae-b15b-4b1c-ab1a-ec106f344c32"
}

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

2022-07-01 22:33:26 | [Mutex] waiting for: [received:nodes:36d86444-9391-4a0e-9a9a-037daf248706:localhost]

2022-07-01 22:33:26 | [Mutex] received everything.

2022-07-01 22:33:26 | [Mutex] isItemNotified: received:node:36d86444-9391-4a0e-9a9a-037daf248706:localhost:node-e17238ae-b15b-4b1c-ab1a-ec106f344c32:Node e17238ae-b15b-4b1c-ab1a-ec106f344c32 :: false

2022-07-01 22:33:26 | [Mutex] waiting for: [received:nodes:6a97b39a-c4e5-4d31-998d-b80e453e5e58:localhost]

2022-07-01 22:33:26 | [Mutex] received everything.

2022-07-01 22:33:26 | [Mutex] isItemNotified: received:node:6a97b39a-c4e5-4d31-998d-b80e453e5e58:localhost:node-e17238ae-b15b-4b1c-ab1a-ec106f344c32:Node e17238ae-b15b-4b1c-ab1a-ec106f344c32 :: false

publishItemsToNodes 0.052s
2022-07-01 22:33:23 |

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

2022-07-01 22:33:23 | ------------------------------------

2022-07-01 22:33:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e17238ae-b15b-4b1c-ab1a-ec106f344c32",
    "entry": "<test>item-dacfd94d-a129-4e1c-80ae-d1877f75b498</test>",
    "item-id": "item-dacfd94d-a129-4e1c-80ae-d1877f75b498"
}

2022-07-01 22:33:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dacfd94d-a129-4e1c-80ae-d1877f75b498"
}

2022-07-01 22:33:23 | [Mutex] waiting for: [published:item:notifieditem-dacfd94d-a129-4e1c-80ae-d1877f75b498:admin@test-domain.com]

2022-07-01 22:33:23 | [Mutex] received everything.

2022-07-01 22:33:23 | [Mutex] isItemNotified: published:item:notifieditem-dacfd94d-a129-4e1c-80ae-d1877f75b498:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-07-01 22:33:23 |

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

2022-07-01 22:33:23 | ------------------------------------

2022-07-01 22:33:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e17238ae-b15b-4b1c-ab1a-ec106f344c32",
    "item-id": "item-dacfd94d-a129-4e1c-80ae-d1877f75b498"
}

2022-07-01 22:33:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dacfd94d-a129-4e1c-80ae-d1877f75b498"
}

2022-07-01 22:33:24 | [Mutex] received everything.

2022-07-01 22:33:24 | [Mutex] isItemNotified: retracted:item:notifieditem-dacfd94d-a129-4e1c-80ae-d1877f75b498:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-07-01 22:33:23 |

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

2022-07-01 22:33:23 | ------------------------------------

2022-07-01 22:33:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e17238ae-b15b-4b1c-ab1a-ec106f344c32",
    "item-id": "item-dacfd94d-a129-4e1c-80ae-d1877f75b498"
}

2022-07-01 22:33:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e17238ae-b15b-4b1c-ab1a-ec106f344c32",
    "item-id": "item-dacfd94d-a129-4e1c-80ae-d1877f75b498",
    "item": [
        "<item id=\"item-dacfd94d-a129-4e1c-80ae-d1877f75b498\"><test>item-dacfd94d-a129-4e1c-80ae-d1877f75b498</test></item>"
    ]
}

2022-07-01 22:33:23 | [Mutex] notify: [retrieved:item:item-dacfd94d-a129-4e1c-80ae-d1877f75b498:payload-matches:true:localhost]

2022-07-01 22:33:23 | [Mutex] received everything.

2022-07-01 22:33:23 | [Mutex] isItemNotified: retrieved:item:item-dacfd94d-a129-4e1c-80ae-d1877f75b498:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.066s
2022-07-01 22:33:23 |

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

2022-07-01 22:33:23 | ------------------------------------

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

2022-07-01 22:33:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b830be01-e721-4f29-b5b4-b4464cf9fc4b",
        "test",
        "node-e17238ae-b15b-4b1c-ab1a-ec106f344c32"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-01 22:33:23 |

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

2022-07-01 22:33:23 | ------------------------------------

2022-07-01 22:33:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e17238ae-b15b-4b1c-ab1a-ec106f344c32)"
}

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

subscribeNodes 1.018s
2022-07-01 22:33:22 |

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

2022-07-01 22:33:22 | ------------------------------------

2022-07-01 22:33:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e17238ae-b15b-4b1c-ab1a-ec106f344c32",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-07-01 22:33:24 |

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

2022-07-01 22:33:24 | ------------------------------------

2022-07-01 22:33:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e17238ae-b15b-4b1c-ab1a-ec106f344c32",
    "jids": [
        "admin@test-domain.com"
    ]
}

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