Generated by TestNG with ReportNG at 10:55 PDT on Thursday 27 August 2020
root@ac2fa7a1e1ad / 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.079s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2020-08-27 11:13:30 |

2020-08-27 11:13:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:30 | ------------------------------------

2020-08-27 11:13:30 | [Mutex] waiting for: [configured:node:node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae:node-d8a0b912-8c2c-4891-ba5e-6ee66ec999ee]

2020-08-27 11:13:30 | [Mutex] received everything.

2020-08-27 11:13:30 | [Mutex] isItemNotified: configured:node:node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae:node-d8a0b912-8c2c-4891-ba5e-6ee66ec999ee :: true

2020-08-27 11:13:31 | [Mutex] waiting for: [received:nodes:5502751c-0830-4944-bca0-b4a9078458f8:localhost]

2020-08-27 11:13:31 | [Mutex] received everything.

2020-08-27 11:13:31 | [Mutex] isItemNotified: received:node:5502751c-0830-4944-bca0-b4a9078458f8:localhost:node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae:Node 4bf6f3be-3b57-4809-9655-b26fc6fc7fae :: true

2020-08-27 11:13:31 | [Mutex] waiting for: [received:nodes:454b8925-2495-4e69-bc07-b66d22939636:localhost]

2020-08-27 11:13:31 | [Mutex] waiting for: [received:nodes:454b8925-2495-4e69-bc07-b66d22939636:localhost]

2020-08-27 11:13:31 | [Mutex] received everything.

2020-08-27 11:13:31 | [Mutex] isItemNotified: received:node:454b8925-2495-4e69-bc07-b66d22939636:localhost:node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae:Node 4bf6f3be-3b57-4809-9655-b26fc6fc7fae :: false

createNodes 1.645s
2020-08-27 11:13:28 |

2020-08-27 11:13:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:28 | ------------------------------------

2020-08-27 11:13:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae",
    "pubsub#title": "Node 4bf6f3be-3b57-4809-9655-b26fc6fc7fae"
}

2020-08-27 11:13:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 11:13:29 | [Mutex] waiting for: [received:nodes:04f6c9f5-099e-48d0-b47b-6b8b549e4c13:localhost]

2020-08-27 11:13:29 | [Mutex] received everything.

2020-08-27 11:13:29 | [Mutex] isItemNotified: received:node:04f6c9f5-099e-48d0-b47b-6b8b549e4c13:localhost:node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae:Node 4bf6f3be-3b57-4809-9655-b26fc6fc7fae :: true

createSubnodes 1.025s
2020-08-27 11:13:29 |

2020-08-27 11:13:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:29 | ------------------------------------

2020-08-27 11:13:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d8a0b912-8c2c-4891-ba5e-6ee66ec999ee",
    "pubsub#title": "Node d8a0b912-8c2c-4891-ba5e-6ee66ec999ee"
}

2020-08-27 11:13:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 11:13:30 | [Mutex] waiting for: [received:nodes:f5851ea7-a1f4-486a-b261-6d5600f763af:localhost]

2020-08-27 11:13:30 | [Mutex] received everything.

2020-08-27 11:13:30 | [Mutex] isItemNotified: received:node:f5851ea7-a1f4-486a-b261-6d5600f763af:localhost:node-d8a0b912-8c2c-4891-ba5e-6ee66ec999ee:Node d8a0b912-8c2c-4891-ba5e-6ee66ec999ee :: true

deleteNodes 1.019s
2020-08-27 11:13:35 |

2020-08-27 11:13:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:35 | ------------------------------------

2020-08-27 11:13:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d8a0b912-8c2c-4891-ba5e-6ee66ec999ee"
}

2020-08-27 11:13:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 11:13:36 | [Mutex] waiting for: [received:nodes:2df22b62-b673-4d7e-bd43-70173b1b53e1:localhost]

2020-08-27 11:13:36 | [Mutex] received everything.

2020-08-27 11:13:36 | [Mutex] isItemNotified: received:node:2df22b62-b673-4d7e-bd43-70173b1b53e1:localhost:node-d8a0b912-8c2c-4891-ba5e-6ee66ec999ee:Node d8a0b912-8c2c-4891-ba5e-6ee66ec999ee :: false

deleteSubnodes 1.027s
2020-08-27 11:13:34 |

2020-08-27 11:13:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:34 | ------------------------------------

2020-08-27 11:13:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae"
}

