Generated by TestNG with ReportNG at 22:19 PDT on Wednesday 22 June 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.675s

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

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

2022-06-22 22:34:07 | ------------------------------------

2022-06-22 22:34:07 | [Mutex] waiting for: [configured:node:node-2869506d-1f02-44cb-9805-0e5c96cd5bcb:node-c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06]

2022-06-22 22:34:08 | [Mutex] received everything.

2022-06-22 22:34:08 | [Mutex] isItemNotified: configured:node:node-2869506d-1f02-44cb-9805-0e5c96cd5bcb:node-c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06 :: true

2022-06-22 22:34:09 | [Mutex] waiting for: [received:nodes:6b247399-23bc-4360-a165-8bebc485a785:localhost]

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

2022-06-22 22:34:09 | [Mutex] isItemNotified: received:node:6b247399-23bc-4360-a165-8bebc485a785:localhost:node-2869506d-1f02-44cb-9805-0e5c96cd5bcb:Node 2869506d-1f02-44cb-9805-0e5c96cd5bcb :: true

2022-06-22 22:34:09 | [Mutex] waiting for: [received:nodes:090a1483-40e9-4012-a03f-f682d3cdbdfc:localhost]

2022-06-22 22:34:09 | [Mutex] waiting for: [received:nodes:090a1483-40e9-4012-a03f-f682d3cdbdfc:localhost]

2022-06-22 22:34:09 | [Mutex] waiting for: [received:nodes:090a1483-40e9-4012-a03f-f682d3cdbdfc:localhost]

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

2022-06-22 22:34:09 | [Mutex] isItemNotified: received:node:090a1483-40e9-4012-a03f-f682d3cdbdfc:localhost:node-2869506d-1f02-44cb-9805-0e5c96cd5bcb:Node 2869506d-1f02-44cb-9805-0e5c96cd5bcb :: false

createNodes 1.652s
2022-06-22 22:34:05 |

2022-06-22 22:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-22 22:34:05 | ------------------------------------

2022-06-22 22:34:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2869506d-1f02-44cb-9805-0e5c96cd5bcb",
    "pubsub#title": "Node 2869506d-1f02-44cb-9805-0e5c96cd5bcb"
}

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

2022-06-22 22:34:06 | [Mutex] waiting for: [received:nodes:a485cf30-425c-4ca4-a741-cbd7d8a1af06:localhost]

2022-06-22 22:34:06 | [Mutex] waiting for: [received:nodes:a485cf30-425c-4ca4-a741-cbd7d8a1af06:localhost]

2022-06-22 22:34:06 | [Mutex] waiting for: [received:nodes:a485cf30-425c-4ca4-a741-cbd7d8a1af06:localhost]

2022-06-22 22:34:06 | [Mutex] waiting for: [received:nodes:a485cf30-425c-4ca4-a741-cbd7d8a1af06:localhost]

2022-06-22 22:34:06 | [Mutex] received everything.

2022-06-22 22:34:06 | [Mutex] isItemNotified: received:node:a485cf30-425c-4ca4-a741-cbd7d8a1af06:localhost:node-2869506d-1f02-44cb-9805-0e5c96cd5bcb:Node 2869506d-1f02-44cb-9805-0e5c96cd5bcb :: true

createSubnodes 1.034s
2022-06-22 22:34:06 |

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

2022-06-22 22:34:06 | ------------------------------------

2022-06-22 22:34:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06",
    "pubsub#title": "Node c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06"
}

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

2022-06-22 22:34:07 | [Mutex] waiting for: [received:nodes:817d2a3f-7e76-4f84-ae08-9bb33044b9f6:localhost]

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

2022-06-22 22:34:07 | [Mutex] isItemNotified: received:node:817d2a3f-7e76-4f84-ae08-9bb33044b9f6:localhost:node-c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06:Node c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06 :: true

deleteNodes 1.024s
2022-06-22 22:34:12 |

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

2022-06-22 22:34:12 | ------------------------------------

2022-06-22 22:34:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06"
}

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

2022-06-22 22:34:13 | [Mutex] waiting for: [received:nodes:e3dce76d-3687-4060-9563-c401b5e40544:localhost]

2022-06-22 22:34:13 | [Mutex] received everything.

2022-06-22 22:34:13 | [Mutex] isItemNotified: received:node:e3dce76d-3687-4060-9563-c401b5e40544:localhost:node-c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06:Node c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06 :: false

deleteSubnodes 1.028s
2022-06-22 22:34:11 |

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

2022-06-22 22:34:11 | ------------------------------------

