Generated by TestNG with ReportNG at 21:46 PST on Thursday 10 February 2022
root@b2c2a8eba6e6 / Java 11.0.8 (Ubuntu) / 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.912s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2022-02-10 22:02:15 |

2022-02-10 22:02:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:15 | ------------------------------------

2022-02-10 22:02:15 | [Mutex] waiting for: [configured:node:node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c:node-a599e122-06d5-47d6-ba9a-3075dcf2bbc4]

2022-02-10 22:02:15 | [Mutex] received everything.

2022-02-10 22:02:15 | [Mutex] isItemNotified: configured:node:node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c:node-a599e122-06d5-47d6-ba9a-3075dcf2bbc4 :: true

2022-02-10 22:02:16 | [Mutex] waiting for: [received:nodes:2ff7f037-315c-4eec-ad66-f2d2a086548a:localhost]

2022-02-10 22:02:16 | [Mutex] received everything.

2022-02-10 22:02:16 | [Mutex] isItemNotified: received:node:2ff7f037-315c-4eec-ad66-f2d2a086548a:localhost:node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c:Node 41bcc8e8-6748-4339-ab2f-5caec6ec2e2c :: true

2022-02-10 22:02:16 | [Mutex] waiting for: [received:nodes:01bc4e0b-c2d7-418f-bd52-f6179624f08a:localhost]

2022-02-10 22:02:16 | [Mutex] waiting for: [received:nodes:01bc4e0b-c2d7-418f-bd52-f6179624f08a:localhost]

2022-02-10 22:02:16 | [Mutex] received everything.

2022-02-10 22:02:16 | [Mutex] isItemNotified: received:node:01bc4e0b-c2d7-418f-bd52-f6179624f08a:localhost:node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c:Node 41bcc8e8-6748-4339-ab2f-5caec6ec2e2c :: false

createNodes 1.598s
2022-02-10 22:02:12 |

2022-02-10 22:02:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:12 | ------------------------------------

2022-02-10 22:02:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c",
    "pubsub#title": "Node 41bcc8e8-6748-4339-ab2f-5caec6ec2e2c"
}

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

2022-02-10 22:02:14 | [Mutex] waiting for: [received:nodes:4ee075ae-ead1-4aff-b509-9274d4f90bf7:localhost]

2022-02-10 22:02:14 | [Mutex] waiting for: [received:nodes:4ee075ae-ead1-4aff-b509-9274d4f90bf7:localhost]

2022-02-10 22:02:14 | [Mutex] received everything.

2022-02-10 22:02:14 | [Mutex] isItemNotified: received:node:4ee075ae-ead1-4aff-b509-9274d4f90bf7:localhost:node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c:Node 41bcc8e8-6748-4339-ab2f-5caec6ec2e2c :: true

createSubnodes 1.031s
2022-02-10 22:02:14 |

2022-02-10 22:02:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:14 | ------------------------------------

2022-02-10 22:02:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a599e122-06d5-47d6-ba9a-3075dcf2bbc4",
    "pubsub#title": "Node a599e122-06d5-47d6-ba9a-3075dcf2bbc4"
}

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

2022-02-10 22:02:15 | [Mutex] waiting for: [received:nodes:a1b20163-af75-48ea-8a35-eb5df0e94d14:localhost]

2022-02-10 22:02:15 | [Mutex] received everything.

2022-02-10 22:02:15 | [Mutex] isItemNotified: received:node:a1b20163-af75-48ea-8a35-eb5df0e94d14:localhost:node-a599e122-06d5-47d6-ba9a-3075dcf2bbc4:Node a599e122-06d5-47d6-ba9a-3075dcf2bbc4 :: true

deleteNodes 1.028s
2022-02-10 22:02:19 |

2022-02-10 22:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:19 | ------------------------------------

2022-02-10 22:02:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a599e122-06d5-47d6-ba9a-3075dcf2bbc4"
}

2022-02-10 22:02:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-10 22:02:20 | [Mutex] waiting for: [received:nodes:e37ef0f1-57ee-4612-acc4-c56cdd0e7de8:localhost]

2022-02-10 22:02:20 | [Mutex] received everything.

2022-02-10 22:02:20 | [Mutex] isItemNotified: received:node:e37ef0f1-57ee-4612-acc4-c56cdd0e7de8:localhost:node-a599e122-06d5-47d6-ba9a-3075dcf2bbc4:Node a599e122-06d5-47d6-ba9a-3075dcf2bbc4 :: false

deleteSubnodes 1.026s
2022-02-10 22:02:18 |

2022-02-10 22:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:18 | ------------------------------------

2022-02-10 22:02:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c"
}

