Generated by TestNG with ReportNG at 22:21 PDT on Thursday 07 October 2021
root@785cf647a4ab / 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.255s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2021-10-07 22:37:18 |

2021-10-07 22:37:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:18 | ------------------------------------

2021-10-07 22:37:18 | [Mutex] waiting for: [configured:node:node-ce889290-a576-4b07-bcb5-dc6f4847265f:node-8df7c651-7774-4a4d-915f-9312481aef4f]

2021-10-07 22:37:18 | [Mutex] received everything.

2021-10-07 22:37:18 | [Mutex] isItemNotified: configured:node:node-ce889290-a576-4b07-bcb5-dc6f4847265f:node-8df7c651-7774-4a4d-915f-9312481aef4f :: true

2021-10-07 22:37:19 | [Mutex] waiting for: [received:nodes:5dcfbf5a-2689-471d-b5f8-8a6a60fb163e:localhost]

2021-10-07 22:37:19 | [Mutex] received everything.

2021-10-07 22:37:19 | [Mutex] isItemNotified: received:node:5dcfbf5a-2689-471d-b5f8-8a6a60fb163e:localhost:node-ce889290-a576-4b07-bcb5-dc6f4847265f:Node ce889290-a576-4b07-bcb5-dc6f4847265f :: true

2021-10-07 22:37:19 | [Mutex] waiting for: [received:nodes:5db72a86-1286-4eab-98cc-31c77c5929a5:localhost]

2021-10-07 22:37:19 | [Mutex] received everything.

2021-10-07 22:37:19 | [Mutex] isItemNotified: received:node:5db72a86-1286-4eab-98cc-31c77c5929a5:localhost:node-ce889290-a576-4b07-bcb5-dc6f4847265f:Node ce889290-a576-4b07-bcb5-dc6f4847265f :: false

createNodes 1.892s
2021-10-07 22:37:15 |

2021-10-07 22:37:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:15 | ------------------------------------

2021-10-07 22:37:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ce889290-a576-4b07-bcb5-dc6f4847265f",
    "pubsub#title": "Node ce889290-a576-4b07-bcb5-dc6f4847265f"
}

2021-10-07 22:37:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 22:37:16 | [Mutex] waiting for: [received:nodes:93cb2d6b-6291-4476-9f93-493a6605af0c:localhost]

2021-10-07 22:37:16 | [Mutex] received everything.

2021-10-07 22:37:16 | [Mutex] isItemNotified: received:node:93cb2d6b-6291-4476-9f93-493a6605af0c:localhost:node-ce889290-a576-4b07-bcb5-dc6f4847265f:Node ce889290-a576-4b07-bcb5-dc6f4847265f :: true

createSubnodes 1.032s
2021-10-07 22:37:16 |

2021-10-07 22:37:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:16 | ------------------------------------

2021-10-07 22:37:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8df7c651-7774-4a4d-915f-9312481aef4f",
    "pubsub#title": "Node 8df7c651-7774-4a4d-915f-9312481aef4f"
}

2021-10-07 22:37:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 22:37:17 | [Mutex] waiting for: [received:nodes:d4437aa2-0b70-4b37-80b1-1b113ea893c7:localhost]

2021-10-07 22:37:18 | [Mutex] received everything.

2021-10-07 22:37:18 | [Mutex] isItemNotified: received:node:d4437aa2-0b70-4b37-80b1-1b113ea893c7:localhost:node-8df7c651-7774-4a4d-915f-9312481aef4f:Node 8df7c651-7774-4a4d-915f-9312481aef4f :: true

deleteNodes 1.027s
2021-10-07 22:37:22 |

2021-10-07 22:37:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:22 | ------------------------------------

2021-10-07 22:37:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8df7c651-7774-4a4d-915f-9312481aef4f"
}

2021-10-07 22:37:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-07 22:37:23 | [Mutex] waiting for: [received:nodes:3a5bbc48-8ed1-482e-b469-8208d80a3669:localhost]

2021-10-07 22:37:23 | [Mutex] received everything.

2021-10-07 22:37:23 | [Mutex] isItemNotified: received:node:3a5bbc48-8ed1-482e-b469-8208d80a3669:localhost:node-8df7c651-7774-4a4d-915f-9312481aef4f:Node 8df7c651-7774-4a4d-915f-9312481aef4f :: false

deleteSubnodes 1.030s
2021-10-07 22:37:21 |

2021-10-07 22:37:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:21 | ------------------------------------

2021-10-07 22:37:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ce889290-a576-4b07-bcb5-dc6f4847265f"
}

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

