Generated by TestNG with ReportNG at 22:48 PDT on Tuesday 06 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.573s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.090s
2022-09-06 23:02:17 |

2022-09-06 23:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:17 | ------------------------------------

2022-09-06 23:02:17 | [Mutex] waiting for: [configured:node:node-20be74e9-428d-4b60-aed2-deed92ddd5bb:node-980fd81a-383f-43d9-9e5f-9cf6aa180a63]

2022-09-06 23:02:17 | [Mutex] received everything.

2022-09-06 23:02:17 | [Mutex] isItemNotified: configured:node:node-20be74e9-428d-4b60-aed2-deed92ddd5bb:node-980fd81a-383f-43d9-9e5f-9cf6aa180a63 :: true

2022-09-06 23:02:18 | [Mutex] waiting for: [received:nodes:4d198cd4-eef3-40fa-9ed7-6a8f86baf32a:localhost]

2022-09-06 23:02:18 | [Mutex] received everything.

2022-09-06 23:02:18 | [Mutex] isItemNotified: received:node:4d198cd4-eef3-40fa-9ed7-6a8f86baf32a:localhost:node-20be74e9-428d-4b60-aed2-deed92ddd5bb:Node 20be74e9-428d-4b60-aed2-deed92ddd5bb :: true

2022-09-06 23:02:18 | [Mutex] waiting for: [received:nodes:9bd306a7-efdf-4e3c-9c6b-676c24ccbf5e:localhost]

2022-09-06 23:02:18 | [Mutex] received everything.

2022-09-06 23:02:18 | [Mutex] isItemNotified: received:node:9bd306a7-efdf-4e3c-9c6b-676c24ccbf5e:localhost:node-20be74e9-428d-4b60-aed2-deed92ddd5bb:Node 20be74e9-428d-4b60-aed2-deed92ddd5bb :: false

createNodes 1.536s
2022-09-06 23:02:14 |

2022-09-06 23:02:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:14 | ------------------------------------

2022-09-06 23:02:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-20be74e9-428d-4b60-aed2-deed92ddd5bb",
    "pubsub#title": "Node 20be74e9-428d-4b60-aed2-deed92ddd5bb"
}

2022-09-06 23:02:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-06 23:02:15 | [Mutex] waiting for: [received:nodes:cee5120d-71a7-44f8-9463-d68de76820de:localhost]

2022-09-06 23:02:15 | [Mutex] waiting for: [received:nodes:cee5120d-71a7-44f8-9463-d68de76820de:localhost]

2022-09-06 23:02:15 | [Mutex] waiting for: [received:nodes:cee5120d-71a7-44f8-9463-d68de76820de:localhost]

2022-09-06 23:02:15 | [Mutex] received everything.

2022-09-06 23:02:15 | [Mutex] isItemNotified: received:node:cee5120d-71a7-44f8-9463-d68de76820de:localhost:node-20be74e9-428d-4b60-aed2-deed92ddd5bb:Node 20be74e9-428d-4b60-aed2-deed92ddd5bb :: true

createSubnodes 1.025s
2022-09-06 23:02:15 |

2022-09-06 23:02:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:15 | ------------------------------------

2022-09-06 23:02:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-980fd81a-383f-43d9-9e5f-9cf6aa180a63",
    "pubsub#title": "Node 980fd81a-383f-43d9-9e5f-9cf6aa180a63"
}

2022-09-06 23:02:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-06 23:02:17 | [Mutex] waiting for: [received:nodes:5745245e-d853-47cb-8c6a-56e69d1c7016:localhost]

2022-09-06 23:02:17 | [Mutex] received everything.

2022-09-06 23:02:17 | [Mutex] isItemNotified: received:node:5745245e-d853-47cb-8c6a-56e69d1c7016:localhost:node-980fd81a-383f-43d9-9e5f-9cf6aa180a63:Node 980fd81a-383f-43d9-9e5f-9cf6aa180a63 :: true

deleteNodes 1.017s
2022-09-06 23:02:21 |

2022-09-06 23:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:21 | ------------------------------------

2022-09-06 23:02:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-980fd81a-383f-43d9-9e5f-9cf6aa180a63"
}

2022-09-06 23:02:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-06 23:02:22 | [Mutex] waiting for: [received:nodes:5660d95e-e81c-4a9c-96d4-8da022c65245:localhost]

2022-09-06 23:02:22 | [Mutex] received everything.

