Generated by TestNG with ReportNG at 22:13 PDT on Friday 23 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 : 8.984s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2020-10-23 22:30:06 |

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

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

2020-10-23 22:30:06 | [Mutex] waiting for: [configured:node:node-003622b1-f5cd-4eb7-a956-9b2ef2446321:node-713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260]

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

2020-10-23 22:30:06 | [Mutex] isItemNotified: configured:node:node-003622b1-f5cd-4eb7-a956-9b2ef2446321:node-713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260 :: true

2020-10-23 22:30:07 | [Mutex] waiting for: [received:nodes:3bff1d3b-e0a9-4a8f-a218-aa27e542e4c8:localhost]

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

2020-10-23 22:30:07 | [Mutex] isItemNotified: received:node:3bff1d3b-e0a9-4a8f-a218-aa27e542e4c8:localhost:node-003622b1-f5cd-4eb7-a956-9b2ef2446321:Node 003622b1-f5cd-4eb7-a956-9b2ef2446321 :: true

2020-10-23 22:30:07 | [Mutex] waiting for: [received:nodes:c0392f24-80ea-49a1-a41e-bb775d4c1829:localhost]

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

2020-10-23 22:30:07 | [Mutex] isItemNotified: received:node:c0392f24-80ea-49a1-a41e-bb775d4c1829:localhost:node-003622b1-f5cd-4eb7-a956-9b2ef2446321:Node 003622b1-f5cd-4eb7-a956-9b2ef2446321 :: false

createNodes 1.642s
2020-10-23 22:30:04 |

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

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

2020-10-23 22:30:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-003622b1-f5cd-4eb7-a956-9b2ef2446321",
    "pubsub#title": "Node 003622b1-f5cd-4eb7-a956-9b2ef2446321"
}

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

2020-10-23 22:30:05 | [Mutex] waiting for: [received:nodes:b2b469b1-0948-4785-acf1-66f10ad0c627:localhost]

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

2020-10-23 22:30:05 | [Mutex] isItemNotified: received:node:b2b469b1-0948-4785-acf1-66f10ad0c627:localhost:node-003622b1-f5cd-4eb7-a956-9b2ef2446321:Node 003622b1-f5cd-4eb7-a956-9b2ef2446321 :: true

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

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

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

2020-10-23 22:30:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260",
    "pubsub#title": "Node 713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260"
}

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

2020-10-23 22:30:06 | [Mutex] waiting for: [received:nodes:ba6dc973-3a1c-4bf1-87ee-24283bc2677f:localhost]

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

2020-10-23 22:30:06 | [Mutex] isItemNotified: received:node:ba6dc973-3a1c-4bf1-87ee-24283bc2677f:localhost:node-713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260:Node 713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260 :: true

deleteNodes 1.021s
2020-10-23 22:30:11 |

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

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

2020-10-23 22:30:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260"
}

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

2020-10-23 22:30:12 | [Mutex] waiting for: [received:nodes:aaa9e4da-0955-4b24-9aa3-e317a627976c:localhost]

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

2020-10-23 22:30:12 | [Mutex] isItemNotified: received:node:aaa9e4da-0955-4b24-9aa3-e317a627976c:localhost:node-713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260:Node 713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260 :: false

deleteSubnodes 1.027s
2020-10-23 22:30:10 |

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

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

2020-10-23 22:30:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-003622b1-f5cd-4eb7-a956-9b2ef2446321"
}

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

2020-10-23 22:30:11 | [Mutex] waiting for: [received:nodes:8f453410-61d7-4410-8942-bdce658308d2:localhost]

2020-10-23 22:30:11 | [Mutex] waiting for: [received:nodes:8f453410-61d7-4410-8942-bdce658308d2:localhost]

2020-10-23 22:30:11 | [Mutex] waiting for: [received:nodes:8f453410-61d7-4410-8942-bdce658308d2:localhost]

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

