Generated by TestNG with ReportNG at 21:21 PST on Wednesday 30 December 2020
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.571s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2020-12-30 21:37:30 |

2020-12-30 21:37:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:30 | ------------------------------------

2020-12-30 21:37:30 | [Mutex] waiting for: [configured:node:node-1d2e40fd-1990-4ec9-a326-29ad2826cde2:node-89ee6878-273a-43cb-a579-525406541756]

2020-12-30 21:37:30 | [Mutex] received everything.

2020-12-30 21:37:30 | [Mutex] isItemNotified: configured:node:node-1d2e40fd-1990-4ec9-a326-29ad2826cde2:node-89ee6878-273a-43cb-a579-525406541756 :: true

2020-12-30 21:37:31 | [Mutex] waiting for: [received:nodes:12ba26e3-5110-4739-9e35-bafd66840ba7:localhost]

2020-12-30 21:37:31 | [Mutex] waiting for: [received:nodes:12ba26e3-5110-4739-9e35-bafd66840ba7:localhost]

2020-12-30 21:37:31 | [Mutex] received everything.

2020-12-30 21:37:31 | [Mutex] isItemNotified: received:node:12ba26e3-5110-4739-9e35-bafd66840ba7:localhost:node-1d2e40fd-1990-4ec9-a326-29ad2826cde2:Node 1d2e40fd-1990-4ec9-a326-29ad2826cde2 :: true

2020-12-30 21:37:31 | [Mutex] waiting for: [received:nodes:263faa81-ddc3-47f8-96a4-1572d6858556:localhost]

2020-12-30 21:37:31 | [Mutex] waiting for: [received:nodes:263faa81-ddc3-47f8-96a4-1572d6858556:localhost]

2020-12-30 21:37:31 | [Mutex] received everything.

2020-12-30 21:37:31 | [Mutex] isItemNotified: received:node:263faa81-ddc3-47f8-96a4-1572d6858556:localhost:node-1d2e40fd-1990-4ec9-a326-29ad2826cde2:Node 1d2e40fd-1990-4ec9-a326-29ad2826cde2 :: false

createNodes 2.114s
2020-12-30 21:37:27 |

2020-12-30 21:37:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:27 | ------------------------------------

2020-12-30 21:37: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-1d2e40fd-1990-4ec9-a326-29ad2826cde2",
    "pubsub#title": "Node 1d2e40fd-1990-4ec9-a326-29ad2826cde2"
}

2020-12-30 21:37:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-30 21:37:29 | [Mutex] waiting for: [received:nodes:720b2ddf-c3bd-468e-8f4f-1a869b6f6d25:localhost]

2020-12-30 21:37:29 | [Mutex] received everything.

2020-12-30 21:37:29 | [Mutex] isItemNotified: received:node:720b2ddf-c3bd-468e-8f4f-1a869b6f6d25:localhost:node-1d2e40fd-1990-4ec9-a326-29ad2826cde2:Node 1d2e40fd-1990-4ec9-a326-29ad2826cde2 :: true

createSubnodes 1.024s
2020-12-30 21:37:29 |

2020-12-30 21:37:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:29 | ------------------------------------

2020-12-30 21:37: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-89ee6878-273a-43cb-a579-525406541756",
    "pubsub#title": "Node 89ee6878-273a-43cb-a579-525406541756"
}

2020-12-30 21:37:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-30 21:37:30 | [Mutex] waiting for: [received:nodes:8df059bf-9561-42b0-ae8b-89147ea0643b:localhost]

2020-12-30 21:37:30 | [Mutex] received everything.

2020-12-30 21:37:30 | [Mutex] isItemNotified: received:node:8df059bf-9561-42b0-ae8b-89147ea0643b:localhost:node-89ee6878-273a-43cb-a579-525406541756:Node 89ee6878-273a-43cb-a579-525406541756 :: true

deleteNodes 1.040s
2020-12-30 21:37:35 |

2020-12-30 21:37:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:35 | ------------------------------------

2020-12-30 21:37:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-89ee6878-273a-43cb-a579-525406541756"
}

2020-12-30 21:37:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-30 21:37:36 | [Mutex] waiting for: [received:nodes:d46ebaf8-0840-4ee7-be8e-8bd28ea05b0e:localhost]

2020-12-30 21:37:36 | [Mutex] received everything.

2020-12-30 21:37:36 | [Mutex] isItemNotified: received:node:d46ebaf8-0840-4ee7-be8e-8bd28ea05b0e:localhost:node-89ee6878-273a-43cb-a579-525406541756:Node 89ee6878-273a-43cb-a579-525406541756 :: false

