Generated by TestNG with ReportNG at 21:14 PST on Thursday 18 February 2021
root@eaa73862192b / 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.075s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2021-02-18 21:31:31 |

2021-02-18 21:31:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:31 | ------------------------------------

2021-02-18 21:31:31 | [Mutex] waiting for: [configured:node:node-c12d4133-f2fa-41c2-8960-4514e9e74afa:node-af4f48f3-5dba-4b95-99af-9bb5d26c445b]

2021-02-18 21:31:31 | [Mutex] received everything.

2021-02-18 21:31:31 | [Mutex] isItemNotified: configured:node:node-c12d4133-f2fa-41c2-8960-4514e9e74afa:node-af4f48f3-5dba-4b95-99af-9bb5d26c445b :: true

2021-02-18 21:31:32 | [Mutex] waiting for: [received:nodes:d844d7bf-0356-4a4c-a509-241ee6e03043:localhost]

2021-02-18 21:31:32 | [Mutex] waiting for: [received:nodes:d844d7bf-0356-4a4c-a509-241ee6e03043:localhost]

2021-02-18 21:31:32 | [Mutex] received everything.

2021-02-18 21:31:32 | [Mutex] isItemNotified: received:node:d844d7bf-0356-4a4c-a509-241ee6e03043:localhost:node-c12d4133-f2fa-41c2-8960-4514e9e74afa:Node c12d4133-f2fa-41c2-8960-4514e9e74afa :: true

2021-02-18 21:31:32 | [Mutex] waiting for: [received:nodes:a1849880-2435-417f-8d4e-8e21473198ca:localhost]

2021-02-18 21:31:32 | [Mutex] received everything.

2021-02-18 21:31:32 | [Mutex] isItemNotified: received:node:a1849880-2435-417f-8d4e-8e21473198ca:localhost:node-c12d4133-f2fa-41c2-8960-4514e9e74afa:Node c12d4133-f2fa-41c2-8960-4514e9e74afa :: false

createNodes 1.643s
2021-02-18 21:31:28 |

2021-02-18 21:31:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:28 | ------------------------------------

2021-02-18 21:31:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c12d4133-f2fa-41c2-8960-4514e9e74afa",
    "pubsub#title": "Node c12d4133-f2fa-41c2-8960-4514e9e74afa"
}

2021-02-18 21:31:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-18 21:31:30 | [Mutex] waiting for: [received:nodes:cefc07ae-6fdd-447e-bcf2-48d3b43d7e32:localhost]

2021-02-18 21:31:30 | [Mutex] waiting for: [received:nodes:cefc07ae-6fdd-447e-bcf2-48d3b43d7e32:localhost]

2021-02-18 21:31:30 | [Mutex] received everything.

2021-02-18 21:31:30 | [Mutex] isItemNotified: received:node:cefc07ae-6fdd-447e-bcf2-48d3b43d7e32:localhost:node-c12d4133-f2fa-41c2-8960-4514e9e74afa:Node c12d4133-f2fa-41c2-8960-4514e9e74afa :: true

createSubnodes 1.025s
2021-02-18 21:31:30 |

2021-02-18 21:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:30 | ------------------------------------

2021-02-18 21:31:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-af4f48f3-5dba-4b95-99af-9bb5d26c445b",
    "pubsub#title": "Node af4f48f3-5dba-4b95-99af-9bb5d26c445b"
}

2021-02-18 21:31:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-18 21:31:31 | [Mutex] waiting for: [received:nodes:ce3a1acb-2f20-4a2c-82bb-371f2978db1f:localhost]

2021-02-18 21:31:31 | [Mutex] received everything.

2021-02-18 21:31:31 | [Mutex] isItemNotified: received:node:ce3a1acb-2f20-4a2c-82bb-371f2978db1f:localhost:node-af4f48f3-5dba-4b95-99af-9bb5d26c445b:Node af4f48f3-5dba-4b95-99af-9bb5d26c445b :: true

deleteNodes 1.024s
2021-02-18 21:31:36 |

2021-02-18 21:31:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:36 | ------------------------------------

2021-02-18 21:31:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-af4f48f3-5dba-4b95-99af-9bb5d26c445b"
}

2021-02-18 21:31:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-18 21:31:37 | [Mutex] waiting for: [received:nodes:42b1122e-e5b7-4179-8d46-2faffbac9cb2:localhost]

2021-02-18 21:31:37 | [Mutex] received everything.

2021-02-18 21:31:37 | [Mutex] isItemNotified: received:node:42b1122e-e5b7-4179-8d46-2faffbac9cb2:localhost:node-af4f48f3-5dba-4b95-99af-9bb5d26c445b:Node af4f48f3-5dba-4b95-99af-9bb5d26c445b :: false

