Generated by TestNG with ReportNG at 22:13 PDT on Sunday 04 October 2020
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 : 8.943s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2020-10-04 22:30:05 |

2020-10-04 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:05 | ------------------------------------

2020-10-04 22:30:05 | [Mutex] waiting for: [configured:node:node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154:node-19b23b2f-e3cb-45eb-be44-a1eb9d994b99]

2020-10-04 22:30:05 | [Mutex] received everything.

2020-10-04 22:30:05 | [Mutex] isItemNotified: configured:node:node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154:node-19b23b2f-e3cb-45eb-be44-a1eb9d994b99 :: true

2020-10-04 22:30:06 | [Mutex] waiting for: [received:nodes:e5e2e164-1f27-43af-82c9-ab988d57b2f1:localhost]

2020-10-04 22:30:06 | [Mutex] waiting for: [received:nodes:e5e2e164-1f27-43af-82c9-ab988d57b2f1:localhost]

2020-10-04 22:30:06 | [Mutex] received everything.

2020-10-04 22:30:06 | [Mutex] isItemNotified: received:node:e5e2e164-1f27-43af-82c9-ab988d57b2f1:localhost:node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154:Node ecbb4da9-5b63-4ea5-a62e-53eede8ff154 :: true

2020-10-04 22:30:06 | [Mutex] waiting for: [received:nodes:edc4e111-9a62-496d-aa60-9c5dc336c7f1:localhost]

2020-10-04 22:30:06 | [Mutex] received everything.

2020-10-04 22:30:06 | [Mutex] isItemNotified: received:node:edc4e111-9a62-496d-aa60-9c5dc336c7f1:localhost:node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154:Node ecbb4da9-5b63-4ea5-a62e-53eede8ff154 :: false

createNodes 1.628s
2020-10-04 22:30:03 |

2020-10-04 22:30:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:03 | ------------------------------------

2020-10-04 22:30:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154",
    "pubsub#title": "Node ecbb4da9-5b63-4ea5-a62e-53eede8ff154"
}

2020-10-04 22:30:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-04 22:30:04 | [Mutex] waiting for: [received:nodes:218aaf01-ef2d-45b5-b847-75d2098a0870:localhost]

2020-10-04 22:30:04 | [Mutex] received everything.

2020-10-04 22:30:04 | [Mutex] isItemNotified: received:node:218aaf01-ef2d-45b5-b847-75d2098a0870:localhost:node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154:Node ecbb4da9-5b63-4ea5-a62e-53eede8ff154 :: true

createSubnodes 1.024s
2020-10-04 22:30:04 |

2020-10-04 22:30:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:04 | ------------------------------------

2020-10-04 22:30:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-19b23b2f-e3cb-45eb-be44-a1eb9d994b99",
    "pubsub#title": "Node 19b23b2f-e3cb-45eb-be44-a1eb9d994b99"
}

2020-10-04 22:30:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-04 22:30:05 | [Mutex] waiting for: [received:nodes:6358c077-28a9-43e7-a6c1-f5235a052bd9:localhost]

2020-10-04 22:30:05 | [Mutex] received everything.

2020-10-04 22:30:05 | [Mutex] isItemNotified: received:node:6358c077-28a9-43e7-a6c1-f5235a052bd9:localhost:node-19b23b2f-e3cb-45eb-be44-a1eb9d994b99:Node 19b23b2f-e3cb-45eb-be44-a1eb9d994b99 :: true

deleteNodes 1.019s
2020-10-04 22:30:10 |

2020-10-04 22:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:10 | ------------------------------------

2020-10-04 22:30:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-19b23b2f-e3cb-45eb-be44-a1eb9d994b99"
}

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

2020-10-04 22:30:11 | [Mutex] waiting for: [received:nodes:53719bab-c359-43c4-8675-c4dd37295269:localhost]

2020-10-04 22:30:11 | [Mutex] received everything.

2020-10-04 22:30:11 | [Mutex] isItemNotified: received:node:53719bab-c359-43c4-8675-c4dd37295269:localhost:node-19b23b2f-e3cb-45eb-be44-a1eb9d994b99:Node 19b23b2f-e3cb-45eb-be44-a1eb9d994b99 :: false

