Generated by TestNG with ReportNG at 22:17 PDT on Wednesday 22 June 2022
root@1bc69cf4cb94 / 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.749s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-06-22 22:32:04 |

2022-06-22 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:32:04 | ------------------------------------

2022-06-22 22:32:04 | [Mutex] waiting for: [configured:node:node-541ad537-3ff3-437b-9c39-6863cc3826d4:node-7a9bcc13-bc66-4475-85a7-403caae12907]

2022-06-22 22:32:04 | [Mutex] received everything.

2022-06-22 22:32:04 | [Mutex] isItemNotified: configured:node:node-541ad537-3ff3-437b-9c39-6863cc3826d4:node-7a9bcc13-bc66-4475-85a7-403caae12907 :: true

2022-06-22 22:32:05 | [Mutex] waiting for: [received:nodes:d612a0d2-d394-4784-a00f-fe7b057c4241:localhost]

2022-06-22 22:32:05 | [Mutex] received everything.

2022-06-22 22:32:05 | [Mutex] isItemNotified: received:node:d612a0d2-d394-4784-a00f-fe7b057c4241:localhost:node-541ad537-3ff3-437b-9c39-6863cc3826d4:Node 541ad537-3ff3-437b-9c39-6863cc3826d4 :: true

2022-06-22 22:32:05 | [Mutex] waiting for: [received:nodes:d38dce1b-2db8-4cd7-a927-cc842f10f2b5:localhost]

2022-06-22 22:32:05 | [Mutex] received everything.

2022-06-22 22:32:05 | [Mutex] isItemNotified: received:node:d38dce1b-2db8-4cd7-a927-cc842f10f2b5:localhost:node-541ad537-3ff3-437b-9c39-6863cc3826d4:Node 541ad537-3ff3-437b-9c39-6863cc3826d4 :: false

createNodes 1.733s
2022-06-22 22:32:01 |

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

2022-06-22 22:32:01 | ------------------------------------

2022-06-22 22:32:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-541ad537-3ff3-437b-9c39-6863cc3826d4",
    "pubsub#title": "Node 541ad537-3ff3-437b-9c39-6863cc3826d4"
}

2022-06-22 22:32:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-22 22:32:03 | [Mutex] waiting for: [received:nodes:9c6f290b-09a1-4b5a-b612-eb84e466bde8:localhost]

2022-06-22 22:32:03 | [Mutex] received everything.

2022-06-22 22:32:03 | [Mutex] isItemNotified: received:node:9c6f290b-09a1-4b5a-b612-eb84e466bde8:localhost:node-541ad537-3ff3-437b-9c39-6863cc3826d4:Node 541ad537-3ff3-437b-9c39-6863cc3826d4 :: true

createSubnodes 1.022s
2022-06-22 22:32:03 |

2022-06-22 22:32:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:32:03 | ------------------------------------

2022-06-22 22:32:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7a9bcc13-bc66-4475-85a7-403caae12907",
    "pubsub#title": "Node 7a9bcc13-bc66-4475-85a7-403caae12907"
}

2022-06-22 22:32:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-22 22:32:04 | [Mutex] waiting for: [received:nodes:3438bb03-e569-4eda-b84b-b43f89e21f3c:localhost]

2022-06-22 22:32:04 | [Mutex] received everything.

2022-06-22 22:32:04 | [Mutex] isItemNotified: received:node:3438bb03-e569-4eda-b84b-b43f89e21f3c:localhost:node-7a9bcc13-bc66-4475-85a7-403caae12907:Node 7a9bcc13-bc66-4475-85a7-403caae12907 :: true

deleteNodes 1.026s
2022-06-22 22:32:08 |

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

2022-06-22 22:32:08 | ------------------------------------

2022-06-22 22:32:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7a9bcc13-bc66-4475-85a7-403caae12907"
}

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

2022-06-22 22:32:09 | [Mutex] waiting for: [received:nodes:b628616c-8ab3-4416-89d9-5627a5be94d7:localhost]

2022-06-22 22:32:09 | [Mutex] waiting for: [received:nodes:b628616c-8ab3-4416-89d9-5627a5be94d7:localhost]

2022-06-22 22:32:09 | [Mutex] received everything.

2022-06-22 22:32:09 | [Mutex] isItemNotified: received:node:b628616c-8ab3-4416-89d9-5627a5be94d7:localhost:node-7a9bcc13-bc66-4475-85a7-403caae12907:Node 7a9bcc13-bc66-4475-85a7-403caae12907 :: false

