Generated by TestNG with ReportNG at 22:45 PDT on Thursday 28 September 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.807s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.162s
2023-09-28 23:00:01 |

2023-09-28 23:00:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:01 | ------------------------------------

2023-09-28 23:00:01 | [Mutex] waiting for: [configured:node:node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b:node-90c7d9a9-d889-45c8-97ca-66f619ad401e]

2023-09-28 23:00:01 | [Mutex] received everything.

2023-09-28 23:00:01 | [Mutex] isItemNotified: configured:node:node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b:node-90c7d9a9-d889-45c8-97ca-66f619ad401e :: true

2023-09-28 23:00:02 | [Mutex] waiting for: [received:nodes:08ec3574-6426-455a-816d-ae9a98cd69a2:localhost]

2023-09-28 23:00:02 | [Mutex] received everything.

2023-09-28 23:00:02 | [Mutex] isItemNotified: received:node:08ec3574-6426-455a-816d-ae9a98cd69a2:localhost:node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b:Node 341e1bc1-7c7b-487b-bca7-5d17c6acd98b :: true

2023-09-28 23:00:02 | [Mutex] waiting for: [received:nodes:5018d6d5-436e-4a0f-b371-58d374645004:localhost]

2023-09-28 23:00:02 | [Mutex] received everything.

2023-09-28 23:00:02 | [Mutex] isItemNotified: received:node:5018d6d5-436e-4a0f-b371-58d374645004:localhost:node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b:Node 341e1bc1-7c7b-487b-bca7-5d17c6acd98b :: false

createNodes 1.640s
2023-09-28 22:59:59 |

2023-09-28 22:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 22:59:59 | ------------------------------------

2023-09-28 22:59:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b",
    "pubsub#title": "Node 341e1bc1-7c7b-487b-bca7-5d17c6acd98b"
}

2023-09-28 22:59:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-09-28 23:00:00 | [Mutex] waiting for: [received:nodes:c0950b09-7155-4053-98f9-a684ea54cd5d:localhost]

2023-09-28 23:00:00 | [Mutex] waiting for: [received:nodes:c0950b09-7155-4053-98f9-a684ea54cd5d:localhost]

2023-09-28 23:00:00 | [Mutex] waiting for: [received:nodes:c0950b09-7155-4053-98f9-a684ea54cd5d:localhost]

2023-09-28 23:00:00 | [Mutex] waiting for: [received:nodes:c0950b09-7155-4053-98f9-a684ea54cd5d:localhost]

2023-09-28 23:00:00 | [Mutex] received everything.

2023-09-28 23:00:00 | [Mutex] isItemNotified: received:node:c0950b09-7155-4053-98f9-a684ea54cd5d:localhost:node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b:Node 341e1bc1-7c7b-487b-bca7-5d17c6acd98b :: true

createSubnodes 1.028s
2023-09-28 23:00:00 |

2023-09-28 23:00:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:00 | ------------------------------------

2023-09-28 23:00:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-90c7d9a9-d889-45c8-97ca-66f619ad401e",
    "pubsub#title": "Node 90c7d9a9-d889-45c8-97ca-66f619ad401e"
}

2023-09-28 23:00:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-09-28 23:00:01 | [Mutex] waiting for: [received:nodes:0584e1be-bba3-41fb-b66b-9ed2a4256439:localhost]

2023-09-28 23:00:01 | [Mutex] waiting for: [received:nodes:0584e1be-bba3-41fb-b66b-9ed2a4256439:localhost]

2023-09-28 23:00:01 | [Mutex] waiting for: [received:nodes:0584e1be-bba3-41fb-b66b-9ed2a4256439:localhost]

2023-09-28 23:00:01 | [Mutex] waiting for: [received:nodes:0584e1be-bba3-41fb-b66b-9ed2a4256439:localhost]

2023-09-28 23:00:01 | [Mutex] waiting for: [received:nodes:0584e1be-bba3-41fb-b66b-9ed2a4256439:localhost]

2023-09-28 23:00:01 | [Mutex] received everything.

2023-09-28 23:00:01 | [Mutex] isItemNotified: received:node:0584e1be-bba3-41fb-b66b-9ed2a4256439:localhost:node-90c7d9a9-d889-45c8-97ca-66f619ad401e:Node 90c7d9a9-d889-45c8-97ca-66f619ad401e :: true

deleteNodes 1.025s
2023-09-28 23:00:06 |

2023-09-28 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:06 | ------------------------------------

2023-09-28 23:00:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-90c7d9a9-d889-45c8-97ca-66f619ad401e"
}

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

2023-09-28 23:00:07 | [Mutex] waiting for: [received:nodes:de84dfc5-6e07-4ad1-8cf2-8f7e6ccfd79c:localhost]

2023-09-28 23:00:07 | [Mutex] received everything.

2023-09-28 23:00:07 | [Mutex] isItemNotified: received:node:de84dfc5-6e07-4ad1-8cf2-8f7e6ccfd79c:localhost:node-90c7d9a9-d889-45c8-97ca-66f619ad401e:Node 90c7d9a9-d889-45c8-97ca-66f619ad401e :: false

