Generated by TestNG with ReportNG at 22:46 PDT on Tuesday 20 June 2023
root@cc7d7fbb25f7 / Java 17.0.6 (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.671s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2023-06-20 23:01:03 |

2023-06-20 23:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:03 | ------------------------------------

2023-06-20 23:01:03 | [Mutex] waiting for: [configured:node:node-872133f0-3a2e-4dde-a210-ec63866479c8:node-c7790d02-679e-4a19-8043-4d9cb87e589e]

2023-06-20 23:01:04 | [Mutex] received everything.

2023-06-20 23:01:04 | [Mutex] isItemNotified: configured:node:node-872133f0-3a2e-4dde-a210-ec63866479c8:node-c7790d02-679e-4a19-8043-4d9cb87e589e :: true

2023-06-20 23:01:05 | [Mutex] waiting for: [received:nodes:b2506666-513f-4874-917a-4a009342e1f0:localhost]

2023-06-20 23:01:05 | [Mutex] received everything.

2023-06-20 23:01:05 | [Mutex] isItemNotified: received:node:b2506666-513f-4874-917a-4a009342e1f0:localhost:node-872133f0-3a2e-4dde-a210-ec63866479c8:Node 872133f0-3a2e-4dde-a210-ec63866479c8 :: true

2023-06-20 23:01:05 | [Mutex] waiting for: [received:nodes:060d6c84-b605-4664-bbd7-5670e9928d47:localhost]

2023-06-20 23:01:05 | [Mutex] waiting for: [received:nodes:060d6c84-b605-4664-bbd7-5670e9928d47:localhost]

2023-06-20 23:01:05 | [Mutex] waiting for: [received:nodes:060d6c84-b605-4664-bbd7-5670e9928d47:localhost]

2023-06-20 23:01:05 | [Mutex] waiting for: [received:nodes:060d6c84-b605-4664-bbd7-5670e9928d47:localhost]

2023-06-20 23:01:05 | [Mutex] received everything.

2023-06-20 23:01:05 | [Mutex] isItemNotified: received:node:060d6c84-b605-4664-bbd7-5670e9928d47:localhost:node-872133f0-3a2e-4dde-a210-ec63866479c8:Node 872133f0-3a2e-4dde-a210-ec63866479c8 :: false

createNodes 1.679s
2023-06-20 23:01:01 |

2023-06-20 23:01:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:01 | ------------------------------------

2023-06-20 23:01:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-872133f0-3a2e-4dde-a210-ec63866479c8",
    "pubsub#title": "Node 872133f0-3a2e-4dde-a210-ec63866479c8"
}

2023-06-20 23:01:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 23:01:02 | [Mutex] waiting for: [received:nodes:b57e865f-ef63-469d-9ce4-d58d8081c849:localhost]

2023-06-20 23:01:02 | [Mutex] waiting for: [received:nodes:b57e865f-ef63-469d-9ce4-d58d8081c849:localhost]

2023-06-20 23:01:02 | [Mutex] waiting for: [received:nodes:b57e865f-ef63-469d-9ce4-d58d8081c849:localhost]

2023-06-20 23:01:02 | [Mutex] waiting for: [received:nodes:b57e865f-ef63-469d-9ce4-d58d8081c849:localhost]

2023-06-20 23:01:02 | [Mutex] received everything.

2023-06-20 23:01:02 | [Mutex] isItemNotified: received:node:b57e865f-ef63-469d-9ce4-d58d8081c849:localhost:node-872133f0-3a2e-4dde-a210-ec63866479c8:Node 872133f0-3a2e-4dde-a210-ec63866479c8 :: true

createSubnodes 1.021s
2023-06-20 23:01:02 |

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

2023-06-20 23:01:02 | ------------------------------------

2023-06-20 23:01:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c7790d02-679e-4a19-8043-4d9cb87e589e",
    "pubsub#title": "Node c7790d02-679e-4a19-8043-4d9cb87e589e"
}

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

2023-06-20 23:01:03 | [Mutex] waiting for: [received:nodes:710376d9-fe15-4b1c-88be-2f2e4e1f571d:localhost]

2023-06-20 23:01:03 | [Mutex] waiting for: [received:nodes:710376d9-fe15-4b1c-88be-2f2e4e1f571d:localhost]

2023-06-20 23:01:03 | [Mutex] waiting for: [received:nodes:710376d9-fe15-4b1c-88be-2f2e4e1f571d:localhost]

2023-06-20 23:01:03 | [Mutex] received everything.

2023-06-20 23:01:03 | [Mutex] isItemNotified: received:node:710376d9-fe15-4b1c-88be-2f2e4e1f571d:localhost:node-c7790d02-679e-4a19-8043-4d9cb87e589e:Node c7790d02-679e-4a19-8043-4d9cb87e589e :: true

deleteNodes 1.016s
2023-06-20 23:01:08 |

2023-06-20 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:08 | ------------------------------------

2023-06-20 23:01:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c7790d02-679e-4a19-8043-4d9cb87e589e"
}

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

2023-06-20 23:01:09 | [Mutex] waiting for: [received:nodes:a4cbd5e9-7c77-4cf5-a32b-d55f4d8bb58a:localhost]

2023-06-20 23:01:09 | [Mutex] waiting for: [received:nodes:a4cbd5e9-7c77-4cf5-a32b-d55f4d8bb58a:localhost]

2023-06-20 23:01:09 | [Mutex] received everything.

2023-06-20 23:01:09 | [Mutex] isItemNotified: received:node:a4cbd5e9-7c77-4cf5-a32b-d55f4d8bb58a:localhost:node-c7790d02-679e-4a19-8043-4d9cb87e589e:Node c7790d02-679e-4a19-8043-4d9cb87e589e :: false