deleteSubnodes 1.035s
2021-02-18 21:31:34 |

2021-02-18 21:31:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:34 | ------------------------------------

2021-02-18 21:31:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c12d4133-f2fa-41c2-8960-4514e9e74afa"
}

2021-02-18 21:31:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-18 21:31:36 | [Mutex] waiting for: [received:nodes:c5765090-1ebd-42d9-b457-b95fdd3efe4b:localhost]

2021-02-18 21:31:36 | [Mutex] received everything.

2021-02-18 21:31:36 | [Mutex] isItemNotified: received:node:c5765090-1ebd-42d9-b457-b95fdd3efe4b:localhost:node-c12d4133-f2fa-41c2-8960-4514e9e74afa:Node c12d4133-f2fa-41c2-8960-4514e9e74afa :: false

2021-02-18 21:31:36 | [Mutex] waiting for: [received:nodes:f4b1dab2-992f-4f13-b3f2-da37dfb349c3:localhost]

2021-02-18 21:31:36 | [Mutex] received everything.

2021-02-18 21:31:36 | [Mutex] isItemNotified: received:node:f4b1dab2-992f-4f13-b3f2-da37dfb349c3:localhost:node-c12d4133-f2fa-41c2-8960-4514e9e74afa:Node c12d4133-f2fa-41c2-8960-4514e9e74afa :: false

publishItemsToNodes 0.049s
2021-02-18 21:31:33 |

2021-02-18 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:33 | ------------------------------------

2021-02-18 21:31:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c12d4133-f2fa-41c2-8960-4514e9e74afa",
    "entry": "<test>item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6</test>",
    "item-id": "item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6"
}

2021-02-18 21:31:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6"
}

2021-02-18 21:31:33 | [Mutex] waiting for: [published:item:notifieditem-f08d6856-c472-42c0-8d7f-f8bb6162c7b6:admin@test-domain.com]

2021-02-18 21:31:33 | [Mutex] received everything.

2021-02-18 21:31:33 | [Mutex] isItemNotified: published:item:notifieditem-f08d6856-c472-42c0-8d7f-f8bb6162c7b6:admin@test-domain.com :: true

retractItemsFromNodes 0.081s
2021-02-18 21:31:33 |

2021-02-18 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:33 | ------------------------------------

2021-02-18 21:31:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c12d4133-f2fa-41c2-8960-4514e9e74afa",
    "item-id": "item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6"
}

2021-02-18 21:31:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6"
}

2021-02-18 21:31:33 | [Mutex] waiting for: [retracted:item:notifieditem-f08d6856-c472-42c0-8d7f-f8bb6162c7b6:admin@test-domain.com]

2021-02-18 21:31:33 | [Mutex] received everything.

2021-02-18 21:31:33 | [Mutex] isItemNotified: retracted:item:notifieditem-f08d6856-c472-42c0-8d7f-f8bb6162c7b6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.035s
2021-02-18 21:31:33 |

2021-02-18 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:33 | ------------------------------------

2021-02-18 21:31:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c12d4133-f2fa-41c2-8960-4514e9e74afa",
    "item-id": "item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6"
}

2021-02-18 21:31:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c12d4133-f2fa-41c2-8960-4514e9e74afa",
    "item-id": "item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6",
    "item": [
        "<item id=\"item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6\"><test>item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6</test></item>"
    ]
}

2021-02-18 21:31:33 | [Mutex] notify: [retrieved:item:item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6:payload-matches:true:localhost]

2021-02-18 21:31:33 | [Mutex] received everything.

2021-02-18 21:31:33 | [Mutex] isItemNotified: retrieved:item:item-f08d6856-c472-42c0-8d7f-f8bb6162c7b6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.068s
2021-02-18 21:31:33 |

2021-02-18 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:33 | ------------------------------------

2021-02-18 21:31:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-18 21:31:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-af4f48f3-5dba-4b95-99af-9bb5d26c445b",
        "node-c12d4133-f2fa-41c2-8960-4514e9e74afa"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-02-18 21:31:33 |

2021-02-18 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:33 | ------------------------------------

2021-02-18 21:31:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c12d4133-f2fa-41c2-8960-4514e9e74afa)"
}

2021-02-18 21:31:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2021-02-18 21:31:32 |

2021-02-18 21:31:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:32 | ------------------------------------

2021-02-18 21:31:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c12d4133-f2fa-41c2-8960-4514e9e74afa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-18 21:31:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2021-02-18 21:31:33 |

2021-02-18 21:31:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-18 21:31:33 | ------------------------------------

2021-02-18 21:31:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c12d4133-f2fa-41c2-8960-4514e9e74afa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-18 21:31:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}