Generated by TestNG with ReportNG at 22:19 PDT on Tuesday 06 September 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.697s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2022-09-06 22:33:45 |

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

2022-09-06 22:33:45 | ------------------------------------

2022-09-06 22:33:45 | [Mutex] waiting for: [configured:node:node-1a073d9f-5b00-4523-af8a-eb101da9e786:node-698ecfb2-b09c-478f-bba8-0d60bbf5290b]

2022-09-06 22:33:46 | [Mutex] received everything.

2022-09-06 22:33:46 | [Mutex] isItemNotified: configured:node:node-1a073d9f-5b00-4523-af8a-eb101da9e786:node-698ecfb2-b09c-478f-bba8-0d60bbf5290b :: true

2022-09-06 22:33:47 | [Mutex] waiting for: [received:nodes:dac2ecc1-9d7f-47cd-bfe1-bbee1b1b9d58:localhost]

2022-09-06 22:33:47 | [Mutex] received everything.

2022-09-06 22:33:47 | [Mutex] isItemNotified: received:node:dac2ecc1-9d7f-47cd-bfe1-bbee1b1b9d58:localhost:node-1a073d9f-5b00-4523-af8a-eb101da9e786:Node 1a073d9f-5b00-4523-af8a-eb101da9e786 :: true

2022-09-06 22:33:47 | [Mutex] waiting for: [received:nodes:ab437136-468a-4887-b4eb-fabd6825d3bd:localhost]

2022-09-06 22:33:47 | [Mutex] received everything.

2022-09-06 22:33:47 | [Mutex] isItemNotified: received:node:ab437136-468a-4887-b4eb-fabd6825d3bd:localhost:node-1a073d9f-5b00-4523-af8a-eb101da9e786:Node 1a073d9f-5b00-4523-af8a-eb101da9e786 :: false

createNodes 1.632s
2022-09-06 22:33:43 |

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

2022-09-06 22:33:43 | ------------------------------------

2022-09-06 22:33: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-1a073d9f-5b00-4523-af8a-eb101da9e786",
    "pubsub#title": "Node 1a073d9f-5b00-4523-af8a-eb101da9e786"
}

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

2022-09-06 22:33:44 | [Mutex] waiting for: [received:nodes:d643c57a-98c3-4f38-b2f5-dbbef018d32e:localhost]

2022-09-06 22:33:44 | [Mutex] received everything.

2022-09-06 22:33:44 | [Mutex] isItemNotified: received:node:d643c57a-98c3-4f38-b2f5-dbbef018d32e:localhost:node-1a073d9f-5b00-4523-af8a-eb101da9e786:Node 1a073d9f-5b00-4523-af8a-eb101da9e786 :: true

createSubnodes 1.021s
2022-09-06 22:33:44 |

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

2022-09-06 22:33:44 | ------------------------------------

2022-09-06 22:33: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-698ecfb2-b09c-478f-bba8-0d60bbf5290b",
    "pubsub#title": "Node 698ecfb2-b09c-478f-bba8-0d60bbf5290b"
}

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

2022-09-06 22:33:45 | [Mutex] waiting for: [received:nodes:4ee4137f-447d-4f7b-908e-36f3ee788081:localhost]

2022-09-06 22:33:45 | [Mutex] waiting for: [received:nodes:4ee4137f-447d-4f7b-908e-36f3ee788081:localhost]

2022-09-06 22:33:45 | [Mutex] received everything.

2022-09-06 22:33:45 | [Mutex] isItemNotified: received:node:4ee4137f-447d-4f7b-908e-36f3ee788081:localhost:node-698ecfb2-b09c-478f-bba8-0d60bbf5290b:Node 698ecfb2-b09c-478f-bba8-0d60bbf5290b :: true

deleteNodes 1.017s
2022-09-06 22:33:50 |

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

2022-09-06 22:33:50 | ------------------------------------

2022-09-06 22:33:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-698ecfb2-b09c-478f-bba8-0d60bbf5290b"
}

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

2022-09-06 22:33:51 | [Mutex] waiting for: [received:nodes:48d32a86-f71b-415a-886f-f8222fc3b268:localhost]

2022-09-06 22:33:51 | [Mutex] waiting for: [received:nodes:48d32a86-f71b-415a-886f-f8222fc3b268:localhost]

2022-09-06 22:33:51 | [Mutex] received everything.

2022-09-06 22:33:51 | [Mutex] isItemNotified: received:node:48d32a86-f71b-415a-886f-f8222fc3b268:localhost:node-698ecfb2-b09c-478f-bba8-0d60bbf5290b:Node 698ecfb2-b09c-478f-bba8-0d60bbf5290b :: false

deleteSubnodes 1.026s
2022-09-06 22:33:49 |

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

2022-09-06 22:33:49 | ------------------------------------

2022-09-06 22:33:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1a073d9f-5b00-4523-af8a-eb101da9e786"
}

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

