Generated by TestNG with ReportNG at 23:02 PDT on Sunday 05 June 2022
root@61c39d2ed70d / 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.633s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2022-06-05 23:16:34 |

2022-06-05 23:16:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:34 | ------------------------------------

2022-06-05 23:16:34 | [Mutex] waiting for: [configured:node:node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7:node-56945159-77cc-4adf-8c39-f336d51b5b60]

2022-06-05 23:16:34 | [Mutex] received everything.

2022-06-05 23:16:34 | [Mutex] isItemNotified: configured:node:node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7:node-56945159-77cc-4adf-8c39-f336d51b5b60 :: true

2022-06-05 23:16:35 | [Mutex] waiting for: [received:nodes:ea51ecab-c681-4193-9062-43e3f80c68e5:localhost]

2022-06-05 23:16:35 | [Mutex] received everything.

2022-06-05 23:16:35 | [Mutex] isItemNotified: received:node:ea51ecab-c681-4193-9062-43e3f80c68e5:localhost:node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7:Node 2a1d74c7-f84d-492d-a46a-ee13e638b5b7 :: true

2022-06-05 23:16:35 | [Mutex] waiting for: [received:nodes:6655328d-ad3b-49ca-b384-74ccbdd505b6:localhost]

2022-06-05 23:16:35 | [Mutex] waiting for: [received:nodes:6655328d-ad3b-49ca-b384-74ccbdd505b6:localhost]

2022-06-05 23:16:35 | [Mutex] received everything.

2022-06-05 23:16:35 | [Mutex] isItemNotified: received:node:6655328d-ad3b-49ca-b384-74ccbdd505b6:localhost:node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7:Node 2a1d74c7-f84d-492d-a46a-ee13e638b5b7 :: false

createNodes 1.625s
2022-06-05 23:16:31 |

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

2022-06-05 23:16:31 | ------------------------------------

2022-06-05 23:16:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7",
    "pubsub#title": "Node 2a1d74c7-f84d-492d-a46a-ee13e638b5b7"
}

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

2022-06-05 23:16:33 | [Mutex] waiting for: [received:nodes:514dd35d-151f-44a1-b6d5-26e812ef8598:localhost]

2022-06-05 23:16:33 | [Mutex] received everything.

2022-06-05 23:16:33 | [Mutex] isItemNotified: received:node:514dd35d-151f-44a1-b6d5-26e812ef8598:localhost:node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7:Node 2a1d74c7-f84d-492d-a46a-ee13e638b5b7 :: true

createSubnodes 1.020s
2022-06-05 23:16:33 |

2022-06-05 23:16:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:33 | ------------------------------------

2022-06-05 23:16:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-56945159-77cc-4adf-8c39-f336d51b5b60",
    "pubsub#title": "Node 56945159-77cc-4adf-8c39-f336d51b5b60"
}

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

2022-06-05 23:16:34 | [Mutex] waiting for: [received:nodes:16212a6b-97b5-4da4-b681-94fe03b4692c:localhost]

2022-06-05 23:16:34 | [Mutex] received everything.

2022-06-05 23:16:34 | [Mutex] isItemNotified: received:node:16212a6b-97b5-4da4-b681-94fe03b4692c:localhost:node-56945159-77cc-4adf-8c39-f336d51b5b60:Node 56945159-77cc-4adf-8c39-f336d51b5b60 :: true

deleteNodes 1.019s
2022-06-05 23:16:39 |

2022-06-05 23:16:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:39 | ------------------------------------

2022-06-05 23:16:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-56945159-77cc-4adf-8c39-f336d51b5b60"
}

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

2022-06-05 23:16:40 | [Mutex] waiting for: [received:nodes:40c5ebdd-48f5-4013-864a-bd3575c3294a:localhost]

2022-06-05 23:16:40 | [Mutex] received everything.

