Generated by TestNG with ReportNG at 22:26 PDT on Friday 04 June 2021
root@f29ef40080b5 / 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.929s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2021-06-04 22:41:49 |

2021-06-04 22:41:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:49 | ------------------------------------

2021-06-04 22:41:49 | [Mutex] waiting for: [configured:node:node-08a5fa0b-c360-4f07-a78f-f940e26616bf:node-f390abcd-deec-4705-862e-0711448fa916]

2021-06-04 22:41:49 | [Mutex] received everything.

2021-06-04 22:41:49 | [Mutex] isItemNotified: configured:node:node-08a5fa0b-c360-4f07-a78f-f940e26616bf:node-f390abcd-deec-4705-862e-0711448fa916 :: true

2021-06-04 22:41:50 | [Mutex] waiting for: [received:nodes:00b78642-8d88-477a-8531-ed1afd814437:localhost]

2021-06-04 22:41:50 | [Mutex] waiting for: [received:nodes:00b78642-8d88-477a-8531-ed1afd814437:localhost]

2021-06-04 22:41:50 | [Mutex] received everything.

2021-06-04 22:41:50 | [Mutex] isItemNotified: received:node:00b78642-8d88-477a-8531-ed1afd814437:localhost:node-08a5fa0b-c360-4f07-a78f-f940e26616bf:Node 08a5fa0b-c360-4f07-a78f-f940e26616bf :: true

2021-06-04 22:41:50 | [Mutex] waiting for: [received:nodes:d6c976d6-aac4-484c-a90c-4ca134f32a37:localhost]

2021-06-04 22:41:50 | [Mutex] received everything.

2021-06-04 22:41:50 | [Mutex] isItemNotified: received:node:d6c976d6-aac4-484c-a90c-4ca134f32a37:localhost:node-08a5fa0b-c360-4f07-a78f-f940e26616bf:Node 08a5fa0b-c360-4f07-a78f-f940e26616bf :: false

createNodes 1.472s
2021-06-04 22:41:46 |

2021-06-04 22:41:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:46 | ------------------------------------

2021-06-04 22:41:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-08a5fa0b-c360-4f07-a78f-f940e26616bf",
    "pubsub#title": "Node 08a5fa0b-c360-4f07-a78f-f940e26616bf"
}

2021-06-04 22:41:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-04 22:41:48 | [Mutex] waiting for: [received:nodes:2cffe9e2-adae-4e02-b0cc-2d3bd4a11644:localhost]

2021-06-04 22:41:48 | [Mutex] received everything.

2021-06-04 22:41:48 | [Mutex] isItemNotified: received:node:2cffe9e2-adae-4e02-b0cc-2d3bd4a11644:localhost:node-08a5fa0b-c360-4f07-a78f-f940e26616bf:Node 08a5fa0b-c360-4f07-a78f-f940e26616bf :: true

createSubnodes 1.026s
2021-06-04 22:41:48 |

2021-06-04 22:41:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:48 | ------------------------------------

2021-06-04 22:41:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f390abcd-deec-4705-862e-0711448fa916",
    "pubsub#title": "Node f390abcd-deec-4705-862e-0711448fa916"
}

2021-06-04 22:41:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-04 22:41:49 | [Mutex] waiting for: [received:nodes:316401bc-d58f-45d7-83da-bb7a5a6f8219:localhost]

2021-06-04 22:41:49 | [Mutex] received everything.

2021-06-04 22:41:49 | [Mutex] isItemNotified: received:node:316401bc-d58f-45d7-83da-bb7a5a6f8219:localhost:node-f390abcd-deec-4705-862e-0711448fa916:Node f390abcd-deec-4705-862e-0711448fa916 :: true

deleteNodes 1.019s
2021-06-04 22:41:54 |

2021-06-04 22:41:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:54 | ------------------------------------

2021-06-04 22:41:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f390abcd-deec-4705-862e-0711448fa916"
}

2021-06-04 22:41:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-04 22:41:55 | [Mutex] waiting for: [received:nodes:ad12711f-0c25-4b0d-bc73-80b3545b4650:localhost]

2021-06-04 22:41:55 | [Mutex] received everything.

2021-06-04 22:41:55 | [Mutex] isItemNotified: received:node:ad12711f-0c25-4b0d-bc73-80b3545b4650:localhost:node-f390abcd-deec-4705-862e-0711448fa916:Node f390abcd-deec-4705-862e-0711448fa916 :: false

deleteSubnodes 1.033s
2021-06-04 22:41:53 |

2021-06-04 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:53 | ------------------------------------

2021-06-04 22:41:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-08a5fa0b-c360-4f07-a78f-f940e26616bf"
}

