Generated by TestNG with ReportNG at 22:17 PDT on Monday 20 June 2022
root@61c39d2ed70d / 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.645s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2022-06-20 22:32:10 |

2022-06-20 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:10 | ------------------------------------

2022-06-20 22:32:10 | [Mutex] waiting for: [configured:node:node-fd14c848-199e-4c76-a378-d8ae2be229c3:node-80ba05f0-d3b6-4e0f-a498-0c3b239e8829]

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

2022-06-20 22:32:10 | [Mutex] isItemNotified: configured:node:node-fd14c848-199e-4c76-a378-d8ae2be229c3:node-80ba05f0-d3b6-4e0f-a498-0c3b239e8829 :: true

2022-06-20 22:32:11 | [Mutex] waiting for: [received:nodes:62526e68-0f43-42bc-98b7-57c09e580e6c:localhost]

2022-06-20 22:32:11 | [Mutex] received everything.

2022-06-20 22:32:11 | [Mutex] isItemNotified: received:node:62526e68-0f43-42bc-98b7-57c09e580e6c:localhost:node-fd14c848-199e-4c76-a378-d8ae2be229c3:Node fd14c848-199e-4c76-a378-d8ae2be229c3 :: true

2022-06-20 22:32:11 | [Mutex] waiting for: [received:nodes:4c94631c-a54b-4232-bb54-c85fa6221d0a:localhost]

2022-06-20 22:32:11 | [Mutex] received everything.

2022-06-20 22:32:11 | [Mutex] isItemNotified: received:node:4c94631c-a54b-4232-bb54-c85fa6221d0a:localhost:node-fd14c848-199e-4c76-a378-d8ae2be229c3:Node fd14c848-199e-4c76-a378-d8ae2be229c3 :: false

createNodes 1.568s
2022-06-20 22:32:07 |

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

2022-06-20 22:32:07 | ------------------------------------

2022-06-20 22:32:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fd14c848-199e-4c76-a378-d8ae2be229c3",
    "pubsub#title": "Node fd14c848-199e-4c76-a378-d8ae2be229c3"
}

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

2022-06-20 22:32:09 | [Mutex] waiting for: [received:nodes:35b03dfe-95c4-4e3b-8174-9701ab5e8cd4:localhost]

2022-06-20 22:32:09 | [Mutex] waiting for: [received:nodes:35b03dfe-95c4-4e3b-8174-9701ab5e8cd4:localhost]

2022-06-20 22:32:09 | [Mutex] received everything.

2022-06-20 22:32:09 | [Mutex] isItemNotified: received:node:35b03dfe-95c4-4e3b-8174-9701ab5e8cd4:localhost:node-fd14c848-199e-4c76-a378-d8ae2be229c3:Node fd14c848-199e-4c76-a378-d8ae2be229c3 :: true

createSubnodes 1.031s
2022-06-20 22:32:09 |

2022-06-20 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:09 | ------------------------------------

2022-06-20 22:32:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-80ba05f0-d3b6-4e0f-a498-0c3b239e8829",
    "pubsub#title": "Node 80ba05f0-d3b6-4e0f-a498-0c3b239e8829"
}

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

2022-06-20 22:32:10 | [Mutex] waiting for: [received:nodes:3517951e-0082-44ed-b12b-24514d8bf9a9:localhost]

2022-06-20 22:32:10 | [Mutex] waiting for: [received:nodes:3517951e-0082-44ed-b12b-24514d8bf9a9:localhost]

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

2022-06-20 22:32:10 | [Mutex] isItemNotified: received:node:3517951e-0082-44ed-b12b-24514d8bf9a9:localhost:node-80ba05f0-d3b6-4e0f-a498-0c3b239e8829:Node 80ba05f0-d3b6-4e0f-a498-0c3b239e8829 :: true

deleteNodes 1.031s
2022-06-20 22:32:15 |

2022-06-20 22:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:15 | ------------------------------------

2022-06-20 22:32:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-80ba05f0-d3b6-4e0f-a498-0c3b239e8829"
}

2022-06-20 22:32:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 22:32:16 | [Mutex] waiting for: [received:nodes:9c447a0d-e4d6-4b91-8533-ff27e84411ef:localhost]

2022-06-20 22:32:16 | [Mutex] waiting for: [received:nodes:9c447a0d-e4d6-4b91-8533-ff27e84411ef:localhost]

2022-06-20 22:32:16 | [Mutex] waiting for: [received:nodes:9c447a0d-e4d6-4b91-8533-ff27e84411ef:localhost]

2022-06-20 22:32:16 | [Mutex] received everything.

2022-06-20 22:32:16 | [Mutex] isItemNotified: received:node:9c447a0d-e4d6-4b91-8533-ff27e84411ef:localhost:node-80ba05f0-d3b6-4e0f-a498-0c3b239e8829:Node 80ba05f0-d3b6-4e0f-a498-0c3b239e8829 :: false

deleteSubnodes 1.028s
2022-06-20 22:32:14 |