deleteSubnodes 1.026s
2020-12-30 21:37:34 |

2020-12-30 21:37:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:34 | ------------------------------------

2020-12-30 21:37:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1d2e40fd-1990-4ec9-a326-29ad2826cde2"
}

2020-12-30 21:37:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-30 21:37:35 | [Mutex] waiting for: [received:nodes:f714ad21-e94a-4a5d-bfdb-51aa6b85a095:localhost]

2020-12-30 21:37:35 | [Mutex] received everything.

2020-12-30 21:37:35 | [Mutex] isItemNotified: received:node:f714ad21-e94a-4a5d-bfdb-51aa6b85a095:localhost:node-1d2e40fd-1990-4ec9-a326-29ad2826cde2:Node 1d2e40fd-1990-4ec9-a326-29ad2826cde2 :: false

2020-12-30 21:37:35 | [Mutex] waiting for: [received:nodes:30ddaf15-306d-477f-8371-c1de68e5ed41:localhost]

2020-12-30 21:37:35 | [Mutex] received everything.

2020-12-30 21:37:35 | [Mutex] isItemNotified: received:node:30ddaf15-306d-477f-8371-c1de68e5ed41:localhost:node-1d2e40fd-1990-4ec9-a326-29ad2826cde2:Node 1d2e40fd-1990-4ec9-a326-29ad2826cde2 :: false

publishItemsToNodes 0.078s
2020-12-30 21:37:32 |

2020-12-30 21:37:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:32 | ------------------------------------

2020-12-30 21:37:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1d2e40fd-1990-4ec9-a326-29ad2826cde2",
    "entry": "<test>item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2</test>",
    "item-id": "item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2"
}

2020-12-30 21:37:32 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2"
}

2020-12-30 21:37:32 | [Mutex] waiting for: [published:item:notifieditem-d4bb12bc-c8fe-4265-8909-6695ac5aebb2:admin@test-domain.com]

2020-12-30 21:37:32 | [Mutex] received everything.

2020-12-30 21:37:32 | [Mutex] isItemNotified: published:item:notifieditem-d4bb12bc-c8fe-4265-8909-6695ac5aebb2:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2020-12-30 21:37:33 |

2020-12-30 21:37:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:33 | ------------------------------------

2020-12-30 21:37:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1d2e40fd-1990-4ec9-a326-29ad2826cde2",
    "item-id": "item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2"
}

2020-12-30 21:37:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2"
}

2020-12-30 21:37:33 | [Mutex] waiting for: [retracted:item:notifieditem-d4bb12bc-c8fe-4265-8909-6695ac5aebb2:admin@test-domain.com]

2020-12-30 21:37:33 | [Mutex] received everything.

2020-12-30 21:37:33 | [Mutex] isItemNotified: retracted:item:notifieditem-d4bb12bc-c8fe-4265-8909-6695ac5aebb2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.123s
2020-12-30 21:37:32 |

2020-12-30 21:37:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:32 | ------------------------------------

2020-12-30 21:37:32 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1d2e40fd-1990-4ec9-a326-29ad2826cde2",
    "item-id": "item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2"
}

2020-12-30 21:37:32 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1d2e40fd-1990-4ec9-a326-29ad2826cde2",
    "item-id": "item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2",
    "item": [
        "<item id=\"item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2\"><test>item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2</test></item>"
    ]
}

2020-12-30 21:37:32 | [Mutex] notify: [retrieved:item:item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2:payload-matches:true:localhost]

2020-12-30 21:37:32 | [Mutex] received everything.

2020-12-30 21:37:32 | [Mutex] isItemNotified: retrieved:item:item-d4bb12bc-c8fe-4265-8909-6695ac5aebb2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2020-12-30 21:37:32 |

2020-12-30 21:37:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:32 | ------------------------------------

2020-12-30 21:37:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-30 21:37:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1d2e40fd-1990-4ec9-a326-29ad2826cde2",
        "test",
        "node-89ee6878-273a-43cb-a579-525406541756"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-12-30 21:37:32 |

2020-12-30 21:37:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:32 | ------------------------------------

2020-12-30 21:37:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1d2e40fd-1990-4ec9-a326-29ad2826cde2)"
}

2020-12-30 21:37:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-12-30 21:37:31 |

2020-12-30 21:37:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:31 | ------------------------------------

2020-12-30 21:37:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1d2e40fd-1990-4ec9-a326-29ad2826cde2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-30 21:37:31 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.090s
2020-12-30 21:37:33 |

2020-12-30 21:37:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-30 21:37:33 | ------------------------------------

2020-12-30 21:37:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1d2e40fd-1990-4ec9-a326-29ad2826cde2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-30 21:37:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}