Generated by TestNG with ReportNG at 22:25 PDT on Monday 06 June 2022
root@21fb2cc9076b / 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.625s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2022-06-06 22:40:15 |

2022-06-06 22:40:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:15 | ------------------------------------

2022-06-06 22:40:15 | [Mutex] waiting for: [configured:node:node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e:node-697168b4-9441-4ece-aed4-856ba8045d97]

2022-06-06 22:40:15 | [Mutex] received everything.

2022-06-06 22:40:15 | [Mutex] isItemNotified: configured:node:node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e:node-697168b4-9441-4ece-aed4-856ba8045d97 :: true

2022-06-06 22:40:16 | [Mutex] waiting for: [received:nodes:d266028b-861e-4f52-9c7a-504f890a1e87:localhost]

2022-06-06 22:40:16 | [Mutex] received everything.

2022-06-06 22:40:16 | [Mutex] isItemNotified: received:node:d266028b-861e-4f52-9c7a-504f890a1e87:localhost:node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e:Node dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e :: true

2022-06-06 22:40:16 | [Mutex] waiting for: [received:nodes:256f27bf-74a5-45e8-abe2-ad39e647e2b4:localhost]

2022-06-06 22:40:16 | [Mutex] received everything.

2022-06-06 22:40:16 | [Mutex] isItemNotified: received:node:256f27bf-74a5-45e8-abe2-ad39e647e2b4:localhost:node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e:Node dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e :: false

createNodes 1.543s
2022-06-06 22:40:13 |

2022-06-06 22:40:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:13 | ------------------------------------

2022-06-06 22:40:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e",
    "pubsub#title": "Node dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e"
}

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

2022-06-06 22:40:14 | [Mutex] waiting for: [received:nodes:d9cbeebf-bd72-46ad-a411-88309f8d7286:localhost]

2022-06-06 22:40:14 | [Mutex] received everything.

2022-06-06 22:40:14 | [Mutex] isItemNotified: received:node:d9cbeebf-bd72-46ad-a411-88309f8d7286:localhost:node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e:Node dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e :: true

createSubnodes 1.029s
2022-06-06 22:40:14 |

2022-06-06 22:40:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:14 | ------------------------------------

2022-06-06 22:40:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-697168b4-9441-4ece-aed4-856ba8045d97",
    "pubsub#title": "Node 697168b4-9441-4ece-aed4-856ba8045d97"
}

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

2022-06-06 22:40:15 | [Mutex] waiting for: [received:nodes:62c29f22-d900-40eb-9a0c-0cd01e73229e:localhost]

2022-06-06 22:40:15 | [Mutex] received everything.

2022-06-06 22:40:15 | [Mutex] isItemNotified: received:node:62c29f22-d900-40eb-9a0c-0cd01e73229e:localhost:node-697168b4-9441-4ece-aed4-856ba8045d97:Node 697168b4-9441-4ece-aed4-856ba8045d97 :: true

deleteNodes 1.026s
2022-06-06 22:40:20 |

2022-06-06 22:40:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:20 | ------------------------------------

2022-06-06 22:40:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-697168b4-9441-4ece-aed4-856ba8045d97"
}

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

2022-06-06 22:40:21 | [Mutex] waiting for: [received:nodes:ec7176e5-7e74-493b-83ec-6c33fb2ffa24:localhost]

2022-06-06 22:40:21 | [Mutex] received everything.

2022-06-06 22:40:21 | [Mutex] isItemNotified: received:node:ec7176e5-7e74-493b-83ec-6c33fb2ffa24:localhost:node-697168b4-9441-4ece-aed4-856ba8045d97:Node 697168b4-9441-4ece-aed4-856ba8045d97 :: false

deleteSubnodes 1.030s
2022-06-06 22:40:19 |

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

2022-06-06 22:40:19 | ------------------------------------

2022-06-06 22:40:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e"
}

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

2022-06-06 22:40:20 | [Mutex] waiting for: [received:nodes:ad92dc11-4c19-4b71-8e3b-51199826bc79:localhost]

2022-06-06 22:40:20 | [Mutex] received everything.

2022-06-06 22:40:20 | [Mutex] isItemNotified: received:node:ad92dc11-4c19-4b71-8e3b-51199826bc79:localhost:node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e:Node dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e :: false

2022-06-06 22:40:20 | [Mutex] waiting for: [received:nodes:0e3706c0-6592-4e02-a59a-46d8b56ad80d:localhost]

2022-06-06 22:40:20 | [Mutex] received everything.

2022-06-06 22:40:20 | [Mutex] isItemNotified: received:node:0e3706c0-6592-4e02-a59a-46d8b56ad80d:localhost:node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e:Node dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e :: false

publishItemsToNodes 0.051s
2022-06-06 22:40:17 |

2022-06-06 22:40:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:17 | ------------------------------------

2022-06-06 22:40:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e",
    "entry": "<test>item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3</test>",
    "item-id": "item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3"
}

2022-06-06 22:40:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3"
}

2022-06-06 22:40:18 | [Mutex] received everything.

2022-06-06 22:40:18 | [Mutex] isItemNotified: published:item:notifieditem-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-06-06 22:40:18 |

2022-06-06 22:40:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:18 | ------------------------------------

2022-06-06 22:40:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e",
    "item-id": "item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3"
}

2022-06-06 22:40:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3"
}

2022-06-06 22:40:18 | [Mutex] received everything.

2022-06-06 22:40:18 | [Mutex] isItemNotified: retracted:item:notifieditem-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.091s
2022-06-06 22:40:18 |

2022-06-06 22:40:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:18 | ------------------------------------

2022-06-06 22:40:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e",
    "item-id": "item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3"
}

2022-06-06 22:40:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e",
    "item-id": "item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3",
    "item": [
        "<item id=\"item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3\"><test>item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3</test></item>"
    ]
}

2022-06-06 22:40:18 | [Mutex] notify: [retrieved:item:item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3:payload-matches:true:localhost]

2022-06-06 22:40:18 | [Mutex] received everything.

2022-06-06 22:40:18 | [Mutex] isItemNotified: retrieved:item:item-76f6a50f-3d10-4c0e-94b0-80d134ef5ba3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-06-06 22:40:18 |

2022-06-06 22:40:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:18 | ------------------------------------

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

2022-06-06 22:40:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e",
        "test",
        "node-697168b4-9441-4ece-aed4-856ba8045d97"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2022-06-06 22:40:18 |

2022-06-06 22:40:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:18 | ------------------------------------

2022-06-06 22:40:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e)"
}

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

subscribeNodes 1.018s
2022-06-06 22:40:16 |

2022-06-06 22:40:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:16 | ------------------------------------

2022-06-06 22:40:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2022-06-06 22:40:18 |

2022-06-06 22:40:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-06 22:40:18 | ------------------------------------

2022-06-06 22:40:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dd4cc0aa-1b33-4e81-b65c-fd803fb15c8e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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