Generated by TestNG with ReportNG at 22:46 PDT on Thursday 13 May 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.127s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2021-05-13 23:02:18 |

2021-05-13 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:18 | ------------------------------------

2021-05-13 23:02:18 | [Mutex] waiting for: [configured:node:node-99af95ce-17ce-437d-8324-bd5f08289f59:node-4565e07d-040e-40e4-8297-2b978aab171d]

2021-05-13 23:02:18 | [Mutex] received everything.

2021-05-13 23:02:18 | [Mutex] isItemNotified: configured:node:node-99af95ce-17ce-437d-8324-bd5f08289f59:node-4565e07d-040e-40e4-8297-2b978aab171d :: true

2021-05-13 23:02:19 | [Mutex] waiting for: [received:nodes:1b083e78-d09f-4169-8059-ee2eb47b92a7:localhost]

2021-05-13 23:02:19 | [Mutex] waiting for: [received:nodes:1b083e78-d09f-4169-8059-ee2eb47b92a7:localhost]

2021-05-13 23:02:19 | [Mutex] received everything.

2021-05-13 23:02:19 | [Mutex] isItemNotified: received:node:1b083e78-d09f-4169-8059-ee2eb47b92a7:localhost:node-99af95ce-17ce-437d-8324-bd5f08289f59:Node 99af95ce-17ce-437d-8324-bd5f08289f59 :: true

2021-05-13 23:02:19 | [Mutex] waiting for: [received:nodes:a6aa0aee-f404-42a0-8313-ad6b60261f40:localhost]

2021-05-13 23:02:19 | [Mutex] waiting for: [received:nodes:a6aa0aee-f404-42a0-8313-ad6b60261f40:localhost]

2021-05-13 23:02:19 | [Mutex] received everything.

2021-05-13 23:02:19 | [Mutex] isItemNotified: received:node:a6aa0aee-f404-42a0-8313-ad6b60261f40:localhost:node-99af95ce-17ce-437d-8324-bd5f08289f59:Node 99af95ce-17ce-437d-8324-bd5f08289f59 :: false

createNodes 1.796s
2021-05-13 23:02:15 |

2021-05-13 23:02:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:15 | ------------------------------------

2021-05-13 23:02:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-99af95ce-17ce-437d-8324-bd5f08289f59",
    "pubsub#title": "Node 99af95ce-17ce-437d-8324-bd5f08289f59"
}

2021-05-13 23:02:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 23:02:17 | [Mutex] waiting for: [received:nodes:12717d46-d35c-4de9-898f-0a9154dbdaea:localhost]

2021-05-13 23:02:17 | [Mutex] received everything.

2021-05-13 23:02:17 | [Mutex] isItemNotified: received:node:12717d46-d35c-4de9-898f-0a9154dbdaea:localhost:node-99af95ce-17ce-437d-8324-bd5f08289f59:Node 99af95ce-17ce-437d-8324-bd5f08289f59 :: true

createSubnodes 1.028s
2021-05-13 23:02:17 |

2021-05-13 23:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:17 | ------------------------------------

2021-05-13 23:02:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4565e07d-040e-40e4-8297-2b978aab171d",
    "pubsub#title": "Node 4565e07d-040e-40e4-8297-2b978aab171d"
}

2021-05-13 23:02:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 23:02:18 | [Mutex] waiting for: [received:nodes:857e0d57-b7a0-40e0-83b0-912abc280cbb:localhost]

2021-05-13 23:02:18 | [Mutex] received everything.

2021-05-13 23:02:18 | [Mutex] isItemNotified: received:node:857e0d57-b7a0-40e0-83b0-912abc280cbb:localhost:node-4565e07d-040e-40e4-8297-2b978aab171d:Node 4565e07d-040e-40e4-8297-2b978aab171d :: true

deleteNodes 1.024s
2021-05-13 23:02:22 |

2021-05-13 23:02:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:22 | ------------------------------------

2021-05-13 23:02:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4565e07d-040e-40e4-8297-2b978aab171d"
}

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

2021-05-13 23:02:23 | [Mutex] waiting for: [received:nodes:c5aa5249-00f5-4c33-912d-a0557b0f767d:localhost]

2021-05-13 23:02:23 | [Mutex] waiting for: [received:nodes:c5aa5249-00f5-4c33-912d-a0557b0f767d:localhost]

2021-05-13 23:02:23 | [Mutex] received everything.

2021-05-13 23:02:23 | [Mutex] isItemNotified: received:node:c5aa5249-00f5-4c33-912d-a0557b0f767d:localhost:node-4565e07d-040e-40e4-8297-2b978aab171d:Node 4565e07d-040e-40e4-8297-2b978aab171d :: false

deleteSubnodes 1.040s
2021-05-13 23:02:21 |

2021-05-13 23:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:21 | ------------------------------------