2022-06-20 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:14 | ------------------------------------

2022-06-20 22:32:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fd14c848-199e-4c76-a378-d8ae2be229c3"
}

2022-06-20 22:32:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 22:32:15 | [Mutex] waiting for: [received:nodes:e9997a01-7038-4af0-a467-85296b4adf7a:localhost]

2022-06-20 22:32:15 | [Mutex] waiting for: [received:nodes:e9997a01-7038-4af0-a467-85296b4adf7a:localhost]

2022-06-20 22:32:15 | [Mutex] received everything.

2022-06-20 22:32:15 | [Mutex] isItemNotified: received:node:e9997a01-7038-4af0-a467-85296b4adf7a:localhost:node-fd14c848-199e-4c76-a378-d8ae2be229c3:Node fd14c848-199e-4c76-a378-d8ae2be229c3 :: false

2022-06-20 22:32:15 | [Mutex] waiting for: [received:nodes:c820d74d-8a4d-4271-9181-30ddf9d08d4a:localhost]

2022-06-20 22:32:15 | [Mutex] received everything.

2022-06-20 22:32:15 | [Mutex] isItemNotified: received:node:c820d74d-8a4d-4271-9181-30ddf9d08d4a:localhost:node-fd14c848-199e-4c76-a378-d8ae2be229c3:Node fd14c848-199e-4c76-a378-d8ae2be229c3 :: false

publishItemsToNodes 0.069s
2022-06-20 22:32:12 |

2022-06-20 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:12 | ------------------------------------

2022-06-20 22:32:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fd14c848-199e-4c76-a378-d8ae2be229c3",
    "entry": "<test>item-687bb947-9edc-4037-aef0-9c23a4b9a7a7</test>",
    "item-id": "item-687bb947-9edc-4037-aef0-9c23a4b9a7a7"
}

2022-06-20 22:32:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-687bb947-9edc-4037-aef0-9c23a4b9a7a7"
}

2022-06-20 22:32:12 | [Mutex] waiting for: [published:item:notifieditem-687bb947-9edc-4037-aef0-9c23a4b9a7a7:admin@test-domain.com]

2022-06-20 22:32:12 | [Mutex] received everything.

2022-06-20 22:32:12 | [Mutex] isItemNotified: published:item:notifieditem-687bb947-9edc-4037-aef0-9c23a4b9a7a7:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-06-20 22:32:12 |

2022-06-20 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:12 | ------------------------------------

2022-06-20 22:32:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fd14c848-199e-4c76-a378-d8ae2be229c3",
    "item-id": "item-687bb947-9edc-4037-aef0-9c23a4b9a7a7"
}

2022-06-20 22:32:12 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-687bb947-9edc-4037-aef0-9c23a4b9a7a7"
}

2022-06-20 22:32:12 | [Mutex] received everything.

2022-06-20 22:32:12 | [Mutex] isItemNotified: retracted:item:notifieditem-687bb947-9edc-4037-aef0-9c23a4b9a7a7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-06-20 22:32:12 |

2022-06-20 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:12 | ------------------------------------

2022-06-20 22:32:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fd14c848-199e-4c76-a378-d8ae2be229c3",
    "item-id": "item-687bb947-9edc-4037-aef0-9c23a4b9a7a7"
}

2022-06-20 22:32:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fd14c848-199e-4c76-a378-d8ae2be229c3",
    "item-id": "item-687bb947-9edc-4037-aef0-9c23a4b9a7a7",
    "item": [
        "<item id=\"item-687bb947-9edc-4037-aef0-9c23a4b9a7a7\"><test>item-687bb947-9edc-4037-aef0-9c23a4b9a7a7</test></item>"
    ]
}

2022-06-20 22:32:12 | [Mutex] notify: [retrieved:item:item-687bb947-9edc-4037-aef0-9c23a4b9a7a7:payload-matches:true:localhost]

2022-06-20 22:32:12 | [Mutex] received everything.

2022-06-20 22:32:12 | [Mutex] isItemNotified: retrieved:item:item-687bb947-9edc-4037-aef0-9c23a4b9a7a7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.075s
2022-06-20 22:32:12 |

2022-06-20 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:12 | ------------------------------------

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

2022-06-20 22:32:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-80ba05f0-d3b6-4e0f-a498-0c3b239e8829",
        "test",
        "node-fd14c848-199e-4c76-a378-d8ae2be229c3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-06-20 22:32:12 |

2022-06-20 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:12 | ------------------------------------

2022-06-20 22:32:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fd14c848-199e-4c76-a378-d8ae2be229c3)"
}

2022-06-20 22:32:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-06-20 22:32:11 |

2022-06-20 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:11 | ------------------------------------

2022-06-20 22:32:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fd14c848-199e-4c76-a378-d8ae2be229c3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-20 22:32:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-06-20 22:32:12 |

2022-06-20 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:12 | ------------------------------------

2022-06-20 22:32:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fd14c848-199e-4c76-a378-d8ae2be229c3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-20 22:32:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}