Generated by TestNG with ReportNG at 10:14 PDT on Friday 23 April 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.163s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.157s
2021-04-23 10:31:25 |

2021-04-23 10:31:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-23 10:31:25 | ------------------------------------

2021-04-23 10:31:25 | [Mutex] waiting for: [configured:node:node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d:node-f77dcbb4-845c-4132-b489-4b928660b677]

2021-04-23 10:31:25 | [Mutex] received everything.

2021-04-23 10:31:25 | [Mutex] isItemNotified: configured:node:node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d:node-f77dcbb4-845c-4132-b489-4b928660b677 :: true

2021-04-23 10:31:26 | [Mutex] waiting for: [received:nodes:f8195fc4-aa2b-4fc9-91ce-3342ba868399:localhost]

2021-04-23 10:31:26 | [Mutex] received everything.

2021-04-23 10:31:26 | [Mutex] isItemNotified: received:node:f8195fc4-aa2b-4fc9-91ce-3342ba868399:localhost:node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d:Node fb3b31b9-8b5f-48ef-b087-5d72ee22829d :: true

2021-04-23 10:31:26 | [Mutex] waiting for: [received:nodes:b8b3f6b3-c65c-49d8-8f88-50af37891b07:localhost]

2021-04-23 10:31:26 | [Mutex] received everything.

2021-04-23 10:31:26 | [Mutex] isItemNotified: received:node:b8b3f6b3-c65c-49d8-8f88-50af37891b07:localhost:node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d:Node fb3b31b9-8b5f-48ef-b087-5d72ee22829d :: false

createNodes 1.805s
2021-04-23 10:31:22 |

2021-04-23 10:31:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-23 10:31:22 | ------------------------------------

2021-04-23 10:31:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d",
    "pubsub#title": "Node fb3b31b9-8b5f-48ef-b087-5d72ee22829d"
}

2021-04-23 10:31:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-23 10:31:24 | [Mutex] waiting for: [received:nodes:0ce94ed6-c032-44df-9ab8-5fe9c7d3f325:localhost]

2021-04-23 10:31:24 | [Mutex] waiting for: [received:nodes:0ce94ed6-c032-44df-9ab8-5fe9c7d3f325:localhost]

2021-04-23 10:31:24 | [Mutex] received everything.

2021-04-23 10:31:24 | [Mutex] isItemNotified: received:node:0ce94ed6-c032-44df-9ab8-5fe9c7d3f325:localhost:node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d:Node fb3b31b9-8b5f-48ef-b087-5d72ee22829d :: true

createSubnodes 1.023s
2021-04-23 10:31:24 |

2021-04-23 10:31:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-23 10:31:24 | ------------------------------------

2021-04-23 10:31:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f77dcbb4-845c-4132-b489-4b928660b677",
    "pubsub#title": "Node f77dcbb4-845c-4132-b489-4b928660b677"
}

2021-04-23 10:31:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-23 10:31:25 | [Mutex] waiting for: [received:nodes:df1d2768-1757-4bb9-a667-ab1fe39af9d7:localhost]

2021-04-23 10:31:25 | [Mutex] received everything.

2021-04-23 10:31:25 | [Mutex] isItemNotified: received:node:df1d2768-1757-4bb9-a667-ab1fe39af9d7:localhost:node-f77dcbb4-845c-4132-b489-4b928660b677:Node f77dcbb4-845c-4132-b489-4b928660b677 :: true

deleteNodes 1.022s
2021-04-23 10:31:30 |

2021-04-23 10:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-23 10:31:30 | ------------------------------------

2021-04-23 10:31:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f77dcbb4-845c-4132-b489-4b928660b677"
}

2021-04-23 10:31:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-23 10:31:31 | [Mutex] waiting for: [received:nodes:96037b57-8a2b-4aca-8e07-b6d76bac331c:localhost]

2021-04-23 10:31:31 | [Mutex] waiting for: [received:nodes:96037b57-8a2b-4aca-8e07-b6d76bac331c:localhost]

2021-04-23 10:31:31 | [Mutex] received everything.

2021-04-23 10:31:31 | [Mutex] isItemNotified: received:node:96037b57-8a2b-4aca-8e07-b6d76bac331c:localhost:node-f77dcbb4-845c-4132-b489-4b928660b677:Node f77dcbb4-845c-4132-b489-4b928660b677 :: false

deleteSubnodes 1.032s
2021-04-23 10:31:29 |

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

2021-04-23 10:31:29 | ------------------------------------

