Generated by TestNG with ReportNG at 22:47 PDT on Wednesday 06 July 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.635s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2022-07-06 23:01:23 |

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

2022-07-06 23:01:23 | ------------------------------------

2022-07-06 23:01:23 | [Mutex] waiting for: [configured:node:node-f08a3970-f203-42c4-8a37-06b458101635:node-8a30397d-5050-4898-b09d-a7fb96a31ba8]

2022-07-06 23:01:23 | [Mutex] received everything.

2022-07-06 23:01:23 | [Mutex] isItemNotified: configured:node:node-f08a3970-f203-42c4-8a37-06b458101635:node-8a30397d-5050-4898-b09d-a7fb96a31ba8 :: true

2022-07-06 23:01:24 | [Mutex] waiting for: [received:nodes:9f0f3f7e-5c77-4f88-895d-692f476a54d0:localhost]

2022-07-06 23:01:24 | [Mutex] received everything.

2022-07-06 23:01:24 | [Mutex] isItemNotified: received:node:9f0f3f7e-5c77-4f88-895d-692f476a54d0:localhost:node-f08a3970-f203-42c4-8a37-06b458101635:Node f08a3970-f203-42c4-8a37-06b458101635 :: true

2022-07-06 23:01:24 | [Mutex] waiting for: [received:nodes:b9ae78fd-6525-4ca9-b871-6d4903a7e489:localhost]

2022-07-06 23:01:24 | [Mutex] waiting for: [received:nodes:b9ae78fd-6525-4ca9-b871-6d4903a7e489:localhost]

2022-07-06 23:01:24 | [Mutex] received everything.

2022-07-06 23:01:24 | [Mutex] isItemNotified: received:node:b9ae78fd-6525-4ca9-b871-6d4903a7e489:localhost:node-f08a3970-f203-42c4-8a37-06b458101635:Node f08a3970-f203-42c4-8a37-06b458101635 :: false

createNodes 1.592s
2022-07-06 23:01:20 |

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

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

2022-07-06 23:01:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f08a3970-f203-42c4-8a37-06b458101635",
    "pubsub#title": "Node f08a3970-f203-42c4-8a37-06b458101635"
}

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

2022-07-06 23:01:22 | [Mutex] waiting for: [received:nodes:5cae6a02-8e7a-476b-a6ef-00064f369a9f:localhost]

2022-07-06 23:01:22 | [Mutex] received everything.

2022-07-06 23:01:22 | [Mutex] isItemNotified: received:node:5cae6a02-8e7a-476b-a6ef-00064f369a9f:localhost:node-f08a3970-f203-42c4-8a37-06b458101635:Node f08a3970-f203-42c4-8a37-06b458101635 :: true

createSubnodes 1.031s
2022-07-06 23:01:22 |

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

2022-07-06 23:01:22 | ------------------------------------

2022-07-06 23:01:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8a30397d-5050-4898-b09d-a7fb96a31ba8",
    "pubsub#title": "Node 8a30397d-5050-4898-b09d-a7fb96a31ba8"
}

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

2022-07-06 23:01:23 | [Mutex] waiting for: [received:nodes:cc46d9bd-5250-4d61-a808-fb1909aa0d55:localhost]

2022-07-06 23:01:23 | [Mutex] received everything.

2022-07-06 23:01:23 | [Mutex] isItemNotified: received:node:cc46d9bd-5250-4d61-a808-fb1909aa0d55:localhost:node-8a30397d-5050-4898-b09d-a7fb96a31ba8:Node 8a30397d-5050-4898-b09d-a7fb96a31ba8 :: true

deleteNodes 1.028s
2022-07-06 23:01:27 |

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

2022-07-06 23:01:27 | ------------------------------------

2022-07-06 23:01:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8a30397d-5050-4898-b09d-a7fb96a31ba8"
}

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

2022-07-06 23:01:28 | [Mutex] waiting for: [received:nodes:0290a6b9-56b8-4387-a588-b98a953d2afc:localhost]

2022-07-06 23:01:28 | [Mutex] waiting for: [received:nodes:0290a6b9-56b8-4387-a588-b98a953d2afc:localhost]

2022-07-06 23:01:28 | [Mutex] waiting for: [received:nodes:0290a6b9-56b8-4387-a588-b98a953d2afc:localhost]

2022-07-06 23:01:28 | [Mutex] waiting for: [received:nodes:0290a6b9-56b8-4387-a588-b98a953d2afc:localhost]

2022-07-06 23:01:28 | [Mutex] received everything.

