Generated by TestNG with ReportNG at 21:18 PST on Monday 14 February 2022
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / 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 : 9.072s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2022-02-14 21:36:29 |

2022-02-14 21:36:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:29 | ------------------------------------

2022-02-14 21:36:29 | [Mutex] waiting for: [configured:node:node-36ff180f-40ad-45b9-8b14-3c500c1d18e9:node-3fe6d4d8-9dbd-40f1-88b6-02d11db0c253]

2022-02-14 21:36:29 | [Mutex] received everything.

2022-02-14 21:36:29 | [Mutex] isItemNotified: configured:node:node-36ff180f-40ad-45b9-8b14-3c500c1d18e9:node-3fe6d4d8-9dbd-40f1-88b6-02d11db0c253 :: true

2022-02-14 21:36:30 | [Mutex] waiting for: [received:nodes:597f3a23-877b-4c61-8483-1f584ce47260:localhost]

2022-02-14 21:36:30 | [Mutex] received everything.

2022-02-14 21:36:30 | [Mutex] isItemNotified: received:node:597f3a23-877b-4c61-8483-1f584ce47260:localhost:node-36ff180f-40ad-45b9-8b14-3c500c1d18e9:Node 36ff180f-40ad-45b9-8b14-3c500c1d18e9 :: true

2022-02-14 21:36:30 | [Mutex] waiting for: [received:nodes:5afcadd7-c6a9-49d2-be95-4fcdf737086b:localhost]

2022-02-14 21:36:30 | [Mutex] received everything.

2022-02-14 21:36:30 | [Mutex] isItemNotified: received:node:5afcadd7-c6a9-49d2-be95-4fcdf737086b:localhost:node-36ff180f-40ad-45b9-8b14-3c500c1d18e9:Node 36ff180f-40ad-45b9-8b14-3c500c1d18e9 :: false

createNodes 1.716s
2022-02-14 21:36:26 |

2022-02-14 21:36:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:26 | ------------------------------------

2022-02-14 21:36: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-36ff180f-40ad-45b9-8b14-3c500c1d18e9",
    "pubsub#title": "Node 36ff180f-40ad-45b9-8b14-3c500c1d18e9"
}

2022-02-14 21:36:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-14 21:36:28 | [Mutex] waiting for: [received:nodes:66f0fe88-79d3-46e0-b906-bc893f2e27dc:localhost]

2022-02-14 21:36:28 | [Mutex] waiting for: [received:nodes:66f0fe88-79d3-46e0-b906-bc893f2e27dc:localhost]

2022-02-14 21:36:28 | [Mutex] received everything.

2022-02-14 21:36:28 | [Mutex] isItemNotified: received:node:66f0fe88-79d3-46e0-b906-bc893f2e27dc:localhost:node-36ff180f-40ad-45b9-8b14-3c500c1d18e9:Node 36ff180f-40ad-45b9-8b14-3c500c1d18e9 :: true

createSubnodes 1.029s
2022-02-14 21:36:28 |

2022-02-14 21:36:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:28 | ------------------------------------

2022-02-14 21:36: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-3fe6d4d8-9dbd-40f1-88b6-02d11db0c253",
    "pubsub#title": "Node 3fe6d4d8-9dbd-40f1-88b6-02d11db0c253"
}

2022-02-14 21:36:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-14 21:36:29 | [Mutex] waiting for: [received:nodes:13122141-479f-418c-b393-ab1ce88cc1c1:localhost]

2022-02-14 21:36:29 | [Mutex] waiting for: [received:nodes:13122141-479f-418c-b393-ab1ce88cc1c1:localhost]

2022-02-14 21:36:29 | [Mutex] received everything.

2022-02-14 21:36:29 | [Mutex] isItemNotified: received:node:13122141-479f-418c-b393-ab1ce88cc1c1:localhost:node-3fe6d4d8-9dbd-40f1-88b6-02d11db0c253:Node 3fe6d4d8-9dbd-40f1-88b6-02d11db0c253 :: true

deleteNodes 1.022s
2022-02-14 21:36:33 |

2022-02-14 21:36:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:33 | ------------------------------------

2022-02-14 21:36:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3fe6d4d8-9dbd-40f1-88b6-02d11db0c253"
}

2022-02-14 21:36:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-14 21:36:34 | [Mutex] waiting for: [received:nodes:c17db9b9-18f8-4fb1-b3c3-4b6d091261fb:localhost]

2022-02-14 21:36:34 | [Mutex] waiting for: [received:nodes:c17db9b9-18f8-4fb1-b3c3-4b6d091261fb:localhost]

2022-02-14 21:36:34 | [Mutex] received everything.

2022-02-14 21:36:34 | [Mutex] isItemNotified: received:node:c17db9b9-18f8-4fb1-b3c3-4b6d091261fb:localhost:node-3fe6d4d8-9dbd-40f1-88b6-02d11db0c253:Node 3fe6d4d8-9dbd-40f1-88b6-02d11db0c253 :: false

