Generated by TestNG with ReportNG at 21:13 PST on Thursday 21 January 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 : 9.189s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.090s
2021-01-21 21:30:32 |

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

2021-01-21 21:30:32 | ------------------------------------

2021-01-21 21:30:32 | [Mutex] waiting for: [configured:node:node-b8090ca2-932f-47f0-ab83-f8a59a41c36b:node-278fd102-8a1b-409a-ae7a-9c074f2820a9]

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

2021-01-21 21:30:32 | [Mutex] isItemNotified: configured:node:node-b8090ca2-932f-47f0-ab83-f8a59a41c36b:node-278fd102-8a1b-409a-ae7a-9c074f2820a9 :: true

2021-01-21 21:30:33 | [Mutex] waiting for: [received:nodes:62b53bfd-b7f3-4f5d-aa99-68b94721eb64:localhost]

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

2021-01-21 21:30:33 | [Mutex] isItemNotified: received:node:62b53bfd-b7f3-4f5d-aa99-68b94721eb64:localhost:node-b8090ca2-932f-47f0-ab83-f8a59a41c36b:Node b8090ca2-932f-47f0-ab83-f8a59a41c36b :: true

2021-01-21 21:30:33 | [Mutex] waiting for: [received:nodes:e89a6498-4688-466b-b381-9279f0016be6:localhost]

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

2021-01-21 21:30:33 | [Mutex] isItemNotified: received:node:e89a6498-4688-466b-b381-9279f0016be6:localhost:node-b8090ca2-932f-47f0-ab83-f8a59a41c36b:Node b8090ca2-932f-47f0-ab83-f8a59a41c36b :: false

createNodes 1.736s
2021-01-21 21:30:29 |

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

2021-01-21 21:30:29 | ------------------------------------

2021-01-21 21:30:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b8090ca2-932f-47f0-ab83-f8a59a41c36b",
    "pubsub#title": "Node b8090ca2-932f-47f0-ab83-f8a59a41c36b"
}

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

2021-01-21 21:30:31 | [Mutex] waiting for: [received:nodes:9810383c-5121-462d-bda6-c5907ea92d15:localhost]

2021-01-21 21:30:31 | [Mutex] waiting for: [received:nodes:9810383c-5121-462d-bda6-c5907ea92d15:localhost]

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

2021-01-21 21:30:31 | [Mutex] isItemNotified: received:node:9810383c-5121-462d-bda6-c5907ea92d15:localhost:node-b8090ca2-932f-47f0-ab83-f8a59a41c36b:Node b8090ca2-932f-47f0-ab83-f8a59a41c36b :: true

createSubnodes 1.025s
2021-01-21 21:30:31 |

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

2021-01-21 21:30:31 | ------------------------------------

2021-01-21 21:30:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-278fd102-8a1b-409a-ae7a-9c074f2820a9",
    "pubsub#title": "Node 278fd102-8a1b-409a-ae7a-9c074f2820a9"
}

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

2021-01-21 21:30:32 | [Mutex] waiting for: [received:nodes:8607f7c3-0983-4230-9549-39e1526e252f:localhost]

2021-01-21 21:30:32 | [Mutex] waiting for: [received:nodes:8607f7c3-0983-4230-9549-39e1526e252f:localhost]

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

2021-01-21 21:30:32 | [Mutex] isItemNotified: received:node:8607f7c3-0983-4230-9549-39e1526e252f:localhost:node-278fd102-8a1b-409a-ae7a-9c074f2820a9:Node 278fd102-8a1b-409a-ae7a-9c074f2820a9 :: true

deleteNodes 1.020s
2021-01-21 21:30:37 |

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

2021-01-21 21:30:37 | ------------------------------------

2021-01-21 21:30:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-278fd102-8a1b-409a-ae7a-9c074f2820a9"
}

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

2021-01-21 21:30:38 | [Mutex] waiting for: [received:nodes:d5779cde-3340-48f7-86a7-020f5f02db0d:localhost]

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

2021-01-21 21:30:38 | [Mutex] isItemNotified: received:node:d5779cde-3340-48f7-86a7-020f5f02db0d:localhost:node-278fd102-8a1b-409a-ae7a-9c074f2820a9:Node 278fd102-8a1b-409a-ae7a-9c074f2820a9 :: false

deleteSubnodes 1.031s
2021-01-21 21:30:36 |

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

2021-01-21 21:30:36 | ------------------------------------

2021-01-21 21:30:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b8090ca2-932f-47f0-ab83-f8a59a41c36b"
}

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

