Generated by TestNG with ReportNG at 21:40 PST on Tuesday 09 November 2021
root@f29ef40080b5 / 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 : 9.058s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.164s
2021-11-09 21:54:59 |

2021-11-09 21:54:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:54:59 | ------------------------------------

2021-11-09 21:54:59 | [Mutex] waiting for: [configured:node:node-feb37dc8-6086-453c-9c1f-b9a16b3da945:node-42c9b81e-65b6-4d82-95a8-e3e67ac066ce]

2021-11-09 21:54:59 | [Mutex] received everything.

2021-11-09 21:54:59 | [Mutex] isItemNotified: configured:node:node-feb37dc8-6086-453c-9c1f-b9a16b3da945:node-42c9b81e-65b6-4d82-95a8-e3e67ac066ce :: true

2021-11-09 21:55:00 | [Mutex] waiting for: [received:nodes:303e7a8c-ba8d-4a43-8b0c-532c8d72ea44:localhost]

2021-11-09 21:55:00 | [Mutex] received everything.

2021-11-09 21:55:00 | [Mutex] isItemNotified: received:node:303e7a8c-ba8d-4a43-8b0c-532c8d72ea44:localhost:node-feb37dc8-6086-453c-9c1f-b9a16b3da945:Node feb37dc8-6086-453c-9c1f-b9a16b3da945 :: true

2021-11-09 21:55:00 | [Mutex] waiting for: [received:nodes:46ce13ca-e5f4-4e7e-ac37-d4609d834f1e:localhost]

2021-11-09 21:55:00 | [Mutex] received everything.

2021-11-09 21:55:00 | [Mutex] isItemNotified: received:node:46ce13ca-e5f4-4e7e-ac37-d4609d834f1e:localhost:node-feb37dc8-6086-453c-9c1f-b9a16b3da945:Node feb37dc8-6086-453c-9c1f-b9a16b3da945 :: false

createNodes 1.679s
2021-11-09 21:54:56 |

2021-11-09 21:54:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:54:56 | ------------------------------------

2021-11-09 21:54:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-feb37dc8-6086-453c-9c1f-b9a16b3da945",
    "pubsub#title": "Node feb37dc8-6086-453c-9c1f-b9a16b3da945"
}

2021-11-09 21:54:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-09 21:54:58 | [Mutex] waiting for: [received:nodes:14fd1301-791f-4170-8994-50bd87efed1a:localhost]

2021-11-09 21:54:58 | [Mutex] received everything.

2021-11-09 21:54:58 | [Mutex] isItemNotified: received:node:14fd1301-791f-4170-8994-50bd87efed1a:localhost:node-feb37dc8-6086-453c-9c1f-b9a16b3da945:Node feb37dc8-6086-453c-9c1f-b9a16b3da945 :: true

createSubnodes 1.032s
2021-11-09 21:54:58 |

2021-11-09 21:54:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:54:58 | ------------------------------------

2021-11-09 21:54:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-42c9b81e-65b6-4d82-95a8-e3e67ac066ce",
    "pubsub#title": "Node 42c9b81e-65b6-4d82-95a8-e3e67ac066ce"
}

2021-11-09 21:54:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-09 21:54:59 | [Mutex] waiting for: [received:nodes:cc7b1e03-5d32-4c14-a608-dcf64ad1ffcf:localhost]

2021-11-09 21:54:59 | [Mutex] received everything.

2021-11-09 21:54:59 | [Mutex] isItemNotified: received:node:cc7b1e03-5d32-4c14-a608-dcf64ad1ffcf:localhost:node-42c9b81e-65b6-4d82-95a8-e3e67ac066ce:Node 42c9b81e-65b6-4d82-95a8-e3e67ac066ce :: true

deleteNodes 1.025s
2021-11-09 21:55:04 |

2021-11-09 21:55:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:55:04 | ------------------------------------

2021-11-09 21:55:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-42c9b81e-65b6-4d82-95a8-e3e67ac066ce"
}

2021-11-09 21:55:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-09 21:55:05 | [Mutex] waiting for: [received:nodes:bf0bc0fb-c871-465d-8c9e-47c40196eefe:localhost]

2021-11-09 21:55:05 | [Mutex] received everything.

2021-11-09 21:55:05 | [Mutex] isItemNotified: received:node:bf0bc0fb-c871-465d-8c9e-47c40196eefe:localhost:node-42c9b81e-65b6-4d82-95a8-e3e67ac066ce:Node 42c9b81e-65b6-4d82-95a8-e3e67ac066ce :: false

deleteSubnodes 1.033s
2021-11-09 21:55:02 |

2021-11-09 21:55:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:55:02 | ------------------------------------

2021-11-09 21:55:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-feb37dc8-6086-453c-9c1f-b9a16b3da945"
}

