Generated by TestNG with ReportNG at 21:45 PST on Tuesday 26 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.352s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-01-26 22:01:05 |

2021-01-26 22:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:05 | ------------------------------------

2021-01-26 22:01:05 | [Mutex] waiting for: [configured:node:node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69:node-8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6]

2021-01-26 22:01:05 | [Mutex] received everything.

2021-01-26 22:01:05 | [Mutex] isItemNotified: configured:node:node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69:node-8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6 :: true

2021-01-26 22:01:06 | [Mutex] waiting for: [received:nodes:a66db1bc-d647-4dd8-bfb5-da3af116b659:localhost]

2021-01-26 22:01:06 | [Mutex] received everything.

2021-01-26 22:01:06 | [Mutex] isItemNotified: received:node:a66db1bc-d647-4dd8-bfb5-da3af116b659:localhost:node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69:Node 04e1f8a8-95fa-4d64-8f3d-780d24d70e69 :: true

2021-01-26 22:01:06 | [Mutex] waiting for: [received:nodes:7c18f416-b4ef-451d-adfd-a7428842f679:localhost]

2021-01-26 22:01:06 | [Mutex] waiting for: [received:nodes:7c18f416-b4ef-451d-adfd-a7428842f679:localhost]

2021-01-26 22:01:06 | [Mutex] received everything.

2021-01-26 22:01:06 | [Mutex] isItemNotified: received:node:7c18f416-b4ef-451d-adfd-a7428842f679:localhost:node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69:Node 04e1f8a8-95fa-4d64-8f3d-780d24d70e69 :: false

createNodes 1.813s
2021-01-26 22:01:02 |

2021-01-26 22:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:02 | ------------------------------------

2021-01-26 22:01: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-04e1f8a8-95fa-4d64-8f3d-780d24d70e69",
    "pubsub#title": "Node 04e1f8a8-95fa-4d64-8f3d-780d24d70e69"
}

2021-01-26 22:01:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-26 22:01:04 | [Mutex] waiting for: [received:nodes:5345fad0-c1e3-46a1-87ae-193e4530b266:localhost]

2021-01-26 22:01:04 | [Mutex] waiting for: [received:nodes:5345fad0-c1e3-46a1-87ae-193e4530b266:localhost]

2021-01-26 22:01:04 | [Mutex] received everything.

2021-01-26 22:01:04 | [Mutex] isItemNotified: received:node:5345fad0-c1e3-46a1-87ae-193e4530b266:localhost:node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69:Node 04e1f8a8-95fa-4d64-8f3d-780d24d70e69 :: true

createSubnodes 1.040s
2021-01-26 22:01:04 |

2021-01-26 22:01:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:04 | ------------------------------------

2021-01-26 22:01: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-8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6",
    "pubsub#title": "Node 8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6"
}

2021-01-26 22:01:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-26 22:01:05 | [Mutex] waiting for: [received:nodes:318ce595-8193-47f9-9480-38c842f505b4:localhost]

2021-01-26 22:01:05 | [Mutex] received everything.

2021-01-26 22:01:05 | [Mutex] isItemNotified: received:node:318ce595-8193-47f9-9480-38c842f505b4:localhost:node-8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6:Node 8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6 :: true

deleteNodes 1.030s
2021-01-26 22:01:09 |

2021-01-26 22:01:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:09 | ------------------------------------

2021-01-26 22:01:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6"
}

2021-01-26 22:01:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-26 22:01:10 | [Mutex] waiting for: [received:nodes:11207b9a-67bc-4d08-addd-3513a0c531ae:localhost]

2021-01-26 22:01:10 | [Mutex] received everything.

2021-01-26 22:01:10 | [Mutex] isItemNotified: received:node:11207b9a-67bc-4d08-addd-3513a0c531ae:localhost:node-8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6:Node 8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6 :: false

deleteSubnodes 1.032s
2021-01-26 22:01:08 |

2021-01-26 22:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:08 | ------------------------------------

2021-01-26 22:01:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69"
}

2021-01-26 22:01:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-26 22:01:09 | [Mutex] waiting for: [received:nodes:e53f545a-152d-45d1-8a1b-80b4afe919c1:localhost]