deleteSubnodes 1.025s
2023-09-28 23:00:05 |

2023-09-28 23:00:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:05 | ------------------------------------

2023-09-28 23:00:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b"
}

2023-09-28 23:00:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-09-28 23:00:06 | [Mutex] waiting for: [received:nodes:7ebdc0a3-7c0e-4ca7-a517-a6c7cdefd2ee:localhost]

2023-09-28 23:00:06 | [Mutex] waiting for: [received:nodes:7ebdc0a3-7c0e-4ca7-a517-a6c7cdefd2ee:localhost]

2023-09-28 23:00:06 | [Mutex] waiting for: [received:nodes:7ebdc0a3-7c0e-4ca7-a517-a6c7cdefd2ee:localhost]

2023-09-28 23:00:06 | [Mutex] received everything.

2023-09-28 23:00:06 | [Mutex] isItemNotified: received:node:7ebdc0a3-7c0e-4ca7-a517-a6c7cdefd2ee:localhost:node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b:Node 341e1bc1-7c7b-487b-bca7-5d17c6acd98b :: false

2023-09-28 23:00:06 | [Mutex] waiting for: [received:nodes:1e59fe1d-a301-47a3-a96c-81d0a13068ef:localhost]

2023-09-28 23:00:06 | [Mutex] received everything.

2023-09-28 23:00:06 | [Mutex] isItemNotified: received:node:1e59fe1d-a301-47a3-a96c-81d0a13068ef:localhost:node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b:Node 341e1bc1-7c7b-487b-bca7-5d17c6acd98b :: false

publishItemsToNodes 0.033s
2023-09-28 23:00:03 |

2023-09-28 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:03 | ------------------------------------

2023-09-28 23:00:03 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b",
    "entry": "<test>item-3f6b8540-3174-4629-9bd5-e0a52432de7a</test>",
    "item-id": "item-3f6b8540-3174-4629-9bd5-e0a52432de7a"
}

2023-09-28 23:00:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3f6b8540-3174-4629-9bd5-e0a52432de7a"
}

2023-09-28 23:00:04 | [Mutex] waiting for: [published:item:notifieditem-3f6b8540-3174-4629-9bd5-e0a52432de7a:admin@test-domain.com]

2023-09-28 23:00:04 | [Mutex] received everything.

2023-09-28 23:00:04 | [Mutex] isItemNotified: published:item:notifieditem-3f6b8540-3174-4629-9bd5-e0a52432de7a:admin@test-domain.com :: true

retractItemsFromNodes 0.101s
2023-09-28 23:00:04 |

2023-09-28 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:04 | ------------------------------------

2023-09-28 23:00:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b",
    "item-id": "item-3f6b8540-3174-4629-9bd5-e0a52432de7a"
}

2023-09-28 23:00:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3f6b8540-3174-4629-9bd5-e0a52432de7a"
}

2023-09-28 23:00:04 | [Mutex] waiting for: [retracted:item:notifieditem-3f6b8540-3174-4629-9bd5-e0a52432de7a:admin@test-domain.com]

2023-09-28 23:00:04 | [Mutex] received everything.

2023-09-28 23:00:04 | [Mutex] isItemNotified: retracted:item:notifieditem-3f6b8540-3174-4629-9bd5-e0a52432de7a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.103s
2023-09-28 23:00:04 |

2023-09-28 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:04 | ------------------------------------

2023-09-28 23:00:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b",
    "item-id": "item-3f6b8540-3174-4629-9bd5-e0a52432de7a"
}

2023-09-28 23:00:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b",
    "item-id": "item-3f6b8540-3174-4629-9bd5-e0a52432de7a",
    "item": [
        "<item id=\"item-3f6b8540-3174-4629-9bd5-e0a52432de7a\"><test>item-3f6b8540-3174-4629-9bd5-e0a52432de7a</test></item>"
    ]
}

2023-09-28 23:00:04 | [Mutex] notify: [retrieved:item:item-3f6b8540-3174-4629-9bd5-e0a52432de7a:payload-matches:true:localhost]

2023-09-28 23:00:04 | [Mutex] received everything.

2023-09-28 23:00:04 | [Mutex] isItemNotified: retrieved:item:item-3f6b8540-3174-4629-9bd5-e0a52432de7a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2023-09-28 23:00:04 |

2023-09-28 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:04 | ------------------------------------

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

2023-09-28 23:00:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-90c7d9a9-d889-45c8-97ca-66f619ad401e",
        "node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-09-28 23:00:04 |

2023-09-28 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:04 | ------------------------------------

2023-09-28 23:00:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b)"
}

2023-09-28 23:00:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2023-09-28 23:00:02 |

2023-09-28 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:02 | ------------------------------------

2023-09-28 23:00:02 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.113s
2023-09-28 23:00:04 |

2023-09-28 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-28 23:00:04 | ------------------------------------

2023-09-28 23:00:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-341e1bc1-7c7b-487b-bca7-5d17c6acd98b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-09-28 23:00:04 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}