2020-10-23 22:30:11 | [Mutex] isItemNotified: received:node:8f453410-61d7-4410-8942-bdce658308d2:localhost:node-003622b1-f5cd-4eb7-a956-9b2ef2446321:Node 003622b1-f5cd-4eb7-a956-9b2ef2446321 :: false

2020-10-23 22:30:11 | [Mutex] waiting for: [received:nodes:8d363543-606b-4e80-aba7-727d7af66d40:localhost]

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

2020-10-23 22:30:11 | [Mutex] isItemNotified: received:node:8d363543-606b-4e80-aba7-727d7af66d40:localhost:node-003622b1-f5cd-4eb7-a956-9b2ef2446321:Node 003622b1-f5cd-4eb7-a956-9b2ef2446321 :: false

publishItemsToNodes 0.039s
2020-10-23 22:30:08 |

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

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

2020-10-23 22:30:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-003622b1-f5cd-4eb7-a956-9b2ef2446321",
    "entry": "<test>item-01a94892-a179-4e47-a9db-b11c383b4d9e</test>",
    "item-id": "item-01a94892-a179-4e47-a9db-b11c383b4d9e"
}

2020-10-23 22:30:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-01a94892-a179-4e47-a9db-b11c383b4d9e"
}

2020-10-23 22:30:08 | [Mutex] waiting for: [published:item:notifieditem-01a94892-a179-4e47-a9db-b11c383b4d9e:admin@test-domain.com]

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

2020-10-23 22:30:08 | [Mutex] isItemNotified: published:item:notifieditem-01a94892-a179-4e47-a9db-b11c383b4d9e:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2020-10-23 22:30:09 |

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

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

2020-10-23 22:30:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-003622b1-f5cd-4eb7-a956-9b2ef2446321",
    "item-id": "item-01a94892-a179-4e47-a9db-b11c383b4d9e"
}

2020-10-23 22:30:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-01a94892-a179-4e47-a9db-b11c383b4d9e"
}

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

2020-10-23 22:30:09 | [Mutex] isItemNotified: retracted:item:notifieditem-01a94892-a179-4e47-a9db-b11c383b4d9e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2020-10-23 22:30:08 |

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

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

2020-10-23 22:30:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-003622b1-f5cd-4eb7-a956-9b2ef2446321",
    "item-id": "item-01a94892-a179-4e47-a9db-b11c383b4d9e"
}

2020-10-23 22:30:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-003622b1-f5cd-4eb7-a956-9b2ef2446321",
    "item-id": "item-01a94892-a179-4e47-a9db-b11c383b4d9e",
    "item": [
        "<item id=\"item-01a94892-a179-4e47-a9db-b11c383b4d9e\"><test>item-01a94892-a179-4e47-a9db-b11c383b4d9e</test></item>"
    ]
}

2020-10-23 22:30:08 | [Mutex] notify: [retrieved:item:item-01a94892-a179-4e47-a9db-b11c383b4d9e:payload-matches:true:localhost]

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

2020-10-23 22:30:08 | [Mutex] isItemNotified: retrieved:item:item-01a94892-a179-4e47-a9db-b11c383b4d9e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.094s
2020-10-23 22:30:08 |

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

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

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

2020-10-23 22:30:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-713b3b3b-c59e-4fc6-a2e3-7ce4ab41d260",
        "node-003622b1-f5cd-4eb7-a956-9b2ef2446321",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-23 22:30:09 |

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

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

2020-10-23 22:30:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-003622b1-f5cd-4eb7-a956-9b2ef2446321)"
}

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

subscribeNodes 1.009s
2020-10-23 22:30:07 |

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

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

2020-10-23 22:30:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-003622b1-f5cd-4eb7-a956-9b2ef2446321",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2020-10-23 22:30:09 |

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

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

2020-10-23 22:30:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-003622b1-f5cd-4eb7-a956-9b2ef2446321",
    "jids": [
        "admin@test-domain.com"
    ]
}

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