Generated by TestNG with ReportNG at 21:30 PST on Wednesday 09 February 2022
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.028s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.169s
2022-02-09 21:45:42 |

2022-02-09 21:45:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:42 | ------------------------------------

2022-02-09 21:45:42 | [Mutex] waiting for: [configured:node:node-9673795c-4104-4cc5-982a-5f89b9fb5206:node-d0e566a8-b225-459c-bf54-38c5d7f7a5c1]

2022-02-09 21:45:42 | [Mutex] received everything.

2022-02-09 21:45:42 | [Mutex] isItemNotified: configured:node:node-9673795c-4104-4cc5-982a-5f89b9fb5206:node-d0e566a8-b225-459c-bf54-38c5d7f7a5c1 :: true

2022-02-09 21:45:43 | [Mutex] waiting for: [received:nodes:3ff8753a-1086-4392-a5dd-93ba00592650:localhost]

2022-02-09 21:45:43 | [Mutex] received everything.

2022-02-09 21:45:43 | [Mutex] isItemNotified: received:node:3ff8753a-1086-4392-a5dd-93ba00592650:localhost:node-9673795c-4104-4cc5-982a-5f89b9fb5206:Node 9673795c-4104-4cc5-982a-5f89b9fb5206 :: true

2022-02-09 21:45:43 | [Mutex] waiting for: [received:nodes:63bdbb45-620a-497e-bb71-c5ea28f3d3e5:localhost]

2022-02-09 21:45:43 | [Mutex] received everything.

2022-02-09 21:45:43 | [Mutex] isItemNotified: received:node:63bdbb45-620a-497e-bb71-c5ea28f3d3e5:localhost:node-9673795c-4104-4cc5-982a-5f89b9fb5206:Node 9673795c-4104-4cc5-982a-5f89b9fb5206 :: false

createNodes 1.605s
2022-02-09 21:45:39 |

2022-02-09 21:45:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:39 | ------------------------------------

2022-02-09 21:45:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9673795c-4104-4cc5-982a-5f89b9fb5206",
    "pubsub#title": "Node 9673795c-4104-4cc5-982a-5f89b9fb5206"
}

2022-02-09 21:45:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-09 21:45:41 | [Mutex] waiting for: [received:nodes:59c85fd6-a1b6-483e-b116-cc2aa19f4a4e:localhost]

2022-02-09 21:45:41 | [Mutex] waiting for: [received:nodes:59c85fd6-a1b6-483e-b116-cc2aa19f4a4e:localhost]

2022-02-09 21:45:41 | [Mutex] received everything.

2022-02-09 21:45:41 | [Mutex] isItemNotified: received:node:59c85fd6-a1b6-483e-b116-cc2aa19f4a4e:localhost:node-9673795c-4104-4cc5-982a-5f89b9fb5206:Node 9673795c-4104-4cc5-982a-5f89b9fb5206 :: true

createSubnodes 1.034s
2022-02-09 21:45:41 |

2022-02-09 21:45:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:41 | ------------------------------------

2022-02-09 21:45:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d0e566a8-b225-459c-bf54-38c5d7f7a5c1",
    "pubsub#title": "Node d0e566a8-b225-459c-bf54-38c5d7f7a5c1"
}

2022-02-09 21:45:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-09 21:45:42 | [Mutex] waiting for: [received:nodes:9394844c-6320-44d8-a214-4c1373db8526:localhost]

2022-02-09 21:45:42 | [Mutex] waiting for: [received:nodes:9394844c-6320-44d8-a214-4c1373db8526:localhost]

2022-02-09 21:45:42 | [Mutex] waiting for: [received:nodes:9394844c-6320-44d8-a214-4c1373db8526:localhost]

2022-02-09 21:45:42 | [Mutex] received everything.

2022-02-09 21:45:42 | [Mutex] isItemNotified: received:node:9394844c-6320-44d8-a214-4c1373db8526:localhost:node-d0e566a8-b225-459c-bf54-38c5d7f7a5c1:Node d0e566a8-b225-459c-bf54-38c5d7f7a5c1 :: true

deleteNodes 1.023s
2022-02-09 21:45:46 |

2022-02-09 21:45:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:46 | ------------------------------------

2022-02-09 21:45:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d0e566a8-b225-459c-bf54-38c5d7f7a5c1"
}

2022-02-09 21:45:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-09 21:45:47 | [Mutex] waiting for: [received:nodes:84e6076a-5705-4f9c-a455-fe9f54617c48:localhost]

2022-02-09 21:45:47 | [Mutex] received everything.

2022-02-09 21:45:47 | [Mutex] isItemNotified: received:node:84e6076a-5705-4f9c-a455-fe9f54617c48:localhost:node-d0e566a8-b225-459c-bf54-38c5d7f7a5c1:Node d0e566a8-b225-459c-bf54-38c5d7f7a5c1 :: false

deleteSubnodes 1.031s
2022-02-09 21:45:45 |

2022-02-09 21:45:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:45 | ------------------------------------

2022-02-09 21:45:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9673795c-4104-4cc5-982a-5f89b9fb5206"
}

2022-02-09 21:45:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-09 21:45:46 | [Mutex] waiting for: [received:nodes:f67b1a13-cce4-48a1-8a7f-42c17f660a1d:localhost]

