Generated by TestNG with ReportNG at 22:23 PDT on Monday 05 October 2020
root@eaa73862192b / 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.988s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2020-10-05 22:38:45 |

2020-10-05 22:38:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:45 | ------------------------------------

2020-10-05 22:38:45 | [Mutex] waiting for: [configured:node:node-664113b6-7580-48ae-86ce-3130eacf0a89:node-6aca6b32-f4ce-4d7d-9c7e-381101678f16]

2020-10-05 22:38:45 | [Mutex] received everything.

2020-10-05 22:38:45 | [Mutex] isItemNotified: configured:node:node-664113b6-7580-48ae-86ce-3130eacf0a89:node-6aca6b32-f4ce-4d7d-9c7e-381101678f16 :: true

2020-10-05 22:38:46 | [Mutex] waiting for: [received:nodes:230fce0d-a65d-4a9c-8473-9d4299dfc95f:localhost]

2020-10-05 22:38:46 | [Mutex] received everything.

2020-10-05 22:38:46 | [Mutex] isItemNotified: received:node:230fce0d-a65d-4a9c-8473-9d4299dfc95f:localhost:node-664113b6-7580-48ae-86ce-3130eacf0a89:Node 664113b6-7580-48ae-86ce-3130eacf0a89 :: true

2020-10-05 22:38:46 | [Mutex] waiting for: [received:nodes:646aaf4c-cf76-4425-9a1d-1c5d3c5d37b4:localhost]

2020-10-05 22:38:46 | [Mutex] received everything.

2020-10-05 22:38:46 | [Mutex] isItemNotified: received:node:646aaf4c-cf76-4425-9a1d-1c5d3c5d37b4:localhost:node-664113b6-7580-48ae-86ce-3130eacf0a89:Node 664113b6-7580-48ae-86ce-3130eacf0a89 :: false

createNodes 1.749s
2020-10-05 22:38:42 |

2020-10-05 22:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:42 | ------------------------------------

2020-10-05 22:38:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-664113b6-7580-48ae-86ce-3130eacf0a89",
    "pubsub#title": "Node 664113b6-7580-48ae-86ce-3130eacf0a89"
}

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

2020-10-05 22:38:44 | [Mutex] waiting for: [received:nodes:da3721a7-8b82-46ca-8429-b5e41f618b02:localhost]

2020-10-05 22:38:44 | [Mutex] received everything.

2020-10-05 22:38:44 | [Mutex] isItemNotified: received:node:da3721a7-8b82-46ca-8429-b5e41f618b02:localhost:node-664113b6-7580-48ae-86ce-3130eacf0a89:Node 664113b6-7580-48ae-86ce-3130eacf0a89 :: true

createSubnodes 1.025s
2020-10-05 22:38:44 |

2020-10-05 22:38:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:44 | ------------------------------------

2020-10-05 22:38:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6aca6b32-f4ce-4d7d-9c7e-381101678f16",
    "pubsub#title": "Node 6aca6b32-f4ce-4d7d-9c7e-381101678f16"
}

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

2020-10-05 22:38:45 | [Mutex] waiting for: [received:nodes:b80f0ace-fde0-486e-929c-e66d3ecd1b8f:localhost]

2020-10-05 22:38:45 | [Mutex] received everything.

2020-10-05 22:38:45 | [Mutex] isItemNotified: received:node:b80f0ace-fde0-486e-929c-e66d3ecd1b8f:localhost:node-6aca6b32-f4ce-4d7d-9c7e-381101678f16:Node 6aca6b32-f4ce-4d7d-9c7e-381101678f16 :: true

deleteNodes 1.019s
2020-10-05 22:38:49 |

2020-10-05 22:38:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:49 | ------------------------------------

2020-10-05 22:38:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6aca6b32-f4ce-4d7d-9c7e-381101678f16"
}

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

2020-10-05 22:38:50 | [Mutex] waiting for: [received:nodes:e3aa747b-fe29-44f3-9e66-5a29e582afe4:localhost]

2020-10-05 22:38:51 | [Mutex] received everything.

2020-10-05 22:38:51 | [Mutex] isItemNotified: received:node:e3aa747b-fe29-44f3-9e66-5a29e582afe4:localhost:node-6aca6b32-f4ce-4d7d-9c7e-381101678f16:Node 6aca6b32-f4ce-4d7d-9c7e-381101678f16 :: false

deleteSubnodes 1.025s
2020-10-05 22:38:48 |

2020-10-05 22:38:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:48 | ------------------------------------

2020-10-05 22:38:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-664113b6-7580-48ae-86ce-3130eacf0a89"
}

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

2020-10-05 22:38:49 | [Mutex] waiting for: [received:nodes:58261b89-8916-4215-9f4d-42314bff8bca:localhost]

