Generated by TestNG with ReportNG at 11:32 PDT on Wednesday 07 April 2021
root@43fec6d4badf / 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.042s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2021-04-07 11:51:57 |

2021-04-07 11:51:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:57 | ------------------------------------

2021-04-07 11:51:57 | [Mutex] waiting for: [configured:node:node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e:node-15d06fd9-4ec4-4ddb-8b08-1a1807ab828d]

2021-04-07 11:51:58 | [Mutex] received everything.

2021-04-07 11:51:58 | [Mutex] isItemNotified: configured:node:node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e:node-15d06fd9-4ec4-4ddb-8b08-1a1807ab828d :: true

2021-04-07 11:51:59 | [Mutex] waiting for: [received:nodes:9bd3e61e-2821-4245-8bc7-623dd9c21509:localhost]

2021-04-07 11:51:59 | [Mutex] received everything.

2021-04-07 11:51:59 | [Mutex] isItemNotified: received:node:9bd3e61e-2821-4245-8bc7-623dd9c21509:localhost:node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e:Node 951d0338-e6f2-428d-aa56-b7c8bd5ed38e :: true

2021-04-07 11:51:59 | [Mutex] waiting for: [received:nodes:b2c55c4d-0aff-46c3-b4d7-9b18b64c5b9b:localhost]

2021-04-07 11:51:59 | [Mutex] received everything.

2021-04-07 11:51:59 | [Mutex] isItemNotified: received:node:b2c55c4d-0aff-46c3-b4d7-9b18b64c5b9b:localhost:node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e:Node 951d0338-e6f2-428d-aa56-b7c8bd5ed38e :: false

createNodes 1.650s
2021-04-07 11:51:55 |

2021-04-07 11:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:55 | ------------------------------------

2021-04-07 11:51:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e",
    "pubsub#title": "Node 951d0338-e6f2-428d-aa56-b7c8bd5ed38e"
}

2021-04-07 11:51:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-07 11:51:56 | [Mutex] waiting for: [received:nodes:99d92d99-0bab-4213-8e72-bc0aa7b0271f:localhost]

2021-04-07 11:51:56 | [Mutex] received everything.

2021-04-07 11:51:56 | [Mutex] isItemNotified: received:node:99d92d99-0bab-4213-8e72-bc0aa7b0271f:localhost:node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e:Node 951d0338-e6f2-428d-aa56-b7c8bd5ed38e :: true

createSubnodes 1.034s
2021-04-07 11:51:56 |

2021-04-07 11:51:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:56 | ------------------------------------

2021-04-07 11:51:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-15d06fd9-4ec4-4ddb-8b08-1a1807ab828d",
    "pubsub#title": "Node 15d06fd9-4ec4-4ddb-8b08-1a1807ab828d"
}

2021-04-07 11:51:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-07 11:51:57 | [Mutex] waiting for: [received:nodes:9d918d34-f69c-4e22-8a67-0a2decf314e0:localhost]

2021-04-07 11:51:57 | [Mutex] received everything.

2021-04-07 11:51:57 | [Mutex] isItemNotified: received:node:9d918d34-f69c-4e22-8a67-0a2decf314e0:localhost:node-15d06fd9-4ec4-4ddb-8b08-1a1807ab828d:Node 15d06fd9-4ec4-4ddb-8b08-1a1807ab828d :: true

deleteNodes 1.023s
2021-04-07 11:52:02 |

2021-04-07 11:52:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:52:02 | ------------------------------------

2021-04-07 11:52:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-15d06fd9-4ec4-4ddb-8b08-1a1807ab828d"
}

2021-04-07 11:52:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-07 11:52:03 | [Mutex] waiting for: [received:nodes:ac37c327-483f-4bcb-a75b-96e0a7eb1a5f:localhost]

2021-04-07 11:52:03 | [Mutex] waiting for: [received:nodes:ac37c327-483f-4bcb-a75b-96e0a7eb1a5f:localhost]

2021-04-07 11:52:03 | [Mutex] received everything.

2021-04-07 11:52:03 | [Mutex] isItemNotified: received:node:ac37c327-483f-4bcb-a75b-96e0a7eb1a5f:localhost:node-15d06fd9-4ec4-4ddb-8b08-1a1807ab828d:Node 15d06fd9-4ec4-4ddb-8b08-1a1807ab828d :: false

