Generated by TestNG with ReportNG at 22:34 PDT on Monday 05 October 2020
root@43fec6d4badf / 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.958s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2020-10-05 22:49:18 |

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

2020-10-05 22:49:18 | ------------------------------------

2020-10-05 22:49:19 | [Mutex] waiting for: [configured:node:node-60c57426-8e7d-48d7-992e-d87f428a044e:node-1ce0a78b-d26b-4ebb-9daa-1630c074c321]

2020-10-05 22:49:19 | [Mutex] received everything.

2020-10-05 22:49:19 | [Mutex] isItemNotified: configured:node:node-60c57426-8e7d-48d7-992e-d87f428a044e:node-1ce0a78b-d26b-4ebb-9daa-1630c074c321 :: true

2020-10-05 22:49:20 | [Mutex] waiting for: [received:nodes:a9d43ab2-81cc-4123-8e15-d1a1d9a4f39e:localhost]

2020-10-05 22:49:20 | [Mutex] received everything.

2020-10-05 22:49:20 | [Mutex] isItemNotified: received:node:a9d43ab2-81cc-4123-8e15-d1a1d9a4f39e:localhost:node-60c57426-8e7d-48d7-992e-d87f428a044e:Node 60c57426-8e7d-48d7-992e-d87f428a044e :: true

2020-10-05 22:49:20 | [Mutex] waiting for: [received:nodes:6c92ce17-80b0-4634-972f-8f4086eb4867:localhost]

2020-10-05 22:49:20 | [Mutex] received everything.

2020-10-05 22:49:20 | [Mutex] isItemNotified: received:node:6c92ce17-80b0-4634-972f-8f4086eb4867:localhost:node-60c57426-8e7d-48d7-992e-d87f428a044e:Node 60c57426-8e7d-48d7-992e-d87f428a044e :: false

createNodes 1.629s
2020-10-05 22:49:16 |

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

2020-10-05 22:49:16 | ------------------------------------

2020-10-05 22:49:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-60c57426-8e7d-48d7-992e-d87f428a044e",
    "pubsub#title": "Node 60c57426-8e7d-48d7-992e-d87f428a044e"
}

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

2020-10-05 22:49:17 | [Mutex] waiting for: [received:nodes:95e14c84-dcce-48a5-a27e-e0d90ba7520d:localhost]

2020-10-05 22:49:17 | [Mutex] received everything.

2020-10-05 22:49:17 | [Mutex] isItemNotified: received:node:95e14c84-dcce-48a5-a27e-e0d90ba7520d:localhost:node-60c57426-8e7d-48d7-992e-d87f428a044e:Node 60c57426-8e7d-48d7-992e-d87f428a044e :: true

createSubnodes 1.024s
2020-10-05 22:49:17 |

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

2020-10-05 22:49:17 | ------------------------------------

2020-10-05 22:49:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1ce0a78b-d26b-4ebb-9daa-1630c074c321",
    "pubsub#title": "Node 1ce0a78b-d26b-4ebb-9daa-1630c074c321"
}

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

2020-10-05 22:49:18 | [Mutex] waiting for: [received:nodes:e493042b-9b0c-434e-9f1a-56338dc60c75:localhost]

2020-10-05 22:49:18 | [Mutex] waiting for: [received:nodes:e493042b-9b0c-434e-9f1a-56338dc60c75:localhost]

2020-10-05 22:49:18 | [Mutex] received everything.

2020-10-05 22:49:18 | [Mutex] isItemNotified: received:node:e493042b-9b0c-434e-9f1a-56338dc60c75:localhost:node-1ce0a78b-d26b-4ebb-9daa-1630c074c321:Node 1ce0a78b-d26b-4ebb-9daa-1630c074c321 :: true

deleteNodes 1.024s
2020-10-05 22:49:23 |

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

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

2020-10-05 22:49:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1ce0a78b-d26b-4ebb-9daa-1630c074c321"
}

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

2020-10-05 22:49:24 | [Mutex] waiting for: [received:nodes:409ccc7b-42c0-4adb-b976-1fb49146a072:localhost]

2020-10-05 22:49:24 | [Mutex] received everything.

2020-10-05 22:49:24 | [Mutex] isItemNotified: received:node:409ccc7b-42c0-4adb-b976-1fb49146a072:localhost:node-1ce0a78b-d26b-4ebb-9daa-1630c074c321:Node 1ce0a78b-d26b-4ebb-9daa-1630c074c321 :: false

deleteSubnodes 1.031s
2020-10-05 22:49:22 |

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

2020-10-05 22:49:22 | ------------------------------------

