Generated by TestNG with ReportNG at 22:44 PDT on Saturday 18 March 2023
root@f9c07ffec79b / 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.617s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2023-03-18 22:59:33 |

2023-03-18 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:33 | ------------------------------------

2023-03-18 22:59:33 | [Mutex] waiting for: [configured:node:node-3a738c9c-0142-44da-9cfc-34c1eca24535:node-4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf]

2023-03-18 22:59:33 | [Mutex] received everything.

2023-03-18 22:59:33 | [Mutex] isItemNotified: configured:node:node-3a738c9c-0142-44da-9cfc-34c1eca24535:node-4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf :: true

2023-03-18 22:59:34 | [Mutex] waiting for: [received:nodes:76fd1ea5-8a97-409f-ad26-bc7475d103a3:localhost]

2023-03-18 22:59:34 | [Mutex] received everything.

2023-03-18 22:59:34 | [Mutex] isItemNotified: received:node:76fd1ea5-8a97-409f-ad26-bc7475d103a3:localhost:node-3a738c9c-0142-44da-9cfc-34c1eca24535:Node 3a738c9c-0142-44da-9cfc-34c1eca24535 :: true

2023-03-18 22:59:34 | [Mutex] waiting for: [received:nodes:c957c432-6ca4-4cf5-93c7-a9493bc2b3dd:localhost]

2023-03-18 22:59:34 | [Mutex] received everything.

2023-03-18 22:59:34 | [Mutex] isItemNotified: received:node:c957c432-6ca4-4cf5-93c7-a9493bc2b3dd:localhost:node-3a738c9c-0142-44da-9cfc-34c1eca24535:Node 3a738c9c-0142-44da-9cfc-34c1eca24535 :: false

createNodes 1.625s
2023-03-18 22:59:31 |

2023-03-18 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:31 | ------------------------------------

2023-03-18 22:59:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3a738c9c-0142-44da-9cfc-34c1eca24535",
    "pubsub#title": "Node 3a738c9c-0142-44da-9cfc-34c1eca24535"
}

2023-03-18 22:59:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-18 22:59:32 | [Mutex] waiting for: [received:nodes:099d45ae-6813-4265-be7a-9639f34e170a:localhost]

2023-03-18 22:59:32 | [Mutex] waiting for: [received:nodes:099d45ae-6813-4265-be7a-9639f34e170a:localhost]

2023-03-18 22:59:32 | [Mutex] waiting for: [received:nodes:099d45ae-6813-4265-be7a-9639f34e170a:localhost]

2023-03-18 22:59:32 | [Mutex] received everything.

2023-03-18 22:59:32 | [Mutex] isItemNotified: received:node:099d45ae-6813-4265-be7a-9639f34e170a:localhost:node-3a738c9c-0142-44da-9cfc-34c1eca24535:Node 3a738c9c-0142-44da-9cfc-34c1eca24535 :: true

createSubnodes 1.028s
2023-03-18 22:59:32 |

2023-03-18 22:59:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:32 | ------------------------------------

2023-03-18 22:59:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf",
    "pubsub#title": "Node 4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf"
}

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

2023-03-18 22:59:33 | [Mutex] waiting for: [received:nodes:74059138-85a9-48ba-9c9a-4c7fda40ac3e:localhost]

2023-03-18 22:59:33 | [Mutex] waiting for: [received:nodes:74059138-85a9-48ba-9c9a-4c7fda40ac3e:localhost]

2023-03-18 22:59:33 | [Mutex] received everything.

2023-03-18 22:59:33 | [Mutex] isItemNotified: received:node:74059138-85a9-48ba-9c9a-4c7fda40ac3e:localhost:node-4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf:Node 4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf :: true

deleteNodes 1.016s
2023-03-18 22:59:38 |

2023-03-18 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:38 | ------------------------------------

2023-03-18 22:59:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf"
}

2023-03-18 22:59:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-18 22:59:39 | [Mutex] waiting for: [received:nodes:90a325a8-6acd-4b0a-b125-a188c7d6e9ce:localhost]

2023-03-18 22:59:39 | [Mutex] received everything.

2023-03-18 22:59:39 | [Mutex] isItemNotified: received:node:90a325a8-6acd-4b0a-b125-a188c7d6e9ce:localhost:node-4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf:Node 4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf :: false

deleteSubnodes 1.025s
2023-03-18 22:59:37 |

2023-03-18 22:59:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:37 | ------------------------------------

2023-03-18 22:59:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3a738c9c-0142-44da-9cfc-34c1eca24535"
}

2023-03-18 22:59:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-18 22:59:38 | [Mutex] waiting for: [received:nodes:547dc162-db36-4d50-9323-aeb0a013f796:localhost]

2023-03-18 22:59:38 | [Mutex] waiting for: [received:nodes:547dc162-db36-4d50-9323-aeb0a013f796:localhost]

