Generated by TestNG with ReportNG at 21:27 PST on Thursday 14 January 2021
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 : 9.299s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.142s
2021-01-14 21:45:26 |

2021-01-14 21:45:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:26 | ------------------------------------

2021-01-14 21:45:26 | [Mutex] waiting for: [configured:node:node-26721b5b-167f-4ae6-a04a-e291cce6aa20:node-eabbc619-785e-48a5-b549-31344778e1d9]

2021-01-14 21:45:26 | [Mutex] received everything.

2021-01-14 21:45:26 | [Mutex] isItemNotified: configured:node:node-26721b5b-167f-4ae6-a04a-e291cce6aa20:node-eabbc619-785e-48a5-b549-31344778e1d9 :: true

2021-01-14 21:45:27 | [Mutex] waiting for: [received:nodes:b9d85391-5d9e-4df5-aa98-90546c4f82d8:localhost]

2021-01-14 21:45:27 | [Mutex] received everything.

2021-01-14 21:45:27 | [Mutex] isItemNotified: received:node:b9d85391-5d9e-4df5-aa98-90546c4f82d8:localhost:node-26721b5b-167f-4ae6-a04a-e291cce6aa20:Node 26721b5b-167f-4ae6-a04a-e291cce6aa20 :: true

2021-01-14 21:45:27 | [Mutex] waiting for: [received:nodes:534ff48d-beaa-49e7-ab85-4708ce4b135b:localhost]

2021-01-14 21:45:27 | [Mutex] received everything.

2021-01-14 21:45:27 | [Mutex] isItemNotified: received:node:534ff48d-beaa-49e7-ab85-4708ce4b135b:localhost:node-26721b5b-167f-4ae6-a04a-e291cce6aa20:Node 26721b5b-167f-4ae6-a04a-e291cce6aa20 :: false

createNodes 1.634s
2021-01-14 21:45:23 |

2021-01-14 21:45:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:23 | ------------------------------------

2021-01-14 21:45:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-26721b5b-167f-4ae6-a04a-e291cce6aa20",
    "pubsub#title": "Node 26721b5b-167f-4ae6-a04a-e291cce6aa20"
}

2021-01-14 21:45:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 21:45:25 | [Mutex] waiting for: [received:nodes:6942a9bf-40d5-4d2b-b62e-3118bc3a024a:localhost]

2021-01-14 21:45:25 | [Mutex] received everything.

2021-01-14 21:45:25 | [Mutex] isItemNotified: received:node:6942a9bf-40d5-4d2b-b62e-3118bc3a024a:localhost:node-26721b5b-167f-4ae6-a04a-e291cce6aa20:Node 26721b5b-167f-4ae6-a04a-e291cce6aa20 :: true

createSubnodes 1.037s
2021-01-14 21:45:25 |

2021-01-14 21:45:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:25 | ------------------------------------

2021-01-14 21:45:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-eabbc619-785e-48a5-b549-31344778e1d9",
    "pubsub#title": "Node eabbc619-785e-48a5-b549-31344778e1d9"
}

2021-01-14 21:45:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 21:45:26 | [Mutex] waiting for: [received:nodes:47f600da-3983-46cf-94ee-16fa09d9d200:localhost]

2021-01-14 21:45:26 | [Mutex] received everything.

2021-01-14 21:45:26 | [Mutex] isItemNotified: received:node:47f600da-3983-46cf-94ee-16fa09d9d200:localhost:node-eabbc619-785e-48a5-b549-31344778e1d9:Node eabbc619-785e-48a5-b549-31344778e1d9 :: true

deleteNodes 1.036s
2021-01-14 21:45:30 |

2021-01-14 21:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:30 | ------------------------------------

2021-01-14 21:45:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eabbc619-785e-48a5-b549-31344778e1d9"
}

2021-01-14 21:45:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 21:45:31 | [Mutex] waiting for: [received:nodes:246d6c37-0141-4ee6-9791-43476d6814b2:localhost]

2021-01-14 21:45:31 | [Mutex] received everything.

2021-01-14 21:45:31 | [Mutex] isItemNotified: received:node:246d6c37-0141-4ee6-9791-43476d6814b2:localhost:node-eabbc619-785e-48a5-b549-31344778e1d9:Node eabbc619-785e-48a5-b549-31344778e1d9 :: false

deleteSubnodes 1.035s
2021-01-14 21:45:29 |

2021-01-14 21:45:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:29 | ------------------------------------

2021-01-14 21:45:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-26721b5b-167f-4ae6-a04a-e291cce6aa20"
}

2021-01-14 21:45:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 21:45:30 | [Mutex] waiting for: [received:nodes:77632870-380f-4365-a1aa-db2c9e4c6405:localhost]

2021-01-14 21:45:30 | [Mutex] waiting for: [received:nodes:77632870-380f-4365-a1aa-db2c9e4c6405:localhost]

