Generated by TestNG with ReportNG at 22:13 PDT on Sunday 04 October 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.167s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2020-10-04 22:30:24 |

2020-10-04 22:30:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:24 | ------------------------------------

2020-10-04 22:30:24 | [Mutex] waiting for: [configured:node:node-0456adf5-3ec6-4b04-91bc-d27507129bdf:node-8d99fe19-f788-4f54-8b77-183eaa2936d3]

2020-10-04 22:30:24 | [Mutex] received everything.

2020-10-04 22:30:24 | [Mutex] isItemNotified: configured:node:node-0456adf5-3ec6-4b04-91bc-d27507129bdf:node-8d99fe19-f788-4f54-8b77-183eaa2936d3 :: true

2020-10-04 22:30:25 | [Mutex] waiting for: [received:nodes:4e574056-87ce-4e99-8b82-144614125b07:localhost]

2020-10-04 22:30:25 | [Mutex] received everything.

2020-10-04 22:30:25 | [Mutex] isItemNotified: received:node:4e574056-87ce-4e99-8b82-144614125b07:localhost:node-0456adf5-3ec6-4b04-91bc-d27507129bdf:Node 0456adf5-3ec6-4b04-91bc-d27507129bdf :: true

2020-10-04 22:30:25 | [Mutex] waiting for: [received:nodes:2686aa84-a244-499d-a7d7-e1cf390dcc4d:localhost]

2020-10-04 22:30:25 | [Mutex] received everything.

2020-10-04 22:30:25 | [Mutex] isItemNotified: received:node:2686aa84-a244-499d-a7d7-e1cf390dcc4d:localhost:node-0456adf5-3ec6-4b04-91bc-d27507129bdf:Node 0456adf5-3ec6-4b04-91bc-d27507129bdf :: false

createNodes 1.889s
2020-10-04 22:30:21 |

2020-10-04 22:30:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:21 | ------------------------------------

2020-10-04 22:30:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0456adf5-3ec6-4b04-91bc-d27507129bdf",
    "pubsub#title": "Node 0456adf5-3ec6-4b04-91bc-d27507129bdf"
}

2020-10-04 22:30:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-04 22:30:23 | [Mutex] waiting for: [received:nodes:5f84b8c9-6b5f-404e-bdc0-27f5628ff8a2:localhost]

2020-10-04 22:30:23 | [Mutex] received everything.

2020-10-04 22:30:23 | [Mutex] isItemNotified: received:node:5f84b8c9-6b5f-404e-bdc0-27f5628ff8a2:localhost:node-0456adf5-3ec6-4b04-91bc-d27507129bdf:Node 0456adf5-3ec6-4b04-91bc-d27507129bdf :: true

createSubnodes 1.022s
2020-10-04 22:30:23 |

2020-10-04 22:30:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:23 | ------------------------------------

2020-10-04 22:30:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8d99fe19-f788-4f54-8b77-183eaa2936d3",
    "pubsub#title": "Node 8d99fe19-f788-4f54-8b77-183eaa2936d3"
}

2020-10-04 22:30:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-04 22:30:24 | [Mutex] waiting for: [received:nodes:400430dc-5654-4963-8aae-fdc4eaa18adf:localhost]

2020-10-04 22:30:24 | [Mutex] received everything.

2020-10-04 22:30:24 | [Mutex] isItemNotified: received:node:400430dc-5654-4963-8aae-fdc4eaa18adf:localhost:node-8d99fe19-f788-4f54-8b77-183eaa2936d3:Node 8d99fe19-f788-4f54-8b77-183eaa2936d3 :: true

deleteNodes 1.020s
2020-10-04 22:30:28 |

2020-10-04 22:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:28 | ------------------------------------

2020-10-04 22:30:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8d99fe19-f788-4f54-8b77-183eaa2936d3"
}

2020-10-04 22:30:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-04 22:30:29 | [Mutex] waiting for: [received:nodes:7e5f83d7-8440-40b3-80b5-dbfd2d576372:localhost]

2020-10-04 22:30:29 | [Mutex] received everything.

2020-10-04 22:30:29 | [Mutex] isItemNotified: received:node:7e5f83d7-8440-40b3-80b5-dbfd2d576372:localhost:node-8d99fe19-f788-4f54-8b77-183eaa2936d3:Node 8d99fe19-f788-4f54-8b77-183eaa2936d3 :: false

deleteSubnodes 1.032s
2020-10-04 22:30:27 |

2020-10-04 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:27 | ------------------------------------

2020-10-04 22:30:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0456adf5-3ec6-4b04-91bc-d27507129bdf"
}

2020-10-04 22:30:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-04 22:30:28 | [Mutex] waiting for: [received:nodes:834696da-6b81-4f1e-b29b-32c3b2eb9b16:localhost]

