Generated by TestNG with ReportNG at 21:44 PST on Monday 04 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.134s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2021-01-04 22:01:14 |

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

2021-01-04 22:01:14 | ------------------------------------

2021-01-04 22:01:14 | [Mutex] waiting for: [configured:node:node-5c46b65d-c76e-4f2c-9d02-12238c40f528:node-ddc6ff85-842e-40ac-bd90-6682677be856]

2021-01-04 22:01:14 | [Mutex] received everything.

2021-01-04 22:01:14 | [Mutex] isItemNotified: configured:node:node-5c46b65d-c76e-4f2c-9d02-12238c40f528:node-ddc6ff85-842e-40ac-bd90-6682677be856 :: true

2021-01-04 22:01:15 | [Mutex] waiting for: [received:nodes:171ed7ca-0964-4ddf-85e6-b16381028fbd:localhost]

2021-01-04 22:01:15 | [Mutex] received everything.

2021-01-04 22:01:15 | [Mutex] isItemNotified: received:node:171ed7ca-0964-4ddf-85e6-b16381028fbd:localhost:node-5c46b65d-c76e-4f2c-9d02-12238c40f528:Node 5c46b65d-c76e-4f2c-9d02-12238c40f528 :: true

2021-01-04 22:01:15 | [Mutex] waiting for: [received:nodes:51cd217d-8d96-4124-8399-aaccf2b3713d:localhost]

2021-01-04 22:01:15 | [Mutex] received everything.

2021-01-04 22:01:15 | [Mutex] isItemNotified: received:node:51cd217d-8d96-4124-8399-aaccf2b3713d:localhost:node-5c46b65d-c76e-4f2c-9d02-12238c40f528:Node 5c46b65d-c76e-4f2c-9d02-12238c40f528 :: false

createNodes 1.803s
2021-01-04 22:01:12 |

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

2021-01-04 22:01:12 | ------------------------------------

2021-01-04 22:01:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5c46b65d-c76e-4f2c-9d02-12238c40f528",
    "pubsub#title": "Node 5c46b65d-c76e-4f2c-9d02-12238c40f528"
}

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

2021-01-04 22:01:13 | [Mutex] waiting for: [received:nodes:34096258-501d-49c0-b27d-91ab1b52ef07:localhost]

2021-01-04 22:01:13 | [Mutex] waiting for: [received:nodes:34096258-501d-49c0-b27d-91ab1b52ef07:localhost]

2021-01-04 22:01:13 | [Mutex] received everything.

2021-01-04 22:01:13 | [Mutex] isItemNotified: received:node:34096258-501d-49c0-b27d-91ab1b52ef07:localhost:node-5c46b65d-c76e-4f2c-9d02-12238c40f528:Node 5c46b65d-c76e-4f2c-9d02-12238c40f528 :: true

createSubnodes 1.023s
2021-01-04 22:01:13 |

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

2021-01-04 22:01:13 | ------------------------------------

2021-01-04 22:01:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ddc6ff85-842e-40ac-bd90-6682677be856",
    "pubsub#title": "Node ddc6ff85-842e-40ac-bd90-6682677be856"
}

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

2021-01-04 22:01:14 | [Mutex] waiting for: [received:nodes:8cc9d0af-ef75-4b73-a99c-18691886b6e1:localhost]

2021-01-04 22:01:14 | [Mutex] waiting for: [received:nodes:8cc9d0af-ef75-4b73-a99c-18691886b6e1:localhost]

2021-01-04 22:01:14 | [Mutex] received everything.

2021-01-04 22:01:14 | [Mutex] isItemNotified: received:node:8cc9d0af-ef75-4b73-a99c-18691886b6e1:localhost:node-ddc6ff85-842e-40ac-bd90-6682677be856:Node ddc6ff85-842e-40ac-bd90-6682677be856 :: true

deleteNodes 1.021s
2021-01-04 22:01:19 |

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

2021-01-04 22:01:19 | ------------------------------------

2021-01-04 22:01:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ddc6ff85-842e-40ac-bd90-6682677be856"
}

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

2021-01-04 22:01:20 | [Mutex] waiting for: [received:nodes:fa38ece3-9977-43ce-93d0-317bbc2b5aba:localhost]

2021-01-04 22:01:20 | [Mutex] waiting for: [received:nodes:fa38ece3-9977-43ce-93d0-317bbc2b5aba:localhost]

2021-01-04 22:01:20 | [Mutex] received everything.

2021-01-04 22:01:20 | [Mutex] isItemNotified: received:node:fa38ece3-9977-43ce-93d0-317bbc2b5aba:localhost:node-ddc6ff85-842e-40ac-bd90-6682677be856:Node ddc6ff85-842e-40ac-bd90-6682677be856 :: false

deleteSubnodes 1.026s
2021-01-04 22:01:18 |

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

2021-01-04 22:01:18 | ------------------------------------

2021-01-04 22:01:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5c46b65d-c76e-4f2c-9d02-12238c40f528"
}

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

