Generated by TestNG with ReportNG at 21:18 PST on Sunday 13 February 2022
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.077s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2022-02-13 21:35:18 |

2022-02-13 21:35:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:18 | ------------------------------------

2022-02-13 21:35:18 | [Mutex] waiting for: [configured:node:node-163f3794-da79-4486-aabd-44fbbc0ac291:node-6bdcf76e-1394-4a21-ab37-d018547c6871]

2022-02-13 21:35:18 | [Mutex] received everything.

2022-02-13 21:35:18 | [Mutex] isItemNotified: configured:node:node-163f3794-da79-4486-aabd-44fbbc0ac291:node-6bdcf76e-1394-4a21-ab37-d018547c6871 :: true

2022-02-13 21:35:19 | [Mutex] waiting for: [received:nodes:7a153444-c7d5-4dc0-bbee-dbcbaa65da32:localhost]

2022-02-13 21:35:19 | [Mutex] waiting for: [received:nodes:7a153444-c7d5-4dc0-bbee-dbcbaa65da32:localhost]

2022-02-13 21:35:19 | [Mutex] received everything.

2022-02-13 21:35:19 | [Mutex] isItemNotified: received:node:7a153444-c7d5-4dc0-bbee-dbcbaa65da32:localhost:node-163f3794-da79-4486-aabd-44fbbc0ac291:Node 163f3794-da79-4486-aabd-44fbbc0ac291 :: true

2022-02-13 21:35:19 | [Mutex] waiting for: [received:nodes:95935ecf-01c6-494f-aee1-b04a93f6dd48:localhost]

2022-02-13 21:35:19 | [Mutex] waiting for: [received:nodes:95935ecf-01c6-494f-aee1-b04a93f6dd48:localhost]

2022-02-13 21:35:19 | [Mutex] received everything.

2022-02-13 21:35:19 | [Mutex] isItemNotified: received:node:95935ecf-01c6-494f-aee1-b04a93f6dd48:localhost:node-163f3794-da79-4486-aabd-44fbbc0ac291:Node 163f3794-da79-4486-aabd-44fbbc0ac291 :: false

createNodes 1.633s
2022-02-13 21:35:16 |

2022-02-13 21:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:16 | ------------------------------------

2022-02-13 21:35:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-163f3794-da79-4486-aabd-44fbbc0ac291",
    "pubsub#title": "Node 163f3794-da79-4486-aabd-44fbbc0ac291"
}

2022-02-13 21:35:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-13 21:35:17 | [Mutex] waiting for: [received:nodes:acb5f6fe-9897-479c-b194-67f4ef628ab9:localhost]

2022-02-13 21:35:17 | [Mutex] received everything.

2022-02-13 21:35:17 | [Mutex] isItemNotified: received:node:acb5f6fe-9897-479c-b194-67f4ef628ab9:localhost:node-163f3794-da79-4486-aabd-44fbbc0ac291:Node 163f3794-da79-4486-aabd-44fbbc0ac291 :: true

createSubnodes 1.039s
2022-02-13 21:35:17 |

2022-02-13 21:35:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:17 | ------------------------------------

2022-02-13 21:35:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6bdcf76e-1394-4a21-ab37-d018547c6871",
    "pubsub#title": "Node 6bdcf76e-1394-4a21-ab37-d018547c6871"
}

2022-02-13 21:35:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-13 21:35:18 | [Mutex] waiting for: [received:nodes:43735bed-d40d-4929-a3ac-86e1baa12561:localhost]

2022-02-13 21:35:18 | [Mutex] waiting for: [received:nodes:43735bed-d40d-4929-a3ac-86e1baa12561:localhost]

2022-02-13 21:35:18 | [Mutex] received everything.

2022-02-13 21:35:18 | [Mutex] isItemNotified: received:node:43735bed-d40d-4929-a3ac-86e1baa12561:localhost:node-6bdcf76e-1394-4a21-ab37-d018547c6871:Node 6bdcf76e-1394-4a21-ab37-d018547c6871 :: true

deleteNodes 1.026s
2022-02-13 21:35:23 |

2022-02-13 21:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:23 | ------------------------------------

2022-02-13 21:35:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6bdcf76e-1394-4a21-ab37-d018547c6871"
}

2022-02-13 21:35:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-13 21:35:24 | [Mutex] waiting for: [received:nodes:884b10d4-b9ae-43f5-b176-9d45af04bc8b:localhost]

2022-02-13 21:35:24 | [Mutex] waiting for: [received:nodes:884b10d4-b9ae-43f5-b176-9d45af04bc8b:localhost]

2022-02-13 21:35:24 | [Mutex] received everything.

2022-02-13 21:35:24 | [Mutex] isItemNotified: received:node:884b10d4-b9ae-43f5-b176-9d45af04bc8b:localhost:node-6bdcf76e-1394-4a21-ab37-d018547c6871:Node 6bdcf76e-1394-4a21-ab37-d018547c6871 :: false

