Generated by TestNG with ReportNG at 22:46 PDT on Sunday 13 June 2021
root@785cf647a4ab / 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.138s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.203s
2021-06-13 23:03:29 |

2021-06-13 23:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:29 | ------------------------------------

2021-06-13 23:03:29 | [Mutex] waiting for: [configured:node:node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5:node-32dac199-36f1-46db-81ae-af05f0d1bfb1]

2021-06-13 23:03:29 | [Mutex] received everything.

2021-06-13 23:03:29 | [Mutex] isItemNotified: configured:node:node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5:node-32dac199-36f1-46db-81ae-af05f0d1bfb1 :: true

2021-06-13 23:03:30 | [Mutex] waiting for: [received:nodes:22053b77-03f5-4a8c-a110-4996b1d6831f:localhost]

2021-06-13 23:03:30 | [Mutex] received everything.

2021-06-13 23:03:30 | [Mutex] isItemNotified: received:node:22053b77-03f5-4a8c-a110-4996b1d6831f:localhost:node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5:Node b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5 :: true

2021-06-13 23:03:30 | [Mutex] waiting for: [received:nodes:180d21db-2dc2-42b3-bb1f-dba5ed380a7e:localhost]

2021-06-13 23:03:30 | [Mutex] received everything.

2021-06-13 23:03:30 | [Mutex] isItemNotified: received:node:180d21db-2dc2-42b3-bb1f-dba5ed380a7e:localhost:node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5:Node b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5 :: false

createNodes 1.729s
2021-06-13 23:03:26 |

2021-06-13 23:03:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:26 | ------------------------------------

2021-06-13 23:03:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5",
    "pubsub#title": "Node b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5"
}

2021-06-13 23:03:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 23:03:28 | [Mutex] waiting for: [received:nodes:2d1890f4-37d4-4645-88d7-e879a67a46c9:localhost]

2021-06-13 23:03:28 | [Mutex] received everything.

2021-06-13 23:03:28 | [Mutex] isItemNotified: received:node:2d1890f4-37d4-4645-88d7-e879a67a46c9:localhost:node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5:Node b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5 :: true

createSubnodes 1.028s
2021-06-13 23:03:28 |

2021-06-13 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:28 | ------------------------------------

2021-06-13 23:03:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-32dac199-36f1-46db-81ae-af05f0d1bfb1",
    "pubsub#title": "Node 32dac199-36f1-46db-81ae-af05f0d1bfb1"
}

2021-06-13 23:03:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 23:03:29 | [Mutex] waiting for: [received:nodes:2f2edfcc-564a-4a67-a8c7-a66b88dc2a48:localhost]

2021-06-13 23:03:29 | [Mutex] received everything.

2021-06-13 23:03:29 | [Mutex] isItemNotified: received:node:2f2edfcc-564a-4a67-a8c7-a66b88dc2a48:localhost:node-32dac199-36f1-46db-81ae-af05f0d1bfb1:Node 32dac199-36f1-46db-81ae-af05f0d1bfb1 :: true

deleteNodes 1.026s
2021-06-13 23:03:33 |

2021-06-13 23:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:33 | ------------------------------------

2021-06-13 23:03:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-32dac199-36f1-46db-81ae-af05f0d1bfb1"
}

2021-06-13 23:03:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 23:03:34 | [Mutex] waiting for: [received:nodes:ada406a4-9bab-4091-b671-72f76a0fd3a8:localhost]

2021-06-13 23:03:34 | [Mutex] waiting for: [received:nodes:ada406a4-9bab-4091-b671-72f76a0fd3a8:localhost]

2021-06-13 23:03:34 | [Mutex] received everything.

2021-06-13 23:03:34 | [Mutex] isItemNotified: received:node:ada406a4-9bab-4091-b671-72f76a0fd3a8:localhost:node-32dac199-36f1-46db-81ae-af05f0d1bfb1:Node 32dac199-36f1-46db-81ae-af05f0d1bfb1 :: false

deleteSubnodes 1.029s
2021-06-13 23:03:32 |

2021-06-13 23:03:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:32 | ------------------------------------

2021-06-13 23:03:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5"
}

2021-06-13 23:03:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-13 23:03:33 | [Mutex] waiting for: [received:nodes:298fe1d2-559f-49b3-b4e9-96df87cdd635:localhost]

