Generated by TestNG with ReportNG at 21:57 PST on Tuesday 16 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 : 8.925s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2021-11-16 22:13:03 |

2021-11-16 22:13:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:03 | ------------------------------------

2021-11-16 22:13:03 | [Mutex] waiting for: [configured:node:node-643a0654-0a2b-48d5-a097-ca4006d3cb0d:node-8a8a9f66-9db8-4342-9ac5-5362183aa8ce]

2021-11-16 22:13:03 | [Mutex] received everything.

2021-11-16 22:13:03 | [Mutex] isItemNotified: configured:node:node-643a0654-0a2b-48d5-a097-ca4006d3cb0d:node-8a8a9f66-9db8-4342-9ac5-5362183aa8ce :: true

2021-11-16 22:13:04 | [Mutex] waiting for: [received:nodes:3b0f2bb4-22d3-464f-ad27-57c3f0e16248:localhost]

2021-11-16 22:13:04 | [Mutex] received everything.

2021-11-16 22:13:04 | [Mutex] isItemNotified: received:node:3b0f2bb4-22d3-464f-ad27-57c3f0e16248:localhost:node-643a0654-0a2b-48d5-a097-ca4006d3cb0d:Node 643a0654-0a2b-48d5-a097-ca4006d3cb0d :: true

2021-11-16 22:13:04 | [Mutex] waiting for: [received:nodes:2006df49-edd1-4cff-a78e-86ec56361d8e:localhost]

2021-11-16 22:13:04 | [Mutex] waiting for: [received:nodes:2006df49-edd1-4cff-a78e-86ec56361d8e:localhost]

2021-11-16 22:13:04 | [Mutex] received everything.

2021-11-16 22:13:04 | [Mutex] isItemNotified: received:node:2006df49-edd1-4cff-a78e-86ec56361d8e:localhost:node-643a0654-0a2b-48d5-a097-ca4006d3cb0d:Node 643a0654-0a2b-48d5-a097-ca4006d3cb0d :: false

createNodes 1.675s
2021-11-16 22:13:00 |

2021-11-16 22:13:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:00 | ------------------------------------

2021-11-16 22:13:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-643a0654-0a2b-48d5-a097-ca4006d3cb0d",
    "pubsub#title": "Node 643a0654-0a2b-48d5-a097-ca4006d3cb0d"
}

2021-11-16 22:13:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-16 22:13:02 | [Mutex] waiting for: [received:nodes:d832e8da-88ac-476b-853d-ba6089f862dc:localhost]

2021-11-16 22:13:02 | [Mutex] received everything.

2021-11-16 22:13:02 | [Mutex] isItemNotified: received:node:d832e8da-88ac-476b-853d-ba6089f862dc:localhost:node-643a0654-0a2b-48d5-a097-ca4006d3cb0d:Node 643a0654-0a2b-48d5-a097-ca4006d3cb0d :: true

createSubnodes 1.025s
2021-11-16 22:13:02 |

2021-11-16 22:13:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:02 | ------------------------------------

2021-11-16 22:13:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8a8a9f66-9db8-4342-9ac5-5362183aa8ce",
    "pubsub#title": "Node 8a8a9f66-9db8-4342-9ac5-5362183aa8ce"
}

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

2021-11-16 22:13:03 | [Mutex] waiting for: [received:nodes:25387e19-60c4-4490-895b-84cb5ae5772b:localhost]

2021-11-16 22:13:03 | [Mutex] received everything.

2021-11-16 22:13:03 | [Mutex] isItemNotified: received:node:25387e19-60c4-4490-895b-84cb5ae5772b:localhost:node-8a8a9f66-9db8-4342-9ac5-5362183aa8ce:Node 8a8a9f66-9db8-4342-9ac5-5362183aa8ce :: true

deleteNodes 1.020s
2021-11-16 22:13:07 |

2021-11-16 22:13:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:07 | ------------------------------------

2021-11-16 22:13:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8a8a9f66-9db8-4342-9ac5-5362183aa8ce"
}

2021-11-16 22:13:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-16 22:13:08 | [Mutex] waiting for: [received:nodes:153ee5f4-9cc9-49e4-9a72-429578782d43:localhost]

2021-11-16 22:13:08 | [Mutex] received everything.

2021-11-16 22:13:08 | [Mutex] isItemNotified: received:node:153ee5f4-9cc9-49e4-9a72-429578782d43:localhost:node-8a8a9f66-9db8-4342-9ac5-5362183aa8ce:Node 8a8a9f66-9db8-4342-9ac5-5362183aa8ce :: false

deleteSubnodes 1.031s
2021-11-16 22:13:06 |

2021-11-16 22:13:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:06 | ------------------------------------

2021-11-16 22:13:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-643a0654-0a2b-48d5-a097-ca4006d3cb0d"
}

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

2021-11-16 22:13:07 | [Mutex] waiting for: [received:nodes:3c547ed0-dfb9-4b17-ba66-86d3ae1a5d91:localhost]

