Generated by TestNG with ReportNG at 01:51 PDT on Friday 18 September 2020
root@f53a97fae7d2 / 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.959s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2020-09-18 02:06:52 |

2020-09-18 02:06:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:52 | ------------------------------------

2020-09-18 02:06:52 | [Mutex] waiting for: [configured:node:node-9d6235f9-a607-47cc-9211-415d09c4f285:node-68820ebf-ab74-4b0a-8b6a-0968df21bfcd]

2020-09-18 02:06:52 | [Mutex] received everything.

2020-09-18 02:06:52 | [Mutex] isItemNotified: configured:node:node-9d6235f9-a607-47cc-9211-415d09c4f285:node-68820ebf-ab74-4b0a-8b6a-0968df21bfcd :: true

2020-09-18 02:06:53 | [Mutex] waiting for: [received:nodes:b8d77597-9b10-41a2-926d-05518f8e25ba:localhost]

2020-09-18 02:06:53 | [Mutex] received everything.

2020-09-18 02:06:53 | [Mutex] isItemNotified: received:node:b8d77597-9b10-41a2-926d-05518f8e25ba:localhost:node-9d6235f9-a607-47cc-9211-415d09c4f285:Node 9d6235f9-a607-47cc-9211-415d09c4f285 :: true

2020-09-18 02:06:53 | [Mutex] waiting for: [received:nodes:7f0e796a-96ff-4bc1-957b-c0d235875fee:localhost]

2020-09-18 02:06:53 | [Mutex] waiting for: [received:nodes:7f0e796a-96ff-4bc1-957b-c0d235875fee:localhost]

2020-09-18 02:06:53 | [Mutex] received everything.

2020-09-18 02:06:53 | [Mutex] isItemNotified: received:node:7f0e796a-96ff-4bc1-957b-c0d235875fee:localhost:node-9d6235f9-a607-47cc-9211-415d09c4f285:Node 9d6235f9-a607-47cc-9211-415d09c4f285 :: false

createNodes 1.617s
2020-09-18 02:06:50 |

2020-09-18 02:06:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:50 | ------------------------------------

2020-09-18 02:06:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9d6235f9-a607-47cc-9211-415d09c4f285",
    "pubsub#title": "Node 9d6235f9-a607-47cc-9211-415d09c4f285"
}

2020-09-18 02:06:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 02:06:51 | [Mutex] waiting for: [received:nodes:9444c850-db3f-48aa-acfd-b4bd3dd1770f:localhost]

2020-09-18 02:06:51 | [Mutex] received everything.

2020-09-18 02:06:51 | [Mutex] isItemNotified: received:node:9444c850-db3f-48aa-acfd-b4bd3dd1770f:localhost:node-9d6235f9-a607-47cc-9211-415d09c4f285:Node 9d6235f9-a607-47cc-9211-415d09c4f285 :: true

createSubnodes 1.054s
2020-09-18 02:06:51 |

2020-09-18 02:06:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:51 | ------------------------------------

2020-09-18 02:06:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-68820ebf-ab74-4b0a-8b6a-0968df21bfcd",
    "pubsub#title": "Node 68820ebf-ab74-4b0a-8b6a-0968df21bfcd"
}

2020-09-18 02:06:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 02:06:52 | [Mutex] waiting for: [received:nodes:87e78f64-314c-45df-9a47-8ee45cf19f20:localhost]

2020-09-18 02:06:52 | [Mutex] waiting for: [received:nodes:87e78f64-314c-45df-9a47-8ee45cf19f20:localhost]

2020-09-18 02:06:52 | [Mutex] received everything.

2020-09-18 02:06:52 | [Mutex] isItemNotified: received:node:87e78f64-314c-45df-9a47-8ee45cf19f20:localhost:node-68820ebf-ab74-4b0a-8b6a-0968df21bfcd:Node 68820ebf-ab74-4b0a-8b6a-0968df21bfcd :: true

deleteNodes 1.031s
2020-09-18 02:06:57 |

2020-09-18 02:06:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:57 | ------------------------------------

2020-09-18 02:06:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-68820ebf-ab74-4b0a-8b6a-0968df21bfcd"
}

2020-09-18 02:06:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 02:06:58 | [Mutex] waiting for: [received:nodes:415ae6c5-3af6-48a2-a8ea-64323512091c:localhost]

2020-09-18 02:06:58 | [Mutex] received everything.

2020-09-18 02:06:58 | [Mutex] isItemNotified: received:node:415ae6c5-3af6-48a2-a8ea-64323512091c:localhost:node-68820ebf-ab74-4b0a-8b6a-0968df21bfcd:Node 68820ebf-ab74-4b0a-8b6a-0968df21bfcd :: false

deleteSubnodes 1.032s
2020-09-18 02:06:56 |

2020-09-18 02:06:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:56 | ------------------------------------

2020-09-18 02:06:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9d6235f9-a607-47cc-9211-415d09c4f285"
}

