Generated by TestNG with ReportNG at 02:14 PST on Thursday 03 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.108s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.151s
2022-02-03 02:32:29 |

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

2022-02-03 02:32:29 | ------------------------------------

2022-02-03 02:32:29 | [Mutex] waiting for: [configured:node:node-e6c50fe1-92fd-444a-af37-ad654c58068c:node-dd63d47f-a1ab-4ab4-beea-da03c7331ca3]

2022-02-03 02:32:29 | [Mutex] received everything.

2022-02-03 02:32:29 | [Mutex] isItemNotified: configured:node:node-e6c50fe1-92fd-444a-af37-ad654c58068c:node-dd63d47f-a1ab-4ab4-beea-da03c7331ca3 :: true

2022-02-03 02:32:30 | [Mutex] waiting for: [received:nodes:3a18d384-3734-4521-97c3-b61d22539e40:localhost]

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

2022-02-03 02:32:30 | [Mutex] isItemNotified: received:node:3a18d384-3734-4521-97c3-b61d22539e40:localhost:node-e6c50fe1-92fd-444a-af37-ad654c58068c:Node e6c50fe1-92fd-444a-af37-ad654c58068c :: true

2022-02-03 02:32:30 | [Mutex] waiting for: [received:nodes:fdaba801-fcb9-4b13-8d08-d8d1238758c6:localhost]

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

2022-02-03 02:32:30 | [Mutex] isItemNotified: received:node:fdaba801-fcb9-4b13-8d08-d8d1238758c6:localhost:node-e6c50fe1-92fd-444a-af37-ad654c58068c:Node e6c50fe1-92fd-444a-af37-ad654c58068c :: false

createNodes 1.733s
2022-02-03 02:32:26 |

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

2022-02-03 02:32:26 | ------------------------------------

2022-02-03 02:32:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e6c50fe1-92fd-444a-af37-ad654c58068c",
    "pubsub#title": "Node e6c50fe1-92fd-444a-af37-ad654c58068c"
}

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

2022-02-03 02:32:28 | [Mutex] waiting for: [received:nodes:b137d98d-7b8f-4419-be3f-a3342d619fec:localhost]

2022-02-03 02:32:28 | [Mutex] received everything.

2022-02-03 02:32:28 | [Mutex] isItemNotified: received:node:b137d98d-7b8f-4419-be3f-a3342d619fec:localhost:node-e6c50fe1-92fd-444a-af37-ad654c58068c:Node e6c50fe1-92fd-444a-af37-ad654c58068c :: true

createSubnodes 1.032s
2022-02-03 02:32:28 |

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

2022-02-03 02:32:28 | ------------------------------------

2022-02-03 02:32: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-dd63d47f-a1ab-4ab4-beea-da03c7331ca3",
    "pubsub#title": "Node dd63d47f-a1ab-4ab4-beea-da03c7331ca3"
}

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

2022-02-03 02:32:29 | [Mutex] waiting for: [received:nodes:616ce0f9-f8ce-4185-a4a2-c6429f5e55c9:localhost]

2022-02-03 02:32:29 | [Mutex] waiting for: [received:nodes:616ce0f9-f8ce-4185-a4a2-c6429f5e55c9:localhost]

2022-02-03 02:32:29 | [Mutex] received everything.

2022-02-03 02:32:29 | [Mutex] isItemNotified: received:node:616ce0f9-f8ce-4185-a4a2-c6429f5e55c9:localhost:node-dd63d47f-a1ab-4ab4-beea-da03c7331ca3:Node dd63d47f-a1ab-4ab4-beea-da03c7331ca3 :: true

deleteNodes 1.021s
2022-02-03 02:32:33 |

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

2022-02-03 02:32:33 | ------------------------------------

2022-02-03 02:32:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dd63d47f-a1ab-4ab4-beea-da03c7331ca3"
}

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

2022-02-03 02:32:34 | [Mutex] waiting for: [received:nodes:fe09f3c3-958d-4dc2-b8b7-55723044ebb7:localhost]

2022-02-03 02:32:34 | [Mutex] waiting for: [received:nodes:fe09f3c3-958d-4dc2-b8b7-55723044ebb7:localhost]

2022-02-03 02:32:34 | [Mutex] received everything.