2022-02-10 22:02:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-10 22:02:19 | [Mutex] waiting for: [received:nodes:7b58a0bd-327b-4b6f-9066-c11b1cc9705a:localhost]

2022-02-10 22:02:19 | [Mutex] waiting for: [received:nodes:7b58a0bd-327b-4b6f-9066-c11b1cc9705a:localhost]

2022-02-10 22:02:19 | [Mutex] received everything.

2022-02-10 22:02:19 | [Mutex] isItemNotified: received:node:7b58a0bd-327b-4b6f-9066-c11b1cc9705a:localhost:node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c:Node 41bcc8e8-6748-4339-ab2f-5caec6ec2e2c :: false

2022-02-10 22:02:19 | [Mutex] waiting for: [received:nodes:3e9a8428-dbbf-4ea1-8cf8-7d45bb5ae2c5:localhost]

2022-02-10 22:02:19 | [Mutex] received everything.

2022-02-10 22:02:19 | [Mutex] isItemNotified: received:node:3e9a8428-dbbf-4ea1-8cf8-7d45bb5ae2c5:localhost:node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c:Node 41bcc8e8-6748-4339-ab2f-5caec6ec2e2c :: false

publishItemsToNodes 0.055s
2022-02-10 22:02:17 |

2022-02-10 22:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:17 | ------------------------------------

2022-02-10 22:02:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c",
    "entry": "<test>item-2b204896-5c2b-4df2-97b8-783058c3ecdc</test>",
    "item-id": "item-2b204896-5c2b-4df2-97b8-783058c3ecdc"
}

2022-02-10 22:02:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2b204896-5c2b-4df2-97b8-783058c3ecdc"
}

2022-02-10 22:02:17 | [Mutex] waiting for: [published:item:notifieditem-2b204896-5c2b-4df2-97b8-783058c3ecdc:admin@test-domain.com]

2022-02-10 22:02:17 | [Mutex] received everything.

2022-02-10 22:02:17 | [Mutex] isItemNotified: published:item:notifieditem-2b204896-5c2b-4df2-97b8-783058c3ecdc:admin@test-domain.com :: true

retractItemsFromNodes 0.053s
2022-02-10 22:02:17 |

2022-02-10 22:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:17 | ------------------------------------

2022-02-10 22:02:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c",
    "item-id": "item-2b204896-5c2b-4df2-97b8-783058c3ecdc"
}

2022-02-10 22:02:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2b204896-5c2b-4df2-97b8-783058c3ecdc"
}

2022-02-10 22:02:17 | [Mutex] waiting for: [retracted:item:notifieditem-2b204896-5c2b-4df2-97b8-783058c3ecdc:admin@test-domain.com]

2022-02-10 22:02:17 | [Mutex] received everything.

2022-02-10 22:02:17 | [Mutex] isItemNotified: retracted:item:notifieditem-2b204896-5c2b-4df2-97b8-783058c3ecdc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.036s
2022-02-10 22:02:17 |

2022-02-10 22:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:17 | ------------------------------------

2022-02-10 22:02:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c",
    "item-id": "item-2b204896-5c2b-4df2-97b8-783058c3ecdc"
}

2022-02-10 22:02:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c",
    "item-id": "item-2b204896-5c2b-4df2-97b8-783058c3ecdc",
    "item": [
        "<item id=\"item-2b204896-5c2b-4df2-97b8-783058c3ecdc\"><test>item-2b204896-5c2b-4df2-97b8-783058c3ecdc</test></item>"
    ]
}

2022-02-10 22:02:17 | [Mutex] notify: [retrieved:item:item-2b204896-5c2b-4df2-97b8-783058c3ecdc:payload-matches:true:localhost]

2022-02-10 22:02:17 | [Mutex] received everything.

2022-02-10 22:02:17 | [Mutex] isItemNotified: retrieved:item:item-2b204896-5c2b-4df2-97b8-783058c3ecdc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-02-10 22:02:17 |

2022-02-10 22:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:17 | ------------------------------------

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

2022-02-10 22:02:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c",
        "node-a599e122-06d5-47d6-ba9a-3075dcf2bbc4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-10 22:02:17 |

2022-02-10 22:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:17 | ------------------------------------

2022-02-10 22:02:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c)"
}

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

subscribeNodes 1.013s
2022-02-10 22:02:16 |

2022-02-10 22:02:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:16 | ------------------------------------

2022-02-10 22:02:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-10 22:02:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.086s
2022-02-10 22:02:17 |

2022-02-10 22:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-10 22:02:17 | ------------------------------------

2022-02-10 22:02:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-41bcc8e8-6748-4339-ab2f-5caec6ec2e2c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-10 22:02:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}