Generated by TestNG with ReportNG at 22:42 PDT on Monday 03 May 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.963s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2021-05-03 22:57:53 |

2021-05-03 22:57:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:53 | ------------------------------------

2021-05-03 22:57:53 | [Mutex] waiting for: [configured:node:node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b:node-6fb36d8c-acd6-41d7-b876-49d5d048fa00]

2021-05-03 22:57:54 | [Mutex] received everything.

2021-05-03 22:57:54 | [Mutex] isItemNotified: configured:node:node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b:node-6fb36d8c-acd6-41d7-b876-49d5d048fa00 :: true

2021-05-03 22:57:55 | [Mutex] waiting for: [received:nodes:5f9f3cb4-b175-4628-bef8-13ed93fc21b3:localhost]

2021-05-03 22:57:55 | [Mutex] waiting for: [received:nodes:5f9f3cb4-b175-4628-bef8-13ed93fc21b3:localhost]

2021-05-03 22:57:55 | [Mutex] received everything.

2021-05-03 22:57:55 | [Mutex] isItemNotified: received:node:5f9f3cb4-b175-4628-bef8-13ed93fc21b3:localhost:node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b:Node 0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b :: true

2021-05-03 22:57:55 | [Mutex] waiting for: [received:nodes:7cdfa3c0-ae7f-4981-9a63-b2a2cc736391:localhost]

2021-05-03 22:57:55 | [Mutex] received everything.

2021-05-03 22:57:55 | [Mutex] isItemNotified: received:node:7cdfa3c0-ae7f-4981-9a63-b2a2cc736391:localhost:node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b:Node 0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b :: false

createNodes 1.513s
2021-05-03 22:57:51 |

2021-05-03 22:57:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:51 | ------------------------------------

2021-05-03 22:57:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b",
    "pubsub#title": "Node 0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b"
}

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

2021-05-03 22:57:52 | [Mutex] waiting for: [received:nodes:e9bacee1-e885-411f-964a-67efcf54237a:localhost]

2021-05-03 22:57:52 | [Mutex] waiting for: [received:nodes:e9bacee1-e885-411f-964a-67efcf54237a:localhost]

2021-05-03 22:57:52 | [Mutex] received everything.

2021-05-03 22:57:52 | [Mutex] isItemNotified: received:node:e9bacee1-e885-411f-964a-67efcf54237a:localhost:node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b:Node 0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b :: true

createSubnodes 1.032s
2021-05-03 22:57:52 |

2021-05-03 22:57:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:52 | ------------------------------------

2021-05-03 22:57:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6fb36d8c-acd6-41d7-b876-49d5d048fa00",
    "pubsub#title": "Node 6fb36d8c-acd6-41d7-b876-49d5d048fa00"
}

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

2021-05-03 22:57:53 | [Mutex] waiting for: [received:nodes:0cb9248a-ada1-4554-8e49-3132dc0819a8:localhost]

2021-05-03 22:57:53 | [Mutex] received everything.

2021-05-03 22:57:53 | [Mutex] isItemNotified: received:node:0cb9248a-ada1-4554-8e49-3132dc0819a8:localhost:node-6fb36d8c-acd6-41d7-b876-49d5d048fa00:Node 6fb36d8c-acd6-41d7-b876-49d5d048fa00 :: true

deleteNodes 1.031s
2021-05-03 22:57:58 |

2021-05-03 22:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:58 | ------------------------------------

2021-05-03 22:57:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6fb36d8c-acd6-41d7-b876-49d5d048fa00"
}

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

2021-05-03 22:57:59 | [Mutex] waiting for: [received:nodes:6eabca00-e1ef-463e-aad2-91a90a639d47:localhost]

2021-05-03 22:57:59 | [Mutex] received everything.

2021-05-03 22:57:59 | [Mutex] isItemNotified: received:node:6eabca00-e1ef-463e-aad2-91a90a639d47:localhost:node-6fb36d8c-acd6-41d7-b876-49d5d048fa00:Node 6fb36d8c-acd6-41d7-b876-49d5d048fa00 :: false

deleteSubnodes 1.036s
2021-05-03 22:57:57 |

2021-05-03 22:57:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:57 | ------------------------------------

