Generated by TestNG with ReportNG at 22:22 PDT on Monday 05 September 2022
root@f9c07ffec79b / 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.575s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2022-09-05 22:36:42 |

2022-09-05 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:42 | ------------------------------------

2022-09-05 22:36:42 | [Mutex] waiting for: [configured:node:node-e2f31ecf-bc39-43c1-9578-12b8a0340017:node-30568aad-6912-4475-afe2-b78aaecc598b]

2022-09-05 22:36:42 | [Mutex] received everything.

2022-09-05 22:36:42 | [Mutex] isItemNotified: configured:node:node-e2f31ecf-bc39-43c1-9578-12b8a0340017:node-30568aad-6912-4475-afe2-b78aaecc598b :: true

2022-09-05 22:36:43 | [Mutex] waiting for: [received:nodes:45ea307a-0ce1-451c-9607-4cd4255aff2f:localhost]

2022-09-05 22:36:43 | [Mutex] received everything.

2022-09-05 22:36:43 | [Mutex] isItemNotified: received:node:45ea307a-0ce1-451c-9607-4cd4255aff2f:localhost:node-e2f31ecf-bc39-43c1-9578-12b8a0340017:Node e2f31ecf-bc39-43c1-9578-12b8a0340017 :: true

2022-09-05 22:36:43 | [Mutex] waiting for: [received:nodes:2991fafb-47e2-451d-8295-244554048eda:localhost]

2022-09-05 22:36:43 | [Mutex] waiting for: [received:nodes:2991fafb-47e2-451d-8295-244554048eda:localhost]

2022-09-05 22:36:43 | [Mutex] waiting for: [received:nodes:2991fafb-47e2-451d-8295-244554048eda:localhost]

2022-09-05 22:36:43 | [Mutex] received everything.

2022-09-05 22:36:43 | [Mutex] isItemNotified: received:node:2991fafb-47e2-451d-8295-244554048eda:localhost:node-e2f31ecf-bc39-43c1-9578-12b8a0340017:Node e2f31ecf-bc39-43c1-9578-12b8a0340017 :: false

createNodes 1.561s
2022-09-05 22:36:40 |

2022-09-05 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:40 | ------------------------------------

2022-09-05 22:36:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e2f31ecf-bc39-43c1-9578-12b8a0340017",
    "pubsub#title": "Node e2f31ecf-bc39-43c1-9578-12b8a0340017"
}

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

2022-09-05 22:36:41 | [Mutex] waiting for: [received:nodes:5a384442-5a95-49c7-8e13-eae5cd99003c:localhost]

2022-09-05 22:36:41 | [Mutex] received everything.

2022-09-05 22:36:41 | [Mutex] isItemNotified: received:node:5a384442-5a95-49c7-8e13-eae5cd99003c:localhost:node-e2f31ecf-bc39-43c1-9578-12b8a0340017:Node e2f31ecf-bc39-43c1-9578-12b8a0340017 :: true

createSubnodes 1.022s
2022-09-05 22:36:41 |

2022-09-05 22:36:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:41 | ------------------------------------

2022-09-05 22:36:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-30568aad-6912-4475-afe2-b78aaecc598b",
    "pubsub#title": "Node 30568aad-6912-4475-afe2-b78aaecc598b"
}

2022-09-05 22:36:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-05 22:36:42 | [Mutex] waiting for: [received:nodes:89622d11-cb6f-4f17-b082-144b0a623df1:localhost]

2022-09-05 22:36:42 | [Mutex] received everything.

2022-09-05 22:36:42 | [Mutex] isItemNotified: received:node:89622d11-cb6f-4f17-b082-144b0a623df1:localhost:node-30568aad-6912-4475-afe2-b78aaecc598b:Node 30568aad-6912-4475-afe2-b78aaecc598b :: true

deleteNodes 1.018s
2022-09-05 22:36:47 |

2022-09-05 22:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:47 | ------------------------------------

2022-09-05 22:36:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-30568aad-6912-4475-afe2-b78aaecc598b"
}

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

2022-09-05 22:36:48 | [Mutex] waiting for: [received:nodes:2f54d1c5-2a46-4771-97ad-c80f13ffa667:localhost]

2022-09-05 22:36:48 | [Mutex] received everything.

