Generated by TestNG with ReportNG at 23:14 PDT on Thursday 27 August 2020
root@18d694fe8e0a / 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.100s
2020-08-27 23:30:37 |

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

2020-08-27 23:30:37 | ------------------------------------

2020-08-27 23:30:37 | [Mutex] waiting for: [configured:node:node-fa1ce36d-b119-46e6-9423-c61ac7d7450a:node-34d52de0-d1a7-4ad7-ad65-8d558314d993]

2020-08-27 23:30:37 | [Mutex] received everything.

2020-08-27 23:30:37 | [Mutex] isItemNotified: configured:node:node-fa1ce36d-b119-46e6-9423-c61ac7d7450a:node-34d52de0-d1a7-4ad7-ad65-8d558314d993 :: true

2020-08-27 23:30:38 | [Mutex] waiting for: [received:nodes:170e3b9f-5444-49ca-a5a3-cc021c502d91:localhost]

2020-08-27 23:30:38 | [Mutex] received everything.

2020-08-27 23:30:38 | [Mutex] isItemNotified: received:node:170e3b9f-5444-49ca-a5a3-cc021c502d91:localhost:node-fa1ce36d-b119-46e6-9423-c61ac7d7450a:Node fa1ce36d-b119-46e6-9423-c61ac7d7450a :: true

2020-08-27 23:30:38 | [Mutex] waiting for: [received:nodes:6c4ec885-d1fd-445f-bf3f-40e090ef431d:localhost]

2020-08-27 23:30:38 | [Mutex] waiting for: [received:nodes:6c4ec885-d1fd-445f-bf3f-40e090ef431d:localhost]

2020-08-27 23:30:38 | [Mutex] received everything.

2020-08-27 23:30:38 | [Mutex] isItemNotified: received:node:6c4ec885-d1fd-445f-bf3f-40e090ef431d:localhost:node-fa1ce36d-b119-46e6-9423-c61ac7d7450a:Node fa1ce36d-b119-46e6-9423-c61ac7d7450a :: false

createNodes 1.696s
2020-08-27 23:30:34 |

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

2020-08-27 23:30:34 | ------------------------------------

2020-08-27 23:30:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fa1ce36d-b119-46e6-9423-c61ac7d7450a",
    "pubsub#title": "Node fa1ce36d-b119-46e6-9423-c61ac7d7450a"
}

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

2020-08-27 23:30:36 | [Mutex] waiting for: [received:nodes:67f3f964-3e71-40f8-9725-a5a2254abc07:localhost]

2020-08-27 23:30:36 | [Mutex] received everything.

2020-08-27 23:30:36 | [Mutex] isItemNotified: received:node:67f3f964-3e71-40f8-9725-a5a2254abc07:localhost:node-fa1ce36d-b119-46e6-9423-c61ac7d7450a:Node fa1ce36d-b119-46e6-9423-c61ac7d7450a :: true

createSubnodes 1.024s
2020-08-27 23:30:36 |

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

2020-08-27 23:30:36 | ------------------------------------

2020-08-27 23:30:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-34d52de0-d1a7-4ad7-ad65-8d558314d993",
    "pubsub#title": "Node 34d52de0-d1a7-4ad7-ad65-8d558314d993"
}

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

2020-08-27 23:30:37 | [Mutex] waiting for: [received:nodes:e7c385f5-84fb-4d9c-9554-b030c6da8b13:localhost]

2020-08-27 23:30:37 | [Mutex] received everything.

2020-08-27 23:30:37 | [Mutex] isItemNotified: received:node:e7c385f5-84fb-4d9c-9554-b030c6da8b13:localhost:node-34d52de0-d1a7-4ad7-ad65-8d558314d993:Node 34d52de0-d1a7-4ad7-ad65-8d558314d993 :: true

deleteNodes 1.024s
2020-08-27 23:30:42 |

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

2020-08-27 23:30:42 | ------------------------------------

2020-08-27 23:30:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-34d52de0-d1a7-4ad7-ad65-8d558314d993"
}

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

2020-08-27 23:30:43 | [Mutex] waiting for: [received:nodes:4cce53dd-dcf4-4b17-b009-200af3a3c361:localhost]

2020-08-27 23:30:43 | [Mutex] received everything.

2020-08-27 23:30:43 | [Mutex] isItemNotified: received:node:4cce53dd-dcf4-4b17-b009-200af3a3c361:localhost:node-34d52de0-d1a7-4ad7-ad65-8d558314d993:Node 34d52de0-d1a7-4ad7-ad65-8d558314d993 :: false