2022-06-05 23:16:40 | [Mutex] isItemNotified: received:node:40c5ebdd-48f5-4013-864a-bd3575c3294a:localhost:node-56945159-77cc-4adf-8c39-f336d51b5b60:Node 56945159-77cc-4adf-8c39-f336d51b5b60 :: false

deleteSubnodes 1.024s
2022-06-05 23:16:37 |

2022-06-05 23:16:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:37 | ------------------------------------

2022-06-05 23:16:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7"
}

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

2022-06-05 23:16:38 | [Mutex] waiting for: [received:nodes:0c603977-c49e-499c-b58d-01654ae0d2da:localhost]

2022-06-05 23:16:38 | [Mutex] received everything.

2022-06-05 23:16:38 | [Mutex] isItemNotified: received:node:0c603977-c49e-499c-b58d-01654ae0d2da:localhost:node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7:Node 2a1d74c7-f84d-492d-a46a-ee13e638b5b7 :: false

2022-06-05 23:16:38 | [Mutex] waiting for: [received:nodes:ada3a04d-1dfb-4ba7-9360-6aa997878d81:localhost]

2022-06-05 23:16:38 | [Mutex] received everything.

2022-06-05 23:16:38 | [Mutex] isItemNotified: received:node:ada3a04d-1dfb-4ba7-9360-6aa997878d81:localhost:node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7:Node 2a1d74c7-f84d-492d-a46a-ee13e638b5b7 :: false

publishItemsToNodes 0.053s
2022-06-05 23:16:36 |

2022-06-05 23:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:36 | ------------------------------------

2022-06-05 23:16:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7",
    "entry": "<test>item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5</test>",
    "item-id": "item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5"
}

2022-06-05 23:16:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5"
}

2022-06-05 23:16:36 | [Mutex] waiting for: [published:item:notifieditem-2b0ddb3f-43c9-481b-9a6b-da63c324aae5:admin@test-domain.com]

2022-06-05 23:16:36 | [Mutex] received everything.

2022-06-05 23:16:36 | [Mutex] isItemNotified: published:item:notifieditem-2b0ddb3f-43c9-481b-9a6b-da63c324aae5:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-05 23:16:36 |

2022-06-05 23:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:36 | ------------------------------------

2022-06-05 23:16:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7",
    "item-id": "item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5"
}

2022-06-05 23:16:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5"
}

2022-06-05 23:16:36 | [Mutex] received everything.

2022-06-05 23:16:36 | [Mutex] isItemNotified: retracted:item:notifieditem-2b0ddb3f-43c9-481b-9a6b-da63c324aae5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2022-06-05 23:16:36 |

2022-06-05 23:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:36 | ------------------------------------

2022-06-05 23:16:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7",
    "item-id": "item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5"
}

2022-06-05 23:16:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7",
    "item-id": "item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5",
    "item": [
        "<item id=\"item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5\"><test>item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5</test></item>"
    ]
}

2022-06-05 23:16:36 | [Mutex] notify: [retrieved:item:item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5:payload-matches:true:localhost]

2022-06-05 23:16:36 | [Mutex] received everything.

2022-06-05 23:16:36 | [Mutex] isItemNotified: retrieved:item:item-2b0ddb3f-43c9-481b-9a6b-da63c324aae5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.064s
2022-06-05 23:16:36 |

2022-06-05 23:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:36 | ------------------------------------

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

2022-06-05 23:16:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-56945159-77cc-4adf-8c39-f336d51b5b60",
        "test",
        "node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-05 23:16:36 |

2022-06-05 23:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:36 | ------------------------------------

2022-06-05 23:16:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7)"
}

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

subscribeNodes 1.009s
2022-06-05 23:16:35 |

2022-06-05 23:16:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:35 | ------------------------------------

2022-06-05 23:16:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2022-06-05 23:16:36 |

2022-06-05 23:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-05 23:16:36 | ------------------------------------

2022-06-05 23:16:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2a1d74c7-f84d-492d-a46a-ee13e638b5b7",
    "jids": [
        "admin@test-domain.com"
    ]
}

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