Generated by TestNG with ReportNG at 21:47 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.167s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.124s
2021-01-17 22:02:41 |

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

2021-01-17 22:02:41 | ------------------------------------

2021-01-17 22:02:41 | [Mutex] waiting for: [configured:node:node-a294266f-ba8c-4dec-b853-9b702a1912b3:node-66f43b12-fb15-42c2-b163-2ec9ea1577ee]

2021-01-17 22:02:41 | [Mutex] received everything.

2021-01-17 22:02:41 | [Mutex] isItemNotified: configured:node:node-a294266f-ba8c-4dec-b853-9b702a1912b3:node-66f43b12-fb15-42c2-b163-2ec9ea1577ee :: true

2021-01-17 22:02:42 | [Mutex] waiting for: [received:nodes:fcd29640-410b-446c-9ab2-41aec5a42d7e:localhost]

2021-01-17 22:02:42 | [Mutex] received everything.

2021-01-17 22:02:42 | [Mutex] isItemNotified: received:node:fcd29640-410b-446c-9ab2-41aec5a42d7e:localhost:node-a294266f-ba8c-4dec-b853-9b702a1912b3:Node a294266f-ba8c-4dec-b853-9b702a1912b3 :: true

2021-01-17 22:02:42 | [Mutex] waiting for: [received:nodes:08b8dd0b-eaa3-4f71-bfb7-119f35bf36d0:localhost]

2021-01-17 22:02:42 | [Mutex] received everything.

2021-01-17 22:02:42 | [Mutex] isItemNotified: received:node:08b8dd0b-eaa3-4f71-bfb7-119f35bf36d0:localhost:node-a294266f-ba8c-4dec-b853-9b702a1912b3:Node a294266f-ba8c-4dec-b853-9b702a1912b3 :: false

createNodes 1.720s
2021-01-17 22:02:38 |

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

2021-01-17 22:02:38 | ------------------------------------

2021-01-17 22:02:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a294266f-ba8c-4dec-b853-9b702a1912b3",
    "pubsub#title": "Node a294266f-ba8c-4dec-b853-9b702a1912b3"
}

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

2021-01-17 22:02:40 | [Mutex] waiting for: [received:nodes:b480f690-05b7-464b-8619-902d72613934:localhost]

2021-01-17 22:02:40 | [Mutex] waiting for: [received:nodes:b480f690-05b7-464b-8619-902d72613934:localhost]

2021-01-17 22:02:40 | [Mutex] received everything.

2021-01-17 22:02:40 | [Mutex] isItemNotified: received:node:b480f690-05b7-464b-8619-902d72613934:localhost:node-a294266f-ba8c-4dec-b853-9b702a1912b3:Node a294266f-ba8c-4dec-b853-9b702a1912b3 :: true

createSubnodes 1.041s
2021-01-17 22:02:40 |

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

2021-01-17 22:02:40 | ------------------------------------

2021-01-17 22:02:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-66f43b12-fb15-42c2-b163-2ec9ea1577ee",
    "pubsub#title": "Node 66f43b12-fb15-42c2-b163-2ec9ea1577ee"
}

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

2021-01-17 22:02:41 | [Mutex] waiting for: [received:nodes:03ffa3d9-e4fa-4d3c-a163-c132092be3f5:localhost]

2021-01-17 22:02:41 | [Mutex] waiting for: [received:nodes:03ffa3d9-e4fa-4d3c-a163-c132092be3f5:localhost]

2021-01-17 22:02:41 | [Mutex] received everything.

2021-01-17 22:02:41 | [Mutex] isItemNotified: received:node:03ffa3d9-e4fa-4d3c-a163-c132092be3f5:localhost:node-66f43b12-fb15-42c2-b163-2ec9ea1577ee:Node 66f43b12-fb15-42c2-b163-2ec9ea1577ee :: true

deleteNodes 1.026s
2021-01-17 22:02:45 |

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

2021-01-17 22:02:45 | ------------------------------------

2021-01-17 22:02:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-66f43b12-fb15-42c2-b163-2ec9ea1577ee"
}

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

2021-01-17 22:02:46 | [Mutex] waiting for: [received:nodes:a90a4002-c17a-4151-873b-5d7a4eb1f686:localhost]

2021-01-17 22:02:46 | [Mutex] received everything.

