Generated by TestNG with ReportNG at 22:41 PDT on Thursday 17 June 2021
root@f29ef40080b5 / 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.050s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-06-17 22:56:37 |

2021-06-17 22:56:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:37 | ------------------------------------

2021-06-17 22:56:37 | [Mutex] waiting for: [configured:node:node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985:node-874e4861-9186-47a1-8ed9-5828c31d2608]

2021-06-17 22:56:37 | [Mutex] received everything.

2021-06-17 22:56:37 | [Mutex] isItemNotified: configured:node:node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985:node-874e4861-9186-47a1-8ed9-5828c31d2608 :: true

2021-06-17 22:56:38 | [Mutex] waiting for: [received:nodes:e52274ab-3e7d-42ca-aeda-2c732fc5da1d:localhost]

2021-06-17 22:56:38 | [Mutex] received everything.

2021-06-17 22:56:38 | [Mutex] isItemNotified: received:node:e52274ab-3e7d-42ca-aeda-2c732fc5da1d:localhost:node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985:Node 3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985 :: true

2021-06-17 22:56:38 | [Mutex] waiting for: [received:nodes:06d98605-8929-4992-b2a6-49eba28f1004:localhost]

2021-06-17 22:56:38 | [Mutex] received everything.

2021-06-17 22:56:38 | [Mutex] isItemNotified: received:node:06d98605-8929-4992-b2a6-49eba28f1004:localhost:node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985:Node 3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985 :: false

createNodes 1.617s
2021-06-17 22:56:35 |

2021-06-17 22:56:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:35 | ------------------------------------

2021-06-17 22:56:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985",
    "pubsub#title": "Node 3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985"
}

2021-06-17 22:56:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:56:36 | [Mutex] waiting for: [received:nodes:0b7e419c-92bb-4467-b3d3-42a213f01731:localhost]

2021-06-17 22:56:36 | [Mutex] waiting for: [received:nodes:0b7e419c-92bb-4467-b3d3-42a213f01731:localhost]

2021-06-17 22:56:36 | [Mutex] received everything.

2021-06-17 22:56:36 | [Mutex] isItemNotified: received:node:0b7e419c-92bb-4467-b3d3-42a213f01731:localhost:node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985:Node 3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985 :: true

createSubnodes 1.040s
2021-06-17 22:56:36 |

2021-06-17 22:56:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:36 | ------------------------------------

2021-06-17 22:56:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-874e4861-9186-47a1-8ed9-5828c31d2608",
    "pubsub#title": "Node 874e4861-9186-47a1-8ed9-5828c31d2608"
}

2021-06-17 22:56:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:56:37 | [Mutex] waiting for: [received:nodes:60ae05fb-afdd-4f1f-bc3d-5365cf22e624:localhost]

2021-06-17 22:56:37 | [Mutex] received everything.

2021-06-17 22:56:37 | [Mutex] isItemNotified: received:node:60ae05fb-afdd-4f1f-bc3d-5365cf22e624:localhost:node-874e4861-9186-47a1-8ed9-5828c31d2608:Node 874e4861-9186-47a1-8ed9-5828c31d2608 :: true

deleteNodes 1.030s
2021-06-17 22:56:42 |

2021-06-17 22:56:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:42 | ------------------------------------

2021-06-17 22:56:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-874e4861-9186-47a1-8ed9-5828c31d2608"
}

2021-06-17 22:56:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:56:43 | [Mutex] waiting for: [received:nodes:419fcd73-5fd8-488f-ba81-48fcdba2125c:localhost]

2021-06-17 22:56:43 | [Mutex] received everything.

2021-06-17 22:56:43 | [Mutex] isItemNotified: received:node:419fcd73-5fd8-488f-ba81-48fcdba2125c:localhost:node-874e4861-9186-47a1-8ed9-5828c31d2608:Node 874e4861-9186-47a1-8ed9-5828c31d2608 :: false

deleteSubnodes 1.031s
2021-06-17 22:56:41 |

2021-06-17 22:56:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:41 | ------------------------------------

2021-06-17 22:56:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985"
}

2021-06-17 22:56:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:56:42 | [Mutex] waiting for: [received:nodes:7e17be8b-63bf-43c8-9860-8ada26ce9037:localhost]

