Generated by TestNG with ReportNG at 02:15 PST on Thursday 03 February 2022
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 : 9.011s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.127s
2022-02-03 02:30:08 |

2022-02-03 02:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:08 | ------------------------------------

2022-02-03 02:30:08 | [Mutex] waiting for: [configured:node:node-8694feae-aff9-45c4-830a-dbe8d21a58bb:node-6e8ffc97-2dc7-4c62-8da0-99ff0159d145]

2022-02-03 02:30:08 | [Mutex] received everything.

2022-02-03 02:30:08 | [Mutex] isItemNotified: configured:node:node-8694feae-aff9-45c4-830a-dbe8d21a58bb:node-6e8ffc97-2dc7-4c62-8da0-99ff0159d145 :: true

2022-02-03 02:30:09 | [Mutex] waiting for: [received:nodes:67d0a7b4-9de2-40ab-bba6-85b4de681b49:localhost]

2022-02-03 02:30:09 | [Mutex] received everything.

2022-02-03 02:30:09 | [Mutex] isItemNotified: received:node:67d0a7b4-9de2-40ab-bba6-85b4de681b49:localhost:node-8694feae-aff9-45c4-830a-dbe8d21a58bb:Node 8694feae-aff9-45c4-830a-dbe8d21a58bb :: true

2022-02-03 02:30:09 | [Mutex] waiting for: [received:nodes:b055db84-8340-44c5-b0a4-5ceb50d21649:localhost]

2022-02-03 02:30:09 | [Mutex] received everything.

2022-02-03 02:30:09 | [Mutex] isItemNotified: received:node:b055db84-8340-44c5-b0a4-5ceb50d21649:localhost:node-8694feae-aff9-45c4-830a-dbe8d21a58bb:Node 8694feae-aff9-45c4-830a-dbe8d21a58bb :: false

createNodes 1.548s
2022-02-03 02:30:05 |

2022-02-03 02:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:05 | ------------------------------------

2022-02-03 02:30:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8694feae-aff9-45c4-830a-dbe8d21a58bb",
    "pubsub#title": "Node 8694feae-aff9-45c4-830a-dbe8d21a58bb"
}

2022-02-03 02:30:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 02:30:07 | [Mutex] waiting for: [received:nodes:7cd38e26-5c0e-49cd-8320-1d261eca2072:localhost]

2022-02-03 02:30:07 | [Mutex] received everything.

2022-02-03 02:30:07 | [Mutex] isItemNotified: received:node:7cd38e26-5c0e-49cd-8320-1d261eca2072:localhost:node-8694feae-aff9-45c4-830a-dbe8d21a58bb:Node 8694feae-aff9-45c4-830a-dbe8d21a58bb :: true

createSubnodes 1.025s
2022-02-03 02:30:07 |

2022-02-03 02:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:07 | ------------------------------------

2022-02-03 02:30:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6e8ffc97-2dc7-4c62-8da0-99ff0159d145",
    "pubsub#title": "Node 6e8ffc97-2dc7-4c62-8da0-99ff0159d145"
}

2022-02-03 02:30:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 02:30:08 | [Mutex] waiting for: [received:nodes:7446f25c-fa28-45fb-bdaf-4fc7c0447cc3:localhost]

2022-02-03 02:30:08 | [Mutex] received everything.

2022-02-03 02:30:08 | [Mutex] isItemNotified: received:node:7446f25c-fa28-45fb-bdaf-4fc7c0447cc3:localhost:node-6e8ffc97-2dc7-4c62-8da0-99ff0159d145:Node 6e8ffc97-2dc7-4c62-8da0-99ff0159d145 :: true

deleteNodes 1.028s
2022-02-03 02:30:13 |

2022-02-03 02:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:13 | ------------------------------------

2022-02-03 02:30:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6e8ffc97-2dc7-4c62-8da0-99ff0159d145"
}

2022-02-03 02:30:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 02:30:14 | [Mutex] waiting for: [received:nodes:ec414a05-a976-4db6-aebc-3546be021130:localhost]

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

2022-02-03 02:30:14 | [Mutex] isItemNotified: received:node:ec414a05-a976-4db6-aebc-3546be021130:localhost:node-6e8ffc97-2dc7-4c62-8da0-99ff0159d145:Node 6e8ffc97-2dc7-4c62-8da0-99ff0159d145 :: false

deleteSubnodes 1.028s
2022-02-03 02:30:12 |

2022-02-03 02:30:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:12 | ------------------------------------

2022-02-03 02:30:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8694feae-aff9-45c4-830a-dbe8d21a58bb"
}

2022-02-03 02:30:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 02:30:13 | [Mutex] waiting for: [received:nodes:11ac3223-d464-43ec-9d17-c389bf98769f:localhost]