2022-06-22 22:34:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2869506d-1f02-44cb-9805-0e5c96cd5bcb"
}

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

2022-06-22 22:34:12 | [Mutex] waiting for: [received:nodes:726a2bc9-d431-4c42-b965-568f855388d3:localhost]

2022-06-22 22:34:12 | [Mutex] waiting for: [received:nodes:726a2bc9-d431-4c42-b965-568f855388d3:localhost]

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

2022-06-22 22:34:12 | [Mutex] isItemNotified: received:node:726a2bc9-d431-4c42-b965-568f855388d3:localhost:node-2869506d-1f02-44cb-9805-0e5c96cd5bcb:Node 2869506d-1f02-44cb-9805-0e5c96cd5bcb :: false

2022-06-22 22:34:12 | [Mutex] waiting for: [received:nodes:2064143b-c2af-4850-920c-b390cfd4bc05:localhost]

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

2022-06-22 22:34:12 | [Mutex] isItemNotified: received:node:2064143b-c2af-4850-920c-b390cfd4bc05:localhost:node-2869506d-1f02-44cb-9805-0e5c96cd5bcb:Node 2869506d-1f02-44cb-9805-0e5c96cd5bcb :: false

publishItemsToNodes 0.049s
2022-06-22 22:34:10 |

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

2022-06-22 22:34:10 | ------------------------------------

2022-06-22 22:34:10 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2869506d-1f02-44cb-9805-0e5c96cd5bcb",
    "entry": "<test>item-d037a9d4-cce1-4171-b612-90129a51e335</test>",
    "item-id": "item-d037a9d4-cce1-4171-b612-90129a51e335"
}

2022-06-22 22:34:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d037a9d4-cce1-4171-b612-90129a51e335"
}

2022-06-22 22:34:10 | [Mutex] waiting for: [published:item:notifieditem-d037a9d4-cce1-4171-b612-90129a51e335:admin@test-domain.com]

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

2022-06-22 22:34:10 | [Mutex] isItemNotified: published:item:notifieditem-d037a9d4-cce1-4171-b612-90129a51e335:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-06-22 22:34:10 |

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

2022-06-22 22:34:10 | ------------------------------------

2022-06-22 22:34:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2869506d-1f02-44cb-9805-0e5c96cd5bcb",
    "item-id": "item-d037a9d4-cce1-4171-b612-90129a51e335"
}

2022-06-22 22:34:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d037a9d4-cce1-4171-b612-90129a51e335"
}

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

2022-06-22 22:34:10 | [Mutex] isItemNotified: retracted:item:notifieditem-d037a9d4-cce1-4171-b612-90129a51e335:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2022-06-22 22:34:10 |

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

2022-06-22 22:34:10 | ------------------------------------

2022-06-22 22:34:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2869506d-1f02-44cb-9805-0e5c96cd5bcb",
    "item-id": "item-d037a9d4-cce1-4171-b612-90129a51e335"
}

2022-06-22 22:34:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2869506d-1f02-44cb-9805-0e5c96cd5bcb",
    "item-id": "item-d037a9d4-cce1-4171-b612-90129a51e335",
    "item": [
        "<item id=\"item-d037a9d4-cce1-4171-b612-90129a51e335\"><test>item-d037a9d4-cce1-4171-b612-90129a51e335</test></item>"
    ]
}

2022-06-22 22:34:10 | [Mutex] notify: [retrieved:item:item-d037a9d4-cce1-4171-b612-90129a51e335:payload-matches:true:localhost]

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

2022-06-22 22:34:10 | [Mutex] isItemNotified: retrieved:item:item-d037a9d4-cce1-4171-b612-90129a51e335:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-22 22:34:10 |

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

2022-06-22 22:34:10 | ------------------------------------

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

2022-06-22 22:34:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2869506d-1f02-44cb-9805-0e5c96cd5bcb",
        "test",
        "node-c5b33e2d-e00f-46d0-a8d1-1d7fa76dac06"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-06-22 22:34:10 |

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

2022-06-22 22:34:10 | ------------------------------------

2022-06-22 22:34:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2869506d-1f02-44cb-9805-0e5c96cd5bcb)"
}

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

subscribeNodes 1.015s
2022-06-22 22:34:09 |

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

2022-06-22 22:34:09 | ------------------------------------

2022-06-22 22:34:09 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2869506d-1f02-44cb-9805-0e5c96cd5bcb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-06-22 22:34:10 |

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

2022-06-22 22:34:10 | ------------------------------------

2022-06-22 22:34:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2869506d-1f02-44cb-9805-0e5c96cd5bcb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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