Generated by TestNG with ReportNG at 22:26 PDT on Wednesday 24 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.886s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2021-03-24 22:40:44 |

2021-03-24 22:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:44 | ------------------------------------

2021-03-24 22:40:44 | [Mutex] waiting for: [configured:node:node-3f209a1d-d73b-4616-a550-d7fdf3db98f5:node-ef6e8596-b6d0-409e-be25-10fb0c171a9c]

2021-03-24 22:40:44 | [Mutex] received everything.

2021-03-24 22:40:44 | [Mutex] isItemNotified: configured:node:node-3f209a1d-d73b-4616-a550-d7fdf3db98f5:node-ef6e8596-b6d0-409e-be25-10fb0c171a9c :: true

2021-03-24 22:40:45 | [Mutex] waiting for: [received:nodes:7e647135-5002-4120-a515-2232c2cd82d2:localhost]

2021-03-24 22:40:45 | [Mutex] waiting for: [received:nodes:7e647135-5002-4120-a515-2232c2cd82d2:localhost]

2021-03-24 22:40:45 | [Mutex] received everything.

2021-03-24 22:40:45 | [Mutex] isItemNotified: received:node:7e647135-5002-4120-a515-2232c2cd82d2:localhost:node-3f209a1d-d73b-4616-a550-d7fdf3db98f5:Node 3f209a1d-d73b-4616-a550-d7fdf3db98f5 :: true

2021-03-24 22:40:45 | [Mutex] waiting for: [received:nodes:a855b7ad-b1d7-4e6b-ad53-097d49827164:localhost]

2021-03-24 22:40:45 | [Mutex] waiting for: [received:nodes:a855b7ad-b1d7-4e6b-ad53-097d49827164:localhost]

2021-03-24 22:40:45 | [Mutex] received everything.

2021-03-24 22:40:45 | [Mutex] isItemNotified: received:node:a855b7ad-b1d7-4e6b-ad53-097d49827164:localhost:node-3f209a1d-d73b-4616-a550-d7fdf3db98f5:Node 3f209a1d-d73b-4616-a550-d7fdf3db98f5 :: false

createNodes 1.623s
2021-03-24 22:40:42 |

2021-03-24 22:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:42 | ------------------------------------

2021-03-24 22:40:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3f209a1d-d73b-4616-a550-d7fdf3db98f5",
    "pubsub#title": "Node 3f209a1d-d73b-4616-a550-d7fdf3db98f5"
}

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

2021-03-24 22:40:43 | [Mutex] waiting for: [received:nodes:891c0754-8f72-4a3e-8f3a-951975ad4850:localhost]

2021-03-24 22:40:43 | [Mutex] received everything.

2021-03-24 22:40:43 | [Mutex] isItemNotified: received:node:891c0754-8f72-4a3e-8f3a-951975ad4850:localhost:node-3f209a1d-d73b-4616-a550-d7fdf3db98f5:Node 3f209a1d-d73b-4616-a550-d7fdf3db98f5 :: true

createSubnodes 1.025s
2021-03-24 22:40:43 |

2021-03-24 22:40:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:43 | ------------------------------------

2021-03-24 22:40:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ef6e8596-b6d0-409e-be25-10fb0c171a9c",
    "pubsub#title": "Node ef6e8596-b6d0-409e-be25-10fb0c171a9c"
}

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

2021-03-24 22:40:44 | [Mutex] waiting for: [received:nodes:bf40bd4b-ef0d-4d9a-865d-b99455f22729:localhost]

2021-03-24 22:40:44 | [Mutex] received everything.

2021-03-24 22:40:44 | [Mutex] isItemNotified: received:node:bf40bd4b-ef0d-4d9a-865d-b99455f22729:localhost:node-ef6e8596-b6d0-409e-be25-10fb0c171a9c:Node ef6e8596-b6d0-409e-be25-10fb0c171a9c :: true

deleteNodes 1.028s
2021-03-24 22:40:49 |

2021-03-24 22:40:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:49 | ------------------------------------

2021-03-24 22:40:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ef6e8596-b6d0-409e-be25-10fb0c171a9c"
}

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

2021-03-24 22:40:50 | [Mutex] waiting for: [received:nodes:cc633757-6864-49e9-9c4a-e8bc0c996e4d:localhost]

2021-03-24 22:40:50 | [Mutex] received everything.

2021-03-24 22:40:50 | [Mutex] isItemNotified: received:node:cc633757-6864-49e9-9c4a-e8bc0c996e4d:localhost:node-ef6e8596-b6d0-409e-be25-10fb0c171a9c:Node ef6e8596-b6d0-409e-be25-10fb0c171a9c :: false

deleteSubnodes 1.027s
2021-03-24 22:40:48 |

2021-03-24 22:40:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:48 | ------------------------------------