2022-02-03 02:30:13 | [Mutex] received everything.

2022-02-03 02:30:13 | [Mutex] isItemNotified: received:node:11ac3223-d464-43ec-9d17-c389bf98769f:localhost:node-8694feae-aff9-45c4-830a-dbe8d21a58bb:Node 8694feae-aff9-45c4-830a-dbe8d21a58bb :: false

2022-02-03 02:30:13 | [Mutex] waiting for: [received:nodes:b4b1fd56-5f03-47b9-8a4b-05dd0b1dcba5:localhost]

2022-02-03 02:30:13 | [Mutex] received everything.

2022-02-03 02:30:13 | [Mutex] isItemNotified: received:node:b4b1fd56-5f03-47b9-8a4b-05dd0b1dcba5:localhost:node-8694feae-aff9-45c4-830a-dbe8d21a58bb:Node 8694feae-aff9-45c4-830a-dbe8d21a58bb :: false

publishItemsToNodes 0.050s
2022-02-03 02:30:10 |

2022-02-03 02:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:10 | ------------------------------------

2022-02-03 02:30:10 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8694feae-aff9-45c4-830a-dbe8d21a58bb",
    "entry": "<test>item-02bdda83-a99a-4371-badb-f1f6801ad0f0</test>",
    "item-id": "item-02bdda83-a99a-4371-badb-f1f6801ad0f0"
}

2022-02-03 02:30:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-02bdda83-a99a-4371-badb-f1f6801ad0f0"
}

2022-02-03 02:30:10 | [Mutex] received everything.

2022-02-03 02:30:10 | [Mutex] isItemNotified: published:item:notifieditem-02bdda83-a99a-4371-badb-f1f6801ad0f0:admin@test-domain.com :: true

retractItemsFromNodes 0.065s
2022-02-03 02:30:10 |

2022-02-03 02:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:10 | ------------------------------------

2022-02-03 02:30:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8694feae-aff9-45c4-830a-dbe8d21a58bb",
    "item-id": "item-02bdda83-a99a-4371-badb-f1f6801ad0f0"
}

2022-02-03 02:30:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-02bdda83-a99a-4371-badb-f1f6801ad0f0"
}

2022-02-03 02:30:10 | [Mutex] waiting for: [retracted:item:notifieditem-02bdda83-a99a-4371-badb-f1f6801ad0f0:admin@test-domain.com]

2022-02-03 02:30:10 | [Mutex] received everything.

2022-02-03 02:30:10 | [Mutex] isItemNotified: retracted:item:notifieditem-02bdda83-a99a-4371-badb-f1f6801ad0f0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.085s
2022-02-03 02:30:10 |

2022-02-03 02:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:10 | ------------------------------------

2022-02-03 02:30:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8694feae-aff9-45c4-830a-dbe8d21a58bb",
    "item-id": "item-02bdda83-a99a-4371-badb-f1f6801ad0f0"
}

2022-02-03 02:30:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8694feae-aff9-45c4-830a-dbe8d21a58bb",
    "item-id": "item-02bdda83-a99a-4371-badb-f1f6801ad0f0",
    "item": [
        "<item id=\"item-02bdda83-a99a-4371-badb-f1f6801ad0f0\"><test>item-02bdda83-a99a-4371-badb-f1f6801ad0f0</test></item>"
    ]
}

2022-02-03 02:30:10 | [Mutex] notify: [retrieved:item:item-02bdda83-a99a-4371-badb-f1f6801ad0f0:payload-matches:true:localhost]

2022-02-03 02:30:10 | [Mutex] received everything.

2022-02-03 02:30:10 | [Mutex] isItemNotified: retrieved:item:item-02bdda83-a99a-4371-badb-f1f6801ad0f0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-02-03 02:30:10 |

2022-02-03 02:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:10 | ------------------------------------

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

2022-02-03 02:30:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6e8ffc97-2dc7-4c62-8da0-99ff0159d145",
        "node-8694feae-aff9-45c4-830a-dbe8d21a58bb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-02-03 02:30:10 |

2022-02-03 02:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:10 | ------------------------------------

2022-02-03 02:30:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8694feae-aff9-45c4-830a-dbe8d21a58bb)"
}

2022-02-03 02:30:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-02-03 02:30:09 |

2022-02-03 02:30:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:09 | ------------------------------------

2022-02-03 02:30:09 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8694feae-aff9-45c4-830a-dbe8d21a58bb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.085s
2022-02-03 02:30:10 |

2022-02-03 02:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:30:10 | ------------------------------------

2022-02-03 02:30:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8694feae-aff9-45c4-830a-dbe8d21a58bb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-03 02:30:11 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}