Generated by TestNG with ReportNG at 22:52 PDT on Wednesday 31 August 2022
root@7c41cec37518 / 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.475s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.081s
2022-08-31 23:06:56 |

2022-08-31 23:06:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:56 | ------------------------------------

2022-08-31 23:06:56 | [Mutex] waiting for: [configured:node:node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c:node-2a68b168-ce96-4c70-b51b-6807bd4e880a]

2022-08-31 23:06:56 | [Mutex] received everything.

2022-08-31 23:06:56 | [Mutex] isItemNotified: configured:node:node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c:node-2a68b168-ce96-4c70-b51b-6807bd4e880a :: true

2022-08-31 23:06:57 | [Mutex] waiting for: [received:nodes:b8c7e94d-2094-4046-afa3-8a60a02b91ec:localhost]

2022-08-31 23:06:57 | [Mutex] received everything.

2022-08-31 23:06:57 | [Mutex] isItemNotified: received:node:b8c7e94d-2094-4046-afa3-8a60a02b91ec:localhost:node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c:Node a9fe90e3-eca3-4fde-aaf0-e78e4efab44c :: true

2022-08-31 23:06:57 | [Mutex] waiting for: [received:nodes:09ad58e5-726b-4326-8d1d-2eec78cc20c1:localhost]

2022-08-31 23:06:57 | [Mutex] received everything.

2022-08-31 23:06:57 | [Mutex] isItemNotified: received:node:09ad58e5-726b-4326-8d1d-2eec78cc20c1:localhost:node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c:Node a9fe90e3-eca3-4fde-aaf0-e78e4efab44c :: false

createNodes 1.539s
2022-08-31 23:06:53 |

2022-08-31 23:06:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:53 | ------------------------------------

2022-08-31 23:06:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c",
    "pubsub#title": "Node a9fe90e3-eca3-4fde-aaf0-e78e4efab44c"
}

2022-08-31 23:06:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-31 23:06:55 | [Mutex] waiting for: [received:nodes:ab82e153-fc48-48ef-abf1-ccffc483050e:localhost]

2022-08-31 23:06:55 | [Mutex] waiting for: [received:nodes:ab82e153-fc48-48ef-abf1-ccffc483050e:localhost]

2022-08-31 23:06:55 | [Mutex] received everything.

2022-08-31 23:06:55 | [Mutex] isItemNotified: received:node:ab82e153-fc48-48ef-abf1-ccffc483050e:localhost:node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c:Node a9fe90e3-eca3-4fde-aaf0-e78e4efab44c :: true

createSubnodes 1.019s
2022-08-31 23:06:55 |

2022-08-31 23:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:55 | ------------------------------------

2022-08-31 23:06:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2a68b168-ce96-4c70-b51b-6807bd4e880a",
    "pubsub#title": "Node 2a68b168-ce96-4c70-b51b-6807bd4e880a"
}

2022-08-31 23:06:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-31 23:06:56 | [Mutex] waiting for: [received:nodes:fdba2583-e241-43ac-a7bd-648a622896f4:localhost]

2022-08-31 23:06:56 | [Mutex] received everything.

2022-08-31 23:06:56 | [Mutex] isItemNotified: received:node:fdba2583-e241-43ac-a7bd-648a622896f4:localhost:node-2a68b168-ce96-4c70-b51b-6807bd4e880a:Node 2a68b168-ce96-4c70-b51b-6807bd4e880a :: true

deleteNodes 1.017s
2022-08-31 23:07:00 |

2022-08-31 23:07:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:07:00 | ------------------------------------

2022-08-31 23:07:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2a68b168-ce96-4c70-b51b-6807bd4e880a"
}

2022-08-31 23:07:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-31 23:07:01 | [Mutex] waiting for: [received:nodes:5ac0cb46-b79e-4758-9c41-72a172a36db3:localhost]

2022-08-31 23:07:01 | [Mutex] waiting for: [received:nodes:5ac0cb46-b79e-4758-9c41-72a172a36db3:localhost]

2022-08-31 23:07:01 | [Mutex] received everything.

2022-08-31 23:07:01 | [Mutex] isItemNotified: received:node:5ac0cb46-b79e-4758-9c41-72a172a36db3:localhost:node-2a68b168-ce96-4c70-b51b-6807bd4e880a:Node 2a68b168-ce96-4c70-b51b-6807bd4e880a :: false

