Generated by TestNG with ReportNG at 22:17 PDT on Friday 15 July 2022
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.745s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-07-15 22:32:00 |

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

2022-07-15 22:32:00 | ------------------------------------

2022-07-15 22:32:00 | [Mutex] waiting for: [configured:node:node-ad46f227-6c1b-4c44-bdd2-43d1179368d6:node-d7094f5e-c523-442f-ab64-a61169bd7c9a]

2022-07-15 22:32:00 | [Mutex] received everything.

2022-07-15 22:32:00 | [Mutex] isItemNotified: configured:node:node-ad46f227-6c1b-4c44-bdd2-43d1179368d6:node-d7094f5e-c523-442f-ab64-a61169bd7c9a :: true

2022-07-15 22:32:01 | [Mutex] waiting for: [received:nodes:96e48219-bebb-45a3-a244-66063a24f523:localhost]

2022-07-15 22:32:01 | [Mutex] received everything.

2022-07-15 22:32:01 | [Mutex] isItemNotified: received:node:96e48219-bebb-45a3-a244-66063a24f523:localhost:node-ad46f227-6c1b-4c44-bdd2-43d1179368d6:Node ad46f227-6c1b-4c44-bdd2-43d1179368d6 :: true

2022-07-15 22:32:01 | [Mutex] waiting for: [received:nodes:4f05e74a-3a01-4f77-823f-e2bc6de78a4f:localhost]

2022-07-15 22:32:01 | [Mutex] received everything.

2022-07-15 22:32:01 | [Mutex] isItemNotified: received:node:4f05e74a-3a01-4f77-823f-e2bc6de78a4f:localhost:node-ad46f227-6c1b-4c44-bdd2-43d1179368d6:Node ad46f227-6c1b-4c44-bdd2-43d1179368d6 :: false

createNodes 1.642s
2022-07-15 22:31:57 |

2022-07-15 22:31:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 22:31:57 | ------------------------------------

2022-07-15 22:31:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ad46f227-6c1b-4c44-bdd2-43d1179368d6",
    "pubsub#title": "Node ad46f227-6c1b-4c44-bdd2-43d1179368d6"
}

2022-07-15 22:31:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-15 22:31:59 | [Mutex] waiting for: [received:nodes:8cbffe0b-a0f8-47b1-8755-82ffa82074f1:localhost]

2022-07-15 22:31:59 | [Mutex] received everything.

2022-07-15 22:31:59 | [Mutex] isItemNotified: received:node:8cbffe0b-a0f8-47b1-8755-82ffa82074f1:localhost:node-ad46f227-6c1b-4c44-bdd2-43d1179368d6:Node ad46f227-6c1b-4c44-bdd2-43d1179368d6 :: true

createSubnodes 1.026s
2022-07-15 22:31:59 |

2022-07-15 22:31:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 22:31:59 | ------------------------------------

2022-07-15 22:31:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d7094f5e-c523-442f-ab64-a61169bd7c9a",
    "pubsub#title": "Node d7094f5e-c523-442f-ab64-a61169bd7c9a"
}

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

2022-07-15 22:32:00 | [Mutex] waiting for: [received:nodes:1b83de5b-7312-4cb1-8468-d0c6b33c9041:localhost]

2022-07-15 22:32:00 | [Mutex] waiting for: [received:nodes:1b83de5b-7312-4cb1-8468-d0c6b33c9041:localhost]

2022-07-15 22:32:00 | [Mutex] received everything.

2022-07-15 22:32:00 | [Mutex] isItemNotified: received:node:1b83de5b-7312-4cb1-8468-d0c6b33c9041:localhost:node-d7094f5e-c523-442f-ab64-a61169bd7c9a:Node d7094f5e-c523-442f-ab64-a61169bd7c9a :: true

deleteNodes 1.020s
2022-07-15 22:32:04 |

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

2022-07-15 22:32:04 | ------------------------------------

2022-07-15 22:32:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d7094f5e-c523-442f-ab64-a61169bd7c9a"
}

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

2022-07-15 22:32:05 | [Mutex] waiting for: [received:nodes:6187fc45-8019-4e21-8960-35930f7a31c7:localhost]

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

2022-07-15 22:32:05 | [Mutex] isItemNotified: received:node:6187fc45-8019-4e21-8960-35930f7a31c7:localhost:node-d7094f5e-c523-442f-ab64-a61169bd7c9a:Node d7094f5e-c523-442f-ab64-a61169bd7c9a :: false

deleteSubnodes 1.025s
2022-07-15 22:32:03 |

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

2022-07-15 22:32:03 | ------------------------------------

2022-07-15 22:32:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ad46f227-6c1b-4c44-bdd2-43d1179368d6"
}

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

