Generated by TestNG with ReportNG at 22:17 PDT on Monday 20 June 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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.682s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2022-06-20 22:32:10 |

2022-06-20 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:10 | ------------------------------------

2022-06-20 22:32:10 | [Mutex] waiting for: [configured:node:node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9:node-c9e10f82-2792-469e-8ffb-858f99412b0b]

2022-06-20 22:32:10 | [Mutex] received everything.

2022-06-20 22:32:10 | [Mutex] isItemNotified: configured:node:node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9:node-c9e10f82-2792-469e-8ffb-858f99412b0b :: true

2022-06-20 22:32:11 | [Mutex] waiting for: [received:nodes:34bc7494-fb1e-44b6-bd50-37c83473c287:localhost]

2022-06-20 22:32:11 | [Mutex] received everything.

2022-06-20 22:32:11 | [Mutex] isItemNotified: received:node:34bc7494-fb1e-44b6-bd50-37c83473c287:localhost:node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9:Node 6f96ddab-040e-4a21-83d4-7c0daa97c6a9 :: true

2022-06-20 22:32:11 | [Mutex] waiting for: [received:nodes:60fe86fe-347c-494d-8bb5-a0b5eafcd3ee:localhost]

2022-06-20 22:32:11 | [Mutex] received everything.

2022-06-20 22:32:11 | [Mutex] isItemNotified: received:node:60fe86fe-347c-494d-8bb5-a0b5eafcd3ee:localhost:node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9:Node 6f96ddab-040e-4a21-83d4-7c0daa97c6a9 :: false

createNodes 1.555s
2022-06-20 22:32:08 |

2022-06-20 22:32:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:08 | ------------------------------------

2022-06-20 22:32:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9",
    "pubsub#title": "Node 6f96ddab-040e-4a21-83d4-7c0daa97c6a9"
}

2022-06-20 22:32:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 22:32:09 | [Mutex] waiting for: [received:nodes:15cbd40d-fd4d-45d4-9bcb-74bfcbd61f73:localhost]

2022-06-20 22:32:09 | [Mutex] received everything.

2022-06-20 22:32:09 | [Mutex] isItemNotified: received:node:15cbd40d-fd4d-45d4-9bcb-74bfcbd61f73:localhost:node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9:Node 6f96ddab-040e-4a21-83d4-7c0daa97c6a9 :: true

createSubnodes 1.027s
2022-06-20 22:32:09 |

2022-06-20 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:09 | ------------------------------------

2022-06-20 22:32:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c9e10f82-2792-469e-8ffb-858f99412b0b",
    "pubsub#title": "Node c9e10f82-2792-469e-8ffb-858f99412b0b"
}

2022-06-20 22:32:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 22:32:10 | [Mutex] waiting for: [received:nodes:16c84932-16dc-4c74-b1ad-c340b9f22d07:localhost]

2022-06-20 22:32:10 | [Mutex] waiting for: [received:nodes:16c84932-16dc-4c74-b1ad-c340b9f22d07:localhost]

2022-06-20 22:32:10 | [Mutex] received everything.

2022-06-20 22:32:10 | [Mutex] isItemNotified: received:node:16c84932-16dc-4c74-b1ad-c340b9f22d07:localhost:node-c9e10f82-2792-469e-8ffb-858f99412b0b:Node c9e10f82-2792-469e-8ffb-858f99412b0b :: true

deleteNodes 1.016s
2022-06-20 22:32:15 |

2022-06-20 22:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:15 | ------------------------------------

2022-06-20 22:32:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c9e10f82-2792-469e-8ffb-858f99412b0b"
}

2022-06-20 22:32:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 22:32:16 | [Mutex] waiting for: [received:nodes:01b0eb39-7a6c-47d0-9436-5458fe4133aa:localhost]

2022-06-20 22:32:16 | [Mutex] waiting for: [received:nodes:01b0eb39-7a6c-47d0-9436-5458fe4133aa:localhost]

2022-06-20 22:32:16 | [Mutex] received everything.

