Generated by TestNG with ReportNG at 21:17 PST on Sunday 17 January 2021
root@87f6aca6b6f2 / 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.406s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.142s
2021-01-17 21:34:38 |

2021-01-17 21:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:38 | ------------------------------------

2021-01-17 21:34:38 | [Mutex] waiting for: [configured:node:node-599aa4f2-a1e2-42a5-953e-37af721a4b44:node-4fc79100-0c7e-44c6-9259-791abe18da67]

2021-01-17 21:34:39 | [Mutex] received everything.

2021-01-17 21:34:39 | [Mutex] isItemNotified: configured:node:node-599aa4f2-a1e2-42a5-953e-37af721a4b44:node-4fc79100-0c7e-44c6-9259-791abe18da67 :: true

2021-01-17 21:34:40 | [Mutex] waiting for: [received:nodes:393583db-055b-4624-801d-2f5271ed6810:localhost]

2021-01-17 21:34:40 | [Mutex] received everything.

2021-01-17 21:34:40 | [Mutex] isItemNotified: received:node:393583db-055b-4624-801d-2f5271ed6810:localhost:node-599aa4f2-a1e2-42a5-953e-37af721a4b44:Node 599aa4f2-a1e2-42a5-953e-37af721a4b44 :: true

2021-01-17 21:34:40 | [Mutex] waiting for: [received:nodes:f341c160-9686-4ea2-8e52-2d1e40923854:localhost]

2021-01-17 21:34:40 | [Mutex] received everything.

2021-01-17 21:34:40 | [Mutex] isItemNotified: received:node:f341c160-9686-4ea2-8e52-2d1e40923854:localhost:node-599aa4f2-a1e2-42a5-953e-37af721a4b44:Node 599aa4f2-a1e2-42a5-953e-37af721a4b44 :: false

createNodes 1.865s
2021-01-17 21:34:36 |

2021-01-17 21:34:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:36 | ------------------------------------

2021-01-17 21:34:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-599aa4f2-a1e2-42a5-953e-37af721a4b44",
    "pubsub#title": "Node 599aa4f2-a1e2-42a5-953e-37af721a4b44"
}

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

2021-01-17 21:34:37 | [Mutex] waiting for: [received:nodes:cac558a6-7845-4d2d-a721-d6e81c7d7163:localhost]

2021-01-17 21:34:37 | [Mutex] received everything.

2021-01-17 21:34:37 | [Mutex] isItemNotified: received:node:cac558a6-7845-4d2d-a721-d6e81c7d7163:localhost:node-599aa4f2-a1e2-42a5-953e-37af721a4b44:Node 599aa4f2-a1e2-42a5-953e-37af721a4b44 :: true

createSubnodes 1.038s
2021-01-17 21:34:37 |

2021-01-17 21:34:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:37 | ------------------------------------

2021-01-17 21:34:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4fc79100-0c7e-44c6-9259-791abe18da67",
    "pubsub#title": "Node 4fc79100-0c7e-44c6-9259-791abe18da67"
}

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

2021-01-17 21:34:38 | [Mutex] waiting for: [received:nodes:9a5206cf-8985-4cea-8bb2-b07f88e406a7:localhost]

2021-01-17 21:34:38 | [Mutex] received everything.

2021-01-17 21:34:38 | [Mutex] isItemNotified: received:node:9a5206cf-8985-4cea-8bb2-b07f88e406a7:localhost:node-4fc79100-0c7e-44c6-9259-791abe18da67:Node 4fc79100-0c7e-44c6-9259-791abe18da67 :: true

deleteNodes 1.051s
2021-01-17 21:34:43 |

2021-01-17 21:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:43 | ------------------------------------

2021-01-17 21:34:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4fc79100-0c7e-44c6-9259-791abe18da67"
}

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

2021-01-17 21:34:44 | [Mutex] waiting for: [received:nodes:bb2043ed-3c04-4878-a8d3-b43db7009850:localhost]

2021-01-17 21:34:44 | [Mutex] waiting for: [received:nodes:bb2043ed-3c04-4878-a8d3-b43db7009850:localhost]

2021-01-17 21:34:44 | [Mutex] received everything.

2021-01-17 21:34:44 | [Mutex] isItemNotified: received:node:bb2043ed-3c04-4878-a8d3-b43db7009850:localhost:node-4fc79100-0c7e-44c6-9259-791abe18da67:Node 4fc79100-0c7e-44c6-9259-791abe18da67 :: false

deleteSubnodes 1.044s
2021-01-17 21:34:42 |

2021-01-17 21:34:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:42 | ------------------------------------

2021-01-17 21:34:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-599aa4f2-a1e2-42a5-953e-37af721a4b44"
}

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

2021-01-17 21:34:43 | [Mutex] waiting for: [received:nodes:2c345cdf-1762-4776-a556-bdcb7d7f7459:localhost]