deleteSubnodes 1.033s
2021-04-07 11:52:01 |

2021-04-07 11:52:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:52:01 | ------------------------------------

2021-04-07 11:52:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e"
}

2021-04-07 11:52:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-07 11:52:02 | [Mutex] waiting for: [received:nodes:62311383-5322-4842-bed7-fec1c931a0f1:localhost]

2021-04-07 11:52:02 | [Mutex] received everything.

2021-04-07 11:52:02 | [Mutex] isItemNotified: received:node:62311383-5322-4842-bed7-fec1c931a0f1:localhost:node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e:Node 951d0338-e6f2-428d-aa56-b7c8bd5ed38e :: false

2021-04-07 11:52:02 | [Mutex] waiting for: [received:nodes:7046a5c4-9952-488b-851e-7fd76ef2b371:localhost]

2021-04-07 11:52:02 | [Mutex] received everything.

2021-04-07 11:52:02 | [Mutex] isItemNotified: received:node:7046a5c4-9952-488b-851e-7fd76ef2b371:localhost:node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e:Node 951d0338-e6f2-428d-aa56-b7c8bd5ed38e :: false

publishItemsToNodes 0.050s
2021-04-07 11:52:00 |

2021-04-07 11:52:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:52:00 | ------------------------------------

2021-04-07 11:52:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e",
    "entry": "<test>item-ac747656-840c-4bee-8d65-7c953b93f4c4</test>",
    "item-id": "item-ac747656-840c-4bee-8d65-7c953b93f4c4"
}

2021-04-07 11:52:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ac747656-840c-4bee-8d65-7c953b93f4c4"
}

2021-04-07 11:52:00 | [Mutex] waiting for: [published:item:notifieditem-ac747656-840c-4bee-8d65-7c953b93f4c4:admin@test-domain.com]

2021-04-07 11:52:00 | [Mutex] received everything.

2021-04-07 11:52:00 | [Mutex] isItemNotified: published:item:notifieditem-ac747656-840c-4bee-8d65-7c953b93f4c4:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2021-04-07 11:52:00 |

2021-04-07 11:52:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:52:00 | ------------------------------------

2021-04-07 11:52:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e",
    "item-id": "item-ac747656-840c-4bee-8d65-7c953b93f4c4"
}

2021-04-07 11:52:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ac747656-840c-4bee-8d65-7c953b93f4c4"
}

2021-04-07 11:52:00 | [Mutex] received everything.

2021-04-07 11:52:00 | [Mutex] isItemNotified: retracted:item:notifieditem-ac747656-840c-4bee-8d65-7c953b93f4c4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2021-04-07 11:52:00 |

2021-04-07 11:52:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:52:00 | ------------------------------------

2021-04-07 11:52:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e",
    "item-id": "item-ac747656-840c-4bee-8d65-7c953b93f4c4"
}

2021-04-07 11:52:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e",
    "item-id": "item-ac747656-840c-4bee-8d65-7c953b93f4c4",
    "item": [
        "<item id=\"item-ac747656-840c-4bee-8d65-7c953b93f4c4\"><test>item-ac747656-840c-4bee-8d65-7c953b93f4c4</test></item>"
    ]
}

2021-04-07 11:52:00 | [Mutex] notify: [retrieved:item:item-ac747656-840c-4bee-8d65-7c953b93f4c4:payload-matches:true:localhost]

2021-04-07 11:52:00 | [Mutex] received everything.

2021-04-07 11:52:00 | [Mutex] isItemNotified: retrieved:item:item-ac747656-840c-4bee-8d65-7c953b93f4c4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-04-07 11:52:00 |

2021-04-07 11:52:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:52:00 | ------------------------------------

2021-04-07 11:52:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-07 11:52:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e",
        "node-15d06fd9-4ec4-4ddb-8b08-1a1807ab828d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-07 11:52:00 |

2021-04-07 11:52:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:52:00 | ------------------------------------

2021-04-07 11:52:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e)"
}

2021-04-07 11:52:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2021-04-07 11:51:59 |

2021-04-07 11:51:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:59 | ------------------------------------

2021-04-07 11:51:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-07 11:51:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.087s
2021-04-07 11:52:00 |

2021-04-07 11:52:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:52:00 | ------------------------------------

2021-04-07 11:52:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-951d0338-e6f2-428d-aa56-b7c8bd5ed38e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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