Generated by TestNG with ReportNG at 00:44 PDT on Thursday 26 October 2023
root@8dfa9d99ff97 / Java 17.0.8 (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.457s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2023-10-26 00:58:35 |

2023-10-26 00:58:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:35 | ------------------------------------

2023-10-26 00:58:35 | [Mutex] waiting for: [configured:node:node-4626d0b8-4100-4c63-b2d5-06d6175f46ae:node-6a6b27b1-0258-43ee-afe0-e4642bf1888f]

2023-10-26 00:58:36 | [Mutex] received everything.

2023-10-26 00:58:36 | [Mutex] isItemNotified: configured:node:node-4626d0b8-4100-4c63-b2d5-06d6175f46ae:node-6a6b27b1-0258-43ee-afe0-e4642bf1888f :: true

2023-10-26 00:58:37 | [Mutex] waiting for: [received:nodes:97677f3d-a30d-4ae8-b158-4d27640bb86c:localhost]

2023-10-26 00:58:37 | [Mutex] received everything.

2023-10-26 00:58:37 | [Mutex] isItemNotified: received:node:97677f3d-a30d-4ae8-b158-4d27640bb86c:localhost:node-4626d0b8-4100-4c63-b2d5-06d6175f46ae:Node 4626d0b8-4100-4c63-b2d5-06d6175f46ae :: true

2023-10-26 00:58:37 | [Mutex] waiting for: [received:nodes:11629a07-1cce-430c-b368-d8b3499f0836:localhost]

2023-10-26 00:58:37 | [Mutex] waiting for: [received:nodes:11629a07-1cce-430c-b368-d8b3499f0836:localhost]

2023-10-26 00:58:37 | [Mutex] waiting for: [received:nodes:11629a07-1cce-430c-b368-d8b3499f0836:localhost]

2023-10-26 00:58:37 | [Mutex] waiting for: [received:nodes:11629a07-1cce-430c-b368-d8b3499f0836:localhost]

2023-10-26 00:58:37 | [Mutex] received everything.

2023-10-26 00:58:37 | [Mutex] isItemNotified: received:node:11629a07-1cce-430c-b368-d8b3499f0836:localhost:node-4626d0b8-4100-4c63-b2d5-06d6175f46ae:Node 4626d0b8-4100-4c63-b2d5-06d6175f46ae :: false

createNodes 1.555s
2023-10-26 00:58:33 |

2023-10-26 00:58:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:33 | ------------------------------------

2023-10-26 00:58:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4626d0b8-4100-4c63-b2d5-06d6175f46ae",
    "pubsub#title": "Node 4626d0b8-4100-4c63-b2d5-06d6175f46ae"
}

2023-10-26 00:58:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-26 00:58:34 | [Mutex] waiting for: [received:nodes:cbb00c93-1963-470b-b655-c780cb2580f5:localhost]

2023-10-26 00:58:34 | [Mutex] waiting for: [received:nodes:cbb00c93-1963-470b-b655-c780cb2580f5:localhost]

2023-10-26 00:58:34 | [Mutex] waiting for: [received:nodes:cbb00c93-1963-470b-b655-c780cb2580f5:localhost]

2023-10-26 00:58:34 | [Mutex] received everything.

2023-10-26 00:58:34 | [Mutex] isItemNotified: received:node:cbb00c93-1963-470b-b655-c780cb2580f5:localhost:node-4626d0b8-4100-4c63-b2d5-06d6175f46ae:Node 4626d0b8-4100-4c63-b2d5-06d6175f46ae :: true

createSubnodes 1.017s
2023-10-26 00:58:34 |

2023-10-26 00:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:34 | ------------------------------------

2023-10-26 00:58:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6a6b27b1-0258-43ee-afe0-e4642bf1888f",
    "pubsub#title": "Node 6a6b27b1-0258-43ee-afe0-e4642bf1888f"
}

2023-10-26 00:58:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-26 00:58:35 | [Mutex] waiting for: [received:nodes:119cea39-ce9c-41fe-a5aa-95059443bb86:localhost]

2023-10-26 00:58:35 | [Mutex] waiting for: [received:nodes:119cea39-ce9c-41fe-a5aa-95059443bb86:localhost]

2023-10-26 00:58:35 | [Mutex] waiting for: [received:nodes:119cea39-ce9c-41fe-a5aa-95059443bb86:localhost]

2023-10-26 00:58:35 | [Mutex] waiting for: [received:nodes:119cea39-ce9c-41fe-a5aa-95059443bb86:localhost]

2023-10-26 00:58:35 | [Mutex] waiting for: [received:nodes:119cea39-ce9c-41fe-a5aa-95059443bb86:localhost]

2023-10-26 00:58:35 | [Mutex] received everything.

2023-10-26 00:58:35 | [Mutex] isItemNotified: received:node:119cea39-ce9c-41fe-a5aa-95059443bb86:localhost:node-6a6b27b1-0258-43ee-afe0-e4642bf1888f:Node 6a6b27b1-0258-43ee-afe0-e4642bf1888f :: true

deleteNodes 1.020s
2023-10-26 00:58:40 |

2023-10-26 00:58:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:40 | ------------------------------------

2023-10-26 00:58:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6a6b27b1-0258-43ee-afe0-e4642bf1888f"
}

2023-10-26 00:58:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-26 00:58:41 | [Mutex] waiting for: [received:nodes:503d0371-940c-4cfc-b13f-b8749b7228ef:localhost]

2023-10-26 00:58:41 | [Mutex] waiting for: [received:nodes:503d0371-940c-4cfc-b13f-b8749b7228ef:localhost]

2023-10-26 00:58:41 | [Mutex] waiting for: [received:nodes:503d0371-940c-4cfc-b13f-b8749b7228ef:localhost]