2020-10-05 22:38:49 | [Mutex] waiting for: [received:nodes:58261b89-8916-4215-9f4d-42314bff8bca:localhost]

2020-10-05 22:38:49 | [Mutex] received everything.

2020-10-05 22:38:49 | [Mutex] isItemNotified: received:node:58261b89-8916-4215-9f4d-42314bff8bca:localhost:node-664113b6-7580-48ae-86ce-3130eacf0a89:Node 664113b6-7580-48ae-86ce-3130eacf0a89 :: false

2020-10-05 22:38:49 | [Mutex] waiting for: [received:nodes:7977380a-4b2d-4b61-b95f-b0b3e586ef5c:localhost]

2020-10-05 22:38:49 | [Mutex] received everything.

2020-10-05 22:38:49 | [Mutex] isItemNotified: received:node:7977380a-4b2d-4b61-b95f-b0b3e586ef5c:localhost:node-664113b6-7580-48ae-86ce-3130eacf0a89:Node 664113b6-7580-48ae-86ce-3130eacf0a89 :: false

publishItemsToNodes 0.031s
2020-10-05 22:38:47 |

2020-10-05 22:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:47 | ------------------------------------

2020-10-05 22:38:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-664113b6-7580-48ae-86ce-3130eacf0a89",
    "entry": "<test>item-89817ca1-1301-4396-98b0-1ca7e0119e1d</test>",
    "item-id": "item-89817ca1-1301-4396-98b0-1ca7e0119e1d"
}

2020-10-05 22:38:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89817ca1-1301-4396-98b0-1ca7e0119e1d"
}

2020-10-05 22:38:47 | [Mutex] waiting for: [published:item:notifieditem-89817ca1-1301-4396-98b0-1ca7e0119e1d:admin@test-domain.com]

2020-10-05 22:38:47 | [Mutex] received everything.

2020-10-05 22:38:47 | [Mutex] isItemNotified: published:item:notifieditem-89817ca1-1301-4396-98b0-1ca7e0119e1d:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2020-10-05 22:38:47 |

2020-10-05 22:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:47 | ------------------------------------

2020-10-05 22:38:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-664113b6-7580-48ae-86ce-3130eacf0a89",
    "item-id": "item-89817ca1-1301-4396-98b0-1ca7e0119e1d"
}

2020-10-05 22:38:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89817ca1-1301-4396-98b0-1ca7e0119e1d"
}

2020-10-05 22:38:47 | [Mutex] received everything.

2020-10-05 22:38:47 | [Mutex] isItemNotified: retracted:item:notifieditem-89817ca1-1301-4396-98b0-1ca7e0119e1d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2020-10-05 22:38:47 |

2020-10-05 22:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:47 | ------------------------------------

2020-10-05 22:38:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-664113b6-7580-48ae-86ce-3130eacf0a89",
    "item-id": "item-89817ca1-1301-4396-98b0-1ca7e0119e1d"
}

2020-10-05 22:38:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-664113b6-7580-48ae-86ce-3130eacf0a89",
    "item-id": "item-89817ca1-1301-4396-98b0-1ca7e0119e1d",
    "item": [
        "<item id=\"item-89817ca1-1301-4396-98b0-1ca7e0119e1d\"><test>item-89817ca1-1301-4396-98b0-1ca7e0119e1d</test></item>"
    ]
}

2020-10-05 22:38:47 | [Mutex] notify: [retrieved:item:item-89817ca1-1301-4396-98b0-1ca7e0119e1d:payload-matches:true:localhost]

2020-10-05 22:38:47 | [Mutex] received everything.

2020-10-05 22:38:47 | [Mutex] isItemNotified: retrieved:item:item-89817ca1-1301-4396-98b0-1ca7e0119e1d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-10-05 22:38:47 |

2020-10-05 22:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:47 | ------------------------------------

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

2020-10-05 22:38:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6aca6b32-f4ce-4d7d-9c7e-381101678f16",
        "test",
        "node-664113b6-7580-48ae-86ce-3130eacf0a89"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-05 22:38:47 |

2020-10-05 22:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:47 | ------------------------------------

2020-10-05 22:38:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-664113b6-7580-48ae-86ce-3130eacf0a89)"
}

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

subscribeNodes 1.012s
2020-10-05 22:38:46 |

2020-10-05 22:38:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:46 | ------------------------------------

2020-10-05 22:38:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-664113b6-7580-48ae-86ce-3130eacf0a89",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.067s
2020-10-05 22:38:47 |

2020-10-05 22:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:38:47 | ------------------------------------

2020-10-05 22:38:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-664113b6-7580-48ae-86ce-3130eacf0a89",
    "jids": [
        "admin@test-domain.com"
    ]
}

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