Generated by TestNG with ReportNG at 22:14 PDT on Wednesday 05 May 2021
root@f29ef40080b5 / 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 : 8.934s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.132s
2021-05-05 22:31:18 |

2021-05-05 22:31:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:18 | ------------------------------------

2021-05-05 22:31:18 | [Mutex] waiting for: [configured:node:node-d1777bb0-5a43-4edb-976e-41d0cde19e66:node-ecbcd72b-5699-4762-ae1a-967306f2a806]

2021-05-05 22:31:18 | [Mutex] received everything.

2021-05-05 22:31:18 | [Mutex] isItemNotified: configured:node:node-d1777bb0-5a43-4edb-976e-41d0cde19e66:node-ecbcd72b-5699-4762-ae1a-967306f2a806 :: true

2021-05-05 22:31:19 | [Mutex] waiting for: [received:nodes:472bc3be-a9b0-4bbb-9896-3aa2b5bbca42:localhost]

2021-05-05 22:31:19 | [Mutex] received everything.

2021-05-05 22:31:19 | [Mutex] isItemNotified: received:node:472bc3be-a9b0-4bbb-9896-3aa2b5bbca42:localhost:node-d1777bb0-5a43-4edb-976e-41d0cde19e66:Node d1777bb0-5a43-4edb-976e-41d0cde19e66 :: true

2021-05-05 22:31:19 | [Mutex] waiting for: [received:nodes:6eb7694e-05fd-4803-bde9-2c79013c32f1:localhost]

2021-05-05 22:31:19 | [Mutex] waiting for: [received:nodes:6eb7694e-05fd-4803-bde9-2c79013c32f1:localhost]

2021-05-05 22:31:19 | [Mutex] received everything.

2021-05-05 22:31:19 | [Mutex] isItemNotified: received:node:6eb7694e-05fd-4803-bde9-2c79013c32f1:localhost:node-d1777bb0-5a43-4edb-976e-41d0cde19e66:Node d1777bb0-5a43-4edb-976e-41d0cde19e66 :: false

createNodes 1.632s
2021-05-05 22:31:15 |

2021-05-05 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:15 | ------------------------------------

2021-05-05 22:31:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d1777bb0-5a43-4edb-976e-41d0cde19e66",
    "pubsub#title": "Node d1777bb0-5a43-4edb-976e-41d0cde19e66"
}

2021-05-05 22:31:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-05 22:31:17 | [Mutex] waiting for: [received:nodes:296087ce-8f64-414b-acc4-c4f5995d2b82:localhost]

2021-05-05 22:31:17 | [Mutex] waiting for: [received:nodes:296087ce-8f64-414b-acc4-c4f5995d2b82:localhost]

2021-05-05 22:31:17 | [Mutex] received everything.

2021-05-05 22:31:17 | [Mutex] isItemNotified: received:node:296087ce-8f64-414b-acc4-c4f5995d2b82:localhost:node-d1777bb0-5a43-4edb-976e-41d0cde19e66:Node d1777bb0-5a43-4edb-976e-41d0cde19e66 :: true

createSubnodes 1.024s
2021-05-05 22:31:17 |

2021-05-05 22:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:17 | ------------------------------------

2021-05-05 22:31:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ecbcd72b-5699-4762-ae1a-967306f2a806",
    "pubsub#title": "Node ecbcd72b-5699-4762-ae1a-967306f2a806"
}

2021-05-05 22:31:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-05 22:31:18 | [Mutex] waiting for: [received:nodes:dfcf5ba1-a86b-4aff-a66c-5f9bdd4fd803:localhost]

2021-05-05 22:31:18 | [Mutex] received everything.

2021-05-05 22:31:18 | [Mutex] isItemNotified: received:node:dfcf5ba1-a86b-4aff-a66c-5f9bdd4fd803:localhost:node-ecbcd72b-5699-4762-ae1a-967306f2a806:Node ecbcd72b-5699-4762-ae1a-967306f2a806 :: true

deleteNodes 1.023s
2021-05-05 22:31:23 |

2021-05-05 22:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:23 | ------------------------------------

2021-05-05 22:31:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ecbcd72b-5699-4762-ae1a-967306f2a806"
}

2021-05-05 22:31:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-05 22:31:24 | [Mutex] waiting for: [received:nodes:69edb88a-0b32-487e-b8b5-f33a0be1f026:localhost]

2021-05-05 22:31:24 | [Mutex] received everything.

2021-05-05 22:31:24 | [Mutex] isItemNotified: received:node:69edb88a-0b32-487e-b8b5-f33a0be1f026:localhost:node-ecbcd72b-5699-4762-ae1a-967306f2a806:Node ecbcd72b-5699-4762-ae1a-967306f2a806 :: false

deleteSubnodes 1.027s
2021-05-05 22:31:21 |

2021-05-05 22:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:21 | ------------------------------------

2021-05-05 22:31:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d1777bb0-5a43-4edb-976e-41d0cde19e66"
}

