Generated by TestNG with ReportNG at 21:09 PST on Tuesday 23 February 2021
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.248s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.185s
2021-02-23 21:25:54 |

2021-02-23 21:25:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:54 | ------------------------------------

2021-02-23 21:25:54 | [Mutex] waiting for: [configured:node:node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8:node-01bbef87-5f9b-49ca-b77e-3bb61b467221]

2021-02-23 21:25:54 | [Mutex] received everything.

2021-02-23 21:25:54 | [Mutex] isItemNotified: configured:node:node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8:node-01bbef87-5f9b-49ca-b77e-3bb61b467221 :: true

2021-02-23 21:25:55 | [Mutex] waiting for: [received:nodes:a92d0f92-0380-4d94-ac54-e6c18215518f:localhost]

2021-02-23 21:25:55 | [Mutex] received everything.

2021-02-23 21:25:55 | [Mutex] isItemNotified: received:node:a92d0f92-0380-4d94-ac54-e6c18215518f:localhost:node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8:Node 1d19d89f-c16d-4a1f-b12f-d394fd0c10c8 :: true

2021-02-23 21:25:55 | [Mutex] waiting for: [received:nodes:b02c4fe3-ea33-45eb-a414-57154d65d1b0:localhost]

2021-02-23 21:25:55 | [Mutex] received everything.

2021-02-23 21:25:55 | [Mutex] isItemNotified: received:node:b02c4fe3-ea33-45eb-a414-57154d65d1b0:localhost:node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8:Node 1d19d89f-c16d-4a1f-b12f-d394fd0c10c8 :: false

createNodes 1.760s
2021-02-23 21:25:51 |

2021-02-23 21:25:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:51 | ------------------------------------

2021-02-23 21:25:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8",
    "pubsub#title": "Node 1d19d89f-c16d-4a1f-b12f-d394fd0c10c8"
}

2021-02-23 21:25:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:25:53 | [Mutex] waiting for: [received:nodes:95dca94c-8909-43cc-a5de-bc2cb9037f67:localhost]

2021-02-23 21:25:53 | [Mutex] received everything.

2021-02-23 21:25:53 | [Mutex] isItemNotified: received:node:95dca94c-8909-43cc-a5de-bc2cb9037f67:localhost:node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8:Node 1d19d89f-c16d-4a1f-b12f-d394fd0c10c8 :: true

createSubnodes 1.038s
2021-02-23 21:25:53 |

2021-02-23 21:25:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:53 | ------------------------------------

2021-02-23 21:25:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-01bbef87-5f9b-49ca-b77e-3bb61b467221",
    "pubsub#title": "Node 01bbef87-5f9b-49ca-b77e-3bb61b467221"
}

2021-02-23 21:25:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:25:54 | [Mutex] waiting for: [received:nodes:9a632a77-5296-41d3-baba-88cfb50ea141:localhost]

2021-02-23 21:25:54 | [Mutex] received everything.

2021-02-23 21:25:54 | [Mutex] isItemNotified: received:node:9a632a77-5296-41d3-baba-88cfb50ea141:localhost:node-01bbef87-5f9b-49ca-b77e-3bb61b467221:Node 01bbef87-5f9b-49ca-b77e-3bb61b467221 :: true

deleteNodes 1.032s
2021-02-23 21:25:58 |

2021-02-23 21:25:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:58 | ------------------------------------

2021-02-23 21:25:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-01bbef87-5f9b-49ca-b77e-3bb61b467221"
}

2021-02-23 21:25:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:25:59 | [Mutex] waiting for: [received:nodes:80a4756a-02b1-4cd8-a082-1adb5639a000:localhost]

2021-02-23 21:25:59 | [Mutex] received everything.

2021-02-23 21:25:59 | [Mutex] isItemNotified: received:node:80a4756a-02b1-4cd8-a082-1adb5639a000:localhost:node-01bbef87-5f9b-49ca-b77e-3bb61b467221:Node 01bbef87-5f9b-49ca-b77e-3bb61b467221 :: false

deleteSubnodes 1.034s
2021-02-23 21:25:57 |

2021-02-23 21:25:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:57 | ------------------------------------