2023-03-18 22:59:38 | [Mutex] waiting for: [received:nodes:547dc162-db36-4d50-9323-aeb0a013f796:localhost]

2023-03-18 22:59:38 | [Mutex] received everything.

2023-03-18 22:59:38 | [Mutex] isItemNotified: received:node:547dc162-db36-4d50-9323-aeb0a013f796:localhost:node-3a738c9c-0142-44da-9cfc-34c1eca24535:Node 3a738c9c-0142-44da-9cfc-34c1eca24535 :: false

2023-03-18 22:59:38 | [Mutex] waiting for: [received:nodes:d59cf9b2-8b2c-4005-9cf1-b263de52d0c9:localhost]

2023-03-18 22:59:38 | [Mutex] received everything.

2023-03-18 22:59:38 | [Mutex] isItemNotified: received:node:d59cf9b2-8b2c-4005-9cf1-b263de52d0c9:localhost:node-3a738c9c-0142-44da-9cfc-34c1eca24535:Node 3a738c9c-0142-44da-9cfc-34c1eca24535 :: false

publishItemsToNodes 0.092s
2023-03-18 22:59:35 |

2023-03-18 22:59:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:35 | ------------------------------------

2023-03-18 22:59:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3a738c9c-0142-44da-9cfc-34c1eca24535",
    "entry": "<test>item-4f233556-93f4-4039-a806-8da22b04fe3e</test>",
    "item-id": "item-4f233556-93f4-4039-a806-8da22b04fe3e"
}

2023-03-18 22:59:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f233556-93f4-4039-a806-8da22b04fe3e"
}

2023-03-18 22:59:35 | [Mutex] waiting for: [published:item:notifieditem-4f233556-93f4-4039-a806-8da22b04fe3e:admin@test-domain.com]

2023-03-18 22:59:35 | [Mutex] received everything.

2023-03-18 22:59:35 | [Mutex] isItemNotified: published:item:notifieditem-4f233556-93f4-4039-a806-8da22b04fe3e:admin@test-domain.com :: true

retractItemsFromNodes 0.113s
2023-03-18 22:59:36 |

2023-03-18 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:36 | ------------------------------------

2023-03-18 22:59:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3a738c9c-0142-44da-9cfc-34c1eca24535",
    "item-id": "item-4f233556-93f4-4039-a806-8da22b04fe3e"
}

2023-03-18 22:59:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f233556-93f4-4039-a806-8da22b04fe3e"
}

2023-03-18 22:59:36 | [Mutex] waiting for: [retracted:item:notifieditem-4f233556-93f4-4039-a806-8da22b04fe3e:admin@test-domain.com]

2023-03-18 22:59:36 | [Mutex] received everything.

2023-03-18 22:59:36 | [Mutex] isItemNotified: retracted:item:notifieditem-4f233556-93f4-4039-a806-8da22b04fe3e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.030s
2023-03-18 22:59:35 |

2023-03-18 22:59:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:35 | ------------------------------------

2023-03-18 22:59:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3a738c9c-0142-44da-9cfc-34c1eca24535",
    "item-id": "item-4f233556-93f4-4039-a806-8da22b04fe3e"
}

2023-03-18 22:59:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3a738c9c-0142-44da-9cfc-34c1eca24535",
    "item-id": "item-4f233556-93f4-4039-a806-8da22b04fe3e",
    "item": [
        "<item id=\"item-4f233556-93f4-4039-a806-8da22b04fe3e\"><test>item-4f233556-93f4-4039-a806-8da22b04fe3e</test></item>"
    ]
}

2023-03-18 22:59:35 | [Mutex] notify: [retrieved:item:item-4f233556-93f4-4039-a806-8da22b04fe3e:payload-matches:true:localhost]

2023-03-18 22:59:35 | [Mutex] received everything.

2023-03-18 22:59:35 | [Mutex] isItemNotified: retrieved:item:item-4f233556-93f4-4039-a806-8da22b04fe3e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2023-03-18 22:59:36 |

2023-03-18 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:36 | ------------------------------------

2023-03-18 22:59:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-18 22:59:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4ff1171a-0c5b-49e2-a7c5-f17dd78d19cf",
        "node-3a738c9c-0142-44da-9cfc-34c1eca24535"
    ]
}

retrieveUserSubscriptionsWithRegex 0.061s
2023-03-18 22:59:36 |

2023-03-18 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:36 | ------------------------------------

2023-03-18 22:59:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3a738c9c-0142-44da-9cfc-34c1eca24535)"
}

2023-03-18 22:59:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-03-18 22:59:34 |

2023-03-18 22:59:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:34 | ------------------------------------

2023-03-18 22:59:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3a738c9c-0142-44da-9cfc-34c1eca24535",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-18 22:59:34 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.009s
2023-03-18 22:59:36 |

2023-03-18 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:59:36 | ------------------------------------

2023-03-18 22:59:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3a738c9c-0142-44da-9cfc-34c1eca24535",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-18 22:59:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}