2020-08-27 11:13:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 11:13:35 | [Mutex] waiting for: [received:nodes:cd885f4a-4afd-41e0-bafb-af73aa8fb365:localhost]

2020-08-27 11:13:35 | [Mutex] waiting for: [received:nodes:cd885f4a-4afd-41e0-bafb-af73aa8fb365:localhost]

2020-08-27 11:13:35 | [Mutex] received everything.

2020-08-27 11:13:35 | [Mutex] isItemNotified: received:node:cd885f4a-4afd-41e0-bafb-af73aa8fb365:localhost:node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae:Node 4bf6f3be-3b57-4809-9655-b26fc6fc7fae :: false

2020-08-27 11:13:35 | [Mutex] waiting for: [received:nodes:9b1c4614-0c3c-4e64-a188-7e9ee882c6fa:localhost]

2020-08-27 11:13:35 | [Mutex] received everything.

2020-08-27 11:13:35 | [Mutex] isItemNotified: received:node:9b1c4614-0c3c-4e64-a188-7e9ee882c6fa:localhost:node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae:Node 4bf6f3be-3b57-4809-9655-b26fc6fc7fae :: false

publishItemsToNodes 0.047s
2020-08-27 11:13:32 |

2020-08-27 11:13:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:32 | ------------------------------------

2020-08-27 11:13:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae",
    "entry": "<test>item-82c0f4f5-57fd-4296-9bc3-934693edb181</test>",
    "item-id": "item-82c0f4f5-57fd-4296-9bc3-934693edb181"
}

2020-08-27 11:13:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-82c0f4f5-57fd-4296-9bc3-934693edb181"
}

2020-08-27 11:13:33 | [Mutex] waiting for: [published:item:notifieditem-82c0f4f5-57fd-4296-9bc3-934693edb181:admin@test-domain.com]

2020-08-27 11:13:33 | [Mutex] received everything.

2020-08-27 11:13:33 | [Mutex] isItemNotified: published:item:notifieditem-82c0f4f5-57fd-4296-9bc3-934693edb181:admin@test-domain.com :: true

retractItemsFromNodes 0.095s
2020-08-27 11:13:33 |

2020-08-27 11:13:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:33 | ------------------------------------

2020-08-27 11:13:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae",
    "item-id": "item-82c0f4f5-57fd-4296-9bc3-934693edb181"
}

2020-08-27 11:13:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-82c0f4f5-57fd-4296-9bc3-934693edb181"
}

2020-08-27 11:13:33 | [Mutex] received everything.

2020-08-27 11:13:33 | [Mutex] isItemNotified: retracted:item:notifieditem-82c0f4f5-57fd-4296-9bc3-934693edb181:admin@test-domain.com :: true

retrieveItemsFromNodes 0.090s
2020-08-27 11:13:33 |

2020-08-27 11:13:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:33 | ------------------------------------

2020-08-27 11:13:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae",
    "item-id": "item-82c0f4f5-57fd-4296-9bc3-934693edb181"
}

2020-08-27 11:13:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae",
    "item-id": "item-82c0f4f5-57fd-4296-9bc3-934693edb181",
    "item": [
        "<item id=\"item-82c0f4f5-57fd-4296-9bc3-934693edb181\"><test>item-82c0f4f5-57fd-4296-9bc3-934693edb181</test></item>"
    ]
}

2020-08-27 11:13:33 | [Mutex] notify: [retrieved:item:item-82c0f4f5-57fd-4296-9bc3-934693edb181:payload-matches:true:localhost]

2020-08-27 11:13:33 | [Mutex] received everything.

2020-08-27 11:13:33 | [Mutex] isItemNotified: retrieved:item:item-82c0f4f5-57fd-4296-9bc3-934693edb181:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-08-27 11:13:33 |

2020-08-27 11:13:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:33 | ------------------------------------

2020-08-27 11:13:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-27 11:13:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae",
        "test",
        "node-d8a0b912-8c2c-4891-ba5e-6ee66ec999ee"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-27 11:13:33 |

2020-08-27 11:13:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:33 | ------------------------------------

2020-08-27 11:13:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae)"
}

2020-08-27 11:13:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-08-27 11:13:31 |

2020-08-27 11:13:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:31 | ------------------------------------

2020-08-27 11:13:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 11:13:31 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-08-27 11:13:33 |

2020-08-27 11:13:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:13:33 | ------------------------------------

2020-08-27 11:13:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4bf6f3be-3b57-4809-9655-b26fc6fc7fae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 11:13:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}