Generated by TestNG with ReportNG at 21:49 PST on Monday 16 January 2023
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.607s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2023-01-16 22:05:14 |

2023-01-16 22:05:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:14 | ------------------------------------

2023-01-16 22:05:14 | [Mutex] waiting for: [configured:node:node-f8d91e8e-c084-48df-b009-6e84a143898b:node-d9578321-c946-4207-b2f1-ff24ba0130ad]

2023-01-16 22:05:15 | [Mutex] received everything.

2023-01-16 22:05:15 | [Mutex] isItemNotified: configured:node:node-f8d91e8e-c084-48df-b009-6e84a143898b:node-d9578321-c946-4207-b2f1-ff24ba0130ad :: true

2023-01-16 22:05:16 | [Mutex] waiting for: [received:nodes:ec73e167-1418-43ae-add0-4b4ab3200de2:localhost]

2023-01-16 22:05:16 | [Mutex] received everything.

2023-01-16 22:05:16 | [Mutex] isItemNotified: received:node:ec73e167-1418-43ae-add0-4b4ab3200de2:localhost:node-f8d91e8e-c084-48df-b009-6e84a143898b:Node f8d91e8e-c084-48df-b009-6e84a143898b :: true

2023-01-16 22:05:16 | [Mutex] waiting for: [received:nodes:70e21db9-06da-406b-8df4-129fd7d34e24:localhost]

2023-01-16 22:05:16 | [Mutex] waiting for: [received:nodes:70e21db9-06da-406b-8df4-129fd7d34e24:localhost]

2023-01-16 22:05:16 | [Mutex] received everything.

2023-01-16 22:05:16 | [Mutex] isItemNotified: received:node:70e21db9-06da-406b-8df4-129fd7d34e24:localhost:node-f8d91e8e-c084-48df-b009-6e84a143898b:Node f8d91e8e-c084-48df-b009-6e84a143898b :: false

createNodes 1.628s
2023-01-16 22:05:12 |

2023-01-16 22:05:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:12 | ------------------------------------

2023-01-16 22:05:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f8d91e8e-c084-48df-b009-6e84a143898b",
    "pubsub#title": "Node f8d91e8e-c084-48df-b009-6e84a143898b"
}

2023-01-16 22:05:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 22:05:13 | [Mutex] waiting for: [received:nodes:2a1bdea2-0043-4e91-83d5-c67c2ee76f04:localhost]

2023-01-16 22:05:13 | [Mutex] waiting for: [received:nodes:2a1bdea2-0043-4e91-83d5-c67c2ee76f04:localhost]

2023-01-16 22:05:13 | [Mutex] waiting for: [received:nodes:2a1bdea2-0043-4e91-83d5-c67c2ee76f04:localhost]

2023-01-16 22:05:13 | [Mutex] received everything.

2023-01-16 22:05:13 | [Mutex] isItemNotified: received:node:2a1bdea2-0043-4e91-83d5-c67c2ee76f04:localhost:node-f8d91e8e-c084-48df-b009-6e84a143898b:Node f8d91e8e-c084-48df-b009-6e84a143898b :: true

createSubnodes 1.026s
2023-01-16 22:05:13 |

2023-01-16 22:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:13 | ------------------------------------

2023-01-16 22:05:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d9578321-c946-4207-b2f1-ff24ba0130ad",
    "pubsub#title": "Node d9578321-c946-4207-b2f1-ff24ba0130ad"
}

2023-01-16 22:05:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 22:05:14 | [Mutex] waiting for: [received:nodes:2801371c-7490-4ed9-a030-9b543b097c81:localhost]

2023-01-16 22:05:14 | [Mutex] waiting for: [received:nodes:2801371c-7490-4ed9-a030-9b543b097c81:localhost]

2023-01-16 22:05:14 | [Mutex] waiting for: [received:nodes:2801371c-7490-4ed9-a030-9b543b097c81:localhost]

2023-01-16 22:05:14 | [Mutex] waiting for: [received:nodes:2801371c-7490-4ed9-a030-9b543b097c81:localhost]

2023-01-16 22:05:14 | [Mutex] received everything.

2023-01-16 22:05:14 | [Mutex] isItemNotified: received:node:2801371c-7490-4ed9-a030-9b543b097c81:localhost:node-d9578321-c946-4207-b2f1-ff24ba0130ad:Node d9578321-c946-4207-b2f1-ff24ba0130ad :: true

deleteNodes 1.017s
2023-01-16 22:05:19 |

2023-01-16 22:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:19 | ------------------------------------

2023-01-16 22:05:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d9578321-c946-4207-b2f1-ff24ba0130ad"
}

2023-01-16 22:05:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 22:05:20 | [Mutex] waiting for: [received:nodes:c4550c6d-01ad-406d-a558-ff365098a4b4:localhost]

2023-01-16 22:05:20 | [Mutex] waiting for: [received:nodes:c4550c6d-01ad-406d-a558-ff365098a4b4:localhost]

2023-01-16 22:05:20 | [Mutex] received everything.

2023-01-16 22:05:20 | [Mutex] isItemNotified: received:node:c4550c6d-01ad-406d-a558-ff365098a4b4:localhost:node-d9578321-c946-4207-b2f1-ff24ba0130ad:Node d9578321-c946-4207-b2f1-ff24ba0130ad :: false

deleteSubnodes 1.024s
2023-01-16 22:05:18 |

2023-01-16 22:05:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:18 | ------------------------------------

