Generated by TestNG with ReportNG at 23:11 PDT on Friday 04 September 2020
root@55161683a995 / 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.249s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2020-09-04 23:26:14 |

2020-09-04 23:26:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:14 | ------------------------------------

2020-09-04 23:26:14 | [Mutex] waiting for: [configured:node:node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c:node-b4df5087-fc2e-48aa-825d-f0a96042ccc3]

2020-09-04 23:26:14 | [Mutex] received everything.

2020-09-04 23:26:14 | [Mutex] isItemNotified: configured:node:node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c:node-b4df5087-fc2e-48aa-825d-f0a96042ccc3 :: true

2020-09-04 23:26:15 | [Mutex] waiting for: [received:nodes:4a8fb930-131e-4cab-a744-3a2dd240048c:localhost]

2020-09-04 23:26:15 | [Mutex] received everything.

2020-09-04 23:26:15 | [Mutex] isItemNotified: received:node:4a8fb930-131e-4cab-a744-3a2dd240048c:localhost:node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c:Node 6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c :: true

2020-09-04 23:26:15 | [Mutex] waiting for: [received:nodes:90ef9e90-0632-4c6c-b846-e9b2f78de86f:localhost]

2020-09-04 23:26:15 | [Mutex] received everything.

2020-09-04 23:26:15 | [Mutex] isItemNotified: received:node:90ef9e90-0632-4c6c-b846-e9b2f78de86f:localhost:node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c:Node 6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c :: false

createNodes 1.907s
2020-09-04 23:26:11 |

2020-09-04 23:26:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:11 | ------------------------------------

2020-09-04 23:26:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c",
    "pubsub#title": "Node 6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c"
}

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

2020-09-04 23:26:13 | [Mutex] waiting for: [received:nodes:454f6f0b-8b8d-4112-95e2-3f3aebfa7c0b:localhost]

2020-09-04 23:26:13 | [Mutex] received everything.

2020-09-04 23:26:13 | [Mutex] isItemNotified: received:node:454f6f0b-8b8d-4112-95e2-3f3aebfa7c0b:localhost:node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c:Node 6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c :: true

createSubnodes 1.031s
2020-09-04 23:26:13 |

2020-09-04 23:26:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:13 | ------------------------------------

2020-09-04 23:26:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b4df5087-fc2e-48aa-825d-f0a96042ccc3",
    "pubsub#title": "Node b4df5087-fc2e-48aa-825d-f0a96042ccc3"
}

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

2020-09-04 23:26:14 | [Mutex] waiting for: [received:nodes:5cf8b1f0-a9fc-46fb-9246-59a2419c2e2d:localhost]

2020-09-04 23:26:14 | [Mutex] received everything.

2020-09-04 23:26:14 | [Mutex] isItemNotified: received:node:5cf8b1f0-a9fc-46fb-9246-59a2419c2e2d:localhost:node-b4df5087-fc2e-48aa-825d-f0a96042ccc3:Node b4df5087-fc2e-48aa-825d-f0a96042ccc3 :: true

deleteNodes 1.024s
2020-09-04 23:26:19 |

2020-09-04 23:26:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:19 | ------------------------------------

2020-09-04 23:26:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b4df5087-fc2e-48aa-825d-f0a96042ccc3"
}

2020-09-04 23:26:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-04 23:26:20 | [Mutex] waiting for: [received:nodes:b00a459c-0a72-488d-956c-cb6143935809:localhost]

2020-09-04 23:26:20 | [Mutex] waiting for: [received:nodes:b00a459c-0a72-488d-956c-cb6143935809:localhost]

2020-09-04 23:26:20 | [Mutex] received everything.

2020-09-04 23:26:20 | [Mutex] isItemNotified: received:node:b00a459c-0a72-488d-956c-cb6143935809:localhost:node-b4df5087-fc2e-48aa-825d-f0a96042ccc3:Node b4df5087-fc2e-48aa-825d-f0a96042ccc3 :: false

deleteSubnodes 1.029s
2020-09-04 23:26:18 |