2021-02-23 21:25:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8"
}

2021-02-23 21:25:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-23 21:25:58 | [Mutex] waiting for: [received:nodes:fcf09af4-a4c9-4b83-915a-a1acd8455da0:localhost]

2021-02-23 21:25:58 | [Mutex] received everything.

2021-02-23 21:25:58 | [Mutex] isItemNotified: received:node:fcf09af4-a4c9-4b83-915a-a1acd8455da0:localhost:node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8:Node 1d19d89f-c16d-4a1f-b12f-d394fd0c10c8 :: false

2021-02-23 21:25:58 | [Mutex] waiting for: [received:nodes:f55e6b8b-77cc-49c6-9f13-e24679157443:localhost]

2021-02-23 21:25:58 | [Mutex] received everything.

2021-02-23 21:25:58 | [Mutex] isItemNotified: received:node:f55e6b8b-77cc-49c6-9f13-e24679157443:localhost:node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8:Node 1d19d89f-c16d-4a1f-b12f-d394fd0c10c8 :: false

publishItemsToNodes 0.058s
2021-02-23 21:25:56 |

2021-02-23 21:25:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:56 | ------------------------------------

2021-02-23 21:25:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8",
    "entry": "<test>item-568816e2-a752-4836-a3d1-89213da4312a</test>",
    "item-id": "item-568816e2-a752-4836-a3d1-89213da4312a"
}

2021-02-23 21:25:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-568816e2-a752-4836-a3d1-89213da4312a"
}

2021-02-23 21:25:56 | [Mutex] received everything.

2021-02-23 21:25:56 | [Mutex] isItemNotified: published:item:notifieditem-568816e2-a752-4836-a3d1-89213da4312a:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2021-02-23 21:25:56 |

2021-02-23 21:25:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:56 | ------------------------------------

2021-02-23 21:25:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8",
    "item-id": "item-568816e2-a752-4836-a3d1-89213da4312a"
}

2021-02-23 21:25:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-568816e2-a752-4836-a3d1-89213da4312a"
}

2021-02-23 21:25:56 | [Mutex] waiting for: [retracted:item:notifieditem-568816e2-a752-4836-a3d1-89213da4312a:admin@test-domain.com]

2021-02-23 21:25:56 | [Mutex] received everything.

2021-02-23 21:25:56 | [Mutex] isItemNotified: retracted:item:notifieditem-568816e2-a752-4836-a3d1-89213da4312a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.098s
2021-02-23 21:25:56 |

2021-02-23 21:25:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:56 | ------------------------------------

2021-02-23 21:25:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8",
    "item-id": "item-568816e2-a752-4836-a3d1-89213da4312a"
}

2021-02-23 21:25:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8",
    "item-id": "item-568816e2-a752-4836-a3d1-89213da4312a",
    "item": [
        "<item id=\"item-568816e2-a752-4836-a3d1-89213da4312a\"><test>item-568816e2-a752-4836-a3d1-89213da4312a</test></item>"
    ]
}

2021-02-23 21:25:56 | [Mutex] notify: [retrieved:item:item-568816e2-a752-4836-a3d1-89213da4312a:payload-matches:true:localhost]

2021-02-23 21:25:56 | [Mutex] received everything.

2021-02-23 21:25:56 | [Mutex] isItemNotified: retrieved:item:item-568816e2-a752-4836-a3d1-89213da4312a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-02-23 21:25:56 |

2021-02-23 21:25:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:56 | ------------------------------------

2021-02-23 21:25:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-23 21:25:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8",
        "node-01bbef87-5f9b-49ca-b77e-3bb61b467221"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-02-23 21:25:56 |

2021-02-23 21:25:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:56 | ------------------------------------

2021-02-23 21:25:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8)"
}

2021-02-23 21:25:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-02-23 21:25:55 |

2021-02-23 21:25:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:55 | ------------------------------------

2021-02-23 21:25:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-23 21:25:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.090s
2021-02-23 21:25:56 |

2021-02-23 21:25:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-23 21:25:56 | ------------------------------------

2021-02-23 21:25:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1d19d89f-c16d-4a1f-b12f-d394fd0c10c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-23 21:25:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}