deleteSubnodes 1.028s
2020-10-04 22:30:09 |

2020-10-04 22:30:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:09 | ------------------------------------

2020-10-04 22:30:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154"
}

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

2020-10-04 22:30:10 | [Mutex] waiting for: [received:nodes:44a7d283-504f-47a5-9048-2fec3bd4a1ae:localhost]

2020-10-04 22:30:10 | [Mutex] waiting for: [received:nodes:44a7d283-504f-47a5-9048-2fec3bd4a1ae:localhost]

2020-10-04 22:30:10 | [Mutex] received everything.

2020-10-04 22:30:10 | [Mutex] isItemNotified: received:node:44a7d283-504f-47a5-9048-2fec3bd4a1ae:localhost:node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154:Node ecbb4da9-5b63-4ea5-a62e-53eede8ff154 :: false

2020-10-04 22:30:10 | [Mutex] waiting for: [received:nodes:d22affbc-e585-4646-b5b7-6b6648c99cff:localhost]

2020-10-04 22:30:10 | [Mutex] received everything.

2020-10-04 22:30:10 | [Mutex] isItemNotified: received:node:d22affbc-e585-4646-b5b7-6b6648c99cff:localhost:node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154:Node ecbb4da9-5b63-4ea5-a62e-53eede8ff154 :: false

publishItemsToNodes 0.041s
2020-10-04 22:30:07 |

2020-10-04 22:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:07 | ------------------------------------

2020-10-04 22:30:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154",
    "entry": "<test>item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d</test>",
    "item-id": "item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d"
}

2020-10-04 22:30:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d"
}

2020-10-04 22:30:07 | [Mutex] waiting for: [published:item:notifieditem-0af8d22c-696f-42ab-8991-c69fd0cd2a9d:admin@test-domain.com]

2020-10-04 22:30:07 | [Mutex] received everything.

2020-10-04 22:30:07 | [Mutex] isItemNotified: published:item:notifieditem-0af8d22c-696f-42ab-8991-c69fd0cd2a9d:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-10-04 22:30:08 |

2020-10-04 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:08 | ------------------------------------

2020-10-04 22:30:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154",
    "item-id": "item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d"
}

2020-10-04 22:30:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d"
}

2020-10-04 22:30:08 | [Mutex] received everything.

2020-10-04 22:30:08 | [Mutex] isItemNotified: retracted:item:notifieditem-0af8d22c-696f-42ab-8991-c69fd0cd2a9d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2020-10-04 22:30:07 |

2020-10-04 22:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:07 | ------------------------------------

2020-10-04 22:30:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154",
    "item-id": "item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d"
}

2020-10-04 22:30:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154",
    "item-id": "item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d",
    "item": [
        "<item id=\"item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d\"><test>item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d</test></item>"
    ]
}

2020-10-04 22:30:07 | [Mutex] notify: [retrieved:item:item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d:payload-matches:true:localhost]

2020-10-04 22:30:07 | [Mutex] received everything.

2020-10-04 22:30:07 | [Mutex] isItemNotified: retrieved:item:item-0af8d22c-696f-42ab-8991-c69fd0cd2a9d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-10-04 22:30:07 |

2020-10-04 22:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:07 | ------------------------------------

2020-10-04 22:30:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-04 22:30:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154",
        "node-19b23b2f-e3cb-45eb-be44-a1eb9d994b99"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-10-04 22:30:07 |

2020-10-04 22:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:07 | ------------------------------------

2020-10-04 22:30:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154)"
}

2020-10-04 22:30:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-10-04 22:30:06 |

2020-10-04 22:30:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:06 | ------------------------------------

2020-10-04 22:30:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-04 22:30:06 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2020-10-04 22:30:08 |

2020-10-04 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:08 | ------------------------------------

2020-10-04 22:30:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ecbb4da9-5b63-4ea5-a62e-53eede8ff154",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-04 22:30:08 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}