2021-01-17 21:34:43 | [Mutex] waiting for: [received:nodes:2c345cdf-1762-4776-a556-bdcb7d7f7459:localhost]

2021-01-17 21:34:43 | [Mutex] received everything.

2021-01-17 21:34:43 | [Mutex] isItemNotified: received:node:2c345cdf-1762-4776-a556-bdcb7d7f7459:localhost:node-599aa4f2-a1e2-42a5-953e-37af721a4b44:Node 599aa4f2-a1e2-42a5-953e-37af721a4b44 :: false

2021-01-17 21:34:43 | [Mutex] waiting for: [received:nodes:4dc037d0-627f-4d89-b225-44df2dc23775:localhost]

2021-01-17 21:34:43 | [Mutex] received everything.

2021-01-17 21:34:43 | [Mutex] isItemNotified: received:node:4dc037d0-627f-4d89-b225-44df2dc23775:localhost:node-599aa4f2-a1e2-42a5-953e-37af721a4b44:Node 599aa4f2-a1e2-42a5-953e-37af721a4b44 :: false

publishItemsToNodes 0.041s
2021-01-17 21:34:41 |

2021-01-17 21:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:41 | ------------------------------------

2021-01-17 21:34:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-599aa4f2-a1e2-42a5-953e-37af721a4b44",
    "entry": "<test>item-312401b2-db28-41c5-87a2-c748b76aec22</test>",
    "item-id": "item-312401b2-db28-41c5-87a2-c748b76aec22"
}

2021-01-17 21:34:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-312401b2-db28-41c5-87a2-c748b76aec22"
}

2021-01-17 21:34:41 | [Mutex] waiting for: [published:item:notifieditem-312401b2-db28-41c5-87a2-c748b76aec22:admin@test-domain.com]

2021-01-17 21:34:41 | [Mutex] received everything.

2021-01-17 21:34:41 | [Mutex] isItemNotified: published:item:notifieditem-312401b2-db28-41c5-87a2-c748b76aec22:admin@test-domain.com :: true

retractItemsFromNodes 0.076s
2021-01-17 21:34:41 |

2021-01-17 21:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:41 | ------------------------------------

2021-01-17 21:34:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-599aa4f2-a1e2-42a5-953e-37af721a4b44",
    "item-id": "item-312401b2-db28-41c5-87a2-c748b76aec22"
}

2021-01-17 21:34:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-312401b2-db28-41c5-87a2-c748b76aec22"
}

2021-01-17 21:34:41 | [Mutex] waiting for: [retracted:item:notifieditem-312401b2-db28-41c5-87a2-c748b76aec22:admin@test-domain.com]

2021-01-17 21:34:41 | [Mutex] received everything.

2021-01-17 21:34:41 | [Mutex] isItemNotified: retracted:item:notifieditem-312401b2-db28-41c5-87a2-c748b76aec22:admin@test-domain.com :: true

retrieveItemsFromNodes 0.119s
2021-01-17 21:34:41 |

2021-01-17 21:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:41 | ------------------------------------

2021-01-17 21:34:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-599aa4f2-a1e2-42a5-953e-37af721a4b44",
    "item-id": "item-312401b2-db28-41c5-87a2-c748b76aec22"
}

2021-01-17 21:34:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-599aa4f2-a1e2-42a5-953e-37af721a4b44",
    "item-id": "item-312401b2-db28-41c5-87a2-c748b76aec22",
    "item": [
        "<item id=\"item-312401b2-db28-41c5-87a2-c748b76aec22\"><test>item-312401b2-db28-41c5-87a2-c748b76aec22</test></item>"
    ]
}

2021-01-17 21:34:41 | [Mutex] notify: [retrieved:item:item-312401b2-db28-41c5-87a2-c748b76aec22:payload-matches:true:localhost]

2021-01-17 21:34:41 | [Mutex] received everything.

2021-01-17 21:34:41 | [Mutex] isItemNotified: retrieved:item:item-312401b2-db28-41c5-87a2-c748b76aec22:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-17 21:34:41 |

2021-01-17 21:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:41 | ------------------------------------

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

2021-01-17 21:34:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-599aa4f2-a1e2-42a5-953e-37af721a4b44",
        "node-4fc79100-0c7e-44c6-9259-791abe18da67"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-17 21:34:41 |

2021-01-17 21:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:41 | ------------------------------------

2021-01-17 21:34:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-599aa4f2-a1e2-42a5-953e-37af721a4b44)"
}

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

subscribeNodes 1.013s
2021-01-17 21:34:40 |

2021-01-17 21:34:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:40 | ------------------------------------

2021-01-17 21:34:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-599aa4f2-a1e2-42a5-953e-37af721a4b44",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.062s
2021-01-17 21:34:41 |

2021-01-17 21:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:41 | ------------------------------------

2021-01-17 21:34:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-599aa4f2-a1e2-42a5-953e-37af721a4b44",
    "jids": [
        "admin@test-domain.com"
    ]
}

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