2022-09-06 22:33:50 | [Mutex] waiting for: [received:nodes:dc7b3e43-db96-4b1b-99dd-6fec5712f5f5:localhost]

2022-09-06 22:33:50 | [Mutex] received everything.

2022-09-06 22:33:50 | [Mutex] isItemNotified: received:node:dc7b3e43-db96-4b1b-99dd-6fec5712f5f5:localhost:node-1a073d9f-5b00-4523-af8a-eb101da9e786:Node 1a073d9f-5b00-4523-af8a-eb101da9e786 :: false

2022-09-06 22:33:50 | [Mutex] waiting for: [received:nodes:ce4da6a4-9216-41ee-8833-16c6764fb1d9:localhost]

2022-09-06 22:33:50 | [Mutex] received everything.

2022-09-06 22:33:50 | [Mutex] isItemNotified: received:node:ce4da6a4-9216-41ee-8833-16c6764fb1d9:localhost:node-1a073d9f-5b00-4523-af8a-eb101da9e786:Node 1a073d9f-5b00-4523-af8a-eb101da9e786 :: false

publishItemsToNodes 0.060s
2022-09-06 22:33:48 |

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

2022-09-06 22:33:48 | ------------------------------------

2022-09-06 22:33:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1a073d9f-5b00-4523-af8a-eb101da9e786",
    "entry": "<test>item-0c378ca9-388c-4398-9d5b-23f527ee70b5</test>",
    "item-id": "item-0c378ca9-388c-4398-9d5b-23f527ee70b5"
}

2022-09-06 22:33:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0c378ca9-388c-4398-9d5b-23f527ee70b5"
}

2022-09-06 22:33:48 | [Mutex] waiting for: [published:item:notifieditem-0c378ca9-388c-4398-9d5b-23f527ee70b5:admin@test-domain.com]

2022-09-06 22:33:48 | [Mutex] received everything.

2022-09-06 22:33:48 | [Mutex] isItemNotified: published:item:notifieditem-0c378ca9-388c-4398-9d5b-23f527ee70b5:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-09-06 22:33:48 |

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

2022-09-06 22:33:48 | ------------------------------------

2022-09-06 22:33:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1a073d9f-5b00-4523-af8a-eb101da9e786",
    "item-id": "item-0c378ca9-388c-4398-9d5b-23f527ee70b5"
}

2022-09-06 22:33:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0c378ca9-388c-4398-9d5b-23f527ee70b5"
}

2022-09-06 22:33:48 | [Mutex] waiting for: [retracted:item:notifieditem-0c378ca9-388c-4398-9d5b-23f527ee70b5:admin@test-domain.com]

2022-09-06 22:33:48 | [Mutex] received everything.

2022-09-06 22:33:48 | [Mutex] isItemNotified: retracted:item:notifieditem-0c378ca9-388c-4398-9d5b-23f527ee70b5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.086s
2022-09-06 22:33:48 |

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

2022-09-06 22:33:48 | ------------------------------------

2022-09-06 22:33:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1a073d9f-5b00-4523-af8a-eb101da9e786",
    "item-id": "item-0c378ca9-388c-4398-9d5b-23f527ee70b5"
}

2022-09-06 22:33:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1a073d9f-5b00-4523-af8a-eb101da9e786",
    "item-id": "item-0c378ca9-388c-4398-9d5b-23f527ee70b5",
    "item": [
        "<item id=\"item-0c378ca9-388c-4398-9d5b-23f527ee70b5\"><test>item-0c378ca9-388c-4398-9d5b-23f527ee70b5</test></item>"
    ]
}

2022-09-06 22:33:48 | [Mutex] notify: [retrieved:item:item-0c378ca9-388c-4398-9d5b-23f527ee70b5:payload-matches:true:localhost]

2022-09-06 22:33:48 | [Mutex] received everything.

2022-09-06 22:33:48 | [Mutex] isItemNotified: retrieved:item:item-0c378ca9-388c-4398-9d5b-23f527ee70b5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-09-06 22:33:48 |

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

2022-09-06 22:33:48 | ------------------------------------

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

2022-09-06 22:33:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-698ecfb2-b09c-478f-bba8-0d60bbf5290b",
        "test",
        "node-1a073d9f-5b00-4523-af8a-eb101da9e786"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2022-09-06 22:33:48 |

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

2022-09-06 22:33:48 | ------------------------------------

2022-09-06 22:33:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1a073d9f-5b00-4523-af8a-eb101da9e786)"
}

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

subscribeNodes 1.013s
2022-09-06 22:33:47 |

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

2022-09-06 22:33:47 | ------------------------------------

2022-09-06 22:33:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1a073d9f-5b00-4523-af8a-eb101da9e786",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.077s
2022-09-06 22:33:48 |

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

2022-09-06 22:33:48 | ------------------------------------

2022-09-06 22:33:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1a073d9f-5b00-4523-af8a-eb101da9e786",
    "jids": [
        "admin@test-domain.com"
    ]
}

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