2022-02-03 02:32:34 | [Mutex] isItemNotified: received:node:fe09f3c3-958d-4dc2-b8b7-55723044ebb7:localhost:node-dd63d47f-a1ab-4ab4-beea-da03c7331ca3:Node dd63d47f-a1ab-4ab4-beea-da03c7331ca3 :: false

deleteSubnodes 1.032s
2022-02-03 02:32:32 |

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

2022-02-03 02:32:32 | ------------------------------------

2022-02-03 02:32:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e6c50fe1-92fd-444a-af37-ad654c58068c"
}

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

2022-02-03 02:32:33 | [Mutex] waiting for: [received:nodes:f2f74e22-9bfc-46d1-a7e7-326947e145ce:localhost]

2022-02-03 02:32:33 | [Mutex] received everything.

2022-02-03 02:32:33 | [Mutex] isItemNotified: received:node:f2f74e22-9bfc-46d1-a7e7-326947e145ce:localhost:node-e6c50fe1-92fd-444a-af37-ad654c58068c:Node e6c50fe1-92fd-444a-af37-ad654c58068c :: false

2022-02-03 02:32:33 | [Mutex] waiting for: [received:nodes:e2739d53-0d40-419f-b304-0fdd11a71b50:localhost]

2022-02-03 02:32:33 | [Mutex] received everything.

2022-02-03 02:32:33 | [Mutex] isItemNotified: received:node:e2739d53-0d40-419f-b304-0fdd11a71b50:localhost:node-e6c50fe1-92fd-444a-af37-ad654c58068c:Node e6c50fe1-92fd-444a-af37-ad654c58068c :: false

publishItemsToNodes 0.049s
2022-02-03 02:32:31 |

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

2022-02-03 02:32:31 | ------------------------------------

2022-02-03 02:32:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e6c50fe1-92fd-444a-af37-ad654c58068c",
    "entry": "<test>item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773</test>",
    "item-id": "item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773"
}

2022-02-03 02:32:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773"
}

2022-02-03 02:32:31 | [Mutex] received everything.

2022-02-03 02:32:31 | [Mutex] isItemNotified: published:item:notifieditem-3e26cd0b-b12b-4362-a1ed-c0fa289ba773:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2022-02-03 02:32:31 |

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

2022-02-03 02:32:31 | ------------------------------------

2022-02-03 02:32:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e6c50fe1-92fd-444a-af37-ad654c58068c",
    "item-id": "item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773"
}

2022-02-03 02:32:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773"
}

2022-02-03 02:32:31 | [Mutex] received everything.

2022-02-03 02:32:31 | [Mutex] isItemNotified: retracted:item:notifieditem-3e26cd0b-b12b-4362-a1ed-c0fa289ba773:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2022-02-03 02:32:31 |

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

2022-02-03 02:32:31 | ------------------------------------

2022-02-03 02:32:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e6c50fe1-92fd-444a-af37-ad654c58068c",
    "item-id": "item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773"
}

2022-02-03 02:32:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e6c50fe1-92fd-444a-af37-ad654c58068c",
    "item-id": "item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773",
    "item": [
        "<item id=\"item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773\"><test>item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773</test></item>"
    ]
}

2022-02-03 02:32:31 | [Mutex] notify: [retrieved:item:item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773:payload-matches:true:localhost]

2022-02-03 02:32:31 | [Mutex] received everything.

2022-02-03 02:32:31 | [Mutex] isItemNotified: retrieved:item:item-3e26cd0b-b12b-4362-a1ed-c0fa289ba773:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-03 02:32:31 |

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

2022-02-03 02:32:31 | ------------------------------------

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

2022-02-03 02:32:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e6c50fe1-92fd-444a-af37-ad654c58068c",
        "node-dd63d47f-a1ab-4ab4-beea-da03c7331ca3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-02-03 02:32:31 |

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

2022-02-03 02:32:31 | ------------------------------------

2022-02-03 02:32:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e6c50fe1-92fd-444a-af37-ad654c58068c)"
}

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

subscribeNodes 1.010s
2022-02-03 02:32:30 |

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

2022-02-03 02:32:30 | ------------------------------------

2022-02-03 02:32:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e6c50fe1-92fd-444a-af37-ad654c58068c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.084s
2022-02-03 02:32:31 |

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

2022-02-03 02:32:31 | ------------------------------------

2022-02-03 02:32:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e6c50fe1-92fd-444a-af37-ad654c58068c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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