Generated by TestNG with ReportNG at 22:14 PDT on Thursday 17 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 : 8.957s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.171s
2021-06-17 22:30:44 |

2021-06-17 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:44 | ------------------------------------

2021-06-17 22:30:44 | [Mutex] waiting for: [configured:node:node-74f25432-82d6-4c13-ac1b-cf26e17c490d:node-55ab464a-c6e5-4c0a-a369-31f235b81516]

2021-06-17 22:30:45 | [Mutex] received everything.

2021-06-17 22:30:45 | [Mutex] isItemNotified: configured:node:node-74f25432-82d6-4c13-ac1b-cf26e17c490d:node-55ab464a-c6e5-4c0a-a369-31f235b81516 :: true

2021-06-17 22:30:46 | [Mutex] waiting for: [received:nodes:b8734102-9be8-4412-9a11-e65a3347fd09:localhost]

2021-06-17 22:30:46 | [Mutex] received everything.

2021-06-17 22:30:46 | [Mutex] isItemNotified: received:node:b8734102-9be8-4412-9a11-e65a3347fd09:localhost:node-74f25432-82d6-4c13-ac1b-cf26e17c490d:Node 74f25432-82d6-4c13-ac1b-cf26e17c490d :: true

2021-06-17 22:30:46 | [Mutex] waiting for: [received:nodes:3264512a-70ef-47ea-8a22-fa1328863863:localhost]

2021-06-17 22:30:46 | [Mutex] received everything.

2021-06-17 22:30:46 | [Mutex] isItemNotified: received:node:3264512a-70ef-47ea-8a22-fa1328863863:localhost:node-74f25432-82d6-4c13-ac1b-cf26e17c490d:Node 74f25432-82d6-4c13-ac1b-cf26e17c490d :: false

createNodes 1.715s
2021-06-17 22:30:42 |

2021-06-17 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:42 | ------------------------------------

2021-06-17 22:30:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-74f25432-82d6-4c13-ac1b-cf26e17c490d",
    "pubsub#title": "Node 74f25432-82d6-4c13-ac1b-cf26e17c490d"
}

2021-06-17 22:30:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:30:43 | [Mutex] waiting for: [received:nodes:bbcaa9e8-8bd3-4935-a57c-22afb8ce7f2f:localhost]

2021-06-17 22:30:43 | [Mutex] received everything.

2021-06-17 22:30:43 | [Mutex] isItemNotified: received:node:bbcaa9e8-8bd3-4935-a57c-22afb8ce7f2f:localhost:node-74f25432-82d6-4c13-ac1b-cf26e17c490d:Node 74f25432-82d6-4c13-ac1b-cf26e17c490d :: true

createSubnodes 1.025s
2021-06-17 22:30:43 |

2021-06-17 22:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:43 | ------------------------------------

2021-06-17 22:30:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-55ab464a-c6e5-4c0a-a369-31f235b81516",
    "pubsub#title": "Node 55ab464a-c6e5-4c0a-a369-31f235b81516"
}

2021-06-17 22:30:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:30:44 | [Mutex] waiting for: [received:nodes:0200619f-4ef0-4a18-8c9b-67a1a1cc7d7f:localhost]

2021-06-17 22:30:44 | [Mutex] received everything.

2021-06-17 22:30:44 | [Mutex] isItemNotified: received:node:0200619f-4ef0-4a18-8c9b-67a1a1cc7d7f:localhost:node-55ab464a-c6e5-4c0a-a369-31f235b81516:Node 55ab464a-c6e5-4c0a-a369-31f235b81516 :: true

deleteNodes 1.031s
2021-06-17 22:30:49 |

2021-06-17 22:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:49 | ------------------------------------

2021-06-17 22:30:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-55ab464a-c6e5-4c0a-a369-31f235b81516"
}

2021-06-17 22:30:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:30:50 | [Mutex] waiting for: [received:nodes:0013cc09-063a-45a1-a25e-029b112f6304:localhost]

2021-06-17 22:30:50 | [Mutex] received everything.

2021-06-17 22:30:50 | [Mutex] isItemNotified: received:node:0013cc09-063a-45a1-a25e-029b112f6304:localhost:node-55ab464a-c6e5-4c0a-a369-31f235b81516:Node 55ab464a-c6e5-4c0a-a369-31f235b81516 :: false

deleteSubnodes 1.026s
2021-06-17 22:30:48 |

2021-06-17 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:48 | ------------------------------------

2021-06-17 22:30:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-74f25432-82d6-4c13-ac1b-cf26e17c490d"
}