2023-10-26 00:58:41 | [Mutex] received everything.

2023-10-26 00:58:41 | [Mutex] isItemNotified: received:node:503d0371-940c-4cfc-b13f-b8749b7228ef:localhost:node-6a6b27b1-0258-43ee-afe0-e4642bf1888f:Node 6a6b27b1-0258-43ee-afe0-e4642bf1888f :: false

deleteSubnodes 1.022s
2023-10-26 00:58:39 |

2023-10-26 00:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:39 | ------------------------------------

2023-10-26 00:58:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4626d0b8-4100-4c63-b2d5-06d6175f46ae"
}

2023-10-26 00:58:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-26 00:58:40 | [Mutex] waiting for: [received:nodes:c3b35bf4-60a4-491f-8270-79d00e1eeb47:localhost]

2023-10-26 00:58:40 | [Mutex] waiting for: [received:nodes:c3b35bf4-60a4-491f-8270-79d00e1eeb47:localhost]

2023-10-26 00:58:40 | [Mutex] waiting for: [received:nodes:c3b35bf4-60a4-491f-8270-79d00e1eeb47:localhost]

2023-10-26 00:58:40 | [Mutex] waiting for: [received:nodes:c3b35bf4-60a4-491f-8270-79d00e1eeb47:localhost]

2023-10-26 00:58:40 | [Mutex] received everything.

2023-10-26 00:58:40 | [Mutex] isItemNotified: received:node:c3b35bf4-60a4-491f-8270-79d00e1eeb47:localhost:node-4626d0b8-4100-4c63-b2d5-06d6175f46ae:Node 4626d0b8-4100-4c63-b2d5-06d6175f46ae :: false

2023-10-26 00:58:40 | [Mutex] waiting for: [received:nodes:cb512413-02b4-43b4-975b-68911767ca4c:localhost]

2023-10-26 00:58:40 | [Mutex] received everything.

2023-10-26 00:58:40 | [Mutex] isItemNotified: received:node:cb512413-02b4-43b4-975b-68911767ca4c:localhost:node-4626d0b8-4100-4c63-b2d5-06d6175f46ae:Node 4626d0b8-4100-4c63-b2d5-06d6175f46ae :: false

publishItemsToNodes 0.046s
2023-10-26 00:58:38 |

2023-10-26 00:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:38 | ------------------------------------

2023-10-26 00:58:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4626d0b8-4100-4c63-b2d5-06d6175f46ae",
    "entry": "<test>item-53576c78-d319-4a33-bf49-1611486815df</test>",
    "item-id": "item-53576c78-d319-4a33-bf49-1611486815df"
}

2023-10-26 00:58:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-53576c78-d319-4a33-bf49-1611486815df"
}

2023-10-26 00:58:38 | [Mutex] waiting for: [published:item:notifieditem-53576c78-d319-4a33-bf49-1611486815df:admin@test-domain.com]

2023-10-26 00:58:38 | [Mutex] received everything.

2023-10-26 00:58:38 | [Mutex] isItemNotified: published:item:notifieditem-53576c78-d319-4a33-bf49-1611486815df:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-10-26 00:58:38 |

2023-10-26 00:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:38 | ------------------------------------

2023-10-26 00:58:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4626d0b8-4100-4c63-b2d5-06d6175f46ae",
    "item-id": "item-53576c78-d319-4a33-bf49-1611486815df"
}

2023-10-26 00:58:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-53576c78-d319-4a33-bf49-1611486815df"
}

2023-10-26 00:58:38 | [Mutex] received everything.

2023-10-26 00:58:38 | [Mutex] isItemNotified: retracted:item:notifieditem-53576c78-d319-4a33-bf49-1611486815df:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2023-10-26 00:58:38 |

2023-10-26 00:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:38 | ------------------------------------

2023-10-26 00:58:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4626d0b8-4100-4c63-b2d5-06d6175f46ae",
    "item-id": "item-53576c78-d319-4a33-bf49-1611486815df"
}

2023-10-26 00:58:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4626d0b8-4100-4c63-b2d5-06d6175f46ae",
    "item-id": "item-53576c78-d319-4a33-bf49-1611486815df",
    "item": [
        "<item id=\"item-53576c78-d319-4a33-bf49-1611486815df\"><test>item-53576c78-d319-4a33-bf49-1611486815df</test></item>"
    ]
}

2023-10-26 00:58:38 | [Mutex] notify: [retrieved:item:item-53576c78-d319-4a33-bf49-1611486815df:payload-matches:true:localhost]

2023-10-26 00:58:38 | [Mutex] received everything.

2023-10-26 00:58:38 | [Mutex] isItemNotified: retrieved:item:item-53576c78-d319-4a33-bf49-1611486815df:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-10-26 00:58:38 |

2023-10-26 00:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:38 | ------------------------------------

2023-10-26 00:58:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-10-26 00:58:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4626d0b8-4100-4c63-b2d5-06d6175f46ae",
        "node-6a6b27b1-0258-43ee-afe0-e4642bf1888f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-10-26 00:58:38 |

2023-10-26 00:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:38 | ------------------------------------

2023-10-26 00:58:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4626d0b8-4100-4c63-b2d5-06d6175f46ae)"
}

2023-10-26 00:58:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2023-10-26 00:58:37 |

2023-10-26 00:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:37 | ------------------------------------

2023-10-26 00:58:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4626d0b8-4100-4c63-b2d5-06d6175f46ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-26 00:58:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2023-10-26 00:58:38 |

2023-10-26 00:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-26 00:58:38 | ------------------------------------

2023-10-26 00:58:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4626d0b8-4100-4c63-b2d5-06d6175f46ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-26 00:58:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}