Generated by TestNG with ReportNG at 21:13 PST on Wednesday 27 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.107s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2021-01-27 21:27:36 |

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

2021-01-27 21:27:36 | ------------------------------------

2021-01-27 21:27:36 | [Mutex] waiting for: [configured:node:node-7be5219b-438c-4c55-a0cd-92f0ed674979:node-c6caeff6-d28a-4129-94e6-0df7b201869f]

2021-01-27 21:27:36 | [Mutex] received everything.

2021-01-27 21:27:36 | [Mutex] isItemNotified: configured:node:node-7be5219b-438c-4c55-a0cd-92f0ed674979:node-c6caeff6-d28a-4129-94e6-0df7b201869f :: true

2021-01-27 21:27:37 | [Mutex] waiting for: [received:nodes:49c131b1-3387-4eab-ac41-1b18c1ae2ad7:localhost]

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

2021-01-27 21:27:37 | [Mutex] isItemNotified: received:node:49c131b1-3387-4eab-ac41-1b18c1ae2ad7:localhost:node-7be5219b-438c-4c55-a0cd-92f0ed674979:Node 7be5219b-438c-4c55-a0cd-92f0ed674979 :: true

2021-01-27 21:27:37 | [Mutex] waiting for: [received:nodes:2f08ca25-6223-4267-b3cb-54873d3dbe4d:localhost]

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

2021-01-27 21:27:37 | [Mutex] isItemNotified: received:node:2f08ca25-6223-4267-b3cb-54873d3dbe4d:localhost:node-7be5219b-438c-4c55-a0cd-92f0ed674979:Node 7be5219b-438c-4c55-a0cd-92f0ed674979 :: false

createNodes 1.741s
2021-01-27 21:27:33 |

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

2021-01-27 21:27:33 | ------------------------------------

2021-01-27 21:27:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7be5219b-438c-4c55-a0cd-92f0ed674979",
    "pubsub#title": "Node 7be5219b-438c-4c55-a0cd-92f0ed674979"
}

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

2021-01-27 21:27:35 | [Mutex] waiting for: [received:nodes:ad82045e-854e-4051-99f1-8c6b13a25a57:localhost]

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

2021-01-27 21:27:35 | [Mutex] isItemNotified: received:node:ad82045e-854e-4051-99f1-8c6b13a25a57:localhost:node-7be5219b-438c-4c55-a0cd-92f0ed674979:Node 7be5219b-438c-4c55-a0cd-92f0ed674979 :: true

createSubnodes 1.029s
2021-01-27 21:27:35 |

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

2021-01-27 21:27:35 | ------------------------------------

2021-01-27 21:27:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c6caeff6-d28a-4129-94e6-0df7b201869f",
    "pubsub#title": "Node c6caeff6-d28a-4129-94e6-0df7b201869f"
}

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

2021-01-27 21:27:36 | [Mutex] waiting for: [received:nodes:ea422b56-71e9-4808-bafa-b521043fafed:localhost]

2021-01-27 21:27:36 | [Mutex] received everything.

2021-01-27 21:27:36 | [Mutex] isItemNotified: received:node:ea422b56-71e9-4808-bafa-b521043fafed:localhost:node-c6caeff6-d28a-4129-94e6-0df7b201869f:Node c6caeff6-d28a-4129-94e6-0df7b201869f :: true

deleteNodes 1.024s
2021-01-27 21:27:41 |

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

2021-01-27 21:27:41 | ------------------------------------

2021-01-27 21:27:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c6caeff6-d28a-4129-94e6-0df7b201869f"
}

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

2021-01-27 21:27:42 | [Mutex] waiting for: [received:nodes:44581132-bea4-42b1-a45e-9dfb12cf3090:localhost]

2021-01-27 21:27:42 | [Mutex] received everything.

2021-01-27 21:27:42 | [Mutex] isItemNotified: received:node:44581132-bea4-42b1-a45e-9dfb12cf3090:localhost:node-c6caeff6-d28a-4129-94e6-0df7b201869f:Node c6caeff6-d28a-4129-94e6-0df7b201869f :: false

deleteSubnodes 1.026s
2021-01-27 21:27:40 |

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

2021-01-27 21:27:40 | ------------------------------------

2021-01-27 21:27:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7be5219b-438c-4c55-a0cd-92f0ed674979"
}

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

2021-01-27 21:27:41 | [Mutex] waiting for: [received:nodes:30f4b6bf-7846-4304-a6c3-cb6f03392128:localhost]