2021-01-14 21:45:30 | [Mutex] waiting for: [received:nodes:77632870-380f-4365-a1aa-db2c9e4c6405:localhost]

2021-01-14 21:45:30 | [Mutex] received everything.

2021-01-14 21:45:30 | [Mutex] isItemNotified: received:node:77632870-380f-4365-a1aa-db2c9e4c6405:localhost:node-26721b5b-167f-4ae6-a04a-e291cce6aa20:Node 26721b5b-167f-4ae6-a04a-e291cce6aa20 :: false

2021-01-14 21:45:30 | [Mutex] waiting for: [received:nodes:334e83ae-3e00-4784-bb24-5ac75b71f6e3:localhost]

2021-01-14 21:45:30 | [Mutex] received everything.

2021-01-14 21:45:30 | [Mutex] isItemNotified: received:node:334e83ae-3e00-4784-bb24-5ac75b71f6e3:localhost:node-26721b5b-167f-4ae6-a04a-e291cce6aa20:Node 26721b5b-167f-4ae6-a04a-e291cce6aa20 :: false

publishItemsToNodes 0.056s
2021-01-14 21:45:28 |

2021-01-14 21:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:28 | ------------------------------------

2021-01-14 21:45:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-26721b5b-167f-4ae6-a04a-e291cce6aa20",
    "entry": "<test>item-d8e5f1d2-9957-48f2-a072-8695884edaa8</test>",
    "item-id": "item-d8e5f1d2-9957-48f2-a072-8695884edaa8"
}

2021-01-14 21:45:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8e5f1d2-9957-48f2-a072-8695884edaa8"
}

2021-01-14 21:45:28 | [Mutex] waiting for: [published:item:notifieditem-d8e5f1d2-9957-48f2-a072-8695884edaa8:admin@test-domain.com]

2021-01-14 21:45:28 | [Mutex] received everything.

2021-01-14 21:45:28 | [Mutex] isItemNotified: published:item:notifieditem-d8e5f1d2-9957-48f2-a072-8695884edaa8:admin@test-domain.com :: true

retractItemsFromNodes 0.123s
2021-01-14 21:45:28 |

2021-01-14 21:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:28 | ------------------------------------

2021-01-14 21:45:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-26721b5b-167f-4ae6-a04a-e291cce6aa20",
    "item-id": "item-d8e5f1d2-9957-48f2-a072-8695884edaa8"
}

2021-01-14 21:45:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8e5f1d2-9957-48f2-a072-8695884edaa8"
}

2021-01-14 21:45:28 | [Mutex] received everything.

2021-01-14 21:45:28 | [Mutex] isItemNotified: retracted:item:notifieditem-d8e5f1d2-9957-48f2-a072-8695884edaa8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.135s
2021-01-14 21:45:28 |

2021-01-14 21:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:28 | ------------------------------------

2021-01-14 21:45:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-26721b5b-167f-4ae6-a04a-e291cce6aa20",
    "item-id": "item-d8e5f1d2-9957-48f2-a072-8695884edaa8"
}

2021-01-14 21:45:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-26721b5b-167f-4ae6-a04a-e291cce6aa20",
    "item-id": "item-d8e5f1d2-9957-48f2-a072-8695884edaa8",
    "item": [
        "<item id=\"item-d8e5f1d2-9957-48f2-a072-8695884edaa8\"><test>item-d8e5f1d2-9957-48f2-a072-8695884edaa8</test></item>"
    ]
}

2021-01-14 21:45:28 | [Mutex] notify: [retrieved:item:item-d8e5f1d2-9957-48f2-a072-8695884edaa8:payload-matches:true:localhost]

2021-01-14 21:45:28 | [Mutex] received everything.

2021-01-14 21:45:28 | [Mutex] isItemNotified: retrieved:item:item-d8e5f1d2-9957-48f2-a072-8695884edaa8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.063s
2021-01-14 21:45:28 |

2021-01-14 21:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:28 | ------------------------------------

2021-01-14 21:45:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-14 21:45:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-eabbc619-785e-48a5-b549-31344778e1d9",
        "node-26721b5b-167f-4ae6-a04a-e291cce6aa20"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-01-14 21:45:28 |

2021-01-14 21:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:28 | ------------------------------------

2021-01-14 21:45:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-26721b5b-167f-4ae6-a04a-e291cce6aa20)"
}

2021-01-14 21:45:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-01-14 21:45:27 |

2021-01-14 21:45:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:27 | ------------------------------------

2021-01-14 21:45:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-26721b5b-167f-4ae6-a04a-e291cce6aa20",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-14 21:45:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-01-14 21:45:28 |

2021-01-14 21:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:45:28 | ------------------------------------

2021-01-14 21:45:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-26721b5b-167f-4ae6-a04a-e291cce6aa20",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-14 21:45:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}