2021-10-07 22:37:22 | [Mutex] waiting for: [received:nodes:6b861643-1272-4b32-b7b9-d486887a6e72:localhost]

2021-10-07 22:37:22 | [Mutex] received everything.

2021-10-07 22:37:22 | [Mutex] isItemNotified: received:node:6b861643-1272-4b32-b7b9-d486887a6e72:localhost:node-ce889290-a576-4b07-bcb5-dc6f4847265f:Node ce889290-a576-4b07-bcb5-dc6f4847265f :: false

2021-10-07 22:37:22 | [Mutex] waiting for: [received:nodes:fdc70f7b-95e8-4721-82e2-1a7baf56fad8:localhost]

2021-10-07 22:37:22 | [Mutex] received everything.

2021-10-07 22:37:22 | [Mutex] isItemNotified: received:node:fdc70f7b-95e8-4721-82e2-1a7baf56fad8:localhost:node-ce889290-a576-4b07-bcb5-dc6f4847265f:Node ce889290-a576-4b07-bcb5-dc6f4847265f :: false

publishItemsToNodes 0.105s
2021-10-07 22:37:20 |

2021-10-07 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:20 | ------------------------------------

2021-10-07 22:37:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ce889290-a576-4b07-bcb5-dc6f4847265f",
    "entry": "<test>item-9e6c0448-bebf-44c4-b58d-44aacf0a388d</test>",
    "item-id": "item-9e6c0448-bebf-44c4-b58d-44aacf0a388d"
}

2021-10-07 22:37:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9e6c0448-bebf-44c4-b58d-44aacf0a388d"
}

2021-10-07 22:37:20 | [Mutex] waiting for: [published:item:notifieditem-9e6c0448-bebf-44c4-b58d-44aacf0a388d:admin@test-domain.com]

2021-10-07 22:37:20 | [Mutex] received everything.

2021-10-07 22:37:20 | [Mutex] isItemNotified: published:item:notifieditem-9e6c0448-bebf-44c4-b58d-44aacf0a388d:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2021-10-07 22:37:20 |

2021-10-07 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:20 | ------------------------------------

2021-10-07 22:37:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ce889290-a576-4b07-bcb5-dc6f4847265f",
    "item-id": "item-9e6c0448-bebf-44c4-b58d-44aacf0a388d"
}

2021-10-07 22:37:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9e6c0448-bebf-44c4-b58d-44aacf0a388d"
}

2021-10-07 22:37:20 | [Mutex] received everything.

2021-10-07 22:37:20 | [Mutex] isItemNotified: retracted:item:notifieditem-9e6c0448-bebf-44c4-b58d-44aacf0a388d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2021-10-07 22:37:20 |

2021-10-07 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:20 | ------------------------------------

2021-10-07 22:37:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ce889290-a576-4b07-bcb5-dc6f4847265f",
    "item-id": "item-9e6c0448-bebf-44c4-b58d-44aacf0a388d"
}

2021-10-07 22:37:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ce889290-a576-4b07-bcb5-dc6f4847265f",
    "item-id": "item-9e6c0448-bebf-44c4-b58d-44aacf0a388d",
    "item": [
        "<item id=\"item-9e6c0448-bebf-44c4-b58d-44aacf0a388d\"><test>item-9e6c0448-bebf-44c4-b58d-44aacf0a388d</test></item>"
    ]
}

2021-10-07 22:37:20 | [Mutex] notify: [retrieved:item:item-9e6c0448-bebf-44c4-b58d-44aacf0a388d:payload-matches:true:localhost]

2021-10-07 22:37:20 | [Mutex] received everything.

2021-10-07 22:37:20 | [Mutex] isItemNotified: retrieved:item:item-9e6c0448-bebf-44c4-b58d-44aacf0a388d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.065s
2021-10-07 22:37:20 |

2021-10-07 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:20 | ------------------------------------

2021-10-07 22:37:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-07 22:37:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-8df7c651-7774-4a4d-915f-9312481aef4f",
        "test",
        "node-ce889290-a576-4b07-bcb5-dc6f4847265f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-10-07 22:37:20 |

2021-10-07 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:20 | ------------------------------------

2021-10-07 22:37:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ce889290-a576-4b07-bcb5-dc6f4847265f)"
}

2021-10-07 22:37:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-10-07 22:37:19 |

2021-10-07 22:37:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:19 | ------------------------------------

2021-10-07 22:37:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ce889290-a576-4b07-bcb5-dc6f4847265f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-07 22:37:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2021-10-07 22:37:20 |

2021-10-07 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-07 22:37:20 | ------------------------------------

2021-10-07 22:37:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ce889290-a576-4b07-bcb5-dc6f4847265f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-07 22:37:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}