2020-10-05 22:49:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-60c57426-8e7d-48d7-992e-d87f428a044e"
}

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

2020-10-05 22:49:23 | [Mutex] waiting for: [received:nodes:b7312e6f-ba36-4597-b9f5-65246d35abcd:localhost]

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

2020-10-05 22:49:23 | [Mutex] isItemNotified: received:node:b7312e6f-ba36-4597-b9f5-65246d35abcd:localhost:node-60c57426-8e7d-48d7-992e-d87f428a044e:Node 60c57426-8e7d-48d7-992e-d87f428a044e :: false

2020-10-05 22:49:23 | [Mutex] waiting for: [received:nodes:b4dd45f8-423c-4720-a85b-6e4c0b9ac2ee:localhost]

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

2020-10-05 22:49:23 | [Mutex] isItemNotified: received:node:b4dd45f8-423c-4720-a85b-6e4c0b9ac2ee:localhost:node-60c57426-8e7d-48d7-992e-d87f428a044e:Node 60c57426-8e7d-48d7-992e-d87f428a044e :: false

publishItemsToNodes 0.051s
2020-10-05 22:49:21 |

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

2020-10-05 22:49:21 | ------------------------------------

2020-10-05 22:49:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-60c57426-8e7d-48d7-992e-d87f428a044e",
    "entry": "<test>item-09ebffc3-8d66-4723-83aa-5ead6b80137e</test>",
    "item-id": "item-09ebffc3-8d66-4723-83aa-5ead6b80137e"
}

2020-10-05 22:49:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-09ebffc3-8d66-4723-83aa-5ead6b80137e"
}

2020-10-05 22:49:21 | [Mutex] waiting for: [published:item:notifieditem-09ebffc3-8d66-4723-83aa-5ead6b80137e:admin@test-domain.com]

2020-10-05 22:49:21 | [Mutex] received everything.

2020-10-05 22:49:21 | [Mutex] isItemNotified: published:item:notifieditem-09ebffc3-8d66-4723-83aa-5ead6b80137e:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2020-10-05 22:49:21 |

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

2020-10-05 22:49:21 | ------------------------------------

2020-10-05 22:49:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-60c57426-8e7d-48d7-992e-d87f428a044e",
    "item-id": "item-09ebffc3-8d66-4723-83aa-5ead6b80137e"
}

2020-10-05 22:49:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-09ebffc3-8d66-4723-83aa-5ead6b80137e"
}

2020-10-05 22:49:21 | [Mutex] received everything.

2020-10-05 22:49:21 | [Mutex] isItemNotified: retracted:item:notifieditem-09ebffc3-8d66-4723-83aa-5ead6b80137e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.034s
2020-10-05 22:49:21 |

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

2020-10-05 22:49:21 | ------------------------------------

2020-10-05 22:49:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-60c57426-8e7d-48d7-992e-d87f428a044e",
    "item-id": "item-09ebffc3-8d66-4723-83aa-5ead6b80137e"
}

2020-10-05 22:49:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-60c57426-8e7d-48d7-992e-d87f428a044e",
    "item-id": "item-09ebffc3-8d66-4723-83aa-5ead6b80137e",
    "item": [
        "<item id=\"item-09ebffc3-8d66-4723-83aa-5ead6b80137e\"><test>item-09ebffc3-8d66-4723-83aa-5ead6b80137e</test></item>"
    ]
}

2020-10-05 22:49:21 | [Mutex] notify: [retrieved:item:item-09ebffc3-8d66-4723-83aa-5ead6b80137e:payload-matches:true:localhost]

2020-10-05 22:49:21 | [Mutex] received everything.

2020-10-05 22:49:21 | [Mutex] isItemNotified: retrieved:item:item-09ebffc3-8d66-4723-83aa-5ead6b80137e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-10-05 22:49:21 |

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

2020-10-05 22:49:21 | ------------------------------------

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

2020-10-05 22:49:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-60c57426-8e7d-48d7-992e-d87f428a044e",
        "node-1ce0a78b-d26b-4ebb-9daa-1630c074c321"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-10-05 22:49:21 |

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

2020-10-05 22:49:21 | ------------------------------------

2020-10-05 22:49:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-60c57426-8e7d-48d7-992e-d87f428a044e)"
}

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

subscribeNodes 1.011s
2020-10-05 22:49:20 |

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

2020-10-05 22:49:20 | ------------------------------------

2020-10-05 22:49:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-60c57426-8e7d-48d7-992e-d87f428a044e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2020-10-05 22:49:21 |

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

2020-10-05 22:49:21 | ------------------------------------

2020-10-05 22:49:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-60c57426-8e7d-48d7-992e-d87f428a044e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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