Generated by TestNG with ReportNG at 22:13 PDT on Wednesday 31 March 2021
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.962s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.124s
2021-03-31 22:30:29 |

2021-03-31 22:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:29 | ------------------------------------

2021-03-31 22:30:29 | [Mutex] waiting for: [configured:node:node-377ab577-fa4b-4986-95aa-cf9256b1a012:node-d6c02204-d4f4-4f8c-aebe-793c187aed27]

2021-03-31 22:30:30 | [Mutex] received everything.

2021-03-31 22:30:30 | [Mutex] isItemNotified: configured:node:node-377ab577-fa4b-4986-95aa-cf9256b1a012:node-d6c02204-d4f4-4f8c-aebe-793c187aed27 :: true

2021-03-31 22:30:31 | [Mutex] waiting for: [received:nodes:8ba049cb-0e99-4ee3-ba72-d8debf7878e9:localhost]

2021-03-31 22:30:31 | [Mutex] waiting for: [received:nodes:8ba049cb-0e99-4ee3-ba72-d8debf7878e9:localhost]

2021-03-31 22:30:31 | [Mutex] received everything.

2021-03-31 22:30:31 | [Mutex] isItemNotified: received:node:8ba049cb-0e99-4ee3-ba72-d8debf7878e9:localhost:node-377ab577-fa4b-4986-95aa-cf9256b1a012:Node 377ab577-fa4b-4986-95aa-cf9256b1a012 :: true

2021-03-31 22:30:31 | [Mutex] waiting for: [received:nodes:a0a6f5e0-3649-4179-88a5-df61ae05ef97:localhost]

2021-03-31 22:30:31 | [Mutex] received everything.

2021-03-31 22:30:31 | [Mutex] isItemNotified: received:node:a0a6f5e0-3649-4179-88a5-df61ae05ef97:localhost:node-377ab577-fa4b-4986-95aa-cf9256b1a012:Node 377ab577-fa4b-4986-95aa-cf9256b1a012 :: false

createNodes 1.597s
2021-03-31 22:30:27 |

2021-03-31 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:27 | ------------------------------------

2021-03-31 22:30:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-377ab577-fa4b-4986-95aa-cf9256b1a012",
    "pubsub#title": "Node 377ab577-fa4b-4986-95aa-cf9256b1a012"
}

2021-03-31 22:30:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-31 22:30:28 | [Mutex] waiting for: [received:nodes:cdee3381-7b1f-4311-b345-03ce8c11ceb4:localhost]

2021-03-31 22:30:28 | [Mutex] waiting for: [received:nodes:cdee3381-7b1f-4311-b345-03ce8c11ceb4:localhost]

2021-03-31 22:30:28 | [Mutex] waiting for: [received:nodes:cdee3381-7b1f-4311-b345-03ce8c11ceb4:localhost]

2021-03-31 22:30:28 | [Mutex] waiting for: [received:nodes:cdee3381-7b1f-4311-b345-03ce8c11ceb4:localhost]

2021-03-31 22:30:28 | [Mutex] received everything.

2021-03-31 22:30:28 | [Mutex] isItemNotified: received:node:cdee3381-7b1f-4311-b345-03ce8c11ceb4:localhost:node-377ab577-fa4b-4986-95aa-cf9256b1a012:Node 377ab577-fa4b-4986-95aa-cf9256b1a012 :: true

createSubnodes 1.031s
2021-03-31 22:30:28 |

2021-03-31 22:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:28 | ------------------------------------

2021-03-31 22:30:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d6c02204-d4f4-4f8c-aebe-793c187aed27",
    "pubsub#title": "Node d6c02204-d4f4-4f8c-aebe-793c187aed27"
}

2021-03-31 22:30:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-31 22:30:29 | [Mutex] waiting for: [received:nodes:c97b07d1-01f6-480e-97bf-72921c18e3aa:localhost]

2021-03-31 22:30:29 | [Mutex] received everything.

2021-03-31 22:30:29 | [Mutex] isItemNotified: received:node:c97b07d1-01f6-480e-97bf-72921c18e3aa:localhost:node-d6c02204-d4f4-4f8c-aebe-793c187aed27:Node d6c02204-d4f4-4f8c-aebe-793c187aed27 :: true

deleteNodes 1.028s
2021-03-31 22:30:34 |

2021-03-31 22:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:34 | ------------------------------------

2021-03-31 22:30:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d6c02204-d4f4-4f8c-aebe-793c187aed27"
}

2021-03-31 22:30:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-31 22:30:35 | [Mutex] waiting for: [received:nodes:361e3763-4f10-4777-b11f-0cf5a79ffca6:localhost]

2021-03-31 22:30:35 | [Mutex] received everything.

2021-03-31 22:30:35 | [Mutex] isItemNotified: received:node:361e3763-4f10-4777-b11f-0cf5a79ffca6:localhost:node-d6c02204-d4f4-4f8c-aebe-793c187aed27:Node d6c02204-d4f4-4f8c-aebe-793c187aed27 :: false

deleteSubnodes 1.029s
2021-03-31 22:30:33 |

