Generated by TestNG with ReportNG at 22:36 PDT on Wednesday 01 June 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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.629s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2022-06-01 22:50:39 |

2022-06-01 22:50:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:39 | ------------------------------------

2022-06-01 22:50:39 | [Mutex] waiting for: [configured:node:node-514f448a-909b-4221-8530-10fec1485089:node-bc9b5bc6-03c8-4c70-9467-44fea06e4f93]

2022-06-01 22:50:39 | [Mutex] received everything.

2022-06-01 22:50:39 | [Mutex] isItemNotified: configured:node:node-514f448a-909b-4221-8530-10fec1485089:node-bc9b5bc6-03c8-4c70-9467-44fea06e4f93 :: true

2022-06-01 22:50:40 | [Mutex] waiting for: [received:nodes:429cb480-ad97-4999-bddb-bd69261b10b6:localhost]

2022-06-01 22:50:40 | [Mutex] received everything.

2022-06-01 22:50:40 | [Mutex] isItemNotified: received:node:429cb480-ad97-4999-bddb-bd69261b10b6:localhost:node-514f448a-909b-4221-8530-10fec1485089:Node 514f448a-909b-4221-8530-10fec1485089 :: true

2022-06-01 22:50:40 | [Mutex] waiting for: [received:nodes:5315b238-3268-4915-a8cb-7dc644bba2da:localhost]

2022-06-01 22:50:40 | [Mutex] received everything.

2022-06-01 22:50:40 | [Mutex] isItemNotified: received:node:5315b238-3268-4915-a8cb-7dc644bba2da:localhost:node-514f448a-909b-4221-8530-10fec1485089:Node 514f448a-909b-4221-8530-10fec1485089 :: false

createNodes 1.526s
2022-06-01 22:50:36 |

2022-06-01 22:50:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:36 | ------------------------------------

2022-06-01 22:50:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-514f448a-909b-4221-8530-10fec1485089",
    "pubsub#title": "Node 514f448a-909b-4221-8530-10fec1485089"
}

2022-06-01 22:50:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-01 22:50:38 | [Mutex] waiting for: [received:nodes:a36dce20-c70b-4a6a-89dd-67a8b1063fd6:localhost]

2022-06-01 22:50:38 | [Mutex] received everything.

2022-06-01 22:50:38 | [Mutex] isItemNotified: received:node:a36dce20-c70b-4a6a-89dd-67a8b1063fd6:localhost:node-514f448a-909b-4221-8530-10fec1485089:Node 514f448a-909b-4221-8530-10fec1485089 :: true

createSubnodes 1.021s
2022-06-01 22:50:38 |

2022-06-01 22:50:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:38 | ------------------------------------

2022-06-01 22:50:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bc9b5bc6-03c8-4c70-9467-44fea06e4f93",
    "pubsub#title": "Node bc9b5bc6-03c8-4c70-9467-44fea06e4f93"
}

2022-06-01 22:50:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-01 22:50:39 | [Mutex] waiting for: [received:nodes:f46576ef-4586-4f04-a619-1775a022d664:localhost]

2022-06-01 22:50:39 | [Mutex] received everything.

2022-06-01 22:50:39 | [Mutex] isItemNotified: received:node:f46576ef-4586-4f04-a619-1775a022d664:localhost:node-bc9b5bc6-03c8-4c70-9467-44fea06e4f93:Node bc9b5bc6-03c8-4c70-9467-44fea06e4f93 :: true

deleteNodes 1.024s
2022-06-01 22:50:43 |

2022-06-01 22:50:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:43 | ------------------------------------

2022-06-01 22:50:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bc9b5bc6-03c8-4c70-9467-44fea06e4f93"
}

2022-06-01 22:50:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-01 22:50:44 | [Mutex] waiting for: [received:nodes:d662bc75-05c3-4705-a97f-1bb355b916fb:localhost]

2022-06-01 22:50:44 | [Mutex] received everything.

2022-06-01 22:50:44 | [Mutex] isItemNotified: received:node:d662bc75-05c3-4705-a97f-1bb355b916fb:localhost:node-bc9b5bc6-03c8-4c70-9467-44fea06e4f93:Node bc9b5bc6-03c8-4c70-9467-44fea06e4f93 :: false