2021-01-26 22:01:09 | [Mutex] waiting for: [received:nodes:e53f545a-152d-45d1-8a1b-80b4afe919c1:localhost]

2021-01-26 22:01:09 | [Mutex] received everything.

2021-01-26 22:01:09 | [Mutex] isItemNotified: received:node:e53f545a-152d-45d1-8a1b-80b4afe919c1:localhost:node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69:Node 04e1f8a8-95fa-4d64-8f3d-780d24d70e69 :: false

2021-01-26 22:01:09 | [Mutex] waiting for: [received:nodes:025c74b6-7059-41e2-ba4a-36ee1a49c2e9:localhost]

2021-01-26 22:01:09 | [Mutex] received everything.

2021-01-26 22:01:09 | [Mutex] isItemNotified: received:node:025c74b6-7059-41e2-ba4a-36ee1a49c2e9:localhost:node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69:Node 04e1f8a8-95fa-4d64-8f3d-780d24d70e69 :: false

publishItemsToNodes 0.051s
2021-01-26 22:01:07 |

2021-01-26 22:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:07 | ------------------------------------

2021-01-26 22:01:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69",
    "entry": "<test>item-76f376b0-181d-47c8-bf8d-31ae03626a34</test>",
    "item-id": "item-76f376b0-181d-47c8-bf8d-31ae03626a34"
}

2021-01-26 22:01:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-76f376b0-181d-47c8-bf8d-31ae03626a34"
}

2021-01-26 22:01:07 | [Mutex] waiting for: [published:item:notifieditem-76f376b0-181d-47c8-bf8d-31ae03626a34:admin@test-domain.com]

2021-01-26 22:01:07 | [Mutex] received everything.

2021-01-26 22:01:07 | [Mutex] isItemNotified: published:item:notifieditem-76f376b0-181d-47c8-bf8d-31ae03626a34:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-01-26 22:01:07 |

2021-01-26 22:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:07 | ------------------------------------

2021-01-26 22:01:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69",
    "item-id": "item-76f376b0-181d-47c8-bf8d-31ae03626a34"
}

2021-01-26 22:01:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-76f376b0-181d-47c8-bf8d-31ae03626a34"
}

2021-01-26 22:01:07 | [Mutex] received everything.

2021-01-26 22:01:07 | [Mutex] isItemNotified: retracted:item:notifieditem-76f376b0-181d-47c8-bf8d-31ae03626a34:admin@test-domain.com :: true

retrieveItemsFromNodes 0.047s
2021-01-26 22:01:07 |

2021-01-26 22:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:07 | ------------------------------------

2021-01-26 22:01:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69",
    "item-id": "item-76f376b0-181d-47c8-bf8d-31ae03626a34"
}

2021-01-26 22:01:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69",
    "item-id": "item-76f376b0-181d-47c8-bf8d-31ae03626a34",
    "item": [
        "<item id=\"item-76f376b0-181d-47c8-bf8d-31ae03626a34\"><test>item-76f376b0-181d-47c8-bf8d-31ae03626a34</test></item>"
    ]
}

2021-01-26 22:01:07 | [Mutex] notify: [retrieved:item:item-76f376b0-181d-47c8-bf8d-31ae03626a34:payload-matches:true:localhost]

2021-01-26 22:01:07 | [Mutex] received everything.

2021-01-26 22:01:07 | [Mutex] isItemNotified: retrieved:item:item-76f376b0-181d-47c8-bf8d-31ae03626a34:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.069s
2021-01-26 22:01:07 |

2021-01-26 22:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:07 | ------------------------------------

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

2021-01-26 22:01:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69",
        "node-8bcc0860-c5e4-4fbd-8f6e-d741e41d38f6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-26 22:01:07 |

2021-01-26 22:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:07 | ------------------------------------

2021-01-26 22:01:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69)"
}

2021-01-26 22:01:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2021-01-26 22:01:06 |

2021-01-26 22:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:06 | ------------------------------------

2021-01-26 22:01:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-26 22:01:06 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.119s
2021-01-26 22:01:07 |

2021-01-26 22:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-26 22:01:07 | ------------------------------------

2021-01-26 22:01:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-04e1f8a8-95fa-4d64-8f3d-780d24d70e69",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-26 22:01:07 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}