2020-09-18 02:06:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 02:06:57 | [Mutex] waiting for: [received:nodes:545d3245-1603-437c-98b9-89de4c56ffea:localhost]

2020-09-18 02:06:57 | [Mutex] received everything.

2020-09-18 02:06:57 | [Mutex] isItemNotified: received:node:545d3245-1603-437c-98b9-89de4c56ffea:localhost:node-9d6235f9-a607-47cc-9211-415d09c4f285:Node 9d6235f9-a607-47cc-9211-415d09c4f285 :: false

2020-09-18 02:06:57 | [Mutex] waiting for: [received:nodes:e06824b0-b5a8-4b23-bd9c-56d270f07026:localhost]

2020-09-18 02:06:57 | [Mutex] received everything.

2020-09-18 02:06:57 | [Mutex] isItemNotified: received:node:e06824b0-b5a8-4b23-bd9c-56d270f07026:localhost:node-9d6235f9-a607-47cc-9211-415d09c4f285:Node 9d6235f9-a607-47cc-9211-415d09c4f285 :: false

publishItemsToNodes 0.036s
2020-09-18 02:06:54 |

2020-09-18 02:06:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:54 | ------------------------------------

2020-09-18 02:06:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9d6235f9-a607-47cc-9211-415d09c4f285",
    "entry": "<test>item-26e374a1-0273-48f9-9782-81d046faf9b7</test>",
    "item-id": "item-26e374a1-0273-48f9-9782-81d046faf9b7"
}

2020-09-18 02:06:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-26e374a1-0273-48f9-9782-81d046faf9b7"
}

2020-09-18 02:06:55 | [Mutex] waiting for: [published:item:notifieditem-26e374a1-0273-48f9-9782-81d046faf9b7:admin@test-domain.com]

2020-09-18 02:06:55 | [Mutex] received everything.

2020-09-18 02:06:55 | [Mutex] isItemNotified: published:item:notifieditem-26e374a1-0273-48f9-9782-81d046faf9b7:admin@test-domain.com :: true

retractItemsFromNodes 0.076s
2020-09-18 02:06:55 |

2020-09-18 02:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:55 | ------------------------------------

2020-09-18 02:06:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9d6235f9-a607-47cc-9211-415d09c4f285",
    "item-id": "item-26e374a1-0273-48f9-9782-81d046faf9b7"
}

2020-09-18 02:06:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-26e374a1-0273-48f9-9782-81d046faf9b7"
}

2020-09-18 02:06:55 | [Mutex] waiting for: [retracted:item:notifieditem-26e374a1-0273-48f9-9782-81d046faf9b7:admin@test-domain.com]

2020-09-18 02:06:55 | [Mutex] received everything.

2020-09-18 02:06:55 | [Mutex] isItemNotified: retracted:item:notifieditem-26e374a1-0273-48f9-9782-81d046faf9b7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2020-09-18 02:06:55 |

2020-09-18 02:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:55 | ------------------------------------

2020-09-18 02:06:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9d6235f9-a607-47cc-9211-415d09c4f285",
    "item-id": "item-26e374a1-0273-48f9-9782-81d046faf9b7"
}

2020-09-18 02:06:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9d6235f9-a607-47cc-9211-415d09c4f285",
    "item-id": "item-26e374a1-0273-48f9-9782-81d046faf9b7",
    "item": [
        "<item id=\"item-26e374a1-0273-48f9-9782-81d046faf9b7\"><test>item-26e374a1-0273-48f9-9782-81d046faf9b7</test></item>"
    ]
}

2020-09-18 02:06:55 | [Mutex] notify: [retrieved:item:item-26e374a1-0273-48f9-9782-81d046faf9b7:payload-matches:true:localhost]

2020-09-18 02:06:55 | [Mutex] received everything.

2020-09-18 02:06:55 | [Mutex] isItemNotified: retrieved:item:item-26e374a1-0273-48f9-9782-81d046faf9b7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-18 02:06:55 |

2020-09-18 02:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:55 | ------------------------------------

2020-09-18 02:06:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-18 02:06:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-68820ebf-ab74-4b0a-8b6a-0968df21bfcd",
        "node-9d6235f9-a607-47cc-9211-415d09c4f285"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-18 02:06:55 |

2020-09-18 02:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:55 | ------------------------------------

2020-09-18 02:06:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9d6235f9-a607-47cc-9211-415d09c4f285)"
}

2020-09-18 02:06:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2020-09-18 02:06:53 |

2020-09-18 02:06:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:53 | ------------------------------------

2020-09-18 02:06:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9d6235f9-a607-47cc-9211-415d09c4f285",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 02:06:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2020-09-18 02:06:55 |

2020-09-18 02:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 02:06:55 | ------------------------------------

2020-09-18 02:06:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9d6235f9-a607-47cc-9211-415d09c4f285",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 02:06:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}