Generated by TestNG with ReportNG at 22:17 PDT on Friday 25 August 2023
root@c198f8de0a9c / 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.715s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2023-08-25 22:31:52 |

2023-08-25 22:31:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:52 | ------------------------------------

2023-08-25 22:31:52 | [Mutex] waiting for: [configured:node:node-3a0d8d20-affc-498b-a9d8-10ab785f18b1:node-3ab28c88-3628-4a27-ac2c-8c7f167c5c92]

2023-08-25 22:31:52 | [Mutex] received everything.

2023-08-25 22:31:52 | [Mutex] isItemNotified: configured:node:node-3a0d8d20-affc-498b-a9d8-10ab785f18b1:node-3ab28c88-3628-4a27-ac2c-8c7f167c5c92 :: true

2023-08-25 22:31:53 | [Mutex] waiting for: [received:nodes:0a564e70-3369-4077-8f83-b09880f976f8:localhost]

2023-08-25 22:31:53 | [Mutex] received everything.

2023-08-25 22:31:53 | [Mutex] isItemNotified: received:node:0a564e70-3369-4077-8f83-b09880f976f8:localhost:node-3a0d8d20-affc-498b-a9d8-10ab785f18b1:Node 3a0d8d20-affc-498b-a9d8-10ab785f18b1 :: true

2023-08-25 22:31:53 | [Mutex] waiting for: [received:nodes:fb4cbe26-ff56-47cd-9ccb-d7687b6d4bb6:localhost]

2023-08-25 22:31:53 | [Mutex] waiting for: [received:nodes:fb4cbe26-ff56-47cd-9ccb-d7687b6d4bb6:localhost]

2023-08-25 22:31:53 | [Mutex] waiting for: [received:nodes:fb4cbe26-ff56-47cd-9ccb-d7687b6d4bb6:localhost]

2023-08-25 22:31:53 | [Mutex] waiting for: [received:nodes:fb4cbe26-ff56-47cd-9ccb-d7687b6d4bb6:localhost]

2023-08-25 22:31:53 | [Mutex] received everything.

2023-08-25 22:31:53 | [Mutex] isItemNotified: received:node:fb4cbe26-ff56-47cd-9ccb-d7687b6d4bb6:localhost:node-3a0d8d20-affc-498b-a9d8-10ab785f18b1:Node 3a0d8d20-affc-498b-a9d8-10ab785f18b1 :: false

createNodes 1.780s
2023-08-25 22:31:49 |

2023-08-25 22:31:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:49 | ------------------------------------

2023-08-25 22:31:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3a0d8d20-affc-498b-a9d8-10ab785f18b1",
    "pubsub#title": "Node 3a0d8d20-affc-498b-a9d8-10ab785f18b1"
}

2023-08-25 22:31:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 22:31:51 | [Mutex] waiting for: [received:nodes:fb7fa841-bdbf-4963-a3a2-29b6863d61b0:localhost]

2023-08-25 22:31:51 | [Mutex] waiting for: [received:nodes:fb7fa841-bdbf-4963-a3a2-29b6863d61b0:localhost]

2023-08-25 22:31:51 | [Mutex] waiting for: [received:nodes:fb7fa841-bdbf-4963-a3a2-29b6863d61b0:localhost]

2023-08-25 22:31:51 | [Mutex] waiting for: [received:nodes:fb7fa841-bdbf-4963-a3a2-29b6863d61b0:localhost]

2023-08-25 22:31:51 | [Mutex] received everything.

2023-08-25 22:31:51 | [Mutex] isItemNotified: received:node:fb7fa841-bdbf-4963-a3a2-29b6863d61b0:localhost:node-3a0d8d20-affc-498b-a9d8-10ab785f18b1:Node 3a0d8d20-affc-498b-a9d8-10ab785f18b1 :: true

createSubnodes 1.024s
2023-08-25 22:31:51 |

2023-08-25 22:31:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:51 | ------------------------------------

2023-08-25 22:31:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3ab28c88-3628-4a27-ac2c-8c7f167c5c92",
    "pubsub#title": "Node 3ab28c88-3628-4a27-ac2c-8c7f167c5c92"
}

2023-08-25 22:31:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 22:31:52 | [Mutex] waiting for: [received:nodes:9c9c3c82-e6de-4b57-9425-203b8eeabc57:localhost]

2023-08-25 22:31:52 | [Mutex] waiting for: [received:nodes:9c9c3c82-e6de-4b57-9425-203b8eeabc57:localhost]

2023-08-25 22:31:52 | [Mutex] waiting for: [received:nodes:9c9c3c82-e6de-4b57-9425-203b8eeabc57:localhost]

2023-08-25 22:31:52 | [Mutex] waiting for: [received:nodes:9c9c3c82-e6de-4b57-9425-203b8eeabc57:localhost]

2023-08-25 22:31:52 | [Mutex] waiting for: [received:nodes:9c9c3c82-e6de-4b57-9425-203b8eeabc57:localhost]

2023-08-25 22:31:52 | [Mutex] received everything.

2023-08-25 22:31:52 | [Mutex] isItemNotified: received:node:9c9c3c82-e6de-4b57-9425-203b8eeabc57:localhost:node-3ab28c88-3628-4a27-ac2c-8c7f167c5c92:Node 3ab28c88-3628-4a27-ac2c-8c7f167c5c92 :: true

deleteNodes 1.016s
2023-08-25 22:31:57 |

2023-08-25 22:31:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:57 | ------------------------------------

2023-08-25 22:31:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3ab28c88-3628-4a27-ac2c-8c7f167c5c92"
}

2023-08-25 22:31:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 22:31:58 | [Mutex] waiting for: [received:nodes:f290b74c-461f-4f5a-8f49-931dc1361a29:localhost]

