Generated by TestNG with ReportNG at 15:47 PST on Friday 24 February 2023
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.807s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-02-24 16:01:31 |

2023-02-24 16:01:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:31 | ------------------------------------

2023-02-24 16:01:31 | [Mutex] waiting for: [configured:node:node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c:node-9601b307-92e0-4d67-8e56-647802f062ca]

2023-02-24 16:01:31 | [Mutex] received everything.

2023-02-24 16:01:31 | [Mutex] isItemNotified: configured:node:node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c:node-9601b307-92e0-4d67-8e56-647802f062ca :: true

2023-02-24 16:01:32 | [Mutex] waiting for: [received:nodes:b3ca1daf-ff33-48bc-8325-52f503c68d5d:localhost]

2023-02-24 16:01:32 | [Mutex] received everything.

2023-02-24 16:01:32 | [Mutex] isItemNotified: received:node:b3ca1daf-ff33-48bc-8325-52f503c68d5d:localhost:node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c:Node 51a3190a-1336-4ab3-a1f0-b42a5a77db5c :: true

2023-02-24 16:01:32 | [Mutex] waiting for: [received:nodes:5aaad511-e37f-472e-9bdd-2aad94c1e543:localhost]

2023-02-24 16:01:32 | [Mutex] waiting for: [received:nodes:5aaad511-e37f-472e-9bdd-2aad94c1e543:localhost]

2023-02-24 16:01:32 | [Mutex] waiting for: [received:nodes:5aaad511-e37f-472e-9bdd-2aad94c1e543:localhost]

2023-02-24 16:01:32 | [Mutex] waiting for: [received:nodes:5aaad511-e37f-472e-9bdd-2aad94c1e543:localhost]

2023-02-24 16:01:32 | [Mutex] received everything.

2023-02-24 16:01:32 | [Mutex] isItemNotified: received:node:5aaad511-e37f-472e-9bdd-2aad94c1e543:localhost:node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c:Node 51a3190a-1336-4ab3-a1f0-b42a5a77db5c :: false

createNodes 1.786s
2023-02-24 16:01:28 |

2023-02-24 16:01:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:28 | ------------------------------------

2023-02-24 16:01:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c",
    "pubsub#title": "Node 51a3190a-1336-4ab3-a1f0-b42a5a77db5c"
}

2023-02-24 16:01:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 16:01:30 | [Mutex] waiting for: [received:nodes:e14bc4ce-56d6-45cf-b524-9c5de0060eb9:localhost]

2023-02-24 16:01:30 | [Mutex] waiting for: [received:nodes:e14bc4ce-56d6-45cf-b524-9c5de0060eb9:localhost]

2023-02-24 16:01:30 | [Mutex] received everything.

2023-02-24 16:01:30 | [Mutex] isItemNotified: received:node:e14bc4ce-56d6-45cf-b524-9c5de0060eb9:localhost:node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c:Node 51a3190a-1336-4ab3-a1f0-b42a5a77db5c :: true

createSubnodes 1.021s
2023-02-24 16:01:30 |

2023-02-24 16:01:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:30 | ------------------------------------

2023-02-24 16:01:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9601b307-92e0-4d67-8e56-647802f062ca",
    "pubsub#title": "Node 9601b307-92e0-4d67-8e56-647802f062ca"
}

2023-02-24 16:01:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 16:01:31 | [Mutex] waiting for: [received:nodes:5dee1b48-24e2-4448-adeb-9a1cd3219ed8:localhost]

2023-02-24 16:01:31 | [Mutex] waiting for: [received:nodes:5dee1b48-24e2-4448-adeb-9a1cd3219ed8:localhost]

2023-02-24 16:01:31 | [Mutex] waiting for: [received:nodes:5dee1b48-24e2-4448-adeb-9a1cd3219ed8:localhost]

2023-02-24 16:01:31 | [Mutex] received everything.

2023-02-24 16:01:31 | [Mutex] isItemNotified: received:node:5dee1b48-24e2-4448-adeb-9a1cd3219ed8:localhost:node-9601b307-92e0-4d67-8e56-647802f062ca:Node 9601b307-92e0-4d67-8e56-647802f062ca :: true

deleteNodes 1.017s
2023-02-24 16:01:36 |

2023-02-24 16:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:36 | ------------------------------------

2023-02-24 16:01:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9601b307-92e0-4d67-8e56-647802f062ca"
}

2023-02-24 16:01:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 16:01:37 | [Mutex] waiting for: [received:nodes:0f24fc61-435c-4526-b7c4-9d25b07341d2:localhost]

2023-02-24 16:01:37 | [Mutex] waiting for: [received:nodes:0f24fc61-435c-4526-b7c4-9d25b07341d2:localhost]

2023-02-24 16:01:37 | [Mutex] waiting for: [received:nodes:0f24fc61-435c-4526-b7c4-9d25b07341d2:localhost]