2022-07-15 22:32:04 | [Mutex] waiting for: [received:nodes:c92f13b2-2422-4af5-a958-95fdfef5e149:localhost]

2022-07-15 22:32:04 | [Mutex] waiting for: [received:nodes:c92f13b2-2422-4af5-a958-95fdfef5e149:localhost]

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

2022-07-15 22:32:04 | [Mutex] isItemNotified: received:node:c92f13b2-2422-4af5-a958-95fdfef5e149:localhost:node-ad46f227-6c1b-4c44-bdd2-43d1179368d6:Node ad46f227-6c1b-4c44-bdd2-43d1179368d6 :: false

2022-07-15 22:32:04 | [Mutex] waiting for: [received:nodes:cdf9b946-e7c6-48a2-9450-748827da618e:localhost]

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

2022-07-15 22:32:04 | [Mutex] isItemNotified: received:node:cdf9b946-e7c6-48a2-9450-748827da618e:localhost:node-ad46f227-6c1b-4c44-bdd2-43d1179368d6:Node ad46f227-6c1b-4c44-bdd2-43d1179368d6 :: false

publishItemsToNodes 0.098s
2022-07-15 22:32:02 |

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

2022-07-15 22:32:02 | ------------------------------------

2022-07-15 22:32:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ad46f227-6c1b-4c44-bdd2-43d1179368d6",
    "entry": "<test>item-da6e4586-054d-4d00-9ece-916bc7dd9014</test>",
    "item-id": "item-da6e4586-054d-4d00-9ece-916bc7dd9014"
}

2022-07-15 22:32:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-da6e4586-054d-4d00-9ece-916bc7dd9014"
}

2022-07-15 22:32:02 | [Mutex] waiting for: [published:item:notifieditem-da6e4586-054d-4d00-9ece-916bc7dd9014:admin@test-domain.com]

2022-07-15 22:32:02 | [Mutex] received everything.

2022-07-15 22:32:02 | [Mutex] isItemNotified: published:item:notifieditem-da6e4586-054d-4d00-9ece-916bc7dd9014:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-15 22:32:02 |

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

2022-07-15 22:32:02 | ------------------------------------

2022-07-15 22:32:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ad46f227-6c1b-4c44-bdd2-43d1179368d6",
    "item-id": "item-da6e4586-054d-4d00-9ece-916bc7dd9014"
}

2022-07-15 22:32:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-da6e4586-054d-4d00-9ece-916bc7dd9014"
}

2022-07-15 22:32:02 | [Mutex] received everything.

2022-07-15 22:32:02 | [Mutex] isItemNotified: retracted:item:notifieditem-da6e4586-054d-4d00-9ece-916bc7dd9014:admin@test-domain.com :: true

retrieveItemsFromNodes 0.095s
2022-07-15 22:32:02 |

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

2022-07-15 22:32:02 | ------------------------------------

2022-07-15 22:32:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ad46f227-6c1b-4c44-bdd2-43d1179368d6",
    "item-id": "item-da6e4586-054d-4d00-9ece-916bc7dd9014"
}

2022-07-15 22:32:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ad46f227-6c1b-4c44-bdd2-43d1179368d6",
    "item-id": "item-da6e4586-054d-4d00-9ece-916bc7dd9014",
    "item": [
        "<item id=\"item-da6e4586-054d-4d00-9ece-916bc7dd9014\"><test>item-da6e4586-054d-4d00-9ece-916bc7dd9014</test></item>"
    ]
}

2022-07-15 22:32:02 | [Mutex] notify: [retrieved:item:item-da6e4586-054d-4d00-9ece-916bc7dd9014:payload-matches:true:localhost]

2022-07-15 22:32:02 | [Mutex] received everything.

2022-07-15 22:32:02 | [Mutex] isItemNotified: retrieved:item:item-da6e4586-054d-4d00-9ece-916bc7dd9014:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-07-15 22:32:02 |

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

2022-07-15 22:32:02 | ------------------------------------

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

2022-07-15 22:32:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ad46f227-6c1b-4c44-bdd2-43d1179368d6",
        "node-d7094f5e-c523-442f-ab64-a61169bd7c9a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-15 22:32:02 |

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

2022-07-15 22:32:02 | ------------------------------------

2022-07-15 22:32:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ad46f227-6c1b-4c44-bdd2-43d1179368d6)"
}

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

subscribeNodes 1.011s
2022-07-15 22:32:01 |

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

2022-07-15 22:32:01 | ------------------------------------

2022-07-15 22:32:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ad46f227-6c1b-4c44-bdd2-43d1179368d6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.087s
2022-07-15 22:32:02 |

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

2022-07-15 22:32:02 | ------------------------------------

2022-07-15 22:32:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ad46f227-6c1b-4c44-bdd2-43d1179368d6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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