deleteSubnodes 1.030s
2022-02-13 21:35:22 |

2022-02-13 21:35:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:22 | ------------------------------------

2022-02-13 21:35:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-163f3794-da79-4486-aabd-44fbbc0ac291"
}

2022-02-13 21:35:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-13 21:35:23 | [Mutex] waiting for: [received:nodes:53abf6ab-dc30-4eae-bc00-d84ccc5543a3:localhost]

2022-02-13 21:35:23 | [Mutex] received everything.

2022-02-13 21:35:23 | [Mutex] isItemNotified: received:node:53abf6ab-dc30-4eae-bc00-d84ccc5543a3:localhost:node-163f3794-da79-4486-aabd-44fbbc0ac291:Node 163f3794-da79-4486-aabd-44fbbc0ac291 :: false

2022-02-13 21:35:23 | [Mutex] waiting for: [received:nodes:a7b50f59-b860-4582-b7fd-461a77e5f6bb:localhost]

2022-02-13 21:35:23 | [Mutex] received everything.

2022-02-13 21:35:23 | [Mutex] isItemNotified: received:node:a7b50f59-b860-4582-b7fd-461a77e5f6bb:localhost:node-163f3794-da79-4486-aabd-44fbbc0ac291:Node 163f3794-da79-4486-aabd-44fbbc0ac291 :: false

publishItemsToNodes 0.090s
2022-02-13 21:35:20 |

2022-02-13 21:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:20 | ------------------------------------

2022-02-13 21:35:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-163f3794-da79-4486-aabd-44fbbc0ac291",
    "entry": "<test>item-2659201c-5668-43d3-92a7-4f1ffb233fb1</test>",
    "item-id": "item-2659201c-5668-43d3-92a7-4f1ffb233fb1"
}

2022-02-13 21:35:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2659201c-5668-43d3-92a7-4f1ffb233fb1"
}

2022-02-13 21:35:20 | [Mutex] waiting for: [published:item:notifieditem-2659201c-5668-43d3-92a7-4f1ffb233fb1:admin@test-domain.com]

2022-02-13 21:35:20 | [Mutex] received everything.

2022-02-13 21:35:20 | [Mutex] isItemNotified: published:item:notifieditem-2659201c-5668-43d3-92a7-4f1ffb233fb1:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-02-13 21:35:21 |

2022-02-13 21:35:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:21 | ------------------------------------

2022-02-13 21:35:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-163f3794-da79-4486-aabd-44fbbc0ac291",
    "item-id": "item-2659201c-5668-43d3-92a7-4f1ffb233fb1"
}

2022-02-13 21:35:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2659201c-5668-43d3-92a7-4f1ffb233fb1"
}

2022-02-13 21:35:21 | [Mutex] received everything.

2022-02-13 21:35:21 | [Mutex] isItemNotified: retracted:item:notifieditem-2659201c-5668-43d3-92a7-4f1ffb233fb1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2022-02-13 21:35:20 |

2022-02-13 21:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:20 | ------------------------------------

2022-02-13 21:35:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-163f3794-da79-4486-aabd-44fbbc0ac291",
    "item-id": "item-2659201c-5668-43d3-92a7-4f1ffb233fb1"
}

2022-02-13 21:35:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-163f3794-da79-4486-aabd-44fbbc0ac291",
    "item-id": "item-2659201c-5668-43d3-92a7-4f1ffb233fb1",
    "item": [
        "<item id=\"item-2659201c-5668-43d3-92a7-4f1ffb233fb1\"><test>item-2659201c-5668-43d3-92a7-4f1ffb233fb1</test></item>"
    ]
}

2022-02-13 21:35:20 | [Mutex] notify: [retrieved:item:item-2659201c-5668-43d3-92a7-4f1ffb233fb1:payload-matches:true:localhost]

2022-02-13 21:35:20 | [Mutex] received everything.

2022-02-13 21:35:20 | [Mutex] isItemNotified: retrieved:item:item-2659201c-5668-43d3-92a7-4f1ffb233fb1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2022-02-13 21:35:20 |

2022-02-13 21:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:20 | ------------------------------------

2022-02-13 21:35:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-13 21:35:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6bdcf76e-1394-4a21-ab37-d018547c6871",
        "node-163f3794-da79-4486-aabd-44fbbc0ac291"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-13 21:35:21 |

2022-02-13 21:35:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:21 | ------------------------------------

2022-02-13 21:35:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-163f3794-da79-4486-aabd-44fbbc0ac291)"
}

2022-02-13 21:35:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-02-13 21:35:19 |

2022-02-13 21:35:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:19 | ------------------------------------

2022-02-13 21:35:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-163f3794-da79-4486-aabd-44fbbc0ac291",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-13 21:35:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.139s
2022-02-13 21:35:21 |

2022-02-13 21:35:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 21:35:21 | ------------------------------------

2022-02-13 21:35:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-163f3794-da79-4486-aabd-44fbbc0ac291",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-13 21:35:21 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}