2023-02-24 16:01:37 | [Mutex] received everything.

2023-02-24 16:01:37 | [Mutex] isItemNotified: received:node:0f24fc61-435c-4526-b7c4-9d25b07341d2:localhost:node-9601b307-92e0-4d67-8e56-647802f062ca:Node 9601b307-92e0-4d67-8e56-647802f062ca :: false

deleteSubnodes 1.030s
2023-02-24 16:01:35 |

2023-02-24 16:01:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:35 | ------------------------------------

2023-02-24 16:01:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c"
}

2023-02-24 16:01:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-24 16:01:36 | [Mutex] waiting for: [received:nodes:8103deb7-7c92-4cb0-b94e-5b43d2fe4429:localhost]

2023-02-24 16:01:36 | [Mutex] waiting for: [received:nodes:8103deb7-7c92-4cb0-b94e-5b43d2fe4429:localhost]

2023-02-24 16:01:36 | [Mutex] received everything.

2023-02-24 16:01:36 | [Mutex] isItemNotified: received:node:8103deb7-7c92-4cb0-b94e-5b43d2fe4429:localhost:node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c:Node 51a3190a-1336-4ab3-a1f0-b42a5a77db5c :: false

2023-02-24 16:01:36 | [Mutex] waiting for: [received:nodes:c59c4ad1-8b09-4cdd-965d-2f35a24ae990:localhost]

2023-02-24 16:01:36 | [Mutex] received everything.

2023-02-24 16:01:36 | [Mutex] isItemNotified: received:node:c59c4ad1-8b09-4cdd-965d-2f35a24ae990:localhost:node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c:Node 51a3190a-1336-4ab3-a1f0-b42a5a77db5c :: false

publishItemsToNodes 0.055s
2023-02-24 16:01:33 |

2023-02-24 16:01:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:33 | ------------------------------------

2023-02-24 16:01:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c",
    "entry": "<test>item-79c513bb-d096-4ed6-8307-989a928f9d1e</test>",
    "item-id": "item-79c513bb-d096-4ed6-8307-989a928f9d1e"
}

2023-02-24 16:01:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-79c513bb-d096-4ed6-8307-989a928f9d1e"
}

2023-02-24 16:01:33 | [Mutex] waiting for: [published:item:notifieditem-79c513bb-d096-4ed6-8307-989a928f9d1e:admin@test-domain.com]

2023-02-24 16:01:33 | [Mutex] received everything.

2023-02-24 16:01:33 | [Mutex] isItemNotified: published:item:notifieditem-79c513bb-d096-4ed6-8307-989a928f9d1e:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-02-24 16:01:34 |

2023-02-24 16:01:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:34 | ------------------------------------

2023-02-24 16:01:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c",
    "item-id": "item-79c513bb-d096-4ed6-8307-989a928f9d1e"
}

2023-02-24 16:01:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-79c513bb-d096-4ed6-8307-989a928f9d1e"
}

2023-02-24 16:01:34 | [Mutex] received everything.

2023-02-24 16:01:34 | [Mutex] isItemNotified: retracted:item:notifieditem-79c513bb-d096-4ed6-8307-989a928f9d1e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.051s
2023-02-24 16:01:33 |

2023-02-24 16:01:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:33 | ------------------------------------

2023-02-24 16:01:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c",
    "item-id": "item-79c513bb-d096-4ed6-8307-989a928f9d1e"
}

2023-02-24 16:01:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c",
    "item-id": "item-79c513bb-d096-4ed6-8307-989a928f9d1e",
    "item": [
        "<item id=\"item-79c513bb-d096-4ed6-8307-989a928f9d1e\"><test>item-79c513bb-d096-4ed6-8307-989a928f9d1e</test></item>"
    ]
}

2023-02-24 16:01:34 | [Mutex] notify: [retrieved:item:item-79c513bb-d096-4ed6-8307-989a928f9d1e:payload-matches:true:localhost]

2023-02-24 16:01:34 | [Mutex] received everything.

2023-02-24 16:01:34 | [Mutex] isItemNotified: retrieved:item:item-79c513bb-d096-4ed6-8307-989a928f9d1e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-02-24 16:01:34 |

2023-02-24 16:01:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:34 | ------------------------------------

2023-02-24 16:01:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-24 16:01:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c",
        "node-9601b307-92e0-4d67-8e56-647802f062ca"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-02-24 16:01:34 |

2023-02-24 16:01:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:34 | ------------------------------------

2023-02-24 16:01:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c)"
}

2023-02-24 16:01:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-02-24 16:01:32 |

2023-02-24 16:01:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:32 | ------------------------------------

2023-02-24 16:01:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 16:01:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-02-24 16:01:34 |

2023-02-24 16:01:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-24 16:01:34 | ------------------------------------

2023-02-24 16:01:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-51a3190a-1336-4ab3-a1f0-b42a5a77db5c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-24 16:01:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}