2021-01-21 21:30:37 | [Mutex] waiting for: [received:nodes:1917dabe-004c-4467-88f5-3b98c5e2b0bc:localhost]

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

2021-01-21 21:30:37 | [Mutex] isItemNotified: received:node:1917dabe-004c-4467-88f5-3b98c5e2b0bc:localhost:node-b8090ca2-932f-47f0-ab83-f8a59a41c36b:Node b8090ca2-932f-47f0-ab83-f8a59a41c36b :: false

2021-01-21 21:30:37 | [Mutex] waiting for: [received:nodes:aefb0d34-d64d-4925-8dbe-b28e0708fb77:localhost]

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

2021-01-21 21:30:37 | [Mutex] isItemNotified: received:node:aefb0d34-d64d-4925-8dbe-b28e0708fb77:localhost:node-b8090ca2-932f-47f0-ab83-f8a59a41c36b:Node b8090ca2-932f-47f0-ab83-f8a59a41c36b :: false

publishItemsToNodes 0.118s
2021-01-21 21:30:34 |

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

2021-01-21 21:30:34 | ------------------------------------

2021-01-21 21:30:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b8090ca2-932f-47f0-ab83-f8a59a41c36b",
    "entry": "<test>item-3dfe7f51-fb18-41ae-912c-39a2e478b543</test>",
    "item-id": "item-3dfe7f51-fb18-41ae-912c-39a2e478b543"
}

2021-01-21 21:30:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3dfe7f51-fb18-41ae-912c-39a2e478b543"
}

2021-01-21 21:30:34 | [Mutex] waiting for: [published:item:notifieditem-3dfe7f51-fb18-41ae-912c-39a2e478b543:admin@test-domain.com]

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

2021-01-21 21:30:34 | [Mutex] isItemNotified: published:item:notifieditem-3dfe7f51-fb18-41ae-912c-39a2e478b543:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-01-21 21:30:35 |

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

2021-01-21 21:30:35 | ------------------------------------

2021-01-21 21:30:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b8090ca2-932f-47f0-ab83-f8a59a41c36b",
    "item-id": "item-3dfe7f51-fb18-41ae-912c-39a2e478b543"
}

2021-01-21 21:30:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3dfe7f51-fb18-41ae-912c-39a2e478b543"
}

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

2021-01-21 21:30:35 | [Mutex] isItemNotified: retracted:item:notifieditem-3dfe7f51-fb18-41ae-912c-39a2e478b543:admin@test-domain.com :: true

retrieveItemsFromNodes 0.078s
2021-01-21 21:30:34 |

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

2021-01-21 21:30:34 | ------------------------------------

2021-01-21 21:30:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b8090ca2-932f-47f0-ab83-f8a59a41c36b",
    "item-id": "item-3dfe7f51-fb18-41ae-912c-39a2e478b543"
}

2021-01-21 21:30:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b8090ca2-932f-47f0-ab83-f8a59a41c36b",
    "item-id": "item-3dfe7f51-fb18-41ae-912c-39a2e478b543",
    "item": [
        "<item id=\"item-3dfe7f51-fb18-41ae-912c-39a2e478b543\"><test>item-3dfe7f51-fb18-41ae-912c-39a2e478b543</test></item>"
    ]
}

2021-01-21 21:30:35 | [Mutex] notify: [retrieved:item:item-3dfe7f51-fb18-41ae-912c-39a2e478b543:payload-matches:true:localhost]

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

2021-01-21 21:30:35 | [Mutex] isItemNotified: retrieved:item:item-3dfe7f51-fb18-41ae-912c-39a2e478b543:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-01-21 21:30:35 |

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

2021-01-21 21:30:35 | ------------------------------------

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

2021-01-21 21:30:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-278fd102-8a1b-409a-ae7a-9c074f2820a9",
        "node-b8090ca2-932f-47f0-ab83-f8a59a41c36b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-21 21:30:35 |

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

2021-01-21 21:30:35 | ------------------------------------

2021-01-21 21:30:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b8090ca2-932f-47f0-ab83-f8a59a41c36b)"
}

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

subscribeNodes 1.010s
2021-01-21 21:30:33 |

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

2021-01-21 21:30:33 | ------------------------------------

2021-01-21 21:30:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b8090ca2-932f-47f0-ab83-f8a59a41c36b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.080s
2021-01-21 21:30:35 |

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

2021-01-21 21:30:35 | ------------------------------------

2021-01-21 21:30:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b8090ca2-932f-47f0-ab83-f8a59a41c36b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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