2021-03-24 22:40:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3f209a1d-d73b-4616-a550-d7fdf3db98f5"
}

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

2021-03-24 22:40:49 | [Mutex] waiting for: [received:nodes:8263f0b8-5be5-4459-b1ae-7ffdee0e7471:localhost]

2021-03-24 22:40:49 | [Mutex] received everything.

2021-03-24 22:40:49 | [Mutex] isItemNotified: received:node:8263f0b8-5be5-4459-b1ae-7ffdee0e7471:localhost:node-3f209a1d-d73b-4616-a550-d7fdf3db98f5:Node 3f209a1d-d73b-4616-a550-d7fdf3db98f5 :: false

2021-03-24 22:40:49 | [Mutex] waiting for: [received:nodes:7ca94aa7-c899-45b1-927f-9792a1a8cd45:localhost]

2021-03-24 22:40:49 | [Mutex] received everything.

2021-03-24 22:40:49 | [Mutex] isItemNotified: received:node:7ca94aa7-c899-45b1-927f-9792a1a8cd45:localhost:node-3f209a1d-d73b-4616-a550-d7fdf3db98f5:Node 3f209a1d-d73b-4616-a550-d7fdf3db98f5 :: false

publishItemsToNodes 0.047s
2021-03-24 22:40:46 |

2021-03-24 22:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:46 | ------------------------------------

2021-03-24 22:40:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3f209a1d-d73b-4616-a550-d7fdf3db98f5",
    "entry": "<test>item-080af4bd-cab1-415a-be98-f0aba00bc8e7</test>",
    "item-id": "item-080af4bd-cab1-415a-be98-f0aba00bc8e7"
}

2021-03-24 22:40:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-080af4bd-cab1-415a-be98-f0aba00bc8e7"
}

2021-03-24 22:40:46 | [Mutex] waiting for: [published:item:notifieditem-080af4bd-cab1-415a-be98-f0aba00bc8e7:admin@test-domain.com]

2021-03-24 22:40:46 | [Mutex] received everything.

2021-03-24 22:40:46 | [Mutex] isItemNotified: published:item:notifieditem-080af4bd-cab1-415a-be98-f0aba00bc8e7:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2021-03-24 22:40:47 |

2021-03-24 22:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:47 | ------------------------------------

2021-03-24 22:40:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3f209a1d-d73b-4616-a550-d7fdf3db98f5",
    "item-id": "item-080af4bd-cab1-415a-be98-f0aba00bc8e7"
}

2021-03-24 22:40:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-080af4bd-cab1-415a-be98-f0aba00bc8e7"
}

2021-03-24 22:40:47 | [Mutex] received everything.

2021-03-24 22:40:47 | [Mutex] isItemNotified: retracted:item:notifieditem-080af4bd-cab1-415a-be98-f0aba00bc8e7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2021-03-24 22:40:46 |

2021-03-24 22:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:46 | ------------------------------------

2021-03-24 22:40:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3f209a1d-d73b-4616-a550-d7fdf3db98f5",
    "item-id": "item-080af4bd-cab1-415a-be98-f0aba00bc8e7"
}

2021-03-24 22:40:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3f209a1d-d73b-4616-a550-d7fdf3db98f5",
    "item-id": "item-080af4bd-cab1-415a-be98-f0aba00bc8e7",
    "item": [
        "<item id=\"item-080af4bd-cab1-415a-be98-f0aba00bc8e7\"><test>item-080af4bd-cab1-415a-be98-f0aba00bc8e7</test></item>"
    ]
}

2021-03-24 22:40:47 | [Mutex] notify: [retrieved:item:item-080af4bd-cab1-415a-be98-f0aba00bc8e7:payload-matches:true:localhost]

2021-03-24 22:40:47 | [Mutex] received everything.

2021-03-24 22:40:47 | [Mutex] isItemNotified: retrieved:item:item-080af4bd-cab1-415a-be98-f0aba00bc8e7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-03-24 22:40:47 |

2021-03-24 22:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:47 | ------------------------------------

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

2021-03-24 22:40:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ef6e8596-b6d0-409e-be25-10fb0c171a9c",
        "node-3f209a1d-d73b-4616-a550-d7fdf3db98f5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-03-24 22:40:47 |

2021-03-24 22:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:47 | ------------------------------------

2021-03-24 22:40:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3f209a1d-d73b-4616-a550-d7fdf3db98f5)"
}

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

subscribeNodes 1.012s
2021-03-24 22:40:45 |

2021-03-24 22:40:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:45 | ------------------------------------

2021-03-24 22:40:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3f209a1d-d73b-4616-a550-d7fdf3db98f5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.087s
2021-03-24 22:40:47 |

2021-03-24 22:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:40:47 | ------------------------------------

2021-03-24 22:40:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3f209a1d-d73b-4616-a550-d7fdf3db98f5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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