2023-08-25 22:31:58 | [Mutex] waiting for: [received:nodes:f290b74c-461f-4f5a-8f49-931dc1361a29:localhost]

2023-08-25 22:31:58 | [Mutex] waiting for: [received:nodes:f290b74c-461f-4f5a-8f49-931dc1361a29:localhost]

2023-08-25 22:31:58 | [Mutex] received everything.

2023-08-25 22:31:58 | [Mutex] isItemNotified: received:node:f290b74c-461f-4f5a-8f49-931dc1361a29:localhost:node-3ab28c88-3628-4a27-ac2c-8c7f167c5c92:Node 3ab28c88-3628-4a27-ac2c-8c7f167c5c92 :: false

deleteSubnodes 1.024s
2023-08-25 22:31:56 |

2023-08-25 22:31:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:56 | ------------------------------------

2023-08-25 22:31:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3a0d8d20-affc-498b-a9d8-10ab785f18b1"
}

2023-08-25 22:31:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 22:31:57 | [Mutex] waiting for: [received:nodes:b5e9ab05-b889-4060-a7ec-2eb7c39b92e5:localhost]

2023-08-25 22:31:57 | [Mutex] waiting for: [received:nodes:b5e9ab05-b889-4060-a7ec-2eb7c39b92e5:localhost]

2023-08-25 22:31:57 | [Mutex] waiting for: [received:nodes:b5e9ab05-b889-4060-a7ec-2eb7c39b92e5:localhost]

2023-08-25 22:31:57 | [Mutex] waiting for: [received:nodes:b5e9ab05-b889-4060-a7ec-2eb7c39b92e5:localhost]

2023-08-25 22:31:57 | [Mutex] received everything.

2023-08-25 22:31:57 | [Mutex] isItemNotified: received:node:b5e9ab05-b889-4060-a7ec-2eb7c39b92e5:localhost:node-3a0d8d20-affc-498b-a9d8-10ab785f18b1:Node 3a0d8d20-affc-498b-a9d8-10ab785f18b1 :: false

2023-08-25 22:31:57 | [Mutex] waiting for: [received:nodes:5a170d7e-001f-4dd1-9ac6-684a1309efa6:localhost]

2023-08-25 22:31:57 | [Mutex] received everything.

2023-08-25 22:31:57 | [Mutex] isItemNotified: received:node:5a170d7e-001f-4dd1-9ac6-684a1309efa6:localhost:node-3a0d8d20-affc-498b-a9d8-10ab785f18b1:Node 3a0d8d20-affc-498b-a9d8-10ab785f18b1 :: false

publishItemsToNodes 0.033s
2023-08-25 22:31:54 |

2023-08-25 22:31:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:54 | ------------------------------------

2023-08-25 22:31:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3a0d8d20-affc-498b-a9d8-10ab785f18b1",
    "entry": "<test>item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b</test>",
    "item-id": "item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b"
}

2023-08-25 22:31:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b"
}

2023-08-25 22:31:54 | [Mutex] waiting for: [published:item:notifieditem-f2a3694b-08d0-4a6f-aa03-635726e3cc6b:admin@test-domain.com]

2023-08-25 22:31:54 | [Mutex] received everything.

2023-08-25 22:31:54 | [Mutex] isItemNotified: published:item:notifieditem-f2a3694b-08d0-4a6f-aa03-635726e3cc6b:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-08-25 22:31:55 |

2023-08-25 22:31:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:55 | ------------------------------------

2023-08-25 22:31:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3a0d8d20-affc-498b-a9d8-10ab785f18b1",
    "item-id": "item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b"
}

2023-08-25 22:31:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b"
}

2023-08-25 22:31:55 | [Mutex] received everything.

2023-08-25 22:31:55 | [Mutex] isItemNotified: retracted:item:notifieditem-f2a3694b-08d0-4a6f-aa03-635726e3cc6b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2023-08-25 22:31:54 |

2023-08-25 22:31:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:54 | ------------------------------------

2023-08-25 22:31:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3a0d8d20-affc-498b-a9d8-10ab785f18b1",
    "item-id": "item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b"
}

2023-08-25 22:31:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3a0d8d20-affc-498b-a9d8-10ab785f18b1",
    "item-id": "item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b",
    "item": [
        "<item id=\"item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b\"><test>item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b</test></item>"
    ]
}

2023-08-25 22:31:54 | [Mutex] notify: [retrieved:item:item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b:payload-matches:true:localhost]

2023-08-25 22:31:54 | [Mutex] received everything.

2023-08-25 22:31:54 | [Mutex] isItemNotified: retrieved:item:item-f2a3694b-08d0-4a6f-aa03-635726e3cc6b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-08-25 22:31:54 |

2023-08-25 22:31:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:54 | ------------------------------------

2023-08-25 22:31:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-08-25 22:31:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3ab28c88-3628-4a27-ac2c-8c7f167c5c92",
        "node-3a0d8d20-affc-498b-a9d8-10ab785f18b1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-08-25 22:31:54 |

2023-08-25 22:31:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:54 | ------------------------------------

2023-08-25 22:31:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3a0d8d20-affc-498b-a9d8-10ab785f18b1)"
}

2023-08-25 22:31:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-08-25 22:31:53 |

2023-08-25 22:31:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:53 | ------------------------------------

2023-08-25 22:31:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3a0d8d20-affc-498b-a9d8-10ab785f18b1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 22:31:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2023-08-25 22:31:55 |

2023-08-25 22:31:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:31:55 | ------------------------------------

2023-08-25 22:31:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3a0d8d20-affc-498b-a9d8-10ab785f18b1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 22:31:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}