2021-11-09 21:55:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-09 21:55:04 | [Mutex] waiting for: [received:nodes:628154d8-bc32-41e4-a17b-a1f33fad0ae7:localhost]

2021-11-09 21:55:04 | [Mutex] waiting for: [received:nodes:628154d8-bc32-41e4-a17b-a1f33fad0ae7:localhost]

2021-11-09 21:55:04 | [Mutex] received everything.

2021-11-09 21:55:04 | [Mutex] isItemNotified: received:node:628154d8-bc32-41e4-a17b-a1f33fad0ae7:localhost:node-feb37dc8-6086-453c-9c1f-b9a16b3da945:Node feb37dc8-6086-453c-9c1f-b9a16b3da945 :: false

2021-11-09 21:55:04 | [Mutex] waiting for: [received:nodes:0b4de342-227e-4bf8-9d99-4ab8f0b5ab7d:localhost]

2021-11-09 21:55:04 | [Mutex] received everything.

2021-11-09 21:55:04 | [Mutex] isItemNotified: received:node:0b4de342-227e-4bf8-9d99-4ab8f0b5ab7d:localhost:node-feb37dc8-6086-453c-9c1f-b9a16b3da945:Node feb37dc8-6086-453c-9c1f-b9a16b3da945 :: false

publishItemsToNodes 0.061s
2021-11-09 21:55:01 |

2021-11-09 21:55:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:55:01 | ------------------------------------

2021-11-09 21:55:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-feb37dc8-6086-453c-9c1f-b9a16b3da945",
    "entry": "<test>item-20127027-3284-4672-b932-47f046b51c4b</test>",
    "item-id": "item-20127027-3284-4672-b932-47f046b51c4b"
}

2021-11-09 21:55:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-20127027-3284-4672-b932-47f046b51c4b"
}

2021-11-09 21:55:01 | [Mutex] waiting for: [published:item:notifieditem-20127027-3284-4672-b932-47f046b51c4b:admin@test-domain.com]

2021-11-09 21:55:01 | [Mutex] received everything.

2021-11-09 21:55:01 | [Mutex] isItemNotified: published:item:notifieditem-20127027-3284-4672-b932-47f046b51c4b:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-11-09 21:55:01 |

2021-11-09 21:55:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:55:01 | ------------------------------------

2021-11-09 21:55:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-feb37dc8-6086-453c-9c1f-b9a16b3da945",
    "item-id": "item-20127027-3284-4672-b932-47f046b51c4b"
}

2021-11-09 21:55:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-20127027-3284-4672-b932-47f046b51c4b"
}

2021-11-09 21:55:01 | [Mutex] received everything.

2021-11-09 21:55:01 | [Mutex] isItemNotified: retracted:item:notifieditem-20127027-3284-4672-b932-47f046b51c4b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.049s
2021-11-09 21:55:01 |

2021-11-09 21:55:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:55:01 | ------------------------------------

2021-11-09 21:55:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-feb37dc8-6086-453c-9c1f-b9a16b3da945",
    "item-id": "item-20127027-3284-4672-b932-47f046b51c4b"
}

2021-11-09 21:55:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-feb37dc8-6086-453c-9c1f-b9a16b3da945",
    "item-id": "item-20127027-3284-4672-b932-47f046b51c4b",
    "item": [
        "<item id=\"item-20127027-3284-4672-b932-47f046b51c4b\"><test>item-20127027-3284-4672-b932-47f046b51c4b</test></item>"
    ]
}

2021-11-09 21:55:01 | [Mutex] notify: [retrieved:item:item-20127027-3284-4672-b932-47f046b51c4b:payload-matches:true:localhost]

2021-11-09 21:55:01 | [Mutex] received everything.

2021-11-09 21:55:01 | [Mutex] isItemNotified: retrieved:item:item-20127027-3284-4672-b932-47f046b51c4b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2021-11-09 21:55:01 |

2021-11-09 21:55:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:55:01 | ------------------------------------

2021-11-09 21:55:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-11-09 21:55:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-42c9b81e-65b6-4d82-95a8-e3e67ac066ce",
        "test",
        "node-feb37dc8-6086-453c-9c1f-b9a16b3da945"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-11-09 21:55:01 |

2021-11-09 21:55:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:55:01 | ------------------------------------

2021-11-09 21:55:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-feb37dc8-6086-453c-9c1f-b9a16b3da945)"
}

2021-11-09 21:55:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-11-09 21:55:00 |

2021-11-09 21:55:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:55:00 | ------------------------------------

2021-11-09 21:55:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-feb37dc8-6086-453c-9c1f-b9a16b3da945",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-09 21:55:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2021-11-09 21:55:01 |

2021-11-09 21:55:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 21:55:01 | ------------------------------------

2021-11-09 21:55:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-feb37dc8-6086-453c-9c1f-b9a16b3da945",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-09 21:55:01 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}