Generated by TestNG with ReportNG at 21:33 PST on Thursday 28 January 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 : 8.914s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.039s
2021-01-28 21:48:53 |

2021-01-28 21:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:53 | ------------------------------------

2021-01-28 21:48:53 | [Mutex] waiting for: [configured:node:node-1c42ad51-1633-436f-90e5-e1250336ada6:node-e5b71c43-e334-44b9-a203-02e66e102ff4]

2021-01-28 21:48:53 | [Mutex] received everything.

2021-01-28 21:48:53 | [Mutex] isItemNotified: configured:node:node-1c42ad51-1633-436f-90e5-e1250336ada6:node-e5b71c43-e334-44b9-a203-02e66e102ff4 :: true

2021-01-28 21:48:54 | [Mutex] waiting for: [received:nodes:f0d074b1-0849-43d0-b97e-96cc7b24b91e:localhost]

2021-01-28 21:48:54 | [Mutex] received everything.

2021-01-28 21:48:54 | [Mutex] isItemNotified: received:node:f0d074b1-0849-43d0-b97e-96cc7b24b91e:localhost:node-1c42ad51-1633-436f-90e5-e1250336ada6:Node 1c42ad51-1633-436f-90e5-e1250336ada6 :: true

2021-01-28 21:48:54 | [Mutex] waiting for: [received:nodes:445bc918-eee5-4212-90d3-03e04165c6d9:localhost]

2021-01-28 21:48:54 | [Mutex] received everything.

2021-01-28 21:48:54 | [Mutex] isItemNotified: received:node:445bc918-eee5-4212-90d3-03e04165c6d9:localhost:node-1c42ad51-1633-436f-90e5-e1250336ada6:Node 1c42ad51-1633-436f-90e5-e1250336ada6 :: false

createNodes 1.713s
2021-01-28 21:48:51 |

2021-01-28 21:48:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:51 | ------------------------------------

2021-01-28 21:48: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-1c42ad51-1633-436f-90e5-e1250336ada6",
    "pubsub#title": "Node 1c42ad51-1633-436f-90e5-e1250336ada6"
}

2021-01-28 21:48:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-28 21:48:52 | [Mutex] waiting for: [received:nodes:ab5d3788-90a9-470d-9980-8772beed3fbc:localhost]

2021-01-28 21:48:52 | [Mutex] received everything.

2021-01-28 21:48:52 | [Mutex] isItemNotified: received:node:ab5d3788-90a9-470d-9980-8772beed3fbc:localhost:node-1c42ad51-1633-436f-90e5-e1250336ada6:Node 1c42ad51-1633-436f-90e5-e1250336ada6 :: true

createSubnodes 1.056s
2021-01-28 21:48:52 |

2021-01-28 21:48:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:52 | ------------------------------------

2021-01-28 21:48:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e5b71c43-e334-44b9-a203-02e66e102ff4",
    "pubsub#title": "Node e5b71c43-e334-44b9-a203-02e66e102ff4"
}

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

2021-01-28 21:48:53 | [Mutex] waiting for: [received:nodes:1111f645-70ff-4858-bea0-4e7b81a14fb3:localhost]

2021-01-28 21:48:53 | [Mutex] waiting for: [received:nodes:1111f645-70ff-4858-bea0-4e7b81a14fb3:localhost]

2021-01-28 21:48:53 | [Mutex] received everything.

2021-01-28 21:48:53 | [Mutex] isItemNotified: received:node:1111f645-70ff-4858-bea0-4e7b81a14fb3:localhost:node-e5b71c43-e334-44b9-a203-02e66e102ff4:Node e5b71c43-e334-44b9-a203-02e66e102ff4 :: true

deleteNodes 1.021s
2021-01-28 21:48:58 |

2021-01-28 21:48:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:58 | ------------------------------------

2021-01-28 21:48:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e5b71c43-e334-44b9-a203-02e66e102ff4"
}

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

2021-01-28 21:48:59 | [Mutex] waiting for: [received:nodes:7098c5af-c188-4e8d-b8b0-506cf80466f6:localhost]

2021-01-28 21:48:59 | [Mutex] received everything.

2021-01-28 21:48:59 | [Mutex] isItemNotified: received:node:7098c5af-c188-4e8d-b8b0-506cf80466f6:localhost:node-e5b71c43-e334-44b9-a203-02e66e102ff4:Node e5b71c43-e334-44b9-a203-02e66e102ff4 :: false

deleteSubnodes 1.029s
2021-01-28 21:48:57 |

2021-01-28 21:48:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:57 | ------------------------------------

2021-01-28 21:48:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1c42ad51-1633-436f-90e5-e1250336ada6"
}

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

