Generated by TestNG with ReportNG at 10:06 PDT on Tuesday 24 May 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.764s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.129s
2022-05-24 10:21:03 |

2022-05-24 10:21:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:03 | ------------------------------------

2022-05-24 10:21:03 | [Mutex] waiting for: [configured:node:node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539:node-fc424729-8af1-465e-99e4-8322d924d459]

2022-05-24 10:21:03 | [Mutex] received everything.

2022-05-24 10:21:03 | [Mutex] isItemNotified: configured:node:node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539:node-fc424729-8af1-465e-99e4-8322d924d459 :: true

2022-05-24 10:21:04 | [Mutex] waiting for: [received:nodes:22095ece-7694-4715-b81b-85d694631302:localhost]

2022-05-24 10:21:04 | [Mutex] received everything.

2022-05-24 10:21:04 | [Mutex] isItemNotified: received:node:22095ece-7694-4715-b81b-85d694631302:localhost:node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539:Node bb46f64b-e0e9-4ae6-add7-2c3294bd0539 :: true

2022-05-24 10:21:04 | [Mutex] waiting for: [received:nodes:02025685-0a75-429e-a299-58f1e3b72c4b:localhost]

2022-05-24 10:21:04 | [Mutex] received everything.

2022-05-24 10:21:04 | [Mutex] isItemNotified: received:node:02025685-0a75-429e-a299-58f1e3b72c4b:localhost:node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539:Node bb46f64b-e0e9-4ae6-add7-2c3294bd0539 :: false

createNodes 1.647s
2022-05-24 10:21:00 |

2022-05-24 10:21:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:00 | ------------------------------------

2022-05-24 10:21: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-bb46f64b-e0e9-4ae6-add7-2c3294bd0539",
    "pubsub#title": "Node bb46f64b-e0e9-4ae6-add7-2c3294bd0539"
}

2022-05-24 10:21:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 10:21:02 | [Mutex] waiting for: [received:nodes:25ed9f09-93d6-4de9-960d-ec3781620757:localhost]

2022-05-24 10:21:02 | [Mutex] waiting for: [received:nodes:25ed9f09-93d6-4de9-960d-ec3781620757:localhost]

2022-05-24 10:21:02 | [Mutex] received everything.

2022-05-24 10:21:02 | [Mutex] isItemNotified: received:node:25ed9f09-93d6-4de9-960d-ec3781620757:localhost:node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539:Node bb46f64b-e0e9-4ae6-add7-2c3294bd0539 :: true

createSubnodes 1.031s
2022-05-24 10:21:02 |

2022-05-24 10:21:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:02 | ------------------------------------

2022-05-24 10:21: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-fc424729-8af1-465e-99e4-8322d924d459",
    "pubsub#title": "Node fc424729-8af1-465e-99e4-8322d924d459"
}

2022-05-24 10:21:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 10:21:03 | [Mutex] waiting for: [received:nodes:b5931940-b360-4f95-bea5-2eba3e52226d:localhost]

2022-05-24 10:21:03 | [Mutex] received everything.

2022-05-24 10:21:03 | [Mutex] isItemNotified: received:node:b5931940-b360-4f95-bea5-2eba3e52226d:localhost:node-fc424729-8af1-465e-99e4-8322d924d459:Node fc424729-8af1-465e-99e4-8322d924d459 :: true

deleteNodes 1.017s
2022-05-24 10:21:07 |

2022-05-24 10:21:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:07 | ------------------------------------

2022-05-24 10:21:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fc424729-8af1-465e-99e4-8322d924d459"
}

2022-05-24 10:21:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 10:21:08 | [Mutex] waiting for: [received:nodes:3d7b1b39-9088-4c4f-a10c-9ff82c2d5ff4:localhost]

2022-05-24 10:21:08 | [Mutex] waiting for: [received:nodes:3d7b1b39-9088-4c4f-a10c-9ff82c2d5ff4:localhost]

2022-05-24 10:21:08 | [Mutex] received everything.

2022-05-24 10:21:08 | [Mutex] isItemNotified: received:node:3d7b1b39-9088-4c4f-a10c-9ff82c2d5ff4:localhost:node-fc424729-8af1-465e-99e4-8322d924d459:Node fc424729-8af1-465e-99e4-8322d924d459 :: false

deleteSubnodes 1.029s
2022-05-24 10:21:06 |

2022-05-24 10:21:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:06 | ------------------------------------

2022-05-24 10:21:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539"
}

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