2022-09-06 23:02:22 | [Mutex] isItemNotified: received:node:5660d95e-e81c-4a9c-96d4-8da022c65245:localhost:node-980fd81a-383f-43d9-9e5f-9cf6aa180a63:Node 980fd81a-383f-43d9-9e5f-9cf6aa180a63 :: false

deleteSubnodes 1.030s
2022-09-06 23:02:20 |

2022-09-06 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:20 | ------------------------------------

2022-09-06 23:02:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20be74e9-428d-4b60-aed2-deed92ddd5bb"
}

2022-09-06 23:02:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-06 23:02:21 | [Mutex] waiting for: [received:nodes:96e3c60a-17fa-44e0-89a4-4e006067b337:localhost]

2022-09-06 23:02:21 | [Mutex] received everything.

2022-09-06 23:02:21 | [Mutex] isItemNotified: received:node:96e3c60a-17fa-44e0-89a4-4e006067b337:localhost:node-20be74e9-428d-4b60-aed2-deed92ddd5bb:Node 20be74e9-428d-4b60-aed2-deed92ddd5bb :: false

2022-09-06 23:02:21 | [Mutex] waiting for: [received:nodes:ca526cd3-cffa-433c-8a8f-44ca5b3781c8:localhost]

2022-09-06 23:02:21 | [Mutex] received everything.

2022-09-06 23:02:21 | [Mutex] isItemNotified: received:node:ca526cd3-cffa-433c-8a8f-44ca5b3781c8:localhost:node-20be74e9-428d-4b60-aed2-deed92ddd5bb:Node 20be74e9-428d-4b60-aed2-deed92ddd5bb :: false

publishItemsToNodes 0.058s
2022-09-06 23:02:19 |

2022-09-06 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:19 | ------------------------------------

2022-09-06 23:02:19 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-20be74e9-428d-4b60-aed2-deed92ddd5bb",
    "entry": "<test>item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1</test>",
    "item-id": "item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1"
}

2022-09-06 23:02:19 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1"
}

2022-09-06 23:02:19 | [Mutex] waiting for: [published:item:notifieditem-2c75d4b4-f540-4b34-a3c7-911bc5662fd1:admin@test-domain.com]

2022-09-06 23:02:19 | [Mutex] received everything.

2022-09-06 23:02:19 | [Mutex] isItemNotified: published:item:notifieditem-2c75d4b4-f540-4b34-a3c7-911bc5662fd1:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2022-09-06 23:02:19 |

2022-09-06 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:19 | ------------------------------------

2022-09-06 23:02:19 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-20be74e9-428d-4b60-aed2-deed92ddd5bb",
    "item-id": "item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1"
}

2022-09-06 23:02:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1"
}

2022-09-06 23:02:19 | [Mutex] received everything.

2022-09-06 23:02:19 | [Mutex] isItemNotified: retracted:item:notifieditem-2c75d4b4-f540-4b34-a3c7-911bc5662fd1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2022-09-06 23:02:19 |

2022-09-06 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:19 | ------------------------------------

2022-09-06 23:02:19 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-20be74e9-428d-4b60-aed2-deed92ddd5bb",
    "item-id": "item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1"
}

2022-09-06 23:02:19 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-20be74e9-428d-4b60-aed2-deed92ddd5bb",
    "item-id": "item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1",
    "item": [
        "<item id=\"item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1\"><test>item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1</test></item>"
    ]
}

2022-09-06 23:02:19 | [Mutex] notify: [retrieved:item:item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1:payload-matches:true:localhost]

2022-09-06 23:02:19 | [Mutex] received everything.

2022-09-06 23:02:19 | [Mutex] isItemNotified: retrieved:item:item-2c75d4b4-f540-4b34-a3c7-911bc5662fd1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-09-06 23:02:19 |

2022-09-06 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:19 | ------------------------------------

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

2022-09-06 23:02:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-20be74e9-428d-4b60-aed2-deed92ddd5bb",
        "test",
        "node-980fd81a-383f-43d9-9e5f-9cf6aa180a63"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-06 23:02:19 |

2022-09-06 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:19 | ------------------------------------

2022-09-06 23:02:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-20be74e9-428d-4b60-aed2-deed92ddd5bb)"
}

2022-09-06 23:02:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-09-06 23:02:18 |

2022-09-06 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:18 | ------------------------------------

2022-09-06 23:02:18 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-20be74e9-428d-4b60-aed2-deed92ddd5bb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-06 23:02:18 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2022-09-06 23:02:19 |

2022-09-06 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 23:02:19 | ------------------------------------

2022-09-06 23:02:19 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-20be74e9-428d-4b60-aed2-deed92ddd5bb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-06 23:02:19 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}