Generated by TestNG with ReportNG at 22:17 PDT on Sunday 19 June 2022
root@1bc69cf4cb94 / 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.634s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-06-19 22:39:29 |

2022-06-19 22:39:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:29 | ------------------------------------

2022-06-19 22:39:29 | [Mutex] waiting for: [configured:node:node-1c0454b6-1485-4465-aae4-2410f394f84e:node-69cd88df-7aa3-4ac8-b2bf-10279edecbd6]

2022-06-19 22:39:29 | [Mutex] received everything.

2022-06-19 22:39:29 | [Mutex] isItemNotified: configured:node:node-1c0454b6-1485-4465-aae4-2410f394f84e:node-69cd88df-7aa3-4ac8-b2bf-10279edecbd6 :: true

2022-06-19 22:39:30 | [Mutex] waiting for: [received:nodes:7baef1d0-2468-4ff9-a236-79653407b799:localhost]

2022-06-19 22:39:30 | [Mutex] received everything.

2022-06-19 22:39:30 | [Mutex] isItemNotified: received:node:7baef1d0-2468-4ff9-a236-79653407b799:localhost:node-1c0454b6-1485-4465-aae4-2410f394f84e:Node 1c0454b6-1485-4465-aae4-2410f394f84e :: true

2022-06-19 22:39:30 | [Mutex] waiting for: [received:nodes:f7e8cac5-1b2b-48ca-b36d-981ddca95c55:localhost]

2022-06-19 22:39:30 | [Mutex] received everything.

2022-06-19 22:39:30 | [Mutex] isItemNotified: received:node:f7e8cac5-1b2b-48ca-b36d-981ddca95c55:localhost:node-1c0454b6-1485-4465-aae4-2410f394f84e:Node 1c0454b6-1485-4465-aae4-2410f394f84e :: false

createNodes 1.591s
2022-06-19 22:39:27 |

2022-06-19 22:39:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:27 | ------------------------------------

2022-06-19 22:39:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1c0454b6-1485-4465-aae4-2410f394f84e",
    "pubsub#title": "Node 1c0454b6-1485-4465-aae4-2410f394f84e"
}

2022-06-19 22:39:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 22:39:28 | [Mutex] waiting for: [received:nodes:f29e5cbd-59a5-478a-8def-15d08c59f2a9:localhost]

2022-06-19 22:39:28 | [Mutex] waiting for: [received:nodes:f29e5cbd-59a5-478a-8def-15d08c59f2a9:localhost]

2022-06-19 22:39:28 | [Mutex] received everything.

2022-06-19 22:39:28 | [Mutex] isItemNotified: received:node:f29e5cbd-59a5-478a-8def-15d08c59f2a9:localhost:node-1c0454b6-1485-4465-aae4-2410f394f84e:Node 1c0454b6-1485-4465-aae4-2410f394f84e :: true

createSubnodes 1.024s
2022-06-19 22:39:28 |

2022-06-19 22:39:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:28 | ------------------------------------

2022-06-19 22:39:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-69cd88df-7aa3-4ac8-b2bf-10279edecbd6",
    "pubsub#title": "Node 69cd88df-7aa3-4ac8-b2bf-10279edecbd6"
}

2022-06-19 22:39:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 22:39:29 | [Mutex] waiting for: [received:nodes:bffc51b3-b7f2-4b34-9ca7-20125c8fcb27:localhost]

2022-06-19 22:39:29 | [Mutex] received everything.

2022-06-19 22:39:29 | [Mutex] isItemNotified: received:node:bffc51b3-b7f2-4b34-9ca7-20125c8fcb27:localhost:node-69cd88df-7aa3-4ac8-b2bf-10279edecbd6:Node 69cd88df-7aa3-4ac8-b2bf-10279edecbd6 :: true

deleteNodes 1.072s
2022-06-19 22:39:34 |

2022-06-19 22:39:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:34 | ------------------------------------

2022-06-19 22:39:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-69cd88df-7aa3-4ac8-b2bf-10279edecbd6"
}

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

2022-06-19 22:39:35 | [Mutex] waiting for: [received:nodes:648eb5dd-5d6d-4073-94b5-6812d76a1eea:localhost]

2022-06-19 22:39:35 | [Mutex] waiting for: [received:nodes:648eb5dd-5d6d-4073-94b5-6812d76a1eea:localhost]

2022-06-19 22:39:35 | [Mutex] received everything.

2022-06-19 22:39:35 | [Mutex] isItemNotified: received:node:648eb5dd-5d6d-4073-94b5-6812d76a1eea:localhost:node-69cd88df-7aa3-4ac8-b2bf-10279edecbd6:Node 69cd88df-7aa3-4ac8-b2bf-10279edecbd6 :: false

deleteSubnodes 1.027s
2022-06-19 22:39:33 |

2022-06-19 22:39:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:33 | ------------------------------------

2022-06-19 22:39:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1c0454b6-1485-4465-aae4-2410f394f84e"
}

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

