Generated by TestNG with ReportNG at 08:12 PDT on Wednesday 27 October 2021
root@785cf647a4ab / 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.154s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2021-10-27 08:29:07 |

2021-10-27 08:29:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:07 | ------------------------------------

2021-10-27 08:29:07 | [Mutex] waiting for: [configured:node:node-6f98e0b1-4115-481f-bfe6-e52187f224e5:node-267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63]

2021-10-27 08:29:07 | [Mutex] received everything.

2021-10-27 08:29:07 | [Mutex] isItemNotified: configured:node:node-6f98e0b1-4115-481f-bfe6-e52187f224e5:node-267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63 :: true

2021-10-27 08:29:08 | [Mutex] waiting for: [received:nodes:9b19eeaf-457e-439c-8cc4-e0a2028de02e:localhost]

2021-10-27 08:29:08 | [Mutex] received everything.

2021-10-27 08:29:08 | [Mutex] isItemNotified: received:node:9b19eeaf-457e-439c-8cc4-e0a2028de02e:localhost:node-6f98e0b1-4115-481f-bfe6-e52187f224e5:Node 6f98e0b1-4115-481f-bfe6-e52187f224e5 :: true

2021-10-27 08:29:08 | [Mutex] waiting for: [received:nodes:41063997-d564-491c-832a-b430f54531c2:localhost]

2021-10-27 08:29:08 | [Mutex] received everything.

2021-10-27 08:29:08 | [Mutex] isItemNotified: received:node:41063997-d564-491c-832a-b430f54531c2:localhost:node-6f98e0b1-4115-481f-bfe6-e52187f224e5:Node 6f98e0b1-4115-481f-bfe6-e52187f224e5 :: false

createNodes 1.744s
2021-10-27 08:29:04 |

2021-10-27 08:29:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:04 | ------------------------------------

2021-10-27 08:29:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6f98e0b1-4115-481f-bfe6-e52187f224e5",
    "pubsub#title": "Node 6f98e0b1-4115-481f-bfe6-e52187f224e5"
}

2021-10-27 08:29:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 08:29:06 | [Mutex] waiting for: [received:nodes:33201a15-1e50-43cd-bd50-448bf7281de8:localhost]

2021-10-27 08:29:06 | [Mutex] received everything.

2021-10-27 08:29:06 | [Mutex] isItemNotified: received:node:33201a15-1e50-43cd-bd50-448bf7281de8:localhost:node-6f98e0b1-4115-481f-bfe6-e52187f224e5:Node 6f98e0b1-4115-481f-bfe6-e52187f224e5 :: true

createSubnodes 1.031s
2021-10-27 08:29:06 |

2021-10-27 08:29:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:06 | ------------------------------------

2021-10-27 08:29:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63",
    "pubsub#title": "Node 267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63"
}

2021-10-27 08:29:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 08:29:07 | [Mutex] waiting for: [received:nodes:1132a4b2-9385-479e-bec2-2a4d2dabbf50:localhost]

2021-10-27 08:29:07 | [Mutex] received everything.

2021-10-27 08:29:07 | [Mutex] isItemNotified: received:node:1132a4b2-9385-479e-bec2-2a4d2dabbf50:localhost:node-267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63:Node 267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63 :: true

deleteNodes 1.024s
2021-10-27 08:29:12 |

2021-10-27 08:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:12 | ------------------------------------

2021-10-27 08:29:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63"
}

2021-10-27 08:29:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 08:29:13 | [Mutex] waiting for: [received:nodes:83bd80de-13a6-40ea-962d-a2315d9d2bca:localhost]

2021-10-27 08:29:13 | [Mutex] received everything.

2021-10-27 08:29:13 | [Mutex] isItemNotified: received:node:83bd80de-13a6-40ea-962d-a2315d9d2bca:localhost:node-267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63:Node 267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63 :: false

deleteSubnodes 1.030s
2021-10-27 08:29:11 |

2021-10-27 08:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:11 | ------------------------------------

2021-10-27 08:29:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6f98e0b1-4115-481f-bfe6-e52187f224e5"
}

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

2021-10-27 08:29:12 | [Mutex] waiting for: [received:nodes:fe69a6df-7a06-464d-baf3-4d19353310a1:localhost]

2021-10-27 08:29:12 | [Mutex] received everything.

2021-10-27 08:29:12 | [Mutex] isItemNotified: received:node:fe69a6df-7a06-464d-baf3-4d19353310a1:localhost:node-6f98e0b1-4115-481f-bfe6-e52187f224e5:Node 6f98e0b1-4115-481f-bfe6-e52187f224e5 :: false

