Generated by TestNG with ReportNG at 22:25 PDT on Sunday 20 September 2020
root@9c220585afd0 / 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.048s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2020-09-20 22:39:16 |

2020-09-20 22:39:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:16 | ------------------------------------

2020-09-20 22:39:16 | [Mutex] waiting for: [configured:node:node-a8343d96-de87-4f2f-8508-e0af3502ce8b:node-bda07b1e-75cf-411a-b7b0-9a9ba824b309]

2020-09-20 22:39:16 | [Mutex] received everything.

2020-09-20 22:39:16 | [Mutex] isItemNotified: configured:node:node-a8343d96-de87-4f2f-8508-e0af3502ce8b:node-bda07b1e-75cf-411a-b7b0-9a9ba824b309 :: true

2020-09-20 22:39:17 | [Mutex] waiting for: [received:nodes:49f882f4-bc35-4085-abe3-4e547c7bb67a:localhost]

2020-09-20 22:39:17 | [Mutex] received everything.

2020-09-20 22:39:17 | [Mutex] isItemNotified: received:node:49f882f4-bc35-4085-abe3-4e547c7bb67a:localhost:node-a8343d96-de87-4f2f-8508-e0af3502ce8b:Node a8343d96-de87-4f2f-8508-e0af3502ce8b :: true

2020-09-20 22:39:17 | [Mutex] waiting for: [received:nodes:d02ae971-fb9d-4f64-8cf9-be800956c0b5:localhost]

2020-09-20 22:39:17 | [Mutex] received everything.

2020-09-20 22:39:17 | [Mutex] isItemNotified: received:node:d02ae971-fb9d-4f64-8cf9-be800956c0b5:localhost:node-a8343d96-de87-4f2f-8508-e0af3502ce8b:Node a8343d96-de87-4f2f-8508-e0af3502ce8b :: false

createNodes 1.711s
2020-09-20 22:39:13 |

2020-09-20 22:39:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:13 | ------------------------------------

2020-09-20 22:39:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a8343d96-de87-4f2f-8508-e0af3502ce8b",
    "pubsub#title": "Node a8343d96-de87-4f2f-8508-e0af3502ce8b"
}

2020-09-20 22:39:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-20 22:39:15 | [Mutex] waiting for: [received:nodes:f9c03b4b-4de8-4fda-95b0-4883f00ca68f:localhost]

2020-09-20 22:39:15 | [Mutex] waiting for: [received:nodes:f9c03b4b-4de8-4fda-95b0-4883f00ca68f:localhost]

2020-09-20 22:39:15 | [Mutex] received everything.

2020-09-20 22:39:15 | [Mutex] isItemNotified: received:node:f9c03b4b-4de8-4fda-95b0-4883f00ca68f:localhost:node-a8343d96-de87-4f2f-8508-e0af3502ce8b:Node a8343d96-de87-4f2f-8508-e0af3502ce8b :: true

createSubnodes 1.044s
2020-09-20 22:39:15 |

2020-09-20 22:39:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:15 | ------------------------------------

2020-09-20 22:39:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bda07b1e-75cf-411a-b7b0-9a9ba824b309",
    "pubsub#title": "Node bda07b1e-75cf-411a-b7b0-9a9ba824b309"
}

2020-09-20 22:39:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-20 22:39:16 | [Mutex] waiting for: [received:nodes:cd62b6a3-3587-4b5a-ba54-2e6ff81c76a2:localhost]

2020-09-20 22:39:16 | [Mutex] received everything.

2020-09-20 22:39:16 | [Mutex] isItemNotified: received:node:cd62b6a3-3587-4b5a-ba54-2e6ff81c76a2:localhost:node-bda07b1e-75cf-411a-b7b0-9a9ba824b309:Node bda07b1e-75cf-411a-b7b0-9a9ba824b309 :: true

deleteNodes 1.028s
2020-09-20 22:39:21 |

2020-09-20 22:39:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:21 | ------------------------------------

2020-09-20 22:39:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bda07b1e-75cf-411a-b7b0-9a9ba824b309"
}

2020-09-20 22:39:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-20 22:39:22 | [Mutex] waiting for: [received:nodes:5b13808e-af66-4f27-a103-09df18bf7c59:localhost]

2020-09-20 22:39:22 | [Mutex] received everything.

2020-09-20 22:39:22 | [Mutex] isItemNotified: received:node:5b13808e-af66-4f27-a103-09df18bf7c59:localhost:node-bda07b1e-75cf-411a-b7b0-9a9ba824b309:Node bda07b1e-75cf-411a-b7b0-9a9ba824b309 :: false

deleteSubnodes 1.025s
2020-09-20 22:39:20 |

2020-09-20 22:39:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:20 | ------------------------------------

2020-09-20 22:39:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a8343d96-de87-4f2f-8508-e0af3502ce8b"
}

