Generated by TestNG with ReportNG at 22:51 PDT on Thursday 25 March 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.095s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.144s
2021-03-25 23:06:40 |

2021-03-25 23:06:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:40 | ------------------------------------

2021-03-25 23:06:40 | [Mutex] waiting for: [configured:node:node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57:node-28a2a9b8-3180-4df1-a2b4-4e46823b3cb3]

2021-03-25 23:06:40 | [Mutex] received everything.

2021-03-25 23:06:40 | [Mutex] isItemNotified: configured:node:node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57:node-28a2a9b8-3180-4df1-a2b4-4e46823b3cb3 :: true

2021-03-25 23:06:41 | [Mutex] waiting for: [received:nodes:4e1aa521-aeb5-45dd-a554-25bd9a79a214:localhost]

2021-03-25 23:06:41 | [Mutex] received everything.

2021-03-25 23:06:41 | [Mutex] isItemNotified: received:node:4e1aa521-aeb5-45dd-a554-25bd9a79a214:localhost:node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57:Node 9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57 :: true

2021-03-25 23:06:41 | [Mutex] waiting for: [received:nodes:ec1ea8f8-96c8-42d4-9fa7-897d0459ad93:localhost]

2021-03-25 23:06:41 | [Mutex] received everything.

2021-03-25 23:06:41 | [Mutex] isItemNotified: received:node:ec1ea8f8-96c8-42d4-9fa7-897d0459ad93:localhost:node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57:Node 9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57 :: false

createNodes 1.697s
2021-03-25 23:06:37 |

2021-03-25 23:06:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:37 | ------------------------------------

2021-03-25 23:06:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57",
    "pubsub#title": "Node 9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57"
}

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

2021-03-25 23:06:39 | [Mutex] waiting for: [received:nodes:78d0d59a-5e7c-41b1-876c-bdd2c979eace:localhost]

2021-03-25 23:06:39 | [Mutex] waiting for: [received:nodes:78d0d59a-5e7c-41b1-876c-bdd2c979eace:localhost]

2021-03-25 23:06:39 | [Mutex] received everything.

2021-03-25 23:06:39 | [Mutex] isItemNotified: received:node:78d0d59a-5e7c-41b1-876c-bdd2c979eace:localhost:node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57:Node 9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57 :: true

createSubnodes 1.031s
2021-03-25 23:06:39 |

2021-03-25 23:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:39 | ------------------------------------

2021-03-25 23:06:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-28a2a9b8-3180-4df1-a2b4-4e46823b3cb3",
    "pubsub#title": "Node 28a2a9b8-3180-4df1-a2b4-4e46823b3cb3"
}

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

2021-03-25 23:06:40 | [Mutex] waiting for: [received:nodes:70476f9e-7837-47d5-9717-1f5fbec8501d:localhost]

2021-03-25 23:06:40 | [Mutex] received everything.

2021-03-25 23:06:40 | [Mutex] isItemNotified: received:node:70476f9e-7837-47d5-9717-1f5fbec8501d:localhost:node-28a2a9b8-3180-4df1-a2b4-4e46823b3cb3:Node 28a2a9b8-3180-4df1-a2b4-4e46823b3cb3 :: true

deleteNodes 1.036s
2021-03-25 23:06:45 |

2021-03-25 23:06:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:45 | ------------------------------------

2021-03-25 23:06:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-28a2a9b8-3180-4df1-a2b4-4e46823b3cb3"
}

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

2021-03-25 23:06:46 | [Mutex] waiting for: [received:nodes:ae184700-cb21-4f5a-b062-77da709a2c0a:localhost]

2021-03-25 23:06:46 | [Mutex] received everything.

2021-03-25 23:06:46 | [Mutex] isItemNotified: received:node:ae184700-cb21-4f5a-b062-77da709a2c0a:localhost:node-28a2a9b8-3180-4df1-a2b4-4e46823b3cb3:Node 28a2a9b8-3180-4df1-a2b4-4e46823b3cb3 :: false

deleteSubnodes 1.028s
2021-03-25 23:06:44 |

2021-03-25 23:06:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:44 | ------------------------------------

2021-03-25 23:06:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57"
}

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

2021-03-25 23:06:45 | [Mutex] waiting for: [received:nodes:5254d81f-d180-4269-a083-92bfe4f4b26e:localhost]