deleteSubnodes 1.022s
2023-06-20 23:01:07 |

2023-06-20 23:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:07 | ------------------------------------

2023-06-20 23:01:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-872133f0-3a2e-4dde-a210-ec63866479c8"
}

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

2023-06-20 23:01:08 | [Mutex] waiting for: [received:nodes:bf5c60bc-1c86-43a2-a387-20a0d705518b:localhost]

2023-06-20 23:01:08 | [Mutex] waiting for: [received:nodes:bf5c60bc-1c86-43a2-a387-20a0d705518b:localhost]

2023-06-20 23:01:08 | [Mutex] waiting for: [received:nodes:bf5c60bc-1c86-43a2-a387-20a0d705518b:localhost]

2023-06-20 23:01:08 | [Mutex] waiting for: [received:nodes:bf5c60bc-1c86-43a2-a387-20a0d705518b:localhost]

2023-06-20 23:01:08 | [Mutex] received everything.

2023-06-20 23:01:08 | [Mutex] isItemNotified: received:node:bf5c60bc-1c86-43a2-a387-20a0d705518b:localhost:node-872133f0-3a2e-4dde-a210-ec63866479c8:Node 872133f0-3a2e-4dde-a210-ec63866479c8 :: false

2023-06-20 23:01:08 | [Mutex] waiting for: [received:nodes:a36a6a10-d49e-4a18-af80-59728ac9203a:localhost]

2023-06-20 23:01:08 | [Mutex] received everything.

2023-06-20 23:01:08 | [Mutex] isItemNotified: received:node:a36a6a10-d49e-4a18-af80-59728ac9203a:localhost:node-872133f0-3a2e-4dde-a210-ec63866479c8:Node 872133f0-3a2e-4dde-a210-ec63866479c8 :: false

publishItemsToNodes 0.033s
2023-06-20 23:01:06 |

2023-06-20 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:06 | ------------------------------------

2023-06-20 23:01:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-872133f0-3a2e-4dde-a210-ec63866479c8",
    "entry": "<test>item-89f73bd6-dbee-4450-9784-9a3470b998a7</test>",
    "item-id": "item-89f73bd6-dbee-4450-9784-9a3470b998a7"
}

2023-06-20 23:01:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89f73bd6-dbee-4450-9784-9a3470b998a7"
}

2023-06-20 23:01:06 | [Mutex] waiting for: [published:item:notifieditem-89f73bd6-dbee-4450-9784-9a3470b998a7:admin@test-domain.com]

2023-06-20 23:01:06 | [Mutex] received everything.

2023-06-20 23:01:06 | [Mutex] isItemNotified: published:item:notifieditem-89f73bd6-dbee-4450-9784-9a3470b998a7:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2023-06-20 23:01:06 |

2023-06-20 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:06 | ------------------------------------

2023-06-20 23:01:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-872133f0-3a2e-4dde-a210-ec63866479c8",
    "item-id": "item-89f73bd6-dbee-4450-9784-9a3470b998a7"
}

2023-06-20 23:01:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89f73bd6-dbee-4450-9784-9a3470b998a7"
}

2023-06-20 23:01:06 | [Mutex] waiting for: [retracted:item:notifieditem-89f73bd6-dbee-4450-9784-9a3470b998a7:admin@test-domain.com]

2023-06-20 23:01:06 | [Mutex] received everything.

2023-06-20 23:01:06 | [Mutex] isItemNotified: retracted:item:notifieditem-89f73bd6-dbee-4450-9784-9a3470b998a7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.079s
2023-06-20 23:01:06 |

2023-06-20 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:06 | ------------------------------------

2023-06-20 23:01:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-872133f0-3a2e-4dde-a210-ec63866479c8",
    "item-id": "item-89f73bd6-dbee-4450-9784-9a3470b998a7"
}

2023-06-20 23:01:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-872133f0-3a2e-4dde-a210-ec63866479c8",
    "item-id": "item-89f73bd6-dbee-4450-9784-9a3470b998a7",
    "item": [
        "<item id=\"item-89f73bd6-dbee-4450-9784-9a3470b998a7\"><test>item-89f73bd6-dbee-4450-9784-9a3470b998a7</test></item>"
    ]
}

2023-06-20 23:01:06 | [Mutex] notify: [retrieved:item:item-89f73bd6-dbee-4450-9784-9a3470b998a7:payload-matches:true:localhost]

2023-06-20 23:01:06 | [Mutex] received everything.

2023-06-20 23:01:06 | [Mutex] isItemNotified: retrieved:item:item-89f73bd6-dbee-4450-9784-9a3470b998a7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2023-06-20 23:01:06 |

2023-06-20 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:06 | ------------------------------------

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

2023-06-20 23:01:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c7790d02-679e-4a19-8043-4d9cb87e589e",
        "node-872133f0-3a2e-4dde-a210-ec63866479c8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-06-20 23:01:06 |

2023-06-20 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:06 | ------------------------------------

2023-06-20 23:01:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-872133f0-3a2e-4dde-a210-ec63866479c8)"
}

2023-06-20 23:01:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2023-06-20 23:01:05 |

2023-06-20 23:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:05 | ------------------------------------

2023-06-20 23:01:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-872133f0-3a2e-4dde-a210-ec63866479c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-06-20 23:01:05 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2023-06-20 23:01:06 |

2023-06-20 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 23:01:06 | ------------------------------------

2023-06-20 23:01:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-872133f0-3a2e-4dde-a210-ec63866479c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-06-20 23:01:06 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}