2022-06-20 22:32:16 | [Mutex] isItemNotified: received:node:01b0eb39-7a6c-47d0-9436-5458fe4133aa:localhost:node-c9e10f82-2792-469e-8ffb-858f99412b0b:Node c9e10f82-2792-469e-8ffb-858f99412b0b :: false

deleteSubnodes 1.028s
2022-06-20 22:32:14 |

2022-06-20 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:14 | ------------------------------------

2022-06-20 22:32:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9"
}

2022-06-20 22:32:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-20 22:32:15 | [Mutex] waiting for: [received:nodes:0477419a-9078-4d3f-9d03-0512e9ad72b9:localhost]

2022-06-20 22:32:15 | [Mutex] received everything.

2022-06-20 22:32:15 | [Mutex] isItemNotified: received:node:0477419a-9078-4d3f-9d03-0512e9ad72b9:localhost:node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9:Node 6f96ddab-040e-4a21-83d4-7c0daa97c6a9 :: false

2022-06-20 22:32:15 | [Mutex] waiting for: [received:nodes:92739b34-c07d-455c-b429-0797d231e03f:localhost]

2022-06-20 22:32:15 | [Mutex] received everything.

2022-06-20 22:32:15 | [Mutex] isItemNotified: received:node:92739b34-c07d-455c-b429-0797d231e03f:localhost:node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9:Node 6f96ddab-040e-4a21-83d4-7c0daa97c6a9 :: false

publishItemsToNodes 0.057s
2022-06-20 22:32:12 |

2022-06-20 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:12 | ------------------------------------

2022-06-20 22:32:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9",
    "entry": "<test>item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320</test>",
    "item-id": "item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320"
}

2022-06-20 22:32:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320"
}

2022-06-20 22:32:12 | [Mutex] waiting for: [published:item:notifieditem-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320:admin@test-domain.com]

2022-06-20 22:32:12 | [Mutex] received everything.

2022-06-20 22:32:12 | [Mutex] isItemNotified: published:item:notifieditem-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-20 22:32:13 |

2022-06-20 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:13 | ------------------------------------

2022-06-20 22:32:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9",
    "item-id": "item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320"
}

2022-06-20 22:32:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320"
}

2022-06-20 22:32:13 | [Mutex] waiting for: [retracted:item:notifieditem-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320:admin@test-domain.com]

2022-06-20 22:32:13 | [Mutex] received everything.

2022-06-20 22:32:13 | [Mutex] isItemNotified: retracted:item:notifieditem-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320:admin@test-domain.com :: true

retrieveItemsFromNodes 0.037s
2022-06-20 22:32:12 |

2022-06-20 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:12 | ------------------------------------

2022-06-20 22:32:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9",
    "item-id": "item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320"
}

2022-06-20 22:32:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9",
    "item-id": "item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320",
    "item": [
        "<item id=\"item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320\"><test>item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320</test></item>"
    ]
}

2022-06-20 22:32:12 | [Mutex] notify: [retrieved:item:item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320:payload-matches:true:localhost]

2022-06-20 22:32:12 | [Mutex] received everything.

2022-06-20 22:32:12 | [Mutex] isItemNotified: retrieved:item:item-5adbfed1-ee82-4a4c-bb46-03ef1f2ff320:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.060s
2022-06-20 22:32:12 |

2022-06-20 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:12 | ------------------------------------

2022-06-20 22:32:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-20 22:32:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9",
        "node-c9e10f82-2792-469e-8ffb-858f99412b0b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-20 22:32:13 |

2022-06-20 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:13 | ------------------------------------

2022-06-20 22:32:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9)"
}

2022-06-20 22:32:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-06-20 22:32:11 |

2022-06-20 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:11 | ------------------------------------

2022-06-20 22:32:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-20 22:32:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-06-20 22:32:13 |

2022-06-20 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-20 22:32:13 | ------------------------------------

2022-06-20 22:32:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6f96ddab-040e-4a21-83d4-7c0daa97c6a9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-20 22:32:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}