2021-05-13 23:02:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-99af95ce-17ce-437d-8324-bd5f08289f59"
}

2021-05-13 23:02:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 23:02:22 | [Mutex] waiting for: [received:nodes:df43a9d5-aa96-4451-b30a-8687d6821236:localhost]

2021-05-13 23:02:22 | [Mutex] received everything.

2021-05-13 23:02:22 | [Mutex] isItemNotified: received:node:df43a9d5-aa96-4451-b30a-8687d6821236:localhost:node-99af95ce-17ce-437d-8324-bd5f08289f59:Node 99af95ce-17ce-437d-8324-bd5f08289f59 :: false

2021-05-13 23:02:22 | [Mutex] waiting for: [received:nodes:9e92f7f7-66a1-40d9-9f81-d3300b478388:localhost]

2021-05-13 23:02:22 | [Mutex] received everything.

2021-05-13 23:02:22 | [Mutex] isItemNotified: received:node:9e92f7f7-66a1-40d9-9f81-d3300b478388:localhost:node-99af95ce-17ce-437d-8324-bd5f08289f59:Node 99af95ce-17ce-437d-8324-bd5f08289f59 :: false

publishItemsToNodes 0.032s
2021-05-13 23:02:20 |

2021-05-13 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:20 | ------------------------------------

2021-05-13 23:02:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-99af95ce-17ce-437d-8324-bd5f08289f59",
    "entry": "<test>item-4181164f-ebe7-4250-8def-9e0a7d14a7c1</test>",
    "item-id": "item-4181164f-ebe7-4250-8def-9e0a7d14a7c1"
}

2021-05-13 23:02:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4181164f-ebe7-4250-8def-9e0a7d14a7c1"
}

2021-05-13 23:02:20 | [Mutex] waiting for: [published:item:notifieditem-4181164f-ebe7-4250-8def-9e0a7d14a7c1:admin@test-domain.com]

2021-05-13 23:02:20 | [Mutex] received everything.

2021-05-13 23:02:20 | [Mutex] isItemNotified: published:item:notifieditem-4181164f-ebe7-4250-8def-9e0a7d14a7c1:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2021-05-13 23:02:20 |

2021-05-13 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:20 | ------------------------------------

2021-05-13 23:02:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-99af95ce-17ce-437d-8324-bd5f08289f59",
    "item-id": "item-4181164f-ebe7-4250-8def-9e0a7d14a7c1"
}

2021-05-13 23:02:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4181164f-ebe7-4250-8def-9e0a7d14a7c1"
}

2021-05-13 23:02:20 | [Mutex] received everything.

2021-05-13 23:02:20 | [Mutex] isItemNotified: retracted:item:notifieditem-4181164f-ebe7-4250-8def-9e0a7d14a7c1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.132s
2021-05-13 23:02:20 |

2021-05-13 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:20 | ------------------------------------

2021-05-13 23:02:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-99af95ce-17ce-437d-8324-bd5f08289f59",
    "item-id": "item-4181164f-ebe7-4250-8def-9e0a7d14a7c1"
}

2021-05-13 23:02:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-99af95ce-17ce-437d-8324-bd5f08289f59",
    "item-id": "item-4181164f-ebe7-4250-8def-9e0a7d14a7c1",
    "item": [
        "<item id=\"item-4181164f-ebe7-4250-8def-9e0a7d14a7c1\"><test>item-4181164f-ebe7-4250-8def-9e0a7d14a7c1</test></item>"
    ]
}

2021-05-13 23:02:20 | [Mutex] notify: [retrieved:item:item-4181164f-ebe7-4250-8def-9e0a7d14a7c1:payload-matches:true:localhost]

2021-05-13 23:02:20 | [Mutex] received everything.

2021-05-13 23:02:20 | [Mutex] isItemNotified: retrieved:item:item-4181164f-ebe7-4250-8def-9e0a7d14a7c1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-05-13 23:02:20 |

2021-05-13 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:20 | ------------------------------------

2021-05-13 23:02:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-13 23:02:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-99af95ce-17ce-437d-8324-bd5f08289f59",
        "test",
        "node-4565e07d-040e-40e4-8297-2b978aab171d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-13 23:02:20 |

2021-05-13 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:20 | ------------------------------------

2021-05-13 23:02:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-99af95ce-17ce-437d-8324-bd5f08289f59)"
}

2021-05-13 23:02:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-05-13 23:02:19 |

2021-05-13 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:19 | ------------------------------------

2021-05-13 23:02:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-99af95ce-17ce-437d-8324-bd5f08289f59",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-13 23:02:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2021-05-13 23:02:20 |

2021-05-13 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 23:02:20 | ------------------------------------

2021-05-13 23:02:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-99af95ce-17ce-437d-8324-bd5f08289f59",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-13 23:02:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}