2021-06-17 22:56:42 | [Mutex] received everything.

2021-06-17 22:56:42 | [Mutex] isItemNotified: received:node:7e17be8b-63bf-43c8-9860-8ada26ce9037:localhost:node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985:Node 3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985 :: false

2021-06-17 22:56:42 | [Mutex] waiting for: [received:nodes:2f0bc6fe-7337-4673-8a53-203f0ee52c39:localhost]

2021-06-17 22:56:42 | [Mutex] received everything.

2021-06-17 22:56:42 | [Mutex] isItemNotified: received:node:2f0bc6fe-7337-4673-8a53-203f0ee52c39:localhost:node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985:Node 3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985 :: false

publishItemsToNodes 0.056s
2021-06-17 22:56:39 |

2021-06-17 22:56:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:39 | ------------------------------------

2021-06-17 22:56:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985",
    "entry": "<test>item-732a77a3-6c92-489c-90e6-c722b75a60b9</test>",
    "item-id": "item-732a77a3-6c92-489c-90e6-c722b75a60b9"
}

2021-06-17 22:56:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-732a77a3-6c92-489c-90e6-c722b75a60b9"
}

2021-06-17 22:56:39 | [Mutex] waiting for: [published:item:notifieditem-732a77a3-6c92-489c-90e6-c722b75a60b9:admin@test-domain.com]

2021-06-17 22:56:39 | [Mutex] received everything.

2021-06-17 22:56:39 | [Mutex] isItemNotified: published:item:notifieditem-732a77a3-6c92-489c-90e6-c722b75a60b9:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-06-17 22:56:40 |

2021-06-17 22:56:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:40 | ------------------------------------

2021-06-17 22:56:40 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985",
    "item-id": "item-732a77a3-6c92-489c-90e6-c722b75a60b9"
}

2021-06-17 22:56:40 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-732a77a3-6c92-489c-90e6-c722b75a60b9"
}

2021-06-17 22:56:40 | [Mutex] waiting for: [retracted:item:notifieditem-732a77a3-6c92-489c-90e6-c722b75a60b9:admin@test-domain.com]

2021-06-17 22:56:40 | [Mutex] received everything.

2021-06-17 22:56:40 | [Mutex] isItemNotified: retracted:item:notifieditem-732a77a3-6c92-489c-90e6-c722b75a60b9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2021-06-17 22:56:39 |

2021-06-17 22:56:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:39 | ------------------------------------

2021-06-17 22:56:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985",
    "item-id": "item-732a77a3-6c92-489c-90e6-c722b75a60b9"
}

2021-06-17 22:56:40 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985",
    "item-id": "item-732a77a3-6c92-489c-90e6-c722b75a60b9",
    "item": [
        "<item id=\"item-732a77a3-6c92-489c-90e6-c722b75a60b9\"><test>item-732a77a3-6c92-489c-90e6-c722b75a60b9</test></item>"
    ]
}

2021-06-17 22:56:40 | [Mutex] notify: [retrieved:item:item-732a77a3-6c92-489c-90e6-c722b75a60b9:payload-matches:true:localhost]

2021-06-17 22:56:40 | [Mutex] received everything.

2021-06-17 22:56:40 | [Mutex] isItemNotified: retrieved:item:item-732a77a3-6c92-489c-90e6-c722b75a60b9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-06-17 22:56:40 |

2021-06-17 22:56:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:40 | ------------------------------------

2021-06-17 22:56:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-17 22:56:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985",
        "test",
        "node-874e4861-9186-47a1-8ed9-5828c31d2608"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-06-17 22:56:40 |

2021-06-17 22:56:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:40 | ------------------------------------

2021-06-17 22:56:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985)"
}

2021-06-17 22:56:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2021-06-17 22:56:38 |

2021-06-17 22:56:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:38 | ------------------------------------

2021-06-17 22:56:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-17 22:56:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.062s
2021-06-17 22:56:40 |

2021-06-17 22:56:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:56:40 | ------------------------------------

2021-06-17 22:56:40 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3ab72ffd-d8b7-409f-bf8f-4b3b72ad2985",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-17 22:56:40 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}