2022-05-24 10:21:07 | [Mutex] waiting for: [received:nodes:48f0a26f-ea98-46ff-97ec-76695590f72b:localhost]

2022-05-24 10:21:07 | [Mutex] received everything.

2022-05-24 10:21:07 | [Mutex] isItemNotified: received:node:48f0a26f-ea98-46ff-97ec-76695590f72b:localhost:node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539:Node bb46f64b-e0e9-4ae6-add7-2c3294bd0539 :: false

2022-05-24 10:21:07 | [Mutex] waiting for: [received:nodes:33f78a22-0d1c-4ed8-b73b-bfee0235e500:localhost]

2022-05-24 10:21:07 | [Mutex] received everything.

2022-05-24 10:21:07 | [Mutex] isItemNotified: received:node:33f78a22-0d1c-4ed8-b73b-bfee0235e500:localhost:node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539:Node bb46f64b-e0e9-4ae6-add7-2c3294bd0539 :: false

publishItemsToNodes 0.073s
2022-05-24 10:21:05 |

2022-05-24 10:21:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:05 | ------------------------------------

2022-05-24 10:21:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539",
    "entry": "<test>item-c84c17d9-fdc1-481b-a930-c2f8feb727ba</test>",
    "item-id": "item-c84c17d9-fdc1-481b-a930-c2f8feb727ba"
}

2022-05-24 10:21:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c84c17d9-fdc1-481b-a930-c2f8feb727ba"
}

2022-05-24 10:21:05 | [Mutex] waiting for: [published:item:notifieditem-c84c17d9-fdc1-481b-a930-c2f8feb727ba:admin@test-domain.com]

2022-05-24 10:21:05 | [Mutex] received everything.

2022-05-24 10:21:05 | [Mutex] isItemNotified: published:item:notifieditem-c84c17d9-fdc1-481b-a930-c2f8feb727ba:admin@test-domain.com :: true

retractItemsFromNodes 0.092s
2022-05-24 10:21:05 |

2022-05-24 10:21:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:05 | ------------------------------------

2022-05-24 10:21:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539",
    "item-id": "item-c84c17d9-fdc1-481b-a930-c2f8feb727ba"
}

2022-05-24 10:21:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c84c17d9-fdc1-481b-a930-c2f8feb727ba"
}

2022-05-24 10:21:05 | [Mutex] waiting for: [retracted:item:notifieditem-c84c17d9-fdc1-481b-a930-c2f8feb727ba:admin@test-domain.com]

2022-05-24 10:21:05 | [Mutex] received everything.

2022-05-24 10:21:05 | [Mutex] isItemNotified: retracted:item:notifieditem-c84c17d9-fdc1-481b-a930-c2f8feb727ba:admin@test-domain.com :: true

retrieveItemsFromNodes 0.027s
2022-05-24 10:21:05 |

2022-05-24 10:21:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:05 | ------------------------------------

2022-05-24 10:21:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539",
    "item-id": "item-c84c17d9-fdc1-481b-a930-c2f8feb727ba"
}

2022-05-24 10:21:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539",
    "item-id": "item-c84c17d9-fdc1-481b-a930-c2f8feb727ba",
    "item": [
        "<item id=\"item-c84c17d9-fdc1-481b-a930-c2f8feb727ba\"><test>item-c84c17d9-fdc1-481b-a930-c2f8feb727ba</test></item>"
    ]
}

2022-05-24 10:21:05 | [Mutex] notify: [retrieved:item:item-c84c17d9-fdc1-481b-a930-c2f8feb727ba:payload-matches:true:localhost]

2022-05-24 10:21:05 | [Mutex] received everything.

2022-05-24 10:21:05 | [Mutex] isItemNotified: retrieved:item:item-c84c17d9-fdc1-481b-a930-c2f8feb727ba:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-05-24 10:21:05 |

2022-05-24 10:21:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:05 | ------------------------------------

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

2022-05-24 10:21:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fc424729-8af1-465e-99e4-8322d924d459",
        "node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-05-24 10:21:05 |

2022-05-24 10:21:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:05 | ------------------------------------

2022-05-24 10:21:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539)"
}

2022-05-24 10:21:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-05-24 10:21:04 |

2022-05-24 10:21:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:04 | ------------------------------------

2022-05-24 10:21:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-24 10:21:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.009s
2022-05-24 10:21:05 |

2022-05-24 10:21:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 10:21:05 | ------------------------------------

2022-05-24 10:21:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bb46f64b-e0e9-4ae6-add7-2c3294bd0539",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-24 10:21:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}