deleteSubnodes 1.028s
2022-02-14 21:36:32 |

2022-02-14 21:36:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:32 | ------------------------------------

2022-02-14 21:36:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-36ff180f-40ad-45b9-8b14-3c500c1d18e9"
}

2022-02-14 21:36:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-14 21:36:33 | [Mutex] waiting for: [received:nodes:c0ef5dc2-baff-4021-aa2b-83ff49b6becb:localhost]

2022-02-14 21:36:33 | [Mutex] received everything.

2022-02-14 21:36:33 | [Mutex] isItemNotified: received:node:c0ef5dc2-baff-4021-aa2b-83ff49b6becb:localhost:node-36ff180f-40ad-45b9-8b14-3c500c1d18e9:Node 36ff180f-40ad-45b9-8b14-3c500c1d18e9 :: false

2022-02-14 21:36:33 | [Mutex] waiting for: [received:nodes:7a019a8d-7123-43d0-a9df-b661e04cad3a:localhost]

2022-02-14 21:36:33 | [Mutex] received everything.

2022-02-14 21:36:33 | [Mutex] isItemNotified: received:node:7a019a8d-7123-43d0-a9df-b661e04cad3a:localhost:node-36ff180f-40ad-45b9-8b14-3c500c1d18e9:Node 36ff180f-40ad-45b9-8b14-3c500c1d18e9 :: false

publishItemsToNodes 0.060s
2022-02-14 21:36:31 |

2022-02-14 21:36:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:31 | ------------------------------------

2022-02-14 21:36:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-36ff180f-40ad-45b9-8b14-3c500c1d18e9",
    "entry": "<test>item-3da70612-af16-4ed3-83ce-e3283d042acf</test>",
    "item-id": "item-3da70612-af16-4ed3-83ce-e3283d042acf"
}

2022-02-14 21:36:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3da70612-af16-4ed3-83ce-e3283d042acf"
}

2022-02-14 21:36:31 | [Mutex] received everything.

2022-02-14 21:36:31 | [Mutex] isItemNotified: published:item:notifieditem-3da70612-af16-4ed3-83ce-e3283d042acf:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-02-14 21:36:31 |

2022-02-14 21:36:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:31 | ------------------------------------

2022-02-14 21:36:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-36ff180f-40ad-45b9-8b14-3c500c1d18e9",
    "item-id": "item-3da70612-af16-4ed3-83ce-e3283d042acf"
}

2022-02-14 21:36:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3da70612-af16-4ed3-83ce-e3283d042acf"
}

2022-02-14 21:36:31 | [Mutex] received everything.

2022-02-14 21:36:31 | [Mutex] isItemNotified: retracted:item:notifieditem-3da70612-af16-4ed3-83ce-e3283d042acf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.171s
2022-02-14 21:36:31 |

2022-02-14 21:36:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:31 | ------------------------------------

2022-02-14 21:36:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-36ff180f-40ad-45b9-8b14-3c500c1d18e9",
    "item-id": "item-3da70612-af16-4ed3-83ce-e3283d042acf"
}

2022-02-14 21:36:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-36ff180f-40ad-45b9-8b14-3c500c1d18e9",
    "item-id": "item-3da70612-af16-4ed3-83ce-e3283d042acf",
    "item": [
        "<item id=\"item-3da70612-af16-4ed3-83ce-e3283d042acf\"><test>item-3da70612-af16-4ed3-83ce-e3283d042acf</test></item>"
    ]
}

2022-02-14 21:36:31 | [Mutex] notify: [retrieved:item:item-3da70612-af16-4ed3-83ce-e3283d042acf:payload-matches:true:localhost]

2022-02-14 21:36:31 | [Mutex] received everything.

2022-02-14 21:36:31 | [Mutex] isItemNotified: retrieved:item:item-3da70612-af16-4ed3-83ce-e3283d042acf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-14 21:36:31 |

2022-02-14 21:36:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:31 | ------------------------------------

2022-02-14 21:36:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-14 21:36:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3fe6d4d8-9dbd-40f1-88b6-02d11db0c253",
        "test",
        "node-36ff180f-40ad-45b9-8b14-3c500c1d18e9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-14 21:36:31 |

2022-02-14 21:36:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:31 | ------------------------------------

2022-02-14 21:36:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-36ff180f-40ad-45b9-8b14-3c500c1d18e9)"
}

2022-02-14 21:36:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-02-14 21:36:30 |

2022-02-14 21:36:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:30 | ------------------------------------

2022-02-14 21:36:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-36ff180f-40ad-45b9-8b14-3c500c1d18e9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-14 21:36:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.087s
2022-02-14 21:36:31 |

2022-02-14 21:36:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-14 21:36:31 | ------------------------------------

2022-02-14 21:36:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-36ff180f-40ad-45b9-8b14-3c500c1d18e9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-14 21:36:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}