2021-04-23 10:31:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d"
}

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

2021-04-23 10:31:30 | [Mutex] waiting for: [received:nodes:1e1eb41d-c19a-4a6b-8a58-0fefbee23334:localhost]

2021-04-23 10:31:30 | [Mutex] received everything.

2021-04-23 10:31:30 | [Mutex] isItemNotified: received:node:1e1eb41d-c19a-4a6b-8a58-0fefbee23334:localhost:node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d:Node fb3b31b9-8b5f-48ef-b087-5d72ee22829d :: false

2021-04-23 10:31:30 | [Mutex] waiting for: [received:nodes:47dfba65-9385-49b3-b27b-8cd4f18997f4:localhost]

2021-04-23 10:31:30 | [Mutex] received everything.

2021-04-23 10:31:30 | [Mutex] isItemNotified: received:node:47dfba65-9385-49b3-b27b-8cd4f18997f4:localhost:node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d:Node fb3b31b9-8b5f-48ef-b087-5d72ee22829d :: false

publishItemsToNodes 0.071s
2021-04-23 10:31:27 |

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

2021-04-23 10:31:27 | ------------------------------------

2021-04-23 10:31:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d",
    "entry": "<test>item-b1f523d5-b859-4d73-9073-7ad083529ada</test>",
    "item-id": "item-b1f523d5-b859-4d73-9073-7ad083529ada"
}

2021-04-23 10:31:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b1f523d5-b859-4d73-9073-7ad083529ada"
}

2021-04-23 10:31:27 | [Mutex] waiting for: [published:item:notifieditem-b1f523d5-b859-4d73-9073-7ad083529ada:admin@test-domain.com]

2021-04-23 10:31:27 | [Mutex] received everything.

2021-04-23 10:31:27 | [Mutex] isItemNotified: published:item:notifieditem-b1f523d5-b859-4d73-9073-7ad083529ada:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2021-04-23 10:31:28 |

2021-04-23 10:31:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-23 10:31:28 | ------------------------------------

2021-04-23 10:31:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d",
    "item-id": "item-b1f523d5-b859-4d73-9073-7ad083529ada"
}

2021-04-23 10:31:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b1f523d5-b859-4d73-9073-7ad083529ada"
}

2021-04-23 10:31:28 | [Mutex] waiting for: [retracted:item:notifieditem-b1f523d5-b859-4d73-9073-7ad083529ada:admin@test-domain.com]

2021-04-23 10:31:28 | [Mutex] received everything.

2021-04-23 10:31:28 | [Mutex] isItemNotified: retracted:item:notifieditem-b1f523d5-b859-4d73-9073-7ad083529ada:admin@test-domain.com :: true

retrieveItemsFromNodes 0.047s
2021-04-23 10:31:27 |

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

2021-04-23 10:31:27 | ------------------------------------

2021-04-23 10:31:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d",
    "item-id": "item-b1f523d5-b859-4d73-9073-7ad083529ada"
}

2021-04-23 10:31:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d",
    "item-id": "item-b1f523d5-b859-4d73-9073-7ad083529ada",
    "item": [
        "<item id=\"item-b1f523d5-b859-4d73-9073-7ad083529ada\"><test>item-b1f523d5-b859-4d73-9073-7ad083529ada</test></item>"
    ]
}

2021-04-23 10:31:27 | [Mutex] notify: [retrieved:item:item-b1f523d5-b859-4d73-9073-7ad083529ada:payload-matches:true:localhost]

2021-04-23 10:31:27 | [Mutex] received everything.

2021-04-23 10:31:27 | [Mutex] isItemNotified: retrieved:item:item-b1f523d5-b859-4d73-9073-7ad083529ada:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2021-04-23 10:31:27 |

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

2021-04-23 10:31:27 | ------------------------------------

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

2021-04-23 10:31:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d",
        "test",
        "node-f77dcbb4-845c-4132-b489-4b928660b677"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-04-23 10:31:28 |

2021-04-23 10:31:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-23 10:31:28 | ------------------------------------

2021-04-23 10:31:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d)"
}

2021-04-23 10:31:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-04-23 10:31:26 |

2021-04-23 10:31:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-23 10:31:26 | ------------------------------------

2021-04-23 10:31:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-23 10:31:26 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2021-04-23 10:31:28 |

2021-04-23 10:31:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-23 10:31:28 | ------------------------------------

2021-04-23 10:31:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fb3b31b9-8b5f-48ef-b087-5d72ee22829d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-23 10:31:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}