2021-01-28 21:48:58 | [Mutex] waiting for: [received:nodes:d130700a-2fa6-4a31-9edd-6d678144bb27:localhost]

2021-01-28 21:48:58 | [Mutex] received everything.

2021-01-28 21:48:58 | [Mutex] isItemNotified: received:node:d130700a-2fa6-4a31-9edd-6d678144bb27:localhost:node-1c42ad51-1633-436f-90e5-e1250336ada6:Node 1c42ad51-1633-436f-90e5-e1250336ada6 :: false

2021-01-28 21:48:58 | [Mutex] waiting for: [received:nodes:2aedc0b3-0186-43c7-b918-349d4e9b6e87:localhost]

2021-01-28 21:48:58 | [Mutex] received everything.

2021-01-28 21:48:58 | [Mutex] isItemNotified: received:node:2aedc0b3-0186-43c7-b918-349d4e9b6e87:localhost:node-1c42ad51-1633-436f-90e5-e1250336ada6:Node 1c42ad51-1633-436f-90e5-e1250336ada6 :: false

publishItemsToNodes 0.045s
2021-01-28 21:48:55 |

2021-01-28 21:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:55 | ------------------------------------

2021-01-28 21:48:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1c42ad51-1633-436f-90e5-e1250336ada6",
    "entry": "<test>item-e7db3ff8-6143-455a-b613-7f02b5a23dea</test>",
    "item-id": "item-e7db3ff8-6143-455a-b613-7f02b5a23dea"
}

2021-01-28 21:48:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e7db3ff8-6143-455a-b613-7f02b5a23dea"
}

2021-01-28 21:48:55 | [Mutex] waiting for: [published:item:notifieditem-e7db3ff8-6143-455a-b613-7f02b5a23dea:admin@test-domain.com]

2021-01-28 21:48:55 | [Mutex] received everything.

2021-01-28 21:48:55 | [Mutex] isItemNotified: published:item:notifieditem-e7db3ff8-6143-455a-b613-7f02b5a23dea:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2021-01-28 21:48:56 |

2021-01-28 21:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:56 | ------------------------------------

2021-01-28 21:48:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1c42ad51-1633-436f-90e5-e1250336ada6",
    "item-id": "item-e7db3ff8-6143-455a-b613-7f02b5a23dea"
}

2021-01-28 21:48:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e7db3ff8-6143-455a-b613-7f02b5a23dea"
}

2021-01-28 21:48:56 | [Mutex] received everything.

2021-01-28 21:48:56 | [Mutex] isItemNotified: retracted:item:notifieditem-e7db3ff8-6143-455a-b613-7f02b5a23dea:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2021-01-28 21:48:55 |

2021-01-28 21:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:55 | ------------------------------------

2021-01-28 21:48:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1c42ad51-1633-436f-90e5-e1250336ada6",
    "item-id": "item-e7db3ff8-6143-455a-b613-7f02b5a23dea"
}

2021-01-28 21:48:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1c42ad51-1633-436f-90e5-e1250336ada6",
    "item-id": "item-e7db3ff8-6143-455a-b613-7f02b5a23dea",
    "item": [
        "<item id=\"item-e7db3ff8-6143-455a-b613-7f02b5a23dea\"><test>item-e7db3ff8-6143-455a-b613-7f02b5a23dea</test></item>"
    ]
}

2021-01-28 21:48:55 | [Mutex] notify: [retrieved:item:item-e7db3ff8-6143-455a-b613-7f02b5a23dea:payload-matches:true:localhost]

2021-01-28 21:48:55 | [Mutex] received everything.

2021-01-28 21:48:55 | [Mutex] isItemNotified: retrieved:item:item-e7db3ff8-6143-455a-b613-7f02b5a23dea:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-28 21:48:55 |

2021-01-28 21:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:55 | ------------------------------------

2021-01-28 21:48:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-28 21:48:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1c42ad51-1633-436f-90e5-e1250336ada6",
        "test",
        "node-e5b71c43-e334-44b9-a203-02e66e102ff4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-01-28 21:48:56 |

2021-01-28 21:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:56 | ------------------------------------

2021-01-28 21:48:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1c42ad51-1633-436f-90e5-e1250336ada6)"
}

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

subscribeNodes 1.012s
2021-01-28 21:48:54 |

2021-01-28 21:48:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:54 | ------------------------------------

2021-01-28 21:48:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1c42ad51-1633-436f-90e5-e1250336ada6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-28 21:48:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-01-28 21:48:56 |

2021-01-28 21:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 21:48:56 | ------------------------------------

2021-01-28 21:48:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1c42ad51-1633-436f-90e5-e1250336ada6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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