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

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.163s
2021-06-04 22:30:31 |

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

2021-06-04 22:30:31 | ------------------------------------

2021-06-04 22:30:31 | [Mutex] waiting for: [configured:node:node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5:node-466de4db-7518-4c71-b9a2-6baf4c6d927a]

2021-06-04 22:30:31 | [Mutex] received everything.

2021-06-04 22:30:31 | [Mutex] isItemNotified: configured:node:node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5:node-466de4db-7518-4c71-b9a2-6baf4c6d927a :: true

2021-06-04 22:30:32 | [Mutex] waiting for: [received:nodes:b0e27cf2-9594-4294-a824-fb78d6f4edc2:localhost]

2021-06-04 22:30:32 | [Mutex] received everything.

2021-06-04 22:30:32 | [Mutex] isItemNotified: received:node:b0e27cf2-9594-4294-a824-fb78d6f4edc2:localhost:node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5:Node 1c58ba71-4e50-44f5-a039-b3a0c67c02b5 :: true

2021-06-04 22:30:32 | [Mutex] waiting for: [received:nodes:1f87bc7a-cf1e-40a7-a79a-0b04996e5a5d:localhost]

2021-06-04 22:30:32 | [Mutex] received everything.

2021-06-04 22:30:32 | [Mutex] isItemNotified: received:node:1f87bc7a-cf1e-40a7-a79a-0b04996e5a5d:localhost:node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5:Node 1c58ba71-4e50-44f5-a039-b3a0c67c02b5 :: false

createNodes 1.661s
2021-06-04 22:30:28 |

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

2021-06-04 22:30:28 | ------------------------------------

2021-06-04 22:30:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5",
    "pubsub#title": "Node 1c58ba71-4e50-44f5-a039-b3a0c67c02b5"
}

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

2021-06-04 22:30:30 | [Mutex] waiting for: [received:nodes:c6938c6b-1a32-496a-8bc4-5dc3ed6148c3:localhost]

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

2021-06-04 22:30:30 | [Mutex] isItemNotified: received:node:c6938c6b-1a32-496a-8bc4-5dc3ed6148c3:localhost:node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5:Node 1c58ba71-4e50-44f5-a039-b3a0c67c02b5 :: true

createSubnodes 1.028s
2021-06-04 22:30:30 |

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

2021-06-04 22:30:30 | ------------------------------------

2021-06-04 22:30:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-466de4db-7518-4c71-b9a2-6baf4c6d927a",
    "pubsub#title": "Node 466de4db-7518-4c71-b9a2-6baf4c6d927a"
}

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

2021-06-04 22:30:31 | [Mutex] waiting for: [received:nodes:8aad2748-4ff5-46f4-a4f7-fcd29d70418a:localhost]

2021-06-04 22:30:31 | [Mutex] received everything.

2021-06-04 22:30:31 | [Mutex] isItemNotified: received:node:8aad2748-4ff5-46f4-a4f7-fcd29d70418a:localhost:node-466de4db-7518-4c71-b9a2-6baf4c6d927a:Node 466de4db-7518-4c71-b9a2-6baf4c6d927a :: true

deleteNodes 1.018s
2021-06-04 22:30:36 |

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

2021-06-04 22:30:36 | ------------------------------------

2021-06-04 22:30:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-466de4db-7518-4c71-b9a2-6baf4c6d927a"
}

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

2021-06-04 22:30:37 | [Mutex] waiting for: [received:nodes:56cf9c88-1918-4331-a89d-d252895c8d7c:localhost]

2021-06-04 22:30:37 | [Mutex] received everything.

2021-06-04 22:30:37 | [Mutex] isItemNotified: received:node:56cf9c88-1918-4331-a89d-d252895c8d7c:localhost:node-466de4db-7518-4c71-b9a2-6baf4c6d927a:Node 466de4db-7518-4c71-b9a2-6baf4c6d927a :: false

deleteSubnodes 1.024s
2021-06-04 22:30:35 |

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

2021-06-04 22:30:35 | ------------------------------------

2021-06-04 22:30:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5"
}

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