2021-05-05 22:31:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-05 22:31:23 | [Mutex] waiting for: [received:nodes:b70bbe84-7ff3-41f4-a8ec-e2ac8318a87a:localhost]

2021-05-05 22:31:23 | [Mutex] received everything.

2021-05-05 22:31:23 | [Mutex] isItemNotified: received:node:b70bbe84-7ff3-41f4-a8ec-e2ac8318a87a:localhost:node-d1777bb0-5a43-4edb-976e-41d0cde19e66:Node d1777bb0-5a43-4edb-976e-41d0cde19e66 :: false

2021-05-05 22:31:23 | [Mutex] waiting for: [received:nodes:0185a82f-1250-4482-8902-795bb740984d:localhost]

2021-05-05 22:31:23 | [Mutex] received everything.

2021-05-05 22:31:23 | [Mutex] isItemNotified: received:node:0185a82f-1250-4482-8902-795bb740984d:localhost:node-d1777bb0-5a43-4edb-976e-41d0cde19e66:Node d1777bb0-5a43-4edb-976e-41d0cde19e66 :: false

publishItemsToNodes 0.090s
2021-05-05 22:31:20 |

2021-05-05 22:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:20 | ------------------------------------

2021-05-05 22:31:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d1777bb0-5a43-4edb-976e-41d0cde19e66",
    "entry": "<test>item-af921d15-fc01-4d71-94d6-11d88a360c6e</test>",
    "item-id": "item-af921d15-fc01-4d71-94d6-11d88a360c6e"
}

2021-05-05 22:31:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-af921d15-fc01-4d71-94d6-11d88a360c6e"
}

2021-05-05 22:31:20 | [Mutex] waiting for: [published:item:notifieditem-af921d15-fc01-4d71-94d6-11d88a360c6e:admin@test-domain.com]

2021-05-05 22:31:20 | [Mutex] received everything.

2021-05-05 22:31:20 | [Mutex] isItemNotified: published:item:notifieditem-af921d15-fc01-4d71-94d6-11d88a360c6e:admin@test-domain.com :: true

retractItemsFromNodes 0.122s
2021-05-05 22:31:20 |

2021-05-05 22:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:20 | ------------------------------------

2021-05-05 22:31:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d1777bb0-5a43-4edb-976e-41d0cde19e66",
    "item-id": "item-af921d15-fc01-4d71-94d6-11d88a360c6e"
}

2021-05-05 22:31:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-af921d15-fc01-4d71-94d6-11d88a360c6e"
}

2021-05-05 22:31:20 | [Mutex] waiting for: [retracted:item:notifieditem-af921d15-fc01-4d71-94d6-11d88a360c6e:admin@test-domain.com]

2021-05-05 22:31:20 | [Mutex] received everything.

2021-05-05 22:31:20 | [Mutex] isItemNotified: retracted:item:notifieditem-af921d15-fc01-4d71-94d6-11d88a360c6e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.036s
2021-05-05 22:31:20 |

2021-05-05 22:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:20 | ------------------------------------

2021-05-05 22:31:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d1777bb0-5a43-4edb-976e-41d0cde19e66",
    "item-id": "item-af921d15-fc01-4d71-94d6-11d88a360c6e"
}

2021-05-05 22:31:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d1777bb0-5a43-4edb-976e-41d0cde19e66",
    "item-id": "item-af921d15-fc01-4d71-94d6-11d88a360c6e",
    "item": [
        "<item id=\"item-af921d15-fc01-4d71-94d6-11d88a360c6e\"><test>item-af921d15-fc01-4d71-94d6-11d88a360c6e</test></item>"
    ]
}

2021-05-05 22:31:20 | [Mutex] notify: [retrieved:item:item-af921d15-fc01-4d71-94d6-11d88a360c6e:payload-matches:true:localhost]

2021-05-05 22:31:20 | [Mutex] received everything.

2021-05-05 22:31:20 | [Mutex] isItemNotified: retrieved:item:item-af921d15-fc01-4d71-94d6-11d88a360c6e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.066s
2021-05-05 22:31:20 |

2021-05-05 22:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:20 | ------------------------------------

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

2021-05-05 22:31:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ecbcd72b-5699-4762-ae1a-967306f2a806",
        "node-d1777bb0-5a43-4edb-976e-41d0cde19e66"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-05 22:31:20 |

2021-05-05 22:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:20 | ------------------------------------

2021-05-05 22:31:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d1777bb0-5a43-4edb-976e-41d0cde19e66)"
}

2021-05-05 22:31:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-05-05 22:31:19 |

2021-05-05 22:31:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:19 | ------------------------------------

2021-05-05 22:31:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d1777bb0-5a43-4edb-976e-41d0cde19e66",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-05 22:31:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.013s
2021-05-05 22:31:20 |

2021-05-05 22:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-05 22:31:20 | ------------------------------------

2021-05-05 22:31:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d1777bb0-5a43-4edb-976e-41d0cde19e66",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-05 22:31:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}