Generated by TestNG with ReportNG at 22:18 PDT on Thursday 04 August 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.616s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2022-08-04 22:32:44 |

2022-08-04 22:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:44 | ------------------------------------

2022-08-04 22:32:44 | [Mutex] waiting for: [configured:node:node-62d0fd8e-a711-4d2b-8c02-66d6863475e9:node-f3339944-87f4-4679-9822-6697c84f2766]

2022-08-04 22:32:44 | [Mutex] received everything.

2022-08-04 22:32:44 | [Mutex] isItemNotified: configured:node:node-62d0fd8e-a711-4d2b-8c02-66d6863475e9:node-f3339944-87f4-4679-9822-6697c84f2766 :: true

2022-08-04 22:32:45 | [Mutex] waiting for: [received:nodes:67f337bb-e727-4da7-b521-cf36b73548a4:localhost]

2022-08-04 22:32:45 | [Mutex] received everything.

2022-08-04 22:32:45 | [Mutex] isItemNotified: received:node:67f337bb-e727-4da7-b521-cf36b73548a4:localhost:node-62d0fd8e-a711-4d2b-8c02-66d6863475e9:Node 62d0fd8e-a711-4d2b-8c02-66d6863475e9 :: true

2022-08-04 22:32:45 | [Mutex] waiting for: [received:nodes:2f014923-8bd3-4b2a-8dac-7de4d9a7ab63:localhost]

2022-08-04 22:32:45 | [Mutex] received everything.

2022-08-04 22:32:45 | [Mutex] isItemNotified: received:node:2f014923-8bd3-4b2a-8dac-7de4d9a7ab63:localhost:node-62d0fd8e-a711-4d2b-8c02-66d6863475e9:Node 62d0fd8e-a711-4d2b-8c02-66d6863475e9 :: false

createNodes 1.621s
2022-08-04 22:32:41 |

2022-08-04 22:32:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:41 | ------------------------------------

2022-08-04 22:32:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-62d0fd8e-a711-4d2b-8c02-66d6863475e9",
    "pubsub#title": "Node 62d0fd8e-a711-4d2b-8c02-66d6863475e9"
}

2022-08-04 22:32:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-04 22:32:43 | [Mutex] waiting for: [received:nodes:9f121fbc-363c-4d5f-8028-05dc37e6e366:localhost]

2022-08-04 22:32:43 | [Mutex] waiting for: [received:nodes:9f121fbc-363c-4d5f-8028-05dc37e6e366:localhost]

2022-08-04 22:32:43 | [Mutex] waiting for: [received:nodes:9f121fbc-363c-4d5f-8028-05dc37e6e366:localhost]

2022-08-04 22:32:43 | [Mutex] received everything.

2022-08-04 22:32:43 | [Mutex] isItemNotified: received:node:9f121fbc-363c-4d5f-8028-05dc37e6e366:localhost:node-62d0fd8e-a711-4d2b-8c02-66d6863475e9:Node 62d0fd8e-a711-4d2b-8c02-66d6863475e9 :: true

createSubnodes 1.022s
2022-08-04 22:32:43 |

2022-08-04 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:43 | ------------------------------------

2022-08-04 22:32:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f3339944-87f4-4679-9822-6697c84f2766",
    "pubsub#title": "Node f3339944-87f4-4679-9822-6697c84f2766"
}

2022-08-04 22:32:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-04 22:32:44 | [Mutex] waiting for: [received:nodes:e95ca56d-2e29-489e-bade-aa4b9a5a1511:localhost]

2022-08-04 22:32:44 | [Mutex] received everything.

2022-08-04 22:32:44 | [Mutex] isItemNotified: received:node:e95ca56d-2e29-489e-bade-aa4b9a5a1511:localhost:node-f3339944-87f4-4679-9822-6697c84f2766:Node f3339944-87f4-4679-9822-6697c84f2766 :: true

deleteNodes 1.018s
2022-08-04 22:32:48 |

2022-08-04 22:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:48 | ------------------------------------

2022-08-04 22:32:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f3339944-87f4-4679-9822-6697c84f2766"
}

2022-08-04 22:32:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-04 22:32:49 | [Mutex] waiting for: [received:nodes:3e3e03eb-63c8-4d0f-a5fd-81317b344b4f:localhost]

2022-08-04 22:32:49 | [Mutex] received everything.

2022-08-04 22:32:49 | [Mutex] isItemNotified: received:node:3e3e03eb-63c8-4d0f-a5fd-81317b344b4f:localhost:node-f3339944-87f4-4679-9822-6697c84f2766:Node f3339944-87f4-4679-9822-6697c84f2766 :: false