2022-02-09 21:45:46 | [Mutex] waiting for: [received:nodes:f67b1a13-cce4-48a1-8a7f-42c17f660a1d:localhost]

2022-02-09 21:45:46 | [Mutex] waiting for: [received:nodes:f67b1a13-cce4-48a1-8a7f-42c17f660a1d:localhost]

2022-02-09 21:45:46 | [Mutex] received everything.

2022-02-09 21:45:46 | [Mutex] isItemNotified: received:node:f67b1a13-cce4-48a1-8a7f-42c17f660a1d:localhost:node-9673795c-4104-4cc5-982a-5f89b9fb5206:Node 9673795c-4104-4cc5-982a-5f89b9fb5206 :: false

2022-02-09 21:45:46 | [Mutex] waiting for: [received:nodes:d5737d02-1554-460b-90ae-b1d6976a50a5:localhost]

2022-02-09 21:45:46 | [Mutex] received everything.

2022-02-09 21:45:46 | [Mutex] isItemNotified: received:node:d5737d02-1554-460b-90ae-b1d6976a50a5:localhost:node-9673795c-4104-4cc5-982a-5f89b9fb5206:Node 9673795c-4104-4cc5-982a-5f89b9fb5206 :: false

publishItemsToNodes 0.054s
2022-02-09 21:45:44 |

2022-02-09 21:45:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:44 | ------------------------------------

2022-02-09 21:45:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9673795c-4104-4cc5-982a-5f89b9fb5206",
    "entry": "<test>item-b00e0008-538c-4466-8ad6-fdda26b40fdd</test>",
    "item-id": "item-b00e0008-538c-4466-8ad6-fdda26b40fdd"
}

2022-02-09 21:45:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b00e0008-538c-4466-8ad6-fdda26b40fdd"
}

2022-02-09 21:45:44 | [Mutex] waiting for: [published:item:notifieditem-b00e0008-538c-4466-8ad6-fdda26b40fdd:admin@test-domain.com]

2022-02-09 21:45:44 | [Mutex] received everything.

2022-02-09 21:45:44 | [Mutex] isItemNotified: published:item:notifieditem-b00e0008-538c-4466-8ad6-fdda26b40fdd:admin@test-domain.com :: true

retractItemsFromNodes 0.098s
2022-02-09 21:45:44 |

2022-02-09 21:45:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:44 | ------------------------------------

2022-02-09 21:45:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9673795c-4104-4cc5-982a-5f89b9fb5206",
    "item-id": "item-b00e0008-538c-4466-8ad6-fdda26b40fdd"
}

2022-02-09 21:45:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b00e0008-538c-4466-8ad6-fdda26b40fdd"
}

2022-02-09 21:45:44 | [Mutex] waiting for: [retracted:item:notifieditem-b00e0008-538c-4466-8ad6-fdda26b40fdd:admin@test-domain.com]

2022-02-09 21:45:44 | [Mutex] received everything.

2022-02-09 21:45:44 | [Mutex] isItemNotified: retracted:item:notifieditem-b00e0008-538c-4466-8ad6-fdda26b40fdd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.045s
2022-02-09 21:45:44 |

2022-02-09 21:45:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:44 | ------------------------------------

2022-02-09 21:45:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9673795c-4104-4cc5-982a-5f89b9fb5206",
    "item-id": "item-b00e0008-538c-4466-8ad6-fdda26b40fdd"
}

2022-02-09 21:45:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9673795c-4104-4cc5-982a-5f89b9fb5206",
    "item-id": "item-b00e0008-538c-4466-8ad6-fdda26b40fdd",
    "item": [
        "<item id=\"item-b00e0008-538c-4466-8ad6-fdda26b40fdd\"><test>item-b00e0008-538c-4466-8ad6-fdda26b40fdd</test></item>"
    ]
}

2022-02-09 21:45:44 | [Mutex] notify: [retrieved:item:item-b00e0008-538c-4466-8ad6-fdda26b40fdd:payload-matches:true:localhost]

2022-02-09 21:45:44 | [Mutex] received everything.

2022-02-09 21:45:44 | [Mutex] isItemNotified: retrieved:item:item-b00e0008-538c-4466-8ad6-fdda26b40fdd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.078s
2022-02-09 21:45:44 |

2022-02-09 21:45:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:44 | ------------------------------------

2022-02-09 21:45:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-09 21:45:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9673795c-4104-4cc5-982a-5f89b9fb5206",
        "test",
        "node-d0e566a8-b225-459c-bf54-38c5d7f7a5c1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-09 21:45:44 |

2022-02-09 21:45:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:44 | ------------------------------------

2022-02-09 21:45:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9673795c-4104-4cc5-982a-5f89b9fb5206)"
}

2022-02-09 21:45:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2022-02-09 21:45:43 |

2022-02-09 21:45:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:43 | ------------------------------------

2022-02-09 21:45:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9673795c-4104-4cc5-982a-5f89b9fb5206",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-09 21:45:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.035s
2022-02-09 21:45:44 |

2022-02-09 21:45:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-09 21:45:44 | ------------------------------------

2022-02-09 21:45:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9673795c-4104-4cc5-982a-5f89b9fb5206",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-09 21:45:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}