2021-06-04 22:30:36 | [Mutex] waiting for: [received:nodes:258aaa5e-bc2f-4f76-8aa6-e787232503c5:localhost]

2021-06-04 22:30:36 | [Mutex] received everything.

2021-06-04 22:30:36 | [Mutex] isItemNotified: received:node:258aaa5e-bc2f-4f76-8aa6-e787232503c5:localhost:node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5:Node 1c58ba71-4e50-44f5-a039-b3a0c67c02b5 :: false

2021-06-04 22:30:36 | [Mutex] waiting for: [received:nodes:238a0770-02ff-47fa-a6b0-ac336cc2e766:localhost]

2021-06-04 22:30:36 | [Mutex] received everything.

2021-06-04 22:30:36 | [Mutex] isItemNotified: received:node:238a0770-02ff-47fa-a6b0-ac336cc2e766:localhost:node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5:Node 1c58ba71-4e50-44f5-a039-b3a0c67c02b5 :: false

publishItemsToNodes 0.050s
2021-06-04 22:30:33 |

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

2021-06-04 22:30:33 | ------------------------------------

2021-06-04 22:30:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5",
    "entry": "<test>item-543a28cd-ef52-482e-ac06-d443f41f063e</test>",
    "item-id": "item-543a28cd-ef52-482e-ac06-d443f41f063e"
}

2021-06-04 22:30:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-543a28cd-ef52-482e-ac06-d443f41f063e"
}

2021-06-04 22:30:33 | [Mutex] waiting for: [published:item:notifieditem-543a28cd-ef52-482e-ac06-d443f41f063e:admin@test-domain.com]

2021-06-04 22:30:33 | [Mutex] received everything.

2021-06-04 22:30:33 | [Mutex] isItemNotified: published:item:notifieditem-543a28cd-ef52-482e-ac06-d443f41f063e:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-06-04 22:30:34 |

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

2021-06-04 22:30:34 | ------------------------------------

2021-06-04 22:30:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5",
    "item-id": "item-543a28cd-ef52-482e-ac06-d443f41f063e"
}

2021-06-04 22:30:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-543a28cd-ef52-482e-ac06-d443f41f063e"
}

2021-06-04 22:30:34 | [Mutex] received everything.

2021-06-04 22:30:34 | [Mutex] isItemNotified: retracted:item:notifieditem-543a28cd-ef52-482e-ac06-d443f41f063e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2021-06-04 22:30:33 |

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

2021-06-04 22:30:33 | ------------------------------------

2021-06-04 22:30:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5",
    "item-id": "item-543a28cd-ef52-482e-ac06-d443f41f063e"
}

2021-06-04 22:30:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5",
    "item-id": "item-543a28cd-ef52-482e-ac06-d443f41f063e",
    "item": [
        "<item id=\"item-543a28cd-ef52-482e-ac06-d443f41f063e\"><test>item-543a28cd-ef52-482e-ac06-d443f41f063e</test></item>"
    ]
}

2021-06-04 22:30:33 | [Mutex] notify: [retrieved:item:item-543a28cd-ef52-482e-ac06-d443f41f063e:payload-matches:true:localhost]

2021-06-04 22:30:33 | [Mutex] received everything.

2021-06-04 22:30:33 | [Mutex] isItemNotified: retrieved:item:item-543a28cd-ef52-482e-ac06-d443f41f063e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-06-04 22:30:33 |

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

2021-06-04 22:30:33 | ------------------------------------

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

2021-06-04 22:30:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5",
        "test",
        "node-466de4db-7518-4c71-b9a2-6baf4c6d927a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-06-04 22:30:34 |

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

2021-06-04 22:30:34 | ------------------------------------

2021-06-04 22:30:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5)"
}

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

subscribeNodes 1.011s
2021-06-04 22:30:32 |

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

2021-06-04 22:30:32 | ------------------------------------

2021-06-04 22:30:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2021-06-04 22:30:34 |

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

2021-06-04 22:30:34 | ------------------------------------

2021-06-04 22:30:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1c58ba71-4e50-44f5-a039-b3a0c67c02b5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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