deleteSubnodes 1.023s
2022-08-31 23:06:59 |

2022-08-31 23:06:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:59 | ------------------------------------

2022-08-31 23:06:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c"
}

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

2022-08-31 23:07:00 | [Mutex] waiting for: [received:nodes:5d1b0b7a-f0db-4dd3-a548-f7bae5bf6d1e:localhost]

2022-08-31 23:07:00 | [Mutex] received everything.

2022-08-31 23:07:00 | [Mutex] isItemNotified: received:node:5d1b0b7a-f0db-4dd3-a548-f7bae5bf6d1e:localhost:node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c:Node a9fe90e3-eca3-4fde-aaf0-e78e4efab44c :: false

2022-08-31 23:07:00 | [Mutex] waiting for: [received:nodes:b6d89550-7f43-4635-a502-d2cc6697515c:localhost]

2022-08-31 23:07:00 | [Mutex] received everything.

2022-08-31 23:07:00 | [Mutex] isItemNotified: received:node:b6d89550-7f43-4635-a502-d2cc6697515c:localhost:node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c:Node a9fe90e3-eca3-4fde-aaf0-e78e4efab44c :: false

publishItemsToNodes 0.042s
2022-08-31 23:06:58 |

2022-08-31 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:58 | ------------------------------------

2022-08-31 23:06:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c",
    "entry": "<test>item-8fa02704-7693-40e4-8495-b317735b828d</test>",
    "item-id": "item-8fa02704-7693-40e4-8495-b317735b828d"
}

2022-08-31 23:06:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8fa02704-7693-40e4-8495-b317735b828d"
}

2022-08-31 23:06:58 | [Mutex] waiting for: [published:item:notifieditem-8fa02704-7693-40e4-8495-b317735b828d:admin@test-domain.com]

2022-08-31 23:06:58 | [Mutex] received everything.

2022-08-31 23:06:58 | [Mutex] isItemNotified: published:item:notifieditem-8fa02704-7693-40e4-8495-b317735b828d:admin@test-domain.com :: true

retractItemsFromNodes 0.048s
2022-08-31 23:06:58 |

2022-08-31 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:58 | ------------------------------------

2022-08-31 23:06:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c",
    "item-id": "item-8fa02704-7693-40e4-8495-b317735b828d"
}

2022-08-31 23:06:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8fa02704-7693-40e4-8495-b317735b828d"
}

2022-08-31 23:06:58 | [Mutex] received everything.

2022-08-31 23:06:58 | [Mutex] isItemNotified: retracted:item:notifieditem-8fa02704-7693-40e4-8495-b317735b828d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2022-08-31 23:06:58 |

2022-08-31 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:58 | ------------------------------------

2022-08-31 23:06:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c",
    "item-id": "item-8fa02704-7693-40e4-8495-b317735b828d"
}

2022-08-31 23:06:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c",
    "item-id": "item-8fa02704-7693-40e4-8495-b317735b828d",
    "item": [
        "<item id=\"item-8fa02704-7693-40e4-8495-b317735b828d\"><test>item-8fa02704-7693-40e4-8495-b317735b828d</test></item>"
    ]
}

2022-08-31 23:06:58 | [Mutex] notify: [retrieved:item:item-8fa02704-7693-40e4-8495-b317735b828d:payload-matches:true:localhost]

2022-08-31 23:06:58 | [Mutex] received everything.

2022-08-31 23:06:58 | [Mutex] isItemNotified: retrieved:item:item-8fa02704-7693-40e4-8495-b317735b828d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-08-31 23:06:58 |

2022-08-31 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:58 | ------------------------------------

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

2022-08-31 23:06:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2a68b168-ce96-4c70-b51b-6807bd4e880a",
        "node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-31 23:06:58 |

2022-08-31 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:58 | ------------------------------------

2022-08-31 23:06:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c)"
}

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

subscribeNodes 1.009s
2022-08-31 23:06:57 |

2022-08-31 23:06:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:57 | ------------------------------------

2022-08-31 23:06:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-31 23:06:57 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-08-31 23:06:58 |

2022-08-31 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 23:06:58 | ------------------------------------

2022-08-31 23:06:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a9fe90e3-eca3-4fde-aaf0-e78e4efab44c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-31 23:06:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}