2021-03-31 22:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:33 | ------------------------------------

2021-03-31 22:30:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-377ab577-fa4b-4986-95aa-cf9256b1a012"
}

2021-03-31 22:30:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-31 22:30:34 | [Mutex] waiting for: [received:nodes:fcd651a6-dc41-4adb-bf0a-f5c4ff66ea92:localhost]

2021-03-31 22:30:34 | [Mutex] received everything.

2021-03-31 22:30:34 | [Mutex] isItemNotified: received:node:fcd651a6-dc41-4adb-bf0a-f5c4ff66ea92:localhost:node-377ab577-fa4b-4986-95aa-cf9256b1a012:Node 377ab577-fa4b-4986-95aa-cf9256b1a012 :: false

2021-03-31 22:30:34 | [Mutex] waiting for: [received:nodes:453320f7-c6d0-4b72-9999-2c9d5977f1bf:localhost]

2021-03-31 22:30:34 | [Mutex] received everything.

2021-03-31 22:30:34 | [Mutex] isItemNotified: received:node:453320f7-c6d0-4b72-9999-2c9d5977f1bf:localhost:node-377ab577-fa4b-4986-95aa-cf9256b1a012:Node 377ab577-fa4b-4986-95aa-cf9256b1a012 :: false

publishItemsToNodes 0.054s
2021-03-31 22:30:32 |

2021-03-31 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:32 | ------------------------------------

2021-03-31 22:30:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-377ab577-fa4b-4986-95aa-cf9256b1a012",
    "entry": "<test>item-4d33d546-c921-4e67-ad8c-9b2e7a083c51</test>",
    "item-id": "item-4d33d546-c921-4e67-ad8c-9b2e7a083c51"
}

2021-03-31 22:30:32 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4d33d546-c921-4e67-ad8c-9b2e7a083c51"
}

2021-03-31 22:30:32 | [Mutex] waiting for: [published:item:notifieditem-4d33d546-c921-4e67-ad8c-9b2e7a083c51:admin@test-domain.com]

2021-03-31 22:30:32 | [Mutex] received everything.

2021-03-31 22:30:32 | [Mutex] isItemNotified: published:item:notifieditem-4d33d546-c921-4e67-ad8c-9b2e7a083c51:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2021-03-31 22:30:32 |

2021-03-31 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:32 | ------------------------------------

2021-03-31 22:30:32 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-377ab577-fa4b-4986-95aa-cf9256b1a012",
    "item-id": "item-4d33d546-c921-4e67-ad8c-9b2e7a083c51"
}

2021-03-31 22:30:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4d33d546-c921-4e67-ad8c-9b2e7a083c51"
}

2021-03-31 22:30:32 | [Mutex] received everything.

2021-03-31 22:30:32 | [Mutex] isItemNotified: retracted:item:notifieditem-4d33d546-c921-4e67-ad8c-9b2e7a083c51:admin@test-domain.com :: true

retrieveItemsFromNodes 0.109s
2021-03-31 22:30:32 |

2021-03-31 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:32 | ------------------------------------

2021-03-31 22:30:32 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-377ab577-fa4b-4986-95aa-cf9256b1a012",
    "item-id": "item-4d33d546-c921-4e67-ad8c-9b2e7a083c51"
}

2021-03-31 22:30:32 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-377ab577-fa4b-4986-95aa-cf9256b1a012",
    "item-id": "item-4d33d546-c921-4e67-ad8c-9b2e7a083c51",
    "item": [
        "<item id=\"item-4d33d546-c921-4e67-ad8c-9b2e7a083c51\"><test>item-4d33d546-c921-4e67-ad8c-9b2e7a083c51</test></item>"
    ]
}

2021-03-31 22:30:32 | [Mutex] notify: [retrieved:item:item-4d33d546-c921-4e67-ad8c-9b2e7a083c51:payload-matches:true:localhost]

2021-03-31 22:30:32 | [Mutex] received everything.

2021-03-31 22:30:32 | [Mutex] isItemNotified: retrieved:item:item-4d33d546-c921-4e67-ad8c-9b2e7a083c51:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2021-03-31 22:30:32 |

2021-03-31 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:32 | ------------------------------------

2021-03-31 22:30:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-31 22:30:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-377ab577-fa4b-4986-95aa-cf9256b1a012",
        "node-d6c02204-d4f4-4f8c-aebe-793c187aed27"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-03-31 22:30:32 |

2021-03-31 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:32 | ------------------------------------

2021-03-31 22:30:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-377ab577-fa4b-4986-95aa-cf9256b1a012)"
}

2021-03-31 22:30:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-03-31 22:30:31 |

2021-03-31 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:31 | ------------------------------------

2021-03-31 22:30:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-377ab577-fa4b-4986-95aa-cf9256b1a012",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-31 22:30:31 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2021-03-31 22:30:32 |

2021-03-31 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-31 22:30:32 | ------------------------------------

2021-03-31 22:30:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-377ab577-fa4b-4986-95aa-cf9256b1a012",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-31 22:30:32 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}