2021-06-13 23:03:33 | [Mutex] waiting for: [received:nodes:298fe1d2-559f-49b3-b4e9-96df87cdd635:localhost]

2021-06-13 23:03:33 | [Mutex] received everything.

2021-06-13 23:03:33 | [Mutex] isItemNotified: received:node:298fe1d2-559f-49b3-b4e9-96df87cdd635:localhost:node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5:Node b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5 :: false

2021-06-13 23:03:33 | [Mutex] waiting for: [received:nodes:eb82d9e2-493d-4b7f-a902-f03b06fa87e3:localhost]

2021-06-13 23:03:33 | [Mutex] received everything.

2021-06-13 23:03:33 | [Mutex] isItemNotified: received:node:eb82d9e2-493d-4b7f-a902-f03b06fa87e3:localhost:node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5:Node b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5 :: false

publishItemsToNodes 0.046s
2021-06-13 23:03:31 |

2021-06-13 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:31 | ------------------------------------

2021-06-13 23:03:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5",
    "entry": "<test>item-9e5feb81-fe8d-4468-8345-9b6569daced6</test>",
    "item-id": "item-9e5feb81-fe8d-4468-8345-9b6569daced6"
}

2021-06-13 23:03:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9e5feb81-fe8d-4468-8345-9b6569daced6"
}

2021-06-13 23:03:31 | [Mutex] waiting for: [published:item:notifieditem-9e5feb81-fe8d-4468-8345-9b6569daced6:admin@test-domain.com]

2021-06-13 23:03:31 | [Mutex] received everything.

2021-06-13 23:03:31 | [Mutex] isItemNotified: published:item:notifieditem-9e5feb81-fe8d-4468-8345-9b6569daced6:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2021-06-13 23:03:31 |

2021-06-13 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:31 | ------------------------------------

2021-06-13 23:03:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5",
    "item-id": "item-9e5feb81-fe8d-4468-8345-9b6569daced6"
}

2021-06-13 23:03:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9e5feb81-fe8d-4468-8345-9b6569daced6"
}

2021-06-13 23:03:31 | [Mutex] waiting for: [retracted:item:notifieditem-9e5feb81-fe8d-4468-8345-9b6569daced6:admin@test-domain.com]

2021-06-13 23:03:31 | [Mutex] received everything.

2021-06-13 23:03:31 | [Mutex] isItemNotified: retracted:item:notifieditem-9e5feb81-fe8d-4468-8345-9b6569daced6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.087s
2021-06-13 23:03:31 |

2021-06-13 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:31 | ------------------------------------

2021-06-13 23:03:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5",
    "item-id": "item-9e5feb81-fe8d-4468-8345-9b6569daced6"
}

2021-06-13 23:03:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5",
    "item-id": "item-9e5feb81-fe8d-4468-8345-9b6569daced6",
    "item": [
        "<item id=\"item-9e5feb81-fe8d-4468-8345-9b6569daced6\"><test>item-9e5feb81-fe8d-4468-8345-9b6569daced6</test></item>"
    ]
}

2021-06-13 23:03:31 | [Mutex] notify: [retrieved:item:item-9e5feb81-fe8d-4468-8345-9b6569daced6:payload-matches:true:localhost]

2021-06-13 23:03:31 | [Mutex] received everything.

2021-06-13 23:03:31 | [Mutex] isItemNotified: retrieved:item:item-9e5feb81-fe8d-4468-8345-9b6569daced6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2021-06-13 23:03:31 |

2021-06-13 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:31 | ------------------------------------

2021-06-13 23:03:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-13 23:03:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5",
        "node-32dac199-36f1-46db-81ae-af05f0d1bfb1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-06-13 23:03:31 |

2021-06-13 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:31 | ------------------------------------

2021-06-13 23:03:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5)"
}

2021-06-13 23:03:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-06-13 23:03:30 |

2021-06-13 23:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:30 | ------------------------------------

2021-06-13 23:03:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-13 23:03:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2021-06-13 23:03:31 |

2021-06-13 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-13 23:03:31 | ------------------------------------

2021-06-13 23:03:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b2a3ac5c-e0f8-4a3a-8911-c0bb096a0af5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-13 23:03:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}