2021-03-25 23:06:45 | [Mutex] received everything.

2021-03-25 23:06:45 | [Mutex] isItemNotified: received:node:5254d81f-d180-4269-a083-92bfe4f4b26e:localhost:node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57:Node 9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57 :: false

2021-03-25 23:06:45 | [Mutex] waiting for: [received:nodes:e4e5a31a-612f-4d0b-8a4c-dbf7c9dd7bdd:localhost]

2021-03-25 23:06:45 | [Mutex] received everything.

2021-03-25 23:06:45 | [Mutex] isItemNotified: received:node:e4e5a31a-612f-4d0b-8a4c-dbf7c9dd7bdd:localhost:node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57:Node 9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57 :: false

publishItemsToNodes 0.064s
2021-03-25 23:06:42 |

2021-03-25 23:06:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:42 | ------------------------------------

2021-03-25 23:06:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57",
    "entry": "<test>item-65a03ad4-8fe1-4bae-88b4-cedc897f9437</test>",
    "item-id": "item-65a03ad4-8fe1-4bae-88b4-cedc897f9437"
}

2021-03-25 23:06:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-65a03ad4-8fe1-4bae-88b4-cedc897f9437"
}

2021-03-25 23:06:42 | [Mutex] waiting for: [published:item:notifieditem-65a03ad4-8fe1-4bae-88b4-cedc897f9437:admin@test-domain.com]

2021-03-25 23:06:42 | [Mutex] received everything.

2021-03-25 23:06:42 | [Mutex] isItemNotified: published:item:notifieditem-65a03ad4-8fe1-4bae-88b4-cedc897f9437:admin@test-domain.com :: true

retractItemsFromNodes 0.114s
2021-03-25 23:06:43 |

2021-03-25 23:06:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:43 | ------------------------------------

2021-03-25 23:06:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57",
    "item-id": "item-65a03ad4-8fe1-4bae-88b4-cedc897f9437"
}

2021-03-25 23:06:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-65a03ad4-8fe1-4bae-88b4-cedc897f9437"
}

2021-03-25 23:06:43 | [Mutex] waiting for: [retracted:item:notifieditem-65a03ad4-8fe1-4bae-88b4-cedc897f9437:admin@test-domain.com]

2021-03-25 23:06:43 | [Mutex] received everything.

2021-03-25 23:06:43 | [Mutex] isItemNotified: retracted:item:notifieditem-65a03ad4-8fe1-4bae-88b4-cedc897f9437:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2021-03-25 23:06:42 |

2021-03-25 23:06:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:42 | ------------------------------------

2021-03-25 23:06:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57",
    "item-id": "item-65a03ad4-8fe1-4bae-88b4-cedc897f9437"
}

2021-03-25 23:06:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57",
    "item-id": "item-65a03ad4-8fe1-4bae-88b4-cedc897f9437",
    "item": [
        "<item id=\"item-65a03ad4-8fe1-4bae-88b4-cedc897f9437\"><test>item-65a03ad4-8fe1-4bae-88b4-cedc897f9437</test></item>"
    ]
}

2021-03-25 23:06:42 | [Mutex] notify: [retrieved:item:item-65a03ad4-8fe1-4bae-88b4-cedc897f9437:payload-matches:true:localhost]

2021-03-25 23:06:42 | [Mutex] received everything.

2021-03-25 23:06:42 | [Mutex] isItemNotified: retrieved:item:item-65a03ad4-8fe1-4bae-88b4-cedc897f9437:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.106s
2021-03-25 23:06:42 |

2021-03-25 23:06:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:42 | ------------------------------------

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

2021-03-25 23:06:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57",
        "node-28a2a9b8-3180-4df1-a2b4-4e46823b3cb3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-03-25 23:06:43 |

2021-03-25 23:06:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:43 | ------------------------------------

2021-03-25 23:06:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57)"
}

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

subscribeNodes 1.014s
2021-03-25 23:06:41 |

2021-03-25 23:06:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:41 | ------------------------------------

2021-03-25 23:06:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.053s
2021-03-25 23:06:43 |

2021-03-25 23:06:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 23:06:43 | ------------------------------------

2021-03-25 23:06:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9d5f1b46-2e51-49ee-86d0-1a7d1e3ace57",
    "jids": [
        "admin@test-domain.com"
    ]
}

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