deleteSubnodes 1.031s
2022-06-01 22:50:42 |

2022-06-01 22:50:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:42 | ------------------------------------

2022-06-01 22:50:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-514f448a-909b-4221-8530-10fec1485089"
}

2022-06-01 22:50:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-01 22:50:43 | [Mutex] waiting for: [received:nodes:3a71ae15-0703-4361-b35e-d36e83085c16:localhost]

2022-06-01 22:50:43 | [Mutex] received everything.

2022-06-01 22:50:43 | [Mutex] isItemNotified: received:node:3a71ae15-0703-4361-b35e-d36e83085c16:localhost:node-514f448a-909b-4221-8530-10fec1485089:Node 514f448a-909b-4221-8530-10fec1485089 :: false

2022-06-01 22:50:43 | [Mutex] waiting for: [received:nodes:5c49e735-a19b-454c-aeff-7182142af14f:localhost]

2022-06-01 22:50:43 | [Mutex] received everything.

2022-06-01 22:50:43 | [Mutex] isItemNotified: received:node:5c49e735-a19b-454c-aeff-7182142af14f:localhost:node-514f448a-909b-4221-8530-10fec1485089:Node 514f448a-909b-4221-8530-10fec1485089 :: false

publishItemsToNodes 0.061s
2022-06-01 22:50:41 |

2022-06-01 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:41 | ------------------------------------

2022-06-01 22:50:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-514f448a-909b-4221-8530-10fec1485089",
    "entry": "<test>item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe</test>",
    "item-id": "item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe"
}

2022-06-01 22:50:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe"
}

2022-06-01 22:50:41 | [Mutex] waiting for: [published:item:notifieditem-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe:admin@test-domain.com]

2022-06-01 22:50:41 | [Mutex] received everything.

2022-06-01 22:50:41 | [Mutex] isItemNotified: published:item:notifieditem-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-01 22:50:41 |

2022-06-01 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:41 | ------------------------------------

2022-06-01 22:50:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-514f448a-909b-4221-8530-10fec1485089",
    "item-id": "item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe"
}

2022-06-01 22:50:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe"
}

2022-06-01 22:50:41 | [Mutex] received everything.

2022-06-01 22:50:41 | [Mutex] isItemNotified: retracted:item:notifieditem-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2022-06-01 22:50:41 |

2022-06-01 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:41 | ------------------------------------

2022-06-01 22:50:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-514f448a-909b-4221-8530-10fec1485089",
    "item-id": "item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe"
}

2022-06-01 22:50:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-514f448a-909b-4221-8530-10fec1485089",
    "item-id": "item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe",
    "item": [
        "<item id=\"item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe\"><test>item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe</test></item>"
    ]
}

2022-06-01 22:50:41 | [Mutex] notify: [retrieved:item:item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe:payload-matches:true:localhost]

2022-06-01 22:50:41 | [Mutex] received everything.

2022-06-01 22:50:41 | [Mutex] isItemNotified: retrieved:item:item-d6a6eae6-7604-40d6-a08a-b56f9ebdfdbe:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-06-01 22:50:41 |

2022-06-01 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:41 | ------------------------------------

2022-06-01 22:50:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-01 22:50:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-514f448a-909b-4221-8530-10fec1485089",
        "node-bc9b5bc6-03c8-4c70-9467-44fea06e4f93"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-06-01 22:50:41 |

2022-06-01 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:41 | ------------------------------------

2022-06-01 22:50:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-514f448a-909b-4221-8530-10fec1485089)"
}

2022-06-01 22:50:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-06-01 22:50:40 |

2022-06-01 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:40 | ------------------------------------

2022-06-01 22:50:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-514f448a-909b-4221-8530-10fec1485089",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-01 22:50:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-06-01 22:50:41 |

2022-06-01 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 22:50:41 | ------------------------------------

2022-06-01 22:50:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-514f448a-909b-4221-8530-10fec1485089",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-01 22:50:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}