2021-05-03 22:57:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b"
}

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

2021-05-03 22:57:58 | [Mutex] waiting for: [received:nodes:60d42f2a-cee4-4513-91f2-48e076176bd1:localhost]

2021-05-03 22:57:58 | [Mutex] received everything.

2021-05-03 22:57:58 | [Mutex] isItemNotified: received:node:60d42f2a-cee4-4513-91f2-48e076176bd1:localhost:node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b:Node 0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b :: false

2021-05-03 22:57:58 | [Mutex] waiting for: [received:nodes:6262e09b-aa6f-414f-8711-a69e02191879:localhost]

2021-05-03 22:57:58 | [Mutex] received everything.

2021-05-03 22:57:58 | [Mutex] isItemNotified: received:node:6262e09b-aa6f-414f-8711-a69e02191879:localhost:node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b:Node 0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b :: false

publishItemsToNodes 0.060s
2021-05-03 22:57:56 |

2021-05-03 22:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:56 | ------------------------------------

2021-05-03 22:57:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b",
    "entry": "<test>item-3d3e0928-2490-4c96-a471-e60c6c877cea</test>",
    "item-id": "item-3d3e0928-2490-4c96-a471-e60c6c877cea"
}

2021-05-03 22:57:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3d3e0928-2490-4c96-a471-e60c6c877cea"
}

2021-05-03 22:57:56 | [Mutex] waiting for: [published:item:notifieditem-3d3e0928-2490-4c96-a471-e60c6c877cea:admin@test-domain.com]

2021-05-03 22:57:56 | [Mutex] received everything.

2021-05-03 22:57:56 | [Mutex] isItemNotified: published:item:notifieditem-3d3e0928-2490-4c96-a471-e60c6c877cea:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2021-05-03 22:57:56 |

2021-05-03 22:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:56 | ------------------------------------

2021-05-03 22:57:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b",
    "item-id": "item-3d3e0928-2490-4c96-a471-e60c6c877cea"
}

2021-05-03 22:57:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3d3e0928-2490-4c96-a471-e60c6c877cea"
}

2021-05-03 22:57:56 | [Mutex] waiting for: [retracted:item:notifieditem-3d3e0928-2490-4c96-a471-e60c6c877cea:admin@test-domain.com]

2021-05-03 22:57:56 | [Mutex] received everything.

2021-05-03 22:57:56 | [Mutex] isItemNotified: retracted:item:notifieditem-3d3e0928-2490-4c96-a471-e60c6c877cea:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2021-05-03 22:57:56 |

2021-05-03 22:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:56 | ------------------------------------

2021-05-03 22:57:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b",
    "item-id": "item-3d3e0928-2490-4c96-a471-e60c6c877cea"
}

2021-05-03 22:57:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b",
    "item-id": "item-3d3e0928-2490-4c96-a471-e60c6c877cea",
    "item": [
        "<item id=\"item-3d3e0928-2490-4c96-a471-e60c6c877cea\"><test>item-3d3e0928-2490-4c96-a471-e60c6c877cea</test></item>"
    ]
}

2021-05-03 22:57:56 | [Mutex] notify: [retrieved:item:item-3d3e0928-2490-4c96-a471-e60c6c877cea:payload-matches:true:localhost]

2021-05-03 22:57:56 | [Mutex] received everything.

2021-05-03 22:57:56 | [Mutex] isItemNotified: retrieved:item:item-3d3e0928-2490-4c96-a471-e60c6c877cea:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.149s
2021-05-03 22:57:56 |

2021-05-03 22:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:56 | ------------------------------------

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

2021-05-03 22:57:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6fb36d8c-acd6-41d7-b876-49d5d048fa00",
        "node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-03 22:57:56 |

2021-05-03 22:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:56 | ------------------------------------

2021-05-03 22:57:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b)"
}

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

subscribeNodes 1.013s
2021-05-03 22:57:55 |

2021-05-03 22:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:55 | ------------------------------------

2021-05-03 22:57:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.087s
2021-05-03 22:57:56 |

2021-05-03 22:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-03 22:57:56 | ------------------------------------

2021-05-03 22:57:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0f23259e-2be6-4fd9-8ac8-00cbbfdfab9b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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