deleteSubnodes 1.023s
2022-08-04 22:32:47 |

2022-08-04 22:32:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:47 | ------------------------------------

2022-08-04 22:32:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-62d0fd8e-a711-4d2b-8c02-66d6863475e9"
}

2022-08-04 22:32:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-04 22:32:48 | [Mutex] waiting for: [received:nodes:0ba35893-5e98-49f8-8220-1fa3d52a9dfb:localhost]

2022-08-04 22:32:48 | [Mutex] received everything.

2022-08-04 22:32:48 | [Mutex] isItemNotified: received:node:0ba35893-5e98-49f8-8220-1fa3d52a9dfb:localhost:node-62d0fd8e-a711-4d2b-8c02-66d6863475e9:Node 62d0fd8e-a711-4d2b-8c02-66d6863475e9 :: false

2022-08-04 22:32:48 | [Mutex] waiting for: [received:nodes:18013db1-0c7a-41c8-90b5-b07e8aeffbb3:localhost]

2022-08-04 22:32:48 | [Mutex] received everything.

2022-08-04 22:32:48 | [Mutex] isItemNotified: received:node:18013db1-0c7a-41c8-90b5-b07e8aeffbb3:localhost:node-62d0fd8e-a711-4d2b-8c02-66d6863475e9:Node 62d0fd8e-a711-4d2b-8c02-66d6863475e9 :: false

publishItemsToNodes 0.055s
2022-08-04 22:32:46 |

2022-08-04 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:46 | ------------------------------------

2022-08-04 22:32:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-62d0fd8e-a711-4d2b-8c02-66d6863475e9",
    "entry": "<test>item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f</test>",
    "item-id": "item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f"
}

2022-08-04 22:32:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f"
}

2022-08-04 22:32:46 | [Mutex] waiting for: [published:item:notifieditem-89afa2aa-6e50-4182-9fbe-a4f14b784e0f:admin@test-domain.com]

2022-08-04 22:32:46 | [Mutex] received everything.

2022-08-04 22:32:46 | [Mutex] isItemNotified: published:item:notifieditem-89afa2aa-6e50-4182-9fbe-a4f14b784e0f:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2022-08-04 22:32:46 |

2022-08-04 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:46 | ------------------------------------

2022-08-04 22:32:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-62d0fd8e-a711-4d2b-8c02-66d6863475e9",
    "item-id": "item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f"
}

2022-08-04 22:32:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f"
}

2022-08-04 22:32:46 | [Mutex] waiting for: [retracted:item:notifieditem-89afa2aa-6e50-4182-9fbe-a4f14b784e0f:admin@test-domain.com]

2022-08-04 22:32:46 | [Mutex] received everything.

2022-08-04 22:32:46 | [Mutex] isItemNotified: retracted:item:notifieditem-89afa2aa-6e50-4182-9fbe-a4f14b784e0f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.035s
2022-08-04 22:32:46 |

2022-08-04 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:46 | ------------------------------------

2022-08-04 22:32:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-62d0fd8e-a711-4d2b-8c02-66d6863475e9",
    "item-id": "item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f"
}

2022-08-04 22:32:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-62d0fd8e-a711-4d2b-8c02-66d6863475e9",
    "item-id": "item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f",
    "item": [
        "<item id=\"item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f\"><test>item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f</test></item>"
    ]
}

2022-08-04 22:32:46 | [Mutex] notify: [retrieved:item:item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f:payload-matches:true:localhost]

2022-08-04 22:32:46 | [Mutex] received everything.

2022-08-04 22:32:46 | [Mutex] isItemNotified: retrieved:item:item-89afa2aa-6e50-4182-9fbe-a4f14b784e0f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2022-08-04 22:32:46 |

2022-08-04 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:46 | ------------------------------------

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

2022-08-04 22:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f3339944-87f4-4679-9822-6697c84f2766",
        "node-62d0fd8e-a711-4d2b-8c02-66d6863475e9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-04 22:32:46 |

2022-08-04 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:46 | ------------------------------------

2022-08-04 22:32:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-62d0fd8e-a711-4d2b-8c02-66d6863475e9)"
}

2022-08-04 22:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-08-04 22:32:45 |

2022-08-04 22:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:45 | ------------------------------------

2022-08-04 22:32:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-62d0fd8e-a711-4d2b-8c02-66d6863475e9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-04 22:32:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.070s
2022-08-04 22:32:46 |

2022-08-04 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-04 22:32:46 | ------------------------------------

2022-08-04 22:32:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-62d0fd8e-a711-4d2b-8c02-66d6863475e9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-04 22:32:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}