2023-01-16 22:05:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f8d91e8e-c084-48df-b009-6e84a143898b"
}

2023-01-16 22:05:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 22:05:19 | [Mutex] waiting for: [received:nodes:ec3eb1cd-32d4-4c87-b81e-163092dee2b5:localhost]

2023-01-16 22:05:19 | [Mutex] waiting for: [received:nodes:ec3eb1cd-32d4-4c87-b81e-163092dee2b5:localhost]

2023-01-16 22:05:19 | [Mutex] waiting for: [received:nodes:ec3eb1cd-32d4-4c87-b81e-163092dee2b5:localhost]

2023-01-16 22:05:19 | [Mutex] waiting for: [received:nodes:ec3eb1cd-32d4-4c87-b81e-163092dee2b5:localhost]

2023-01-16 22:05:19 | [Mutex] received everything.

2023-01-16 22:05:19 | [Mutex] isItemNotified: received:node:ec3eb1cd-32d4-4c87-b81e-163092dee2b5:localhost:node-f8d91e8e-c084-48df-b009-6e84a143898b:Node f8d91e8e-c084-48df-b009-6e84a143898b :: false

2023-01-16 22:05:19 | [Mutex] waiting for: [received:nodes:00c19e75-6116-42de-be96-3221563501b3:localhost]

2023-01-16 22:05:19 | [Mutex] received everything.

2023-01-16 22:05:19 | [Mutex] isItemNotified: received:node:00c19e75-6116-42de-be96-3221563501b3:localhost:node-f8d91e8e-c084-48df-b009-6e84a143898b:Node f8d91e8e-c084-48df-b009-6e84a143898b :: false

publishItemsToNodes 0.037s
2023-01-16 22:05:17 |

2023-01-16 22:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:17 | ------------------------------------

2023-01-16 22:05:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f8d91e8e-c084-48df-b009-6e84a143898b",
    "entry": "<test>item-75024dcc-6246-496c-ba3b-ee179af5842d</test>",
    "item-id": "item-75024dcc-6246-496c-ba3b-ee179af5842d"
}

2023-01-16 22:05:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-75024dcc-6246-496c-ba3b-ee179af5842d"
}

2023-01-16 22:05:17 | [Mutex] waiting for: [published:item:notifieditem-75024dcc-6246-496c-ba3b-ee179af5842d:admin@test-domain.com]

2023-01-16 22:05:17 | [Mutex] received everything.

2023-01-16 22:05:17 | [Mutex] isItemNotified: published:item:notifieditem-75024dcc-6246-496c-ba3b-ee179af5842d:admin@test-domain.com :: true

retractItemsFromNodes 0.074s
2023-01-16 22:05:17 |

2023-01-16 22:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:17 | ------------------------------------

2023-01-16 22:05:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f8d91e8e-c084-48df-b009-6e84a143898b",
    "item-id": "item-75024dcc-6246-496c-ba3b-ee179af5842d"
}

2023-01-16 22:05:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-75024dcc-6246-496c-ba3b-ee179af5842d"
}

2023-01-16 22:05:17 | [Mutex] waiting for: [retracted:item:notifieditem-75024dcc-6246-496c-ba3b-ee179af5842d:admin@test-domain.com]

2023-01-16 22:05:17 | [Mutex] received everything.

2023-01-16 22:05:17 | [Mutex] isItemNotified: retracted:item:notifieditem-75024dcc-6246-496c-ba3b-ee179af5842d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2023-01-16 22:05:17 |

2023-01-16 22:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:17 | ------------------------------------

2023-01-16 22:05:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f8d91e8e-c084-48df-b009-6e84a143898b",
    "item-id": "item-75024dcc-6246-496c-ba3b-ee179af5842d"
}

2023-01-16 22:05:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f8d91e8e-c084-48df-b009-6e84a143898b",
    "item-id": "item-75024dcc-6246-496c-ba3b-ee179af5842d",
    "item": [
        "<item id=\"item-75024dcc-6246-496c-ba3b-ee179af5842d\"><test>item-75024dcc-6246-496c-ba3b-ee179af5842d</test></item>"
    ]
}

2023-01-16 22:05:17 | [Mutex] notify: [retrieved:item:item-75024dcc-6246-496c-ba3b-ee179af5842d:payload-matches:true:localhost]

2023-01-16 22:05:17 | [Mutex] received everything.

2023-01-16 22:05:17 | [Mutex] isItemNotified: retrieved:item:item-75024dcc-6246-496c-ba3b-ee179af5842d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-01-16 22:05:17 |

2023-01-16 22:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:17 | ------------------------------------

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

2023-01-16 22:05:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d9578321-c946-4207-b2f1-ff24ba0130ad",
        "node-f8d91e8e-c084-48df-b009-6e84a143898b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-01-16 22:05:17 |

2023-01-16 22:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:17 | ------------------------------------

2023-01-16 22:05:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f8d91e8e-c084-48df-b009-6e84a143898b)"
}

2023-01-16 22:05:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2023-01-16 22:05:16 |

2023-01-16 22:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:16 | ------------------------------------

2023-01-16 22:05:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f8d91e8e-c084-48df-b009-6e84a143898b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.057s
2023-01-16 22:05:17 |

2023-01-16 22:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 22:05:17 | ------------------------------------

2023-01-16 22:05:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f8d91e8e-c084-48df-b009-6e84a143898b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-16 22:05:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}