2020-09-04 23:26:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:18 | ------------------------------------

2020-09-04 23:26:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c"
}

2020-09-04 23:26:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-04 23:26:19 | [Mutex] waiting for: [received:nodes:10064e66-553c-41e8-a66d-c921ce3242d9:localhost]

2020-09-04 23:26:19 | [Mutex] received everything.

2020-09-04 23:26:19 | [Mutex] isItemNotified: received:node:10064e66-553c-41e8-a66d-c921ce3242d9:localhost:node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c:Node 6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c :: false

2020-09-04 23:26:19 | [Mutex] waiting for: [received:nodes:48059fc6-39eb-412d-a8e9-75cbc2541166:localhost]

2020-09-04 23:26:19 | [Mutex] received everything.

2020-09-04 23:26:19 | [Mutex] isItemNotified: received:node:48059fc6-39eb-412d-a8e9-75cbc2541166:localhost:node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c:Node 6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c :: false

publishItemsToNodes 0.049s
2020-09-04 23:26:17 |

2020-09-04 23:26:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:17 | ------------------------------------

2020-09-04 23:26:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c",
    "entry": "<test>item-14e313de-2c40-435d-bef9-fe0c3f412178</test>",
    "item-id": "item-14e313de-2c40-435d-bef9-fe0c3f412178"
}

2020-09-04 23:26:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-14e313de-2c40-435d-bef9-fe0c3f412178"
}

2020-09-04 23:26:17 | [Mutex] received everything.

2020-09-04 23:26:17 | [Mutex] isItemNotified: published:item:notifieditem-14e313de-2c40-435d-bef9-fe0c3f412178:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-09-04 23:26:17 |

2020-09-04 23:26:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:17 | ------------------------------------

2020-09-04 23:26:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c",
    "item-id": "item-14e313de-2c40-435d-bef9-fe0c3f412178"
}

2020-09-04 23:26:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-14e313de-2c40-435d-bef9-fe0c3f412178"
}

2020-09-04 23:26:17 | [Mutex] received everything.

2020-09-04 23:26:17 | [Mutex] isItemNotified: retracted:item:notifieditem-14e313de-2c40-435d-bef9-fe0c3f412178:admin@test-domain.com :: true

retrieveItemsFromNodes 0.141s
2020-09-04 23:26:17 |

2020-09-04 23:26:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:17 | ------------------------------------

2020-09-04 23:26:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c",
    "item-id": "item-14e313de-2c40-435d-bef9-fe0c3f412178"
}

2020-09-04 23:26:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c",
    "item-id": "item-14e313de-2c40-435d-bef9-fe0c3f412178",
    "item": [
        "<item id=\"item-14e313de-2c40-435d-bef9-fe0c3f412178\"><test>item-14e313de-2c40-435d-bef9-fe0c3f412178</test></item>"
    ]
}

2020-09-04 23:26:17 | [Mutex] notify: [retrieved:item:item-14e313de-2c40-435d-bef9-fe0c3f412178:payload-matches:true:localhost]

2020-09-04 23:26:17 | [Mutex] received everything.

2020-09-04 23:26:17 | [Mutex] isItemNotified: retrieved:item:item-14e313de-2c40-435d-bef9-fe0c3f412178:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-04 23:26:17 |

2020-09-04 23:26:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:17 | ------------------------------------

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

2020-09-04 23:26:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c",
        "node-b4df5087-fc2e-48aa-825d-f0a96042ccc3",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2020-09-04 23:26:17 |

2020-09-04 23:26:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:17 | ------------------------------------

2020-09-04 23:26:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c)"
}

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

subscribeNodes 1.016s
2020-09-04 23:26:15 |

2020-09-04 23:26:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:15 | ------------------------------------

2020-09-04 23:26:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-04 23:26:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2020-09-04 23:26:17 |

2020-09-04 23:26:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-04 23:26:17 | ------------------------------------

2020-09-04 23:26:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6750e893-9a5c-4d07-b3ec-0f2d0fc4bb6c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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