Generated by TestNG with ReportNG at 22:26 PDT on Sunday 18 October 2020
root@43fec6d4badf / 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.042s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2020-10-18 22:43:24 |

2020-10-18 22:43:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:24 | ------------------------------------

2020-10-18 22:43:24 | [Mutex] waiting for: [configured:node:node-4b559f4b-f960-47e0-9116-6475f7b36ea5:node-099677c2-f2c6-408d-a325-44dbda78af06]

2020-10-18 22:43:24 | [Mutex] received everything.

2020-10-18 22:43:24 | [Mutex] isItemNotified: configured:node:node-4b559f4b-f960-47e0-9116-6475f7b36ea5:node-099677c2-f2c6-408d-a325-44dbda78af06 :: true

2020-10-18 22:43:25 | [Mutex] waiting for: [received:nodes:f142613c-f472-487e-8474-920cd01f3bb0:localhost]

2020-10-18 22:43:25 | [Mutex] received everything.

2020-10-18 22:43:25 | [Mutex] isItemNotified: received:node:f142613c-f472-487e-8474-920cd01f3bb0:localhost:node-4b559f4b-f960-47e0-9116-6475f7b36ea5:Node 4b559f4b-f960-47e0-9116-6475f7b36ea5 :: true

2020-10-18 22:43:25 | [Mutex] waiting for: [received:nodes:cd1b6952-8319-4acf-8f2b-518904732448:localhost]

2020-10-18 22:43:25 | [Mutex] received everything.

2020-10-18 22:43:25 | [Mutex] isItemNotified: received:node:cd1b6952-8319-4acf-8f2b-518904732448:localhost:node-4b559f4b-f960-47e0-9116-6475f7b36ea5:Node 4b559f4b-f960-47e0-9116-6475f7b36ea5 :: false

createNodes 1.645s
2020-10-18 22:43:21 |

2020-10-18 22:43:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:21 | ------------------------------------

2020-10-18 22:43:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4b559f4b-f960-47e0-9116-6475f7b36ea5",
    "pubsub#title": "Node 4b559f4b-f960-47e0-9116-6475f7b36ea5"
}

2020-10-18 22:43:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-18 22:43:23 | [Mutex] waiting for: [received:nodes:bc43cee8-3d13-4fc0-bf93-24e45d3ba906:localhost]

2020-10-18 22:43:23 | [Mutex] waiting for: [received:nodes:bc43cee8-3d13-4fc0-bf93-24e45d3ba906:localhost]

2020-10-18 22:43:23 | [Mutex] received everything.

2020-10-18 22:43:23 | [Mutex] isItemNotified: received:node:bc43cee8-3d13-4fc0-bf93-24e45d3ba906:localhost:node-4b559f4b-f960-47e0-9116-6475f7b36ea5:Node 4b559f4b-f960-47e0-9116-6475f7b36ea5 :: true

createSubnodes 1.030s
2020-10-18 22:43:23 |

2020-10-18 22:43:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:23 | ------------------------------------

2020-10-18 22:43:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-099677c2-f2c6-408d-a325-44dbda78af06",
    "pubsub#title": "Node 099677c2-f2c6-408d-a325-44dbda78af06"
}

2020-10-18 22:43:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-18 22:43:24 | [Mutex] waiting for: [received:nodes:51369ae8-1c69-45fc-a271-80fb65cf9f82:localhost]

2020-10-18 22:43:24 | [Mutex] received everything.

2020-10-18 22:43:24 | [Mutex] isItemNotified: received:node:51369ae8-1c69-45fc-a271-80fb65cf9f82:localhost:node-099677c2-f2c6-408d-a325-44dbda78af06:Node 099677c2-f2c6-408d-a325-44dbda78af06 :: true

deleteNodes 1.025s
2020-10-18 22:43:28 |

2020-10-18 22:43:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:28 | ------------------------------------

2020-10-18 22:43:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-099677c2-f2c6-408d-a325-44dbda78af06"
}

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

2020-10-18 22:43:29 | [Mutex] waiting for: [received:nodes:143f2197-194f-43ed-a068-3ad56298421f:localhost]

2020-10-18 22:43:30 | [Mutex] received everything.

2020-10-18 22:43:30 | [Mutex] isItemNotified: received:node:143f2197-194f-43ed-a068-3ad56298421f:localhost:node-099677c2-f2c6-408d-a325-44dbda78af06:Node 099677c2-f2c6-408d-a325-44dbda78af06 :: false

deleteSubnodes 1.040s
2020-10-18 22:43:27 |

2020-10-18 22:43:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:27 | ------------------------------------