2020-09-20 22:39:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-20 22:39:21 | [Mutex] waiting for: [received:nodes:25843ed6-1297-4dce-a667-1590bfb4da22:localhost]

2020-09-20 22:39:21 | [Mutex] received everything.

2020-09-20 22:39:21 | [Mutex] isItemNotified: received:node:25843ed6-1297-4dce-a667-1590bfb4da22:localhost:node-a8343d96-de87-4f2f-8508-e0af3502ce8b:Node a8343d96-de87-4f2f-8508-e0af3502ce8b :: false

2020-09-20 22:39:21 | [Mutex] waiting for: [received:nodes:10e91654-f935-4730-a8ea-45a8b5fc55c7:localhost]

2020-09-20 22:39:21 | [Mutex] received everything.

2020-09-20 22:39:21 | [Mutex] isItemNotified: received:node:10e91654-f935-4730-a8ea-45a8b5fc55c7:localhost:node-a8343d96-de87-4f2f-8508-e0af3502ce8b:Node a8343d96-de87-4f2f-8508-e0af3502ce8b :: false

publishItemsToNodes 0.038s
2020-09-20 22:39:18 |

2020-09-20 22:39:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:18 | ------------------------------------

2020-09-20 22:39:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a8343d96-de87-4f2f-8508-e0af3502ce8b",
    "entry": "<test>item-fb5ea1c8-f0ee-44e3-b583-f82acf446291</test>",
    "item-id": "item-fb5ea1c8-f0ee-44e3-b583-f82acf446291"
}

2020-09-20 22:39:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb5ea1c8-f0ee-44e3-b583-f82acf446291"
}

2020-09-20 22:39:18 | [Mutex] waiting for: [published:item:notifieditem-fb5ea1c8-f0ee-44e3-b583-f82acf446291:admin@test-domain.com]

2020-09-20 22:39:18 | [Mutex] received everything.

2020-09-20 22:39:18 | [Mutex] isItemNotified: published:item:notifieditem-fb5ea1c8-f0ee-44e3-b583-f82acf446291:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-09-20 22:39:19 |

2020-09-20 22:39:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:19 | ------------------------------------

2020-09-20 22:39:19 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a8343d96-de87-4f2f-8508-e0af3502ce8b",
    "item-id": "item-fb5ea1c8-f0ee-44e3-b583-f82acf446291"
}

2020-09-20 22:39:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb5ea1c8-f0ee-44e3-b583-f82acf446291"
}

2020-09-20 22:39:19 | [Mutex] received everything.

2020-09-20 22:39:19 | [Mutex] isItemNotified: retracted:item:notifieditem-fb5ea1c8-f0ee-44e3-b583-f82acf446291:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2020-09-20 22:39:18 |

2020-09-20 22:39:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:18 | ------------------------------------

2020-09-20 22:39:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a8343d96-de87-4f2f-8508-e0af3502ce8b",
    "item-id": "item-fb5ea1c8-f0ee-44e3-b583-f82acf446291"
}

2020-09-20 22:39:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a8343d96-de87-4f2f-8508-e0af3502ce8b",
    "item-id": "item-fb5ea1c8-f0ee-44e3-b583-f82acf446291",
    "item": [
        "<item id=\"item-fb5ea1c8-f0ee-44e3-b583-f82acf446291\"><test>item-fb5ea1c8-f0ee-44e3-b583-f82acf446291</test></item>"
    ]
}

2020-09-20 22:39:18 | [Mutex] notify: [retrieved:item:item-fb5ea1c8-f0ee-44e3-b583-f82acf446291:payload-matches:true:localhost]

2020-09-20 22:39:18 | [Mutex] received everything.

2020-09-20 22:39:18 | [Mutex] isItemNotified: retrieved:item:item-fb5ea1c8-f0ee-44e3-b583-f82acf446291:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-09-20 22:39:18 |

2020-09-20 22:39:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:18 | ------------------------------------

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

2020-09-20 22:39:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a8343d96-de87-4f2f-8508-e0af3502ce8b",
        "test",
        "node-bda07b1e-75cf-411a-b7b0-9a9ba824b309"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-20 22:39:18 |

2020-09-20 22:39:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:18 | ------------------------------------

2020-09-20 22:39:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a8343d96-de87-4f2f-8508-e0af3502ce8b)"
}

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

subscribeNodes 1.013s
2020-09-20 22:39:17 |

2020-09-20 22:39:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:17 | ------------------------------------

2020-09-20 22:39:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a8343d96-de87-4f2f-8508-e0af3502ce8b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-20 22:39:17 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.069s
2020-09-20 22:39:19 |

2020-09-20 22:39:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:39:19 | ------------------------------------

2020-09-20 22:39:19 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a8343d96-de87-4f2f-8508-e0af3502ce8b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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