2021-06-04 22:41:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-04 22:41:54 | [Mutex] waiting for: [received:nodes:3e820428-d7dc-47f4-9f7d-2fb5cdd646a5:localhost]

2021-06-04 22:41:54 | [Mutex] received everything.

2021-06-04 22:41:54 | [Mutex] isItemNotified: received:node:3e820428-d7dc-47f4-9f7d-2fb5cdd646a5:localhost:node-08a5fa0b-c360-4f07-a78f-f940e26616bf:Node 08a5fa0b-c360-4f07-a78f-f940e26616bf :: false

2021-06-04 22:41:54 | [Mutex] waiting for: [received:nodes:bb5b62b5-530f-4ae5-94a1-181a9c1337e2:localhost]

2021-06-04 22:41:54 | [Mutex] received everything.

2021-06-04 22:41:54 | [Mutex] isItemNotified: received:node:bb5b62b5-530f-4ae5-94a1-181a9c1337e2:localhost:node-08a5fa0b-c360-4f07-a78f-f940e26616bf:Node 08a5fa0b-c360-4f07-a78f-f940e26616bf :: false

publishItemsToNodes 0.051s
2021-06-04 22:41:51 |

2021-06-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:51 | ------------------------------------

2021-06-04 22:41:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-08a5fa0b-c360-4f07-a78f-f940e26616bf",
    "entry": "<test>item-075d13f8-9c8f-423e-a051-9baada59a36d</test>",
    "item-id": "item-075d13f8-9c8f-423e-a051-9baada59a36d"
}

2021-06-04 22:41:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-075d13f8-9c8f-423e-a051-9baada59a36d"
}

2021-06-04 22:41:51 | [Mutex] waiting for: [published:item:notifieditem-075d13f8-9c8f-423e-a051-9baada59a36d:admin@test-domain.com]

2021-06-04 22:41:51 | [Mutex] received everything.

2021-06-04 22:41:51 | [Mutex] isItemNotified: published:item:notifieditem-075d13f8-9c8f-423e-a051-9baada59a36d:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2021-06-04 22:41:51 |

2021-06-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:51 | ------------------------------------

2021-06-04 22:41:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-08a5fa0b-c360-4f07-a78f-f940e26616bf",
    "item-id": "item-075d13f8-9c8f-423e-a051-9baada59a36d"
}

2021-06-04 22:41:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-075d13f8-9c8f-423e-a051-9baada59a36d"
}

2021-06-04 22:41:51 | [Mutex] received everything.

2021-06-04 22:41:51 | [Mutex] isItemNotified: retracted:item:notifieditem-075d13f8-9c8f-423e-a051-9baada59a36d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.166s
2021-06-04 22:41:51 |

2021-06-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:51 | ------------------------------------

2021-06-04 22:41:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-08a5fa0b-c360-4f07-a78f-f940e26616bf",
    "item-id": "item-075d13f8-9c8f-423e-a051-9baada59a36d"
}

2021-06-04 22:41:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-08a5fa0b-c360-4f07-a78f-f940e26616bf",
    "item-id": "item-075d13f8-9c8f-423e-a051-9baada59a36d",
    "item": [
        "<item id=\"item-075d13f8-9c8f-423e-a051-9baada59a36d\"><test>item-075d13f8-9c8f-423e-a051-9baada59a36d</test></item>"
    ]
}

2021-06-04 22:41:51 | [Mutex] notify: [retrieved:item:item-075d13f8-9c8f-423e-a051-9baada59a36d:payload-matches:true:localhost]

2021-06-04 22:41:51 | [Mutex] received everything.

2021-06-04 22:41:51 | [Mutex] isItemNotified: retrieved:item:item-075d13f8-9c8f-423e-a051-9baada59a36d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-06-04 22:41:51 |

2021-06-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:51 | ------------------------------------

2021-06-04 22:41:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-04 22:41:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-08a5fa0b-c360-4f07-a78f-f940e26616bf",
        "node-f390abcd-deec-4705-862e-0711448fa916"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-06-04 22:41:51 |

2021-06-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:51 | ------------------------------------

2021-06-04 22:41:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-08a5fa0b-c360-4f07-a78f-f940e26616bf)"
}

2021-06-04 22:41:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-06-04 22:41:50 |

2021-06-04 22:41:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:50 | ------------------------------------

2021-06-04 22:41:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-08a5fa0b-c360-4f07-a78f-f940e26616bf",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-04 22:41:50 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.086s
2021-06-04 22:41:51 |

2021-06-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:41:51 | ------------------------------------

2021-06-04 22:41:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-08a5fa0b-c360-4f07-a78f-f940e26616bf",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-04 22:41:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}