2022-06-19 22:39:34 | [Mutex] waiting for: [received:nodes:680633f6-1dbc-4c3c-95b7-cbf6ce10d553:localhost]

2022-06-19 22:39:34 | [Mutex] waiting for: [received:nodes:680633f6-1dbc-4c3c-95b7-cbf6ce10d553:localhost]

2022-06-19 22:39:34 | [Mutex] received everything.

2022-06-19 22:39:34 | [Mutex] isItemNotified: received:node:680633f6-1dbc-4c3c-95b7-cbf6ce10d553:localhost:node-1c0454b6-1485-4465-aae4-2410f394f84e:Node 1c0454b6-1485-4465-aae4-2410f394f84e :: false

2022-06-19 22:39:34 | [Mutex] waiting for: [received:nodes:fce62859-fdab-4f7c-ad28-ff7cf4a1e07f:localhost]

2022-06-19 22:39:34 | [Mutex] received everything.

2022-06-19 22:39:34 | [Mutex] isItemNotified: received:node:fce62859-fdab-4f7c-ad28-ff7cf4a1e07f:localhost:node-1c0454b6-1485-4465-aae4-2410f394f84e:Node 1c0454b6-1485-4465-aae4-2410f394f84e :: false

publishItemsToNodes 0.048s
2022-06-19 22:39:31 |

2022-06-19 22:39:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:31 | ------------------------------------

2022-06-19 22:39:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1c0454b6-1485-4465-aae4-2410f394f84e",
    "entry": "<test>item-b079279b-ff9d-478e-89a6-567af1940a26</test>",
    "item-id": "item-b079279b-ff9d-478e-89a6-567af1940a26"
}

2022-06-19 22:39:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b079279b-ff9d-478e-89a6-567af1940a26"
}

2022-06-19 22:39:31 | [Mutex] waiting for: [published:item:notifieditem-b079279b-ff9d-478e-89a6-567af1940a26:admin@test-domain.com]

2022-06-19 22:39:31 | [Mutex] received everything.

2022-06-19 22:39:31 | [Mutex] isItemNotified: published:item:notifieditem-b079279b-ff9d-478e-89a6-567af1940a26:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-06-19 22:39:31 |

2022-06-19 22:39:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:31 | ------------------------------------

2022-06-19 22:39:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1c0454b6-1485-4465-aae4-2410f394f84e",
    "item-id": "item-b079279b-ff9d-478e-89a6-567af1940a26"
}

2022-06-19 22:39:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b079279b-ff9d-478e-89a6-567af1940a26"
}

2022-06-19 22:39:31 | [Mutex] waiting for: [retracted:item:notifieditem-b079279b-ff9d-478e-89a6-567af1940a26:admin@test-domain.com]

2022-06-19 22:39:31 | [Mutex] received everything.

2022-06-19 22:39:31 | [Mutex] isItemNotified: retracted:item:notifieditem-b079279b-ff9d-478e-89a6-567af1940a26:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-06-19 22:39:31 |

2022-06-19 22:39:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:31 | ------------------------------------

2022-06-19 22:39:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1c0454b6-1485-4465-aae4-2410f394f84e",
    "item-id": "item-b079279b-ff9d-478e-89a6-567af1940a26"
}

2022-06-19 22:39:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1c0454b6-1485-4465-aae4-2410f394f84e",
    "item-id": "item-b079279b-ff9d-478e-89a6-567af1940a26",
    "item": [
        "<item id=\"item-b079279b-ff9d-478e-89a6-567af1940a26\"><test>item-b079279b-ff9d-478e-89a6-567af1940a26</test></item>"
    ]
}

2022-06-19 22:39:31 | [Mutex] notify: [retrieved:item:item-b079279b-ff9d-478e-89a6-567af1940a26:payload-matches:true:localhost]

2022-06-19 22:39:31 | [Mutex] received everything.

2022-06-19 22:39:31 | [Mutex] isItemNotified: retrieved:item:item-b079279b-ff9d-478e-89a6-567af1940a26:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-06-19 22:39:31 |

2022-06-19 22:39:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:31 | ------------------------------------

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

2022-06-19 22:39:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-69cd88df-7aa3-4ac8-b2bf-10279edecbd6",
        "test",
        "node-1c0454b6-1485-4465-aae4-2410f394f84e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-19 22:39:31 |

2022-06-19 22:39:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:31 | ------------------------------------

2022-06-19 22:39:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1c0454b6-1485-4465-aae4-2410f394f84e)"
}

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

subscribeNodes 1.011s
2022-06-19 22:39:30 |

2022-06-19 22:39:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:30 | ------------------------------------

2022-06-19 22:39:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1c0454b6-1485-4465-aae4-2410f394f84e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-19 22:39:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.052s
2022-06-19 22:39:31 |

2022-06-19 22:39:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:39:31 | ------------------------------------

2022-06-19 22:39:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1c0454b6-1485-4465-aae4-2410f394f84e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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