2022-09-05 22:36:48 | [Mutex] isItemNotified: received:node:2f54d1c5-2a46-4771-97ad-c80f13ffa667:localhost:node-30568aad-6912-4475-afe2-b78aaecc598b:Node 30568aad-6912-4475-afe2-b78aaecc598b :: false

deleteSubnodes 1.032s
2022-09-05 22:36:46 |

2022-09-05 22:36:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:46 | ------------------------------------

2022-09-05 22:36:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e2f31ecf-bc39-43c1-9578-12b8a0340017"
}

2022-09-05 22:36:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-05 22:36:47 | [Mutex] waiting for: [received:nodes:a829970b-04bc-44cf-9ded-560fcac0ec9a:localhost]

2022-09-05 22:36:47 | [Mutex] received everything.

2022-09-05 22:36:47 | [Mutex] isItemNotified: received:node:a829970b-04bc-44cf-9ded-560fcac0ec9a:localhost:node-e2f31ecf-bc39-43c1-9578-12b8a0340017:Node e2f31ecf-bc39-43c1-9578-12b8a0340017 :: false

2022-09-05 22:36:47 | [Mutex] waiting for: [received:nodes:8581ef65-3bd2-4805-9249-9de5ab27c01c:localhost]

2022-09-05 22:36:47 | [Mutex] received everything.

2022-09-05 22:36:47 | [Mutex] isItemNotified: received:node:8581ef65-3bd2-4805-9249-9de5ab27c01c:localhost:node-e2f31ecf-bc39-43c1-9578-12b8a0340017:Node e2f31ecf-bc39-43c1-9578-12b8a0340017 :: false

publishItemsToNodes 0.056s
2022-09-05 22:36:44 |

2022-09-05 22:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:44 | ------------------------------------

2022-09-05 22:36:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e2f31ecf-bc39-43c1-9578-12b8a0340017",
    "entry": "<test>item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783</test>",
    "item-id": "item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783"
}

2022-09-05 22:36:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783"
}

2022-09-05 22:36:44 | [Mutex] received everything.

2022-09-05 22:36:44 | [Mutex] isItemNotified: published:item:notifieditem-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-09-05 22:36:45 |

2022-09-05 22:36:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:45 | ------------------------------------

2022-09-05 22:36:45 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e2f31ecf-bc39-43c1-9578-12b8a0340017",
    "item-id": "item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783"
}

2022-09-05 22:36:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783"
}

2022-09-05 22:36:45 | [Mutex] waiting for: [retracted:item:notifieditem-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783:admin@test-domain.com]

2022-09-05 22:36:45 | [Mutex] received everything.

2022-09-05 22:36:45 | [Mutex] isItemNotified: retracted:item:notifieditem-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2022-09-05 22:36:44 |

2022-09-05 22:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:44 | ------------------------------------

2022-09-05 22:36:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e2f31ecf-bc39-43c1-9578-12b8a0340017",
    "item-id": "item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783"
}

2022-09-05 22:36:45 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e2f31ecf-bc39-43c1-9578-12b8a0340017",
    "item-id": "item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783",
    "item": [
        "<item id=\"item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783\"><test>item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783</test></item>"
    ]
}

2022-09-05 22:36:45 | [Mutex] notify: [retrieved:item:item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783:payload-matches:true:localhost]

2022-09-05 22:36:45 | [Mutex] received everything.

2022-09-05 22:36:45 | [Mutex] isItemNotified: retrieved:item:item-72ec573b-209d-4cf9-ae0d-a8e8e9c0b783:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-09-05 22:36:45 |

2022-09-05 22:36:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:45 | ------------------------------------

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

2022-09-05 22:36:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e2f31ecf-bc39-43c1-9578-12b8a0340017",
        "node-30568aad-6912-4475-afe2-b78aaecc598b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-09-05 22:36:45 |

2022-09-05 22:36:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:45 | ------------------------------------

2022-09-05 22:36:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e2f31ecf-bc39-43c1-9578-12b8a0340017)"
}

2022-09-05 22:36:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-09-05 22:36:43 |

2022-09-05 22:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:43 | ------------------------------------

2022-09-05 22:36:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e2f31ecf-bc39-43c1-9578-12b8a0340017",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-05 22:36:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2022-09-05 22:36:45 |

2022-09-05 22:36:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:36:45 | ------------------------------------

2022-09-05 22:36:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e2f31ecf-bc39-43c1-9578-12b8a0340017",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-05 22:36:45 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}