2020-10-18 22:43:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4b559f4b-f960-47e0-9116-6475f7b36ea5"
}

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

2020-10-18 22:43:28 | [Mutex] waiting for: [received:nodes:53dd31f7-6bc8-448a-bfa8-714b09a9be68:localhost]

2020-10-18 22:43:28 | [Mutex] received everything.

2020-10-18 22:43:28 | [Mutex] isItemNotified: received:node:53dd31f7-6bc8-448a-bfa8-714b09a9be68:localhost:node-4b559f4b-f960-47e0-9116-6475f7b36ea5:Node 4b559f4b-f960-47e0-9116-6475f7b36ea5 :: false

2020-10-18 22:43:28 | [Mutex] waiting for: [received:nodes:1f8c46a8-12c4-4ef3-a2ef-0ec93eb4126f:localhost]

2020-10-18 22:43:28 | [Mutex] received everything.

2020-10-18 22:43:28 | [Mutex] isItemNotified: received:node:1f8c46a8-12c4-4ef3-a2ef-0ec93eb4126f:localhost:node-4b559f4b-f960-47e0-9116-6475f7b36ea5:Node 4b559f4b-f960-47e0-9116-6475f7b36ea5 :: false

publishItemsToNodes 0.053s
2020-10-18 22:43:26 |

2020-10-18 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:26 | ------------------------------------

2020-10-18 22:43:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4b559f4b-f960-47e0-9116-6475f7b36ea5",
    "entry": "<test>item-115c8a89-24db-437c-91e9-70718785621b</test>",
    "item-id": "item-115c8a89-24db-437c-91e9-70718785621b"
}

2020-10-18 22:43:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-115c8a89-24db-437c-91e9-70718785621b"
}

2020-10-18 22:43:26 | [Mutex] waiting for: [published:item:notifieditem-115c8a89-24db-437c-91e9-70718785621b:admin@test-domain.com]

2020-10-18 22:43:26 | [Mutex] received everything.

2020-10-18 22:43:26 | [Mutex] isItemNotified: published:item:notifieditem-115c8a89-24db-437c-91e9-70718785621b:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2020-10-18 22:43:26 |

2020-10-18 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:26 | ------------------------------------

2020-10-18 22:43:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4b559f4b-f960-47e0-9116-6475f7b36ea5",
    "item-id": "item-115c8a89-24db-437c-91e9-70718785621b"
}

2020-10-18 22:43:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-115c8a89-24db-437c-91e9-70718785621b"
}

2020-10-18 22:43:26 | [Mutex] received everything.

2020-10-18 22:43:26 | [Mutex] isItemNotified: retracted:item:notifieditem-115c8a89-24db-437c-91e9-70718785621b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.053s
2020-10-18 22:43:26 |

2020-10-18 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:26 | ------------------------------------

2020-10-18 22:43:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4b559f4b-f960-47e0-9116-6475f7b36ea5",
    "item-id": "item-115c8a89-24db-437c-91e9-70718785621b"
}

2020-10-18 22:43:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4b559f4b-f960-47e0-9116-6475f7b36ea5",
    "item-id": "item-115c8a89-24db-437c-91e9-70718785621b",
    "item": [
        "<item id=\"item-115c8a89-24db-437c-91e9-70718785621b\"><test>item-115c8a89-24db-437c-91e9-70718785621b</test></item>"
    ]
}

2020-10-18 22:43:26 | [Mutex] notify: [retrieved:item:item-115c8a89-24db-437c-91e9-70718785621b:payload-matches:true:localhost]

2020-10-18 22:43:26 | [Mutex] received everything.

2020-10-18 22:43:26 | [Mutex] isItemNotified: retrieved:item:item-115c8a89-24db-437c-91e9-70718785621b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-10-18 22:43:26 |

2020-10-18 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:26 | ------------------------------------

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

2020-10-18 22:43:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-099677c2-f2c6-408d-a325-44dbda78af06",
        "test",
        "node-4b559f4b-f960-47e0-9116-6475f7b36ea5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-10-18 22:43:26 |

2020-10-18 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:26 | ------------------------------------

2020-10-18 22:43:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4b559f4b-f960-47e0-9116-6475f7b36ea5)"
}

2020-10-18 22:43:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.031s
2020-10-18 22:43:25 |

2020-10-18 22:43:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:25 | ------------------------------------

2020-10-18 22:43:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4b559f4b-f960-47e0-9116-6475f7b36ea5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-18 22:43:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.080s
2020-10-18 22:43:26 |

2020-10-18 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-18 22:43:26 | ------------------------------------

2020-10-18 22:43:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4b559f4b-f960-47e0-9116-6475f7b36ea5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-18 22:43:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}