2021-01-27 21:27:41 | [Mutex] received everything.

2021-01-27 21:27:41 | [Mutex] isItemNotified: received:node:30f4b6bf-7846-4304-a6c3-cb6f03392128:localhost:node-7be5219b-438c-4c55-a0cd-92f0ed674979:Node 7be5219b-438c-4c55-a0cd-92f0ed674979 :: false

2021-01-27 21:27:41 | [Mutex] waiting for: [received:nodes:f0b99055-8980-401f-b1e7-66a3acf4ba83:localhost]

2021-01-27 21:27:41 | [Mutex] received everything.

2021-01-27 21:27:41 | [Mutex] isItemNotified: received:node:f0b99055-8980-401f-b1e7-66a3acf4ba83:localhost:node-7be5219b-438c-4c55-a0cd-92f0ed674979:Node 7be5219b-438c-4c55-a0cd-92f0ed674979 :: false

publishItemsToNodes 0.041s
2021-01-27 21:27:38 |

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

2021-01-27 21:27:38 | ------------------------------------

2021-01-27 21:27:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7be5219b-438c-4c55-a0cd-92f0ed674979",
    "entry": "<test>item-2f463c4a-350a-47b0-89d8-cbef75865da1</test>",
    "item-id": "item-2f463c4a-350a-47b0-89d8-cbef75865da1"
}

2021-01-27 21:27:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2f463c4a-350a-47b0-89d8-cbef75865da1"
}

2021-01-27 21:27:38 | [Mutex] waiting for: [published:item:notifieditem-2f463c4a-350a-47b0-89d8-cbef75865da1:admin@test-domain.com]

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

2021-01-27 21:27:38 | [Mutex] isItemNotified: published:item:notifieditem-2f463c4a-350a-47b0-89d8-cbef75865da1:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-01-27 21:27:38 |

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

2021-01-27 21:27:38 | ------------------------------------

2021-01-27 21:27:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7be5219b-438c-4c55-a0cd-92f0ed674979",
    "item-id": "item-2f463c4a-350a-47b0-89d8-cbef75865da1"
}

2021-01-27 21:27:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2f463c4a-350a-47b0-89d8-cbef75865da1"
}

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

2021-01-27 21:27:38 | [Mutex] isItemNotified: retracted:item:notifieditem-2f463c4a-350a-47b0-89d8-cbef75865da1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2021-01-27 21:27:38 |

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

2021-01-27 21:27:38 | ------------------------------------

2021-01-27 21:27:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7be5219b-438c-4c55-a0cd-92f0ed674979",
    "item-id": "item-2f463c4a-350a-47b0-89d8-cbef75865da1"
}

2021-01-27 21:27:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7be5219b-438c-4c55-a0cd-92f0ed674979",
    "item-id": "item-2f463c4a-350a-47b0-89d8-cbef75865da1",
    "item": [
        "<item id=\"item-2f463c4a-350a-47b0-89d8-cbef75865da1\"><test>item-2f463c4a-350a-47b0-89d8-cbef75865da1</test></item>"
    ]
}

2021-01-27 21:27:38 | [Mutex] notify: [retrieved:item:item-2f463c4a-350a-47b0-89d8-cbef75865da1:payload-matches:true:localhost]

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

2021-01-27 21:27:38 | [Mutex] isItemNotified: retrieved:item:item-2f463c4a-350a-47b0-89d8-cbef75865da1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.070s
2021-01-27 21:27:38 |

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

2021-01-27 21:27:38 | ------------------------------------

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

2021-01-27 21:27:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c6caeff6-d28a-4129-94e6-0df7b201869f",
        "node-7be5219b-438c-4c55-a0cd-92f0ed674979"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-01-27 21:27:38 |

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

2021-01-27 21:27:38 | ------------------------------------

2021-01-27 21:27:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7be5219b-438c-4c55-a0cd-92f0ed674979)"
}

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

subscribeNodes 1.012s
2021-01-27 21:27:37 |

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

2021-01-27 21:27:37 | ------------------------------------

2021-01-27 21:27:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7be5219b-438c-4c55-a0cd-92f0ed674979",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.088s
2021-01-27 21:27:38 |

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

2021-01-27 21:27:38 | ------------------------------------

2021-01-27 21:27:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7be5219b-438c-4c55-a0cd-92f0ed674979",
    "jids": [
        "admin@test-domain.com"
    ]
}

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