deleteSubnodes 1.026s
2020-08-27 23:30:41 |

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

2020-08-27 23:30:41 | ------------------------------------

2020-08-27 23:30:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fa1ce36d-b119-46e6-9423-c61ac7d7450a"
}

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

2020-08-27 23:30:42 | [Mutex] waiting for: [received:nodes:8a20c9d8-a176-41b6-b74a-02f189bcfaf8:localhost]

2020-08-27 23:30:42 | [Mutex] received everything.

2020-08-27 23:30:42 | [Mutex] isItemNotified: received:node:8a20c9d8-a176-41b6-b74a-02f189bcfaf8:localhost:node-fa1ce36d-b119-46e6-9423-c61ac7d7450a:Node fa1ce36d-b119-46e6-9423-c61ac7d7450a :: false

2020-08-27 23:30:42 | [Mutex] waiting for: [received:nodes:d9955bbe-8bfe-4d1f-bf0b-94d7b6fe8501:localhost]

2020-08-27 23:30:42 | [Mutex] received everything.

2020-08-27 23:30:42 | [Mutex] isItemNotified: received:node:d9955bbe-8bfe-4d1f-bf0b-94d7b6fe8501:localhost:node-fa1ce36d-b119-46e6-9423-c61ac7d7450a:Node fa1ce36d-b119-46e6-9423-c61ac7d7450a :: false

publishItemsToNodes 0.047s
2020-08-27 23:30:39 |

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

2020-08-27 23:30:39 | ------------------------------------

2020-08-27 23:30:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fa1ce36d-b119-46e6-9423-c61ac7d7450a",
    "entry": "<test>item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba</test>",
    "item-id": "item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba"
}

2020-08-27 23:30:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba"
}

2020-08-27 23:30:39 | [Mutex] waiting for: [published:item:notifieditem-f916070a-2cc9-4d38-9645-c7c2df5ee3ba:admin@test-domain.com]

2020-08-27 23:30:39 | [Mutex] received everything.

2020-08-27 23:30:39 | [Mutex] isItemNotified: published:item:notifieditem-f916070a-2cc9-4d38-9645-c7c2df5ee3ba:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-08-27 23:30:40 |

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

2020-08-27 23:30:40 | ------------------------------------

2020-08-27 23:30:40 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fa1ce36d-b119-46e6-9423-c61ac7d7450a",
    "item-id": "item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba"
}

2020-08-27 23:30:40 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba"
}

2020-08-27 23:30:40 | [Mutex] received everything.

2020-08-27 23:30:40 | [Mutex] isItemNotified: retracted:item:notifieditem-f916070a-2cc9-4d38-9645-c7c2df5ee3ba:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2020-08-27 23:30:39 |

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

2020-08-27 23:30:39 | ------------------------------------

2020-08-27 23:30:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fa1ce36d-b119-46e6-9423-c61ac7d7450a",
    "item-id": "item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba"
}

2020-08-27 23:30:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fa1ce36d-b119-46e6-9423-c61ac7d7450a",
    "item-id": "item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba",
    "item": [
        "<item id=\"item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba\"><test>item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba</test></item>"
    ]
}

2020-08-27 23:30:39 | [Mutex] notify: [retrieved:item:item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba:payload-matches:true:localhost]

2020-08-27 23:30:39 | [Mutex] received everything.

2020-08-27 23:30:39 | [Mutex] isItemNotified: retrieved:item:item-f916070a-2cc9-4d38-9645-c7c2df5ee3ba:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-08-27 23:30:39 |

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

2020-08-27 23:30:39 | ------------------------------------

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

2020-08-27 23:30:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-fa1ce36d-b119-46e6-9423-c61ac7d7450a",
        "node-34d52de0-d1a7-4ad7-ad65-8d558314d993",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-27 23:30:39 |

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

2020-08-27 23:30:39 | ------------------------------------

2020-08-27 23:30:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fa1ce36d-b119-46e6-9423-c61ac7d7450a)"
}

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

subscribeNodes 1.016s
2020-08-27 23:30:38 |

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

2020-08-27 23:30:38 | ------------------------------------

2020-08-27 23:30:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fa1ce36d-b119-46e6-9423-c61ac7d7450a",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2020-08-27 23:30:40 |

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

2020-08-27 23:30:40 | ------------------------------------

2020-08-27 23:30:40 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fa1ce36d-b119-46e6-9423-c61ac7d7450a",
    "jids": [
        "admin@test-domain.com"
    ]
}

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