2022-07-06 23:01:28 | [Mutex] isItemNotified: received:node:0290a6b9-56b8-4387-a588-b98a953d2afc:localhost:node-8a30397d-5050-4898-b09d-a7fb96a31ba8:Node 8a30397d-5050-4898-b09d-a7fb96a31ba8 :: false

deleteSubnodes 1.026s
2022-07-06 23:01:26 |

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

2022-07-06 23:01:26 | ------------------------------------

2022-07-06 23:01:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f08a3970-f203-42c4-8a37-06b458101635"
}

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

2022-07-06 23:01:27 | [Mutex] waiting for: [received:nodes:a5e06855-e226-4c63-9649-c87213d52d6e:localhost]

2022-07-06 23:01:27 | [Mutex] waiting for: [received:nodes:a5e06855-e226-4c63-9649-c87213d52d6e:localhost]

2022-07-06 23:01:27 | [Mutex] received everything.

2022-07-06 23:01:27 | [Mutex] isItemNotified: received:node:a5e06855-e226-4c63-9649-c87213d52d6e:localhost:node-f08a3970-f203-42c4-8a37-06b458101635:Node f08a3970-f203-42c4-8a37-06b458101635 :: false

2022-07-06 23:01:27 | [Mutex] waiting for: [received:nodes:60a000ac-d176-4b5d-ab50-3bcf05e176f7:localhost]

2022-07-06 23:01:27 | [Mutex] received everything.

2022-07-06 23:01:27 | [Mutex] isItemNotified: received:node:60a000ac-d176-4b5d-ab50-3bcf05e176f7:localhost:node-f08a3970-f203-42c4-8a37-06b458101635:Node f08a3970-f203-42c4-8a37-06b458101635 :: false

publishItemsToNodes 0.080s
2022-07-06 23:01:25 |

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

2022-07-06 23:01:25 | ------------------------------------

2022-07-06 23:01:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f08a3970-f203-42c4-8a37-06b458101635",
    "entry": "<test>item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a</test>",
    "item-id": "item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a"
}

2022-07-06 23:01:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a"
}

2022-07-06 23:01:25 | [Mutex] waiting for: [published:item:notifieditem-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a:admin@test-domain.com]

2022-07-06 23:01:25 | [Mutex] received everything.

2022-07-06 23:01:25 | [Mutex] isItemNotified: published:item:notifieditem-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-06 23:01:25 |

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

2022-07-06 23:01:25 | ------------------------------------

2022-07-06 23:01:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f08a3970-f203-42c4-8a37-06b458101635",
    "item-id": "item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a"
}

2022-07-06 23:01:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a"
}

2022-07-06 23:01:25 | [Mutex] received everything.

2022-07-06 23:01:25 | [Mutex] isItemNotified: retracted:item:notifieditem-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.052s
2022-07-06 23:01:25 |

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

2022-07-06 23:01:25 | ------------------------------------

2022-07-06 23:01:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f08a3970-f203-42c4-8a37-06b458101635",
    "item-id": "item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a"
}

2022-07-06 23:01:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f08a3970-f203-42c4-8a37-06b458101635",
    "item-id": "item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a",
    "item": [
        "<item id=\"item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a\"><test>item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a</test></item>"
    ]
}

2022-07-06 23:01:25 | [Mutex] notify: [retrieved:item:item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a:payload-matches:true:localhost]

2022-07-06 23:01:25 | [Mutex] received everything.

2022-07-06 23:01:25 | [Mutex] isItemNotified: retrieved:item:item-59139a7f-7a54-4fd6-9bd1-478f56cf7b5a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2022-07-06 23:01:25 |

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

2022-07-06 23:01:25 | ------------------------------------

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

2022-07-06 23:01:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f08a3970-f203-42c4-8a37-06b458101635",
        "node-8a30397d-5050-4898-b09d-a7fb96a31ba8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-06 23:01:25 |

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

2022-07-06 23:01:25 | ------------------------------------

2022-07-06 23:01:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f08a3970-f203-42c4-8a37-06b458101635)"
}

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

subscribeNodes 1.012s
2022-07-06 23:01:24 |

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

2022-07-06 23:01:24 | ------------------------------------

2022-07-06 23:01:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f08a3970-f203-42c4-8a37-06b458101635",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.076s
2022-07-06 23:01:25 |

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

2022-07-06 23:01:25 | ------------------------------------

2022-07-06 23:01:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f08a3970-f203-42c4-8a37-06b458101635",
    "jids": [
        "admin@test-domain.com"
    ]
}

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