2021-01-17 22:02:46 | [Mutex] isItemNotified: received:node:a90a4002-c17a-4151-873b-5d7a4eb1f686:localhost:node-66f43b12-fb15-42c2-b163-2ec9ea1577ee:Node 66f43b12-fb15-42c2-b163-2ec9ea1577ee :: false

deleteSubnodes 1.032s
2021-01-17 22:02:44 |

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

2021-01-17 22:02:44 | ------------------------------------

2021-01-17 22:02:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a294266f-ba8c-4dec-b853-9b702a1912b3"
}

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

2021-01-17 22:02:45 | [Mutex] waiting for: [received:nodes:2fc4f8fc-5fa9-4eb2-9f5b-e58cda389c60:localhost]

2021-01-17 22:02:45 | [Mutex] received everything.

2021-01-17 22:02:45 | [Mutex] isItemNotified: received:node:2fc4f8fc-5fa9-4eb2-9f5b-e58cda389c60:localhost:node-a294266f-ba8c-4dec-b853-9b702a1912b3:Node a294266f-ba8c-4dec-b853-9b702a1912b3 :: false

2021-01-17 22:02:45 | [Mutex] waiting for: [received:nodes:18a526d7-f40c-4cea-a2cb-b579719b72c4:localhost]

2021-01-17 22:02:45 | [Mutex] received everything.

2021-01-17 22:02:45 | [Mutex] isItemNotified: received:node:18a526d7-f40c-4cea-a2cb-b579719b72c4:localhost:node-a294266f-ba8c-4dec-b853-9b702a1912b3:Node a294266f-ba8c-4dec-b853-9b702a1912b3 :: false

publishItemsToNodes 0.052s
2021-01-17 22:02:43 |

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

2021-01-17 22:02:43 | ------------------------------------

2021-01-17 22:02:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a294266f-ba8c-4dec-b853-9b702a1912b3",
    "entry": "<test>item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec</test>",
    "item-id": "item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec"
}

2021-01-17 22:02:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec"
}

2021-01-17 22:02:43 | [Mutex] waiting for: [published:item:notifieditem-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec:admin@test-domain.com]

2021-01-17 22:02:43 | [Mutex] received everything.

2021-01-17 22:02:43 | [Mutex] isItemNotified: published:item:notifieditem-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-01-17 22:02:43 |

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

2021-01-17 22:02:43 | ------------------------------------

2021-01-17 22:02:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a294266f-ba8c-4dec-b853-9b702a1912b3",
    "item-id": "item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec"
}

2021-01-17 22:02:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec"
}

2021-01-17 22:02:43 | [Mutex] received everything.

2021-01-17 22:02:43 | [Mutex] isItemNotified: retracted:item:notifieditem-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2021-01-17 22:02:43 |

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

2021-01-17 22:02:43 | ------------------------------------

2021-01-17 22:02:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a294266f-ba8c-4dec-b853-9b702a1912b3",
    "item-id": "item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec"
}

2021-01-17 22:02:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a294266f-ba8c-4dec-b853-9b702a1912b3",
    "item-id": "item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec",
    "item": [
        "<item id=\"item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec\"><test>item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec</test></item>"
    ]
}

2021-01-17 22:02:43 | [Mutex] notify: [retrieved:item:item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec:payload-matches:true:localhost]

2021-01-17 22:02:43 | [Mutex] received everything.

2021-01-17 22:02:43 | [Mutex] isItemNotified: retrieved:item:item-b0a55cbb-6ec9-4cc5-80c5-d73fd77f6eec:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2021-01-17 22:02:43 |

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

2021-01-17 22:02:43 | ------------------------------------

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

2021-01-17 22:02:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a294266f-ba8c-4dec-b853-9b702a1912b3",
        "test",
        "node-66f43b12-fb15-42c2-b163-2ec9ea1577ee"
    ]
}

retrieveUserSubscriptionsWithRegex 0.107s
2021-01-17 22:02:43 |

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

2021-01-17 22:02:43 | ------------------------------------

2021-01-17 22:02:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a294266f-ba8c-4dec-b853-9b702a1912b3)"
}

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

subscribeNodes 1.020s
2021-01-17 22:02:42 |

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

2021-01-17 22:02:42 | ------------------------------------

2021-01-17 22:02:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a294266f-ba8c-4dec-b853-9b702a1912b3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2021-01-17 22:02:43 |

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

2021-01-17 22:02:43 | ------------------------------------

2021-01-17 22:02:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a294266f-ba8c-4dec-b853-9b702a1912b3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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