2021-10-27 08:29:12 | [Mutex] waiting for: [received:nodes:f3bfa496-9efe-4b04-8ae9-c20b2b552bda:localhost]

2021-10-27 08:29:12 | [Mutex] received everything.

2021-10-27 08:29:12 | [Mutex] isItemNotified: received:node:f3bfa496-9efe-4b04-8ae9-c20b2b552bda:localhost:node-6f98e0b1-4115-481f-bfe6-e52187f224e5:Node 6f98e0b1-4115-481f-bfe6-e52187f224e5 :: false

publishItemsToNodes 0.066s
2021-10-27 08:29:09 |

2021-10-27 08:29:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:09 | ------------------------------------

2021-10-27 08:29:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6f98e0b1-4115-481f-bfe6-e52187f224e5",
    "entry": "<test>item-63bbb290-f1cd-4ac2-b703-73ac761b4804</test>",
    "item-id": "item-63bbb290-f1cd-4ac2-b703-73ac761b4804"
}

2021-10-27 08:29:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-63bbb290-f1cd-4ac2-b703-73ac761b4804"
}

2021-10-27 08:29:09 | [Mutex] waiting for: [published:item:notifieditem-63bbb290-f1cd-4ac2-b703-73ac761b4804:admin@test-domain.com]

2021-10-27 08:29:09 | [Mutex] received everything.

2021-10-27 08:29:09 | [Mutex] isItemNotified: published:item:notifieditem-63bbb290-f1cd-4ac2-b703-73ac761b4804:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2021-10-27 08:29:09 |

2021-10-27 08:29:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:09 | ------------------------------------

2021-10-27 08:29:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6f98e0b1-4115-481f-bfe6-e52187f224e5",
    "item-id": "item-63bbb290-f1cd-4ac2-b703-73ac761b4804"
}

2021-10-27 08:29:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-63bbb290-f1cd-4ac2-b703-73ac761b4804"
}

2021-10-27 08:29:10 | [Mutex] received everything.

2021-10-27 08:29:10 | [Mutex] isItemNotified: retracted:item:notifieditem-63bbb290-f1cd-4ac2-b703-73ac761b4804:admin@test-domain.com :: true

retrieveItemsFromNodes 0.049s
2021-10-27 08:29:09 |

2021-10-27 08:29:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:09 | ------------------------------------

2021-10-27 08:29:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6f98e0b1-4115-481f-bfe6-e52187f224e5",
    "item-id": "item-63bbb290-f1cd-4ac2-b703-73ac761b4804"
}

2021-10-27 08:29:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6f98e0b1-4115-481f-bfe6-e52187f224e5",
    "item-id": "item-63bbb290-f1cd-4ac2-b703-73ac761b4804",
    "item": [
        "<item id=\"item-63bbb290-f1cd-4ac2-b703-73ac761b4804\"><test>item-63bbb290-f1cd-4ac2-b703-73ac761b4804</test></item>"
    ]
}

2021-10-27 08:29:09 | [Mutex] notify: [retrieved:item:item-63bbb290-f1cd-4ac2-b703-73ac761b4804:payload-matches:true:localhost]

2021-10-27 08:29:09 | [Mutex] received everything.

2021-10-27 08:29:09 | [Mutex] isItemNotified: retrieved:item:item-63bbb290-f1cd-4ac2-b703-73ac761b4804:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2021-10-27 08:29:09 |

2021-10-27 08:29:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:09 | ------------------------------------

2021-10-27 08:29:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-27 08:29:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6f98e0b1-4115-481f-bfe6-e52187f224e5",
        "node-267d9b0a-b7e8-48cc-8e68-d8a0a1ce9a63"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-10-27 08:29:09 |

2021-10-27 08:29:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:09 | ------------------------------------

2021-10-27 08:29:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6f98e0b1-4115-481f-bfe6-e52187f224e5)"
}

2021-10-27 08:29:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-10-27 08:29:08 |

2021-10-27 08:29:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:08 | ------------------------------------

2021-10-27 08:29:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6f98e0b1-4115-481f-bfe6-e52187f224e5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-27 08:29:08 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2021-10-27 08:29:10 |

2021-10-27 08:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:29:10 | ------------------------------------

2021-10-27 08:29:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6f98e0b1-4115-481f-bfe6-e52187f224e5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-27 08:29:10 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}