2020-10-04 22:30:28 | [Mutex] waiting for: [received:nodes:834696da-6b81-4f1e-b29b-32c3b2eb9b16:localhost]

2020-10-04 22:30:28 | [Mutex] received everything.

2020-10-04 22:30:28 | [Mutex] isItemNotified: received:node:834696da-6b81-4f1e-b29b-32c3b2eb9b16:localhost:node-0456adf5-3ec6-4b04-91bc-d27507129bdf:Node 0456adf5-3ec6-4b04-91bc-d27507129bdf :: false

2020-10-04 22:30:28 | [Mutex] waiting for: [received:nodes:a9a431a5-2460-4e12-af2f-af3dc4720081:localhost]

2020-10-04 22:30:28 | [Mutex] received everything.

2020-10-04 22:30:28 | [Mutex] isItemNotified: received:node:a9a431a5-2460-4e12-af2f-af3dc4720081:localhost:node-0456adf5-3ec6-4b04-91bc-d27507129bdf:Node 0456adf5-3ec6-4b04-91bc-d27507129bdf :: false

publishItemsToNodes 0.044s
2020-10-04 22:30:26 |

2020-10-04 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:26 | ------------------------------------

2020-10-04 22:30:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0456adf5-3ec6-4b04-91bc-d27507129bdf",
    "entry": "<test>item-f0ca3640-ead2-4de7-9ba3-e3861c26b974</test>",
    "item-id": "item-f0ca3640-ead2-4de7-9ba3-e3861c26b974"
}

2020-10-04 22:30:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f0ca3640-ead2-4de7-9ba3-e3861c26b974"
}

2020-10-04 22:30:26 | [Mutex] waiting for: [published:item:notifieditem-f0ca3640-ead2-4de7-9ba3-e3861c26b974:admin@test-domain.com]

2020-10-04 22:30:26 | [Mutex] received everything.

2020-10-04 22:30:26 | [Mutex] isItemNotified: published:item:notifieditem-f0ca3640-ead2-4de7-9ba3-e3861c26b974:admin@test-domain.com :: true

retractItemsFromNodes 0.112s
2020-10-04 22:30:26 |

2020-10-04 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:26 | ------------------------------------

2020-10-04 22:30:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0456adf5-3ec6-4b04-91bc-d27507129bdf",
    "item-id": "item-f0ca3640-ead2-4de7-9ba3-e3861c26b974"
}

2020-10-04 22:30:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f0ca3640-ead2-4de7-9ba3-e3861c26b974"
}

2020-10-04 22:30:26 | [Mutex] received everything.

2020-10-04 22:30:26 | [Mutex] isItemNotified: retracted:item:notifieditem-f0ca3640-ead2-4de7-9ba3-e3861c26b974:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2020-10-04 22:30:26 |

2020-10-04 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:26 | ------------------------------------

2020-10-04 22:30:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0456adf5-3ec6-4b04-91bc-d27507129bdf",
    "item-id": "item-f0ca3640-ead2-4de7-9ba3-e3861c26b974"
}

2020-10-04 22:30:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0456adf5-3ec6-4b04-91bc-d27507129bdf",
    "item-id": "item-f0ca3640-ead2-4de7-9ba3-e3861c26b974",
    "item": [
        "<item id=\"item-f0ca3640-ead2-4de7-9ba3-e3861c26b974\"><test>item-f0ca3640-ead2-4de7-9ba3-e3861c26b974</test></item>"
    ]
}

2020-10-04 22:30:26 | [Mutex] notify: [retrieved:item:item-f0ca3640-ead2-4de7-9ba3-e3861c26b974:payload-matches:true:localhost]

2020-10-04 22:30:26 | [Mutex] received everything.

2020-10-04 22:30:26 | [Mutex] isItemNotified: retrieved:item:item-f0ca3640-ead2-4de7-9ba3-e3861c26b974:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-10-04 22:30:26 |

2020-10-04 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:26 | ------------------------------------

2020-10-04 22:30:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-04 22:30:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0456adf5-3ec6-4b04-91bc-d27507129bdf",
        "node-8d99fe19-f788-4f54-8b77-183eaa2936d3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-10-04 22:30:26 |

2020-10-04 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:26 | ------------------------------------

2020-10-04 22:30:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0456adf5-3ec6-4b04-91bc-d27507129bdf)"
}

2020-10-04 22:30:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-10-04 22:30:25 |

2020-10-04 22:30:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:25 | ------------------------------------

2020-10-04 22:30:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0456adf5-3ec6-4b04-91bc-d27507129bdf",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-04 22:30:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2020-10-04 22:30:26 |

2020-10-04 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:30:26 | ------------------------------------

2020-10-04 22:30:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0456adf5-3ec6-4b04-91bc-d27507129bdf",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-04 22:30:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}