2021-06-17 22:30:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:30:49 | [Mutex] waiting for: [received:nodes:2e62e8db-9b48-4e3e-af4c-1e6ced7d8c80:localhost]

2021-06-17 22:30:49 | [Mutex] received everything.

2021-06-17 22:30:49 | [Mutex] isItemNotified: received:node:2e62e8db-9b48-4e3e-af4c-1e6ced7d8c80:localhost:node-74f25432-82d6-4c13-ac1b-cf26e17c490d:Node 74f25432-82d6-4c13-ac1b-cf26e17c490d :: false

2021-06-17 22:30:49 | [Mutex] waiting for: [received:nodes:0c76fc90-f003-4a88-bab2-df336bdec182:localhost]

2021-06-17 22:30:49 | [Mutex] received everything.

2021-06-17 22:30:49 | [Mutex] isItemNotified: received:node:0c76fc90-f003-4a88-bab2-df336bdec182:localhost:node-74f25432-82d6-4c13-ac1b-cf26e17c490d:Node 74f25432-82d6-4c13-ac1b-cf26e17c490d :: false

publishItemsToNodes 0.059s
2021-06-17 22:30:47 |

2021-06-17 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:47 | ------------------------------------

2021-06-17 22:30:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-74f25432-82d6-4c13-ac1b-cf26e17c490d",
    "entry": "<test>item-5d381900-9a62-488f-936a-a9cedbe7dddc</test>",
    "item-id": "item-5d381900-9a62-488f-936a-a9cedbe7dddc"
}

2021-06-17 22:30:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5d381900-9a62-488f-936a-a9cedbe7dddc"
}

2021-06-17 22:30:47 | [Mutex] waiting for: [published:item:notifieditem-5d381900-9a62-488f-936a-a9cedbe7dddc:admin@test-domain.com]

2021-06-17 22:30:47 | [Mutex] received everything.

2021-06-17 22:30:47 | [Mutex] isItemNotified: published:item:notifieditem-5d381900-9a62-488f-936a-a9cedbe7dddc:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-06-17 22:30:47 |

2021-06-17 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:47 | ------------------------------------

2021-06-17 22:30:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-74f25432-82d6-4c13-ac1b-cf26e17c490d",
    "item-id": "item-5d381900-9a62-488f-936a-a9cedbe7dddc"
}

2021-06-17 22:30:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5d381900-9a62-488f-936a-a9cedbe7dddc"
}

2021-06-17 22:30:47 | [Mutex] received everything.

2021-06-17 22:30:47 | [Mutex] isItemNotified: retracted:item:notifieditem-5d381900-9a62-488f-936a-a9cedbe7dddc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2021-06-17 22:30:47 |

2021-06-17 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:47 | ------------------------------------

2021-06-17 22:30:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-74f25432-82d6-4c13-ac1b-cf26e17c490d",
    "item-id": "item-5d381900-9a62-488f-936a-a9cedbe7dddc"
}

2021-06-17 22:30:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-74f25432-82d6-4c13-ac1b-cf26e17c490d",
    "item-id": "item-5d381900-9a62-488f-936a-a9cedbe7dddc",
    "item": [
        "<item id=\"item-5d381900-9a62-488f-936a-a9cedbe7dddc\"><test>item-5d381900-9a62-488f-936a-a9cedbe7dddc</test></item>"
    ]
}

2021-06-17 22:30:47 | [Mutex] notify: [retrieved:item:item-5d381900-9a62-488f-936a-a9cedbe7dddc:payload-matches:true:localhost]

2021-06-17 22:30:47 | [Mutex] received everything.

2021-06-17 22:30:47 | [Mutex] isItemNotified: retrieved:item:item-5d381900-9a62-488f-936a-a9cedbe7dddc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2021-06-17 22:30:47 |

2021-06-17 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:47 | ------------------------------------

2021-06-17 22:30:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-17 22:30:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-74f25432-82d6-4c13-ac1b-cf26e17c490d",
        "node-55ab464a-c6e5-4c0a-a369-31f235b81516"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-06-17 22:30:47 |

2021-06-17 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:47 | ------------------------------------

2021-06-17 22:30:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-74f25432-82d6-4c13-ac1b-cf26e17c490d)"
}

2021-06-17 22:30:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2021-06-17 22:30:46 |

2021-06-17 22:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:46 | ------------------------------------

2021-06-17 22:30:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-74f25432-82d6-4c13-ac1b-cf26e17c490d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2021-06-17 22:30:47 |

2021-06-17 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:30:47 | ------------------------------------

2021-06-17 22:30:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-74f25432-82d6-4c13-ac1b-cf26e17c490d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-17 22:30:47 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}