2021-01-04 22:01:19 | [Mutex] waiting for: [received:nodes:70ffb439-d297-4867-8e50-41a1a7b31fea:localhost]

2021-01-04 22:01:19 | [Mutex] waiting for: [received:nodes:70ffb439-d297-4867-8e50-41a1a7b31fea:localhost]

2021-01-04 22:01:19 | [Mutex] received everything.

2021-01-04 22:01:19 | [Mutex] isItemNotified: received:node:70ffb439-d297-4867-8e50-41a1a7b31fea:localhost:node-5c46b65d-c76e-4f2c-9d02-12238c40f528:Node 5c46b65d-c76e-4f2c-9d02-12238c40f528 :: false

2021-01-04 22:01:19 | [Mutex] waiting for: [received:nodes:db8771aa-5ae2-4267-b799-31200dbd70d1:localhost]

2021-01-04 22:01:19 | [Mutex] received everything.

2021-01-04 22:01:19 | [Mutex] isItemNotified: received:node:db8771aa-5ae2-4267-b799-31200dbd70d1:localhost:node-5c46b65d-c76e-4f2c-9d02-12238c40f528:Node 5c46b65d-c76e-4f2c-9d02-12238c40f528 :: false

publishItemsToNodes 0.046s
2021-01-04 22:01:16 |

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

2021-01-04 22:01:16 | ------------------------------------

2021-01-04 22:01:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5c46b65d-c76e-4f2c-9d02-12238c40f528",
    "entry": "<test>item-e80aa7a5-ecad-4134-8c60-68f3121180b4</test>",
    "item-id": "item-e80aa7a5-ecad-4134-8c60-68f3121180b4"
}

2021-01-04 22:01:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e80aa7a5-ecad-4134-8c60-68f3121180b4"
}

2021-01-04 22:01:16 | [Mutex] waiting for: [published:item:notifieditem-e80aa7a5-ecad-4134-8c60-68f3121180b4:admin@test-domain.com]

2021-01-04 22:01:17 | [Mutex] received everything.

2021-01-04 22:01:17 | [Mutex] isItemNotified: published:item:notifieditem-e80aa7a5-ecad-4134-8c60-68f3121180b4:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2021-01-04 22:01:17 |

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

2021-01-04 22:01:17 | ------------------------------------

2021-01-04 22:01:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5c46b65d-c76e-4f2c-9d02-12238c40f528",
    "item-id": "item-e80aa7a5-ecad-4134-8c60-68f3121180b4"
}

2021-01-04 22:01:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e80aa7a5-ecad-4134-8c60-68f3121180b4"
}

2021-01-04 22:01:17 | [Mutex] waiting for: [retracted:item:notifieditem-e80aa7a5-ecad-4134-8c60-68f3121180b4:admin@test-domain.com]

2021-01-04 22:01:17 | [Mutex] received everything.

2021-01-04 22:01:17 | [Mutex] isItemNotified: retracted:item:notifieditem-e80aa7a5-ecad-4134-8c60-68f3121180b4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2021-01-04 22:01:17 |

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

2021-01-04 22:01:17 | ------------------------------------

2021-01-04 22:01:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5c46b65d-c76e-4f2c-9d02-12238c40f528",
    "item-id": "item-e80aa7a5-ecad-4134-8c60-68f3121180b4"
}

2021-01-04 22:01:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5c46b65d-c76e-4f2c-9d02-12238c40f528",
    "item-id": "item-e80aa7a5-ecad-4134-8c60-68f3121180b4",
    "item": [
        "<item id=\"item-e80aa7a5-ecad-4134-8c60-68f3121180b4\"><test>item-e80aa7a5-ecad-4134-8c60-68f3121180b4</test></item>"
    ]
}

2021-01-04 22:01:17 | [Mutex] notify: [retrieved:item:item-e80aa7a5-ecad-4134-8c60-68f3121180b4:payload-matches:true:localhost]

2021-01-04 22:01:17 | [Mutex] received everything.

2021-01-04 22:01:17 | [Mutex] isItemNotified: retrieved:item:item-e80aa7a5-ecad-4134-8c60-68f3121180b4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-01-04 22:01:17 |

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

2021-01-04 22:01:17 | ------------------------------------

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

2021-01-04 22:01:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5c46b65d-c76e-4f2c-9d02-12238c40f528",
        "node-ddc6ff85-842e-40ac-bd90-6682677be856"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-01-04 22:01:17 |

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

2021-01-04 22:01:17 | ------------------------------------

2021-01-04 22:01:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5c46b65d-c76e-4f2c-9d02-12238c40f528)"
}

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

subscribeNodes 1.010s
2021-01-04 22:01:15 |

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

2021-01-04 22:01:15 | ------------------------------------

2021-01-04 22:01:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5c46b65d-c76e-4f2c-9d02-12238c40f528",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2021-01-04 22:01:17 |

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

2021-01-04 22:01:17 | ------------------------------------

2021-01-04 22:01:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5c46b65d-c76e-4f2c-9d02-12238c40f528",
    "jids": [
        "admin@test-domain.com"
    ]
}

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