Generated by TestNG with ReportNG at 11:34 PDT on Thursday 27 August 2020
root@18d694fe8e0a / 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.105s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2020-08-27 11:51:03 |

2020-08-27 11:51:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:03 | ------------------------------------

2020-08-27 11:51:03 | [Mutex] waiting for: [configured:node:node-56f861c0-9f71-4741-875b-ba2771212ae5:node-7670542f-56e1-4ba9-b54b-0714b63be5cc]

2020-08-27 11:51:03 | [Mutex] received everything.

2020-08-27 11:51:03 | [Mutex] isItemNotified: configured:node:node-56f861c0-9f71-4741-875b-ba2771212ae5:node-7670542f-56e1-4ba9-b54b-0714b63be5cc :: true

2020-08-27 11:51:04 | [Mutex] waiting for: [received:nodes:5ccf2d0c-3cfb-446d-adba-0166bc0ed0e9:localhost]

2020-08-27 11:51:04 | [Mutex] waiting for: [received:nodes:5ccf2d0c-3cfb-446d-adba-0166bc0ed0e9:localhost]

2020-08-27 11:51:04 | [Mutex] received everything.

2020-08-27 11:51:04 | [Mutex] isItemNotified: received:node:5ccf2d0c-3cfb-446d-adba-0166bc0ed0e9:localhost:node-56f861c0-9f71-4741-875b-ba2771212ae5:Node 56f861c0-9f71-4741-875b-ba2771212ae5 :: true

2020-08-27 11:51:04 | [Mutex] waiting for: [received:nodes:de137b9c-0fd7-448e-974d-91e212287ca3:localhost]

2020-08-27 11:51:05 | [Mutex] waiting for: [received:nodes:de137b9c-0fd7-448e-974d-91e212287ca3:localhost]

2020-08-27 11:51:05 | [Mutex] received everything.

2020-08-27 11:51:05 | [Mutex] isItemNotified: received:node:de137b9c-0fd7-448e-974d-91e212287ca3:localhost:node-56f861c0-9f71-4741-875b-ba2771212ae5:Node 56f861c0-9f71-4741-875b-ba2771212ae5 :: false

createNodes 1.683s
2020-08-27 11:51:01 |

2020-08-27 11:51:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:01 | ------------------------------------

2020-08-27 11:51:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-56f861c0-9f71-4741-875b-ba2771212ae5",
    "pubsub#title": "Node 56f861c0-9f71-4741-875b-ba2771212ae5"
}

2020-08-27 11:51:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 11:51:02 | [Mutex] waiting for: [received:nodes:df866a5d-1fc7-4aec-b2ac-c1de8f3aaee9:localhost]

2020-08-27 11:51:02 | [Mutex] received everything.

2020-08-27 11:51:02 | [Mutex] isItemNotified: received:node:df866a5d-1fc7-4aec-b2ac-c1de8f3aaee9:localhost:node-56f861c0-9f71-4741-875b-ba2771212ae5:Node 56f861c0-9f71-4741-875b-ba2771212ae5 :: true

createSubnodes 1.030s
2020-08-27 11:51:02 |

2020-08-27 11:51:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:02 | ------------------------------------

2020-08-27 11:51: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-7670542f-56e1-4ba9-b54b-0714b63be5cc",
    "pubsub#title": "Node 7670542f-56e1-4ba9-b54b-0714b63be5cc"
}

2020-08-27 11:51:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 11:51:03 | [Mutex] waiting for: [received:nodes:2050c3a9-52fd-4985-9a59-764444b64f4c:localhost]

2020-08-27 11:51:03 | [Mutex] received everything.

2020-08-27 11:51:03 | [Mutex] isItemNotified: received:node:2050c3a9-52fd-4985-9a59-764444b64f4c:localhost:node-7670542f-56e1-4ba9-b54b-0714b63be5cc:Node 7670542f-56e1-4ba9-b54b-0714b63be5cc :: true

deleteNodes 1.022s
2020-08-27 11:51:08 |

2020-08-27 11:51:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:08 | ------------------------------------

2020-08-27 11:51:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7670542f-56e1-4ba9-b54b-0714b63be5cc"
}

2020-08-27 11:51:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 11:51:09 | [Mutex] waiting for: [received:nodes:c312fb23-1ffc-4e35-b592-bdcd350740ae:localhost]

2020-08-27 11:51:09 | [Mutex] received everything.

2020-08-27 11:51:09 | [Mutex] isItemNotified: received:node:c312fb23-1ffc-4e35-b592-bdcd350740ae:localhost:node-7670542f-56e1-4ba9-b54b-0714b63be5cc:Node 7670542f-56e1-4ba9-b54b-0714b63be5cc :: false

deleteSubnodes 1.057s
2020-08-27 11:51:07 |

2020-08-27 11:51:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:07 | ------------------------------------

