Generated by TestNG with ReportNG at 22:43 PDT on Sunday 04 October 2020
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.928s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2020-10-04 22:58:52 |

2020-10-04 22:58:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:52 | ------------------------------------

2020-10-04 22:58:52 | [Mutex] waiting for: [configured:node:node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69:node-cf11fa7d-ed7e-4d4a-8171-4c278e0168f4]

2020-10-04 22:58:52 | [Mutex] received everything.

2020-10-04 22:58:52 | [Mutex] isItemNotified: configured:node:node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69:node-cf11fa7d-ed7e-4d4a-8171-4c278e0168f4 :: true

2020-10-04 22:58:53 | [Mutex] waiting for: [received:nodes:35ad2878-614e-411d-8f29-71c51f41c86c:localhost]

2020-10-04 22:58:53 | [Mutex] received everything.

2020-10-04 22:58:53 | [Mutex] isItemNotified: received:node:35ad2878-614e-411d-8f29-71c51f41c86c:localhost:node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69:Node 13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69 :: true

2020-10-04 22:58:53 | [Mutex] waiting for: [received:nodes:8f373184-8913-4422-baa6-2088d0007dc7:localhost]

2020-10-04 22:58:53 | [Mutex] received everything.

2020-10-04 22:58:53 | [Mutex] isItemNotified: received:node:8f373184-8913-4422-baa6-2088d0007dc7:localhost:node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69:Node 13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69 :: false

createNodes 1.595s
2020-10-04 22:58:49 |

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

2020-10-04 22:58:49 | ------------------------------------

2020-10-04 22:58:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69",
    "pubsub#title": "Node 13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69"
}

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

2020-10-04 22:58:51 | [Mutex] waiting for: [received:nodes:b57e0f79-d8ca-40a7-9565-f8f45d939230:localhost]

2020-10-04 22:58:51 | [Mutex] waiting for: [received:nodes:b57e0f79-d8ca-40a7-9565-f8f45d939230:localhost]

2020-10-04 22:58:51 | [Mutex] received everything.

2020-10-04 22:58:51 | [Mutex] isItemNotified: received:node:b57e0f79-d8ca-40a7-9565-f8f45d939230:localhost:node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69:Node 13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69 :: true

createSubnodes 1.031s
2020-10-04 22:58:51 |

2020-10-04 22:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:51 | ------------------------------------

2020-10-04 22:58:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cf11fa7d-ed7e-4d4a-8171-4c278e0168f4",
    "pubsub#title": "Node cf11fa7d-ed7e-4d4a-8171-4c278e0168f4"
}

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

2020-10-04 22:58:52 | [Mutex] waiting for: [received:nodes:df1fe426-2d6b-499a-b34b-614c9450b06d:localhost]

2020-10-04 22:58:52 | [Mutex] received everything.

2020-10-04 22:58:52 | [Mutex] isItemNotified: received:node:df1fe426-2d6b-499a-b34b-614c9450b06d:localhost:node-cf11fa7d-ed7e-4d4a-8171-4c278e0168f4:Node cf11fa7d-ed7e-4d4a-8171-4c278e0168f4 :: true

deleteNodes 1.027s
2020-10-04 22:58:57 |

2020-10-04 22:58:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:57 | ------------------------------------

2020-10-04 22:58:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cf11fa7d-ed7e-4d4a-8171-4c278e0168f4"
}

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

2020-10-04 22:58:58 | [Mutex] waiting for: [received:nodes:bf215411-33fb-4fb3-8af0-3986dfb0c7dc:localhost]

2020-10-04 22:58:58 | [Mutex] received everything.

2020-10-04 22:58:58 | [Mutex] isItemNotified: received:node:bf215411-33fb-4fb3-8af0-3986dfb0c7dc:localhost:node-cf11fa7d-ed7e-4d4a-8171-4c278e0168f4:Node cf11fa7d-ed7e-4d4a-8171-4c278e0168f4 :: false

deleteSubnodes 1.027s
2020-10-04 22:58:56 |

2020-10-04 22:58:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:56 | ------------------------------------

2020-10-04 22:58:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69"
}

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

2020-10-04 22:58:57 | [Mutex] waiting for: [received:nodes:0dc1aa58-da66-4b0f-a3c6-a5b1bcc5d352:localhost]

2020-10-04 22:58:57 | [Mutex] received everything.

2020-10-04 22:58:57 | [Mutex] isItemNotified: received:node:0dc1aa58-da66-4b0f-a3c6-a5b1bcc5d352:localhost:node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69:Node 13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69 :: false

2020-10-04 22:58:57 | [Mutex] waiting for: [received:nodes:3a3c7285-377f-43f6-9cf4-b026f2eed61b:localhost]

2020-10-04 22:58:57 | [Mutex] received everything.

2020-10-04 22:58:57 | [Mutex] isItemNotified: received:node:3a3c7285-377f-43f6-9cf4-b026f2eed61b:localhost:node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69:Node 13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69 :: false

publishItemsToNodes 0.073s
2020-10-04 22:58:54 |

2020-10-04 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:54 | ------------------------------------

2020-10-04 22:58:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69",
    "entry": "<test>item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951</test>",
    "item-id": "item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951"
}

2020-10-04 22:58:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951"
}

2020-10-04 22:58:54 | [Mutex] waiting for: [published:item:notifieditem-2e239d53-5c42-4e71-9cd1-0a95e6ad4951:admin@test-domain.com]

2020-10-04 22:58:54 | [Mutex] received everything.

2020-10-04 22:58:54 | [Mutex] isItemNotified: published:item:notifieditem-2e239d53-5c42-4e71-9cd1-0a95e6ad4951:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2020-10-04 22:58:54 |

2020-10-04 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:54 | ------------------------------------

2020-10-04 22:58:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69",
    "item-id": "item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951"
}

2020-10-04 22:58:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951"
}

2020-10-04 22:58:54 | [Mutex] received everything.

2020-10-04 22:58:54 | [Mutex] isItemNotified: retracted:item:notifieditem-2e239d53-5c42-4e71-9cd1-0a95e6ad4951:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2020-10-04 22:58:54 |

2020-10-04 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:54 | ------------------------------------

2020-10-04 22:58:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69",
    "item-id": "item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951"
}

2020-10-04 22:58:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69",
    "item-id": "item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951",
    "item": [
        "<item id=\"item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951\"><test>item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951</test></item>"
    ]
}

2020-10-04 22:58:54 | [Mutex] notify: [retrieved:item:item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951:payload-matches:true:localhost]

2020-10-04 22:58:54 | [Mutex] received everything.

2020-10-04 22:58:54 | [Mutex] isItemNotified: retrieved:item:item-2e239d53-5c42-4e71-9cd1-0a95e6ad4951:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2020-10-04 22:58:54 |

2020-10-04 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:54 | ------------------------------------

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

2020-10-04 22:58:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69",
        "node-cf11fa7d-ed7e-4d4a-8171-4c278e0168f4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-04 22:58:54 |

2020-10-04 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:54 | ------------------------------------

2020-10-04 22:58:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69)"
}

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

subscribeNodes 1.011s
2020-10-04 22:58:53 |

2020-10-04 22:58:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:53 | ------------------------------------

2020-10-04 22:58:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-10-04 22:58:54 |

2020-10-04 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-04 22:58:54 | ------------------------------------

2020-10-04 22:58:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-13bcebc5-ac3e-4ea3-94ad-4e83a67b3e69",
    "jids": [
        "admin@test-domain.com"
    ]
}

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