deleteSubnodes 1.031s
2022-06-22 22:32:07 |

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

2022-06-22 22:32:07 | ------------------------------------

2022-06-22 22:32:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-541ad537-3ff3-437b-9c39-6863cc3826d4"
}

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

2022-06-22 22:32:08 | [Mutex] waiting for: [received:nodes:e3d4d8b6-9a00-48b0-ad9f-b70cf678dceb:localhost]

2022-06-22 22:32:08 | [Mutex] waiting for: [received:nodes:e3d4d8b6-9a00-48b0-ad9f-b70cf678dceb:localhost]

2022-06-22 22:32:08 | [Mutex] received everything.

2022-06-22 22:32:08 | [Mutex] isItemNotified: received:node:e3d4d8b6-9a00-48b0-ad9f-b70cf678dceb:localhost:node-541ad537-3ff3-437b-9c39-6863cc3826d4:Node 541ad537-3ff3-437b-9c39-6863cc3826d4 :: false

2022-06-22 22:32:08 | [Mutex] waiting for: [received:nodes:3229b17c-c84f-4944-932c-683c19bb2131:localhost]

2022-06-22 22:32:08 | [Mutex] received everything.

2022-06-22 22:32:08 | [Mutex] isItemNotified: received:node:3229b17c-c84f-4944-932c-683c19bb2131:localhost:node-541ad537-3ff3-437b-9c39-6863cc3826d4:Node 541ad537-3ff3-437b-9c39-6863cc3826d4 :: false

publishItemsToNodes 0.048s
2022-06-22 22:32:06 |

2022-06-22 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:32:06 | ------------------------------------

2022-06-22 22:32:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-541ad537-3ff3-437b-9c39-6863cc3826d4",
    "entry": "<test>item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56</test>",
    "item-id": "item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56"
}

2022-06-22 22:32:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56"
}

2022-06-22 22:32:06 | [Mutex] waiting for: [published:item:notifieditem-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56:admin@test-domain.com]

2022-06-22 22:32:06 | [Mutex] received everything.

2022-06-22 22:32:06 | [Mutex] isItemNotified: published:item:notifieditem-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-06-22 22:32:06 |

2022-06-22 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:32:06 | ------------------------------------

2022-06-22 22:32:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-541ad537-3ff3-437b-9c39-6863cc3826d4",
    "item-id": "item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56"
}

2022-06-22 22:32:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56"
}

2022-06-22 22:32:06 | [Mutex] received everything.

2022-06-22 22:32:06 | [Mutex] isItemNotified: retracted:item:notifieditem-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2022-06-22 22:32:06 |

2022-06-22 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:32:06 | ------------------------------------

2022-06-22 22:32:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-541ad537-3ff3-437b-9c39-6863cc3826d4",
    "item-id": "item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56"
}

2022-06-22 22:32:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-541ad537-3ff3-437b-9c39-6863cc3826d4",
    "item-id": "item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56",
    "item": [
        "<item id=\"item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56\"><test>item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56</test></item>"
    ]
}

2022-06-22 22:32:06 | [Mutex] notify: [retrieved:item:item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56:payload-matches:true:localhost]

2022-06-22 22:32:06 | [Mutex] received everything.

2022-06-22 22:32:06 | [Mutex] isItemNotified: retrieved:item:item-54932d15-f6e7-4fb7-8a4d-f15f0eed8b56:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-22 22:32:06 |

2022-06-22 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:32:06 | ------------------------------------

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

2022-06-22 22:32:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-7a9bcc13-bc66-4475-85a7-403caae12907",
        "node-541ad537-3ff3-437b-9c39-6863cc3826d4",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-22 22:32:06 |

2022-06-22 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:32:06 | ------------------------------------

2022-06-22 22:32:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-541ad537-3ff3-437b-9c39-6863cc3826d4)"
}

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

subscribeNodes 1.010s
2022-06-22 22:32:05 |

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

2022-06-22 22:32:05 | ------------------------------------

2022-06-22 22:32:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-541ad537-3ff3-437b-9c39-6863cc3826d4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.056s
2022-06-22 22:32:06 |

2022-06-22 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:32:06 | ------------------------------------

2022-06-22 22:32:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-541ad537-3ff3-437b-9c39-6863cc3826d4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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