2021-11-16 22:13:07 | [Mutex] received everything.

2021-11-16 22:13:07 | [Mutex] isItemNotified: received:node:3c547ed0-dfb9-4b17-ba66-86d3ae1a5d91:localhost:node-643a0654-0a2b-48d5-a097-ca4006d3cb0d:Node 643a0654-0a2b-48d5-a097-ca4006d3cb0d :: false

2021-11-16 22:13:07 | [Mutex] waiting for: [received:nodes:c9d3b2d0-ef81-4444-bc92-d19ab0f38f63:localhost]

2021-11-16 22:13:07 | [Mutex] received everything.

2021-11-16 22:13:07 | [Mutex] isItemNotified: received:node:c9d3b2d0-ef81-4444-bc92-d19ab0f38f63:localhost:node-643a0654-0a2b-48d5-a097-ca4006d3cb0d:Node 643a0654-0a2b-48d5-a097-ca4006d3cb0d :: false

publishItemsToNodes 0.080s
2021-11-16 22:13:05 |

2021-11-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:05 | ------------------------------------

2021-11-16 22:13:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-643a0654-0a2b-48d5-a097-ca4006d3cb0d",
    "entry": "<test>item-607afacb-3c0c-4174-95ae-6b7fef8cdf70</test>",
    "item-id": "item-607afacb-3c0c-4174-95ae-6b7fef8cdf70"
}

2021-11-16 22:13:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-607afacb-3c0c-4174-95ae-6b7fef8cdf70"
}

2021-11-16 22:13:05 | [Mutex] waiting for: [published:item:notifieditem-607afacb-3c0c-4174-95ae-6b7fef8cdf70:admin@test-domain.com]

2021-11-16 22:13:05 | [Mutex] received everything.

2021-11-16 22:13:05 | [Mutex] isItemNotified: published:item:notifieditem-607afacb-3c0c-4174-95ae-6b7fef8cdf70:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2021-11-16 22:13:05 |

2021-11-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:05 | ------------------------------------

2021-11-16 22:13:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-643a0654-0a2b-48d5-a097-ca4006d3cb0d",
    "item-id": "item-607afacb-3c0c-4174-95ae-6b7fef8cdf70"
}

2021-11-16 22:13:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-607afacb-3c0c-4174-95ae-6b7fef8cdf70"
}

2021-11-16 22:13:05 | [Mutex] waiting for: [retracted:item:notifieditem-607afacb-3c0c-4174-95ae-6b7fef8cdf70:admin@test-domain.com]

2021-11-16 22:13:05 | [Mutex] received everything.

2021-11-16 22:13:05 | [Mutex] isItemNotified: retracted:item:notifieditem-607afacb-3c0c-4174-95ae-6b7fef8cdf70:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2021-11-16 22:13:05 |

2021-11-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:05 | ------------------------------------

2021-11-16 22:13:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-643a0654-0a2b-48d5-a097-ca4006d3cb0d",
    "item-id": "item-607afacb-3c0c-4174-95ae-6b7fef8cdf70"
}

2021-11-16 22:13:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-643a0654-0a2b-48d5-a097-ca4006d3cb0d",
    "item-id": "item-607afacb-3c0c-4174-95ae-6b7fef8cdf70",
    "item": [
        "<item id=\"item-607afacb-3c0c-4174-95ae-6b7fef8cdf70\"><test>item-607afacb-3c0c-4174-95ae-6b7fef8cdf70</test></item>"
    ]
}

2021-11-16 22:13:05 | [Mutex] notify: [retrieved:item:item-607afacb-3c0c-4174-95ae-6b7fef8cdf70:payload-matches:true:localhost]

2021-11-16 22:13:05 | [Mutex] received everything.

2021-11-16 22:13:05 | [Mutex] isItemNotified: retrieved:item:item-607afacb-3c0c-4174-95ae-6b7fef8cdf70:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2021-11-16 22:13:05 |

2021-11-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:05 | ------------------------------------

2021-11-16 22:13:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-11-16 22:13:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-643a0654-0a2b-48d5-a097-ca4006d3cb0d",
        "test",
        "node-8a8a9f66-9db8-4342-9ac5-5362183aa8ce"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-11-16 22:13:05 |

2021-11-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:05 | ------------------------------------

2021-11-16 22:13:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-643a0654-0a2b-48d5-a097-ca4006d3cb0d)"
}

2021-11-16 22:13:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-11-16 22:13:04 |

2021-11-16 22:13:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:04 | ------------------------------------

2021-11-16 22:13:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-643a0654-0a2b-48d5-a097-ca4006d3cb0d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-16 22:13:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.062s
2021-11-16 22:13:05 |

2021-11-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-16 22:13:05 | ------------------------------------

2021-11-16 22:13:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-643a0654-0a2b-48d5-a097-ca4006d3cb0d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-16 22:13:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}