2020-08-27 11:51:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-56f861c0-9f71-4741-875b-ba2771212ae5"
}

2020-08-27 11:51:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 11:51:08 | [Mutex] waiting for: [received:nodes:8d59bf1d-68ea-4c73-a256-40a3da1c47e8:localhost]

2020-08-27 11:51:08 | [Mutex] received everything.

2020-08-27 11:51:08 | [Mutex] isItemNotified: received:node:8d59bf1d-68ea-4c73-a256-40a3da1c47e8:localhost:node-56f861c0-9f71-4741-875b-ba2771212ae5:Node 56f861c0-9f71-4741-875b-ba2771212ae5 :: false

2020-08-27 11:51:08 | [Mutex] waiting for: [received:nodes:b83a0398-d978-444a-b57b-7d828979aab3:localhost]

2020-08-27 11:51:08 | [Mutex] received everything.

2020-08-27 11:51:08 | [Mutex] isItemNotified: received:node:b83a0398-d978-444a-b57b-7d828979aab3:localhost:node-56f861c0-9f71-4741-875b-ba2771212ae5:Node 56f861c0-9f71-4741-875b-ba2771212ae5 :: false

publishItemsToNodes 0.057s
2020-08-27 11:51:06 |

2020-08-27 11:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:06 | ------------------------------------

2020-08-27 11:51:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-56f861c0-9f71-4741-875b-ba2771212ae5",
    "entry": "<test>item-6d5c9add-4427-4f42-9250-e79581a13378</test>",
    "item-id": "item-6d5c9add-4427-4f42-9250-e79581a13378"
}

2020-08-27 11:51:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d5c9add-4427-4f42-9250-e79581a13378"
}

2020-08-27 11:51:06 | [Mutex] waiting for: [published:item:notifieditem-6d5c9add-4427-4f42-9250-e79581a13378:admin@test-domain.com]

2020-08-27 11:51:06 | [Mutex] received everything.

2020-08-27 11:51:06 | [Mutex] isItemNotified: published:item:notifieditem-6d5c9add-4427-4f42-9250-e79581a13378:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2020-08-27 11:51:06 |

2020-08-27 11:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:06 | ------------------------------------

2020-08-27 11:51:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-56f861c0-9f71-4741-875b-ba2771212ae5",
    "item-id": "item-6d5c9add-4427-4f42-9250-e79581a13378"
}

2020-08-27 11:51:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d5c9add-4427-4f42-9250-e79581a13378"
}

2020-08-27 11:51:06 | [Mutex] waiting for: [retracted:item:notifieditem-6d5c9add-4427-4f42-9250-e79581a13378:admin@test-domain.com]

2020-08-27 11:51:06 | [Mutex] received everything.

2020-08-27 11:51:06 | [Mutex] isItemNotified: retracted:item:notifieditem-6d5c9add-4427-4f42-9250-e79581a13378:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2020-08-27 11:51:06 |

2020-08-27 11:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:06 | ------------------------------------

2020-08-27 11:51:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-56f861c0-9f71-4741-875b-ba2771212ae5",
    "item-id": "item-6d5c9add-4427-4f42-9250-e79581a13378"
}

2020-08-27 11:51:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-56f861c0-9f71-4741-875b-ba2771212ae5",
    "item-id": "item-6d5c9add-4427-4f42-9250-e79581a13378",
    "item": [
        "<item id=\"item-6d5c9add-4427-4f42-9250-e79581a13378\"><test>item-6d5c9add-4427-4f42-9250-e79581a13378</test></item>"
    ]
}

2020-08-27 11:51:06 | [Mutex] notify: [retrieved:item:item-6d5c9add-4427-4f42-9250-e79581a13378:payload-matches:true:localhost]

2020-08-27 11:51:06 | [Mutex] received everything.

2020-08-27 11:51:06 | [Mutex] isItemNotified: retrieved:item:item-6d5c9add-4427-4f42-9250-e79581a13378:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-08-27 11:51:06 |

2020-08-27 11:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:06 | ------------------------------------

2020-08-27 11:51:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-27 11:51:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-56f861c0-9f71-4741-875b-ba2771212ae5",
        "node-7670542f-56e1-4ba9-b54b-0714b63be5cc"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2020-08-27 11:51:06 |

2020-08-27 11:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:06 | ------------------------------------

2020-08-27 11:51:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-56f861c0-9f71-4741-875b-ba2771212ae5)"
}

2020-08-27 11:51:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-08-27 11:51:05 |

2020-08-27 11:51:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:05 | ------------------------------------

2020-08-27 11:51:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-56f861c0-9f71-4741-875b-ba2771212ae5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 11:51:05 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2020-08-27 11:51:06 |

2020-08-27 11:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:51:06 | ------------------------------------

2020-08-27 11:51:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-56f861c0-9f71-4741-875b-ba2771212ae5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 11:51:06 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}