Generated by TestNG with ReportNG at 22:14 PDT on Wednesday 17 March 2021
root@43fec6d4badf / 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.869s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.032s
2021-03-17 22:28:58 |

2021-03-17 22:28:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:28:58 | ------------------------------------

2021-03-17 22:28:58 | [Mutex] waiting for: [configured:node:node-f8567157-b137-4364-b495-461acd46b457:node-79ff137e-974f-48a1-b87b-5d5543c4ef97]

2021-03-17 22:28:58 | [Mutex] received everything.

2021-03-17 22:28:58 | [Mutex] isItemNotified: configured:node:node-f8567157-b137-4364-b495-461acd46b457:node-79ff137e-974f-48a1-b87b-5d5543c4ef97 :: true

2021-03-17 22:28:59 | [Mutex] waiting for: [received:nodes:dce08a3b-b64e-49c8-9498-eec6ed2de1da:localhost]

2021-03-17 22:28:59 | [Mutex] waiting for: [received:nodes:dce08a3b-b64e-49c8-9498-eec6ed2de1da:localhost]

2021-03-17 22:28:59 | [Mutex] received everything.

2021-03-17 22:28:59 | [Mutex] isItemNotified: received:node:dce08a3b-b64e-49c8-9498-eec6ed2de1da:localhost:node-f8567157-b137-4364-b495-461acd46b457:Node f8567157-b137-4364-b495-461acd46b457 :: true

2021-03-17 22:28:59 | [Mutex] waiting for: [received:nodes:7caa020a-644b-49f6-ab24-5bbe4f15b384:localhost]

2021-03-17 22:28:59 | [Mutex] received everything.

2021-03-17 22:28:59 | [Mutex] isItemNotified: received:node:7caa020a-644b-49f6-ab24-5bbe4f15b384:localhost:node-f8567157-b137-4364-b495-461acd46b457:Node f8567157-b137-4364-b495-461acd46b457 :: false

createNodes 1.741s
2021-03-17 22:28:56 |

2021-03-17 22:28:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:28:56 | ------------------------------------

2021-03-17 22:28:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f8567157-b137-4364-b495-461acd46b457",
    "pubsub#title": "Node f8567157-b137-4364-b495-461acd46b457"
}

2021-03-17 22:28:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:28:57 | [Mutex] waiting for: [received:nodes:46bef1dd-df21-4624-847c-14e072123046:localhost]

2021-03-17 22:28:57 | [Mutex] received everything.

2021-03-17 22:28:57 | [Mutex] isItemNotified: received:node:46bef1dd-df21-4624-847c-14e072123046:localhost:node-f8567157-b137-4364-b495-461acd46b457:Node f8567157-b137-4364-b495-461acd46b457 :: true

createSubnodes 1.031s
2021-03-17 22:28:57 |

2021-03-17 22:28:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:28:57 | ------------------------------------

2021-03-17 22:28:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-79ff137e-974f-48a1-b87b-5d5543c4ef97",
    "pubsub#title": "Node 79ff137e-974f-48a1-b87b-5d5543c4ef97"
}

2021-03-17 22:28:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:28:58 | [Mutex] waiting for: [received:nodes:bbbd7981-2cbd-4d2b-9bbf-ff01cff850f8:localhost]

2021-03-17 22:28:58 | [Mutex] received everything.

2021-03-17 22:28:58 | [Mutex] isItemNotified: received:node:bbbd7981-2cbd-4d2b-9bbf-ff01cff850f8:localhost:node-79ff137e-974f-48a1-b87b-5d5543c4ef97:Node 79ff137e-974f-48a1-b87b-5d5543c4ef97 :: true

deleteNodes 1.023s
2021-03-17 22:29:03 |

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

2021-03-17 22:29:03 | ------------------------------------

2021-03-17 22:29:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-79ff137e-974f-48a1-b87b-5d5543c4ef97"
}

2021-03-17 22:29:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:29:04 | [Mutex] waiting for: [received:nodes:8b8a45b6-09af-482f-8f37-2eb3866fa243:localhost]

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

2021-03-17 22:29:04 | [Mutex] isItemNotified: received:node:8b8a45b6-09af-482f-8f37-2eb3866fa243:localhost:node-79ff137e-974f-48a1-b87b-5d5543c4ef97:Node 79ff137e-974f-48a1-b87b-5d5543c4ef97 :: false

deleteSubnodes 1.029s
2021-03-17 22:29:02 |

2021-03-17 22:29:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:02 | ------------------------------------

2021-03-17 22:29:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f8567157-b137-4364-b495-461acd46b457"
}

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

2021-03-17 22:29:03 | [Mutex] waiting for: [received:nodes:ecb14839-2d57-4af7-b423-703549f6a15f:localhost]

2021-03-17 22:29:03 | [Mutex] received everything.

2021-03-17 22:29:03 | [Mutex] isItemNotified: received:node:ecb14839-2d57-4af7-b423-703549f6a15f:localhost:node-f8567157-b137-4364-b495-461acd46b457:Node f8567157-b137-4364-b495-461acd46b457 :: false

2021-03-17 22:29:03 | [Mutex] waiting for: [received:nodes:5a4d7ef0-16ca-44d9-a2a6-edcfb93da8f9:localhost]

2021-03-17 22:29:03 | [Mutex] received everything.

2021-03-17 22:29:03 | [Mutex] isItemNotified: received:node:5a4d7ef0-16ca-44d9-a2a6-edcfb93da8f9:localhost:node-f8567157-b137-4364-b495-461acd46b457:Node f8567157-b137-4364-b495-461acd46b457 :: false

publishItemsToNodes 0.051s
2021-03-17 22:29:00 |

2021-03-17 22:29:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:00 | ------------------------------------

2021-03-17 22:29:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f8567157-b137-4364-b495-461acd46b457",
    "entry": "<test>item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d</test>",
    "item-id": "item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d"
}

2021-03-17 22:29:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d"
}

2021-03-17 22:29:00 | [Mutex] waiting for: [published:item:notifieditem-05b9186e-d6f8-4fd2-a32e-d1f1458e869d:admin@test-domain.com]

2021-03-17 22:29:00 | [Mutex] received everything.

2021-03-17 22:29:00 | [Mutex] isItemNotified: published:item:notifieditem-05b9186e-d6f8-4fd2-a32e-d1f1458e869d:admin@test-domain.com :: true

retractItemsFromNodes 0.105s
2021-03-17 22:29:01 |

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

2021-03-17 22:29:01 | ------------------------------------

2021-03-17 22:29:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f8567157-b137-4364-b495-461acd46b457",
    "item-id": "item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d"
}

2021-03-17 22:29:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d"
}

2021-03-17 22:29:01 | [Mutex] waiting for: [retracted:item:notifieditem-05b9186e-d6f8-4fd2-a32e-d1f1458e869d:admin@test-domain.com]

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

2021-03-17 22:29:01 | [Mutex] isItemNotified: retracted:item:notifieditem-05b9186e-d6f8-4fd2-a32e-d1f1458e869d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2021-03-17 22:29:00 |

2021-03-17 22:29:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:00 | ------------------------------------

2021-03-17 22:29:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f8567157-b137-4364-b495-461acd46b457",
    "item-id": "item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d"
}

2021-03-17 22:29:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f8567157-b137-4364-b495-461acd46b457",
    "item-id": "item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d",
    "item": [
        "<item id=\"item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d\"><test>item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d</test></item>"
    ]
}

2021-03-17 22:29:00 | [Mutex] notify: [retrieved:item:item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d:payload-matches:true:localhost]

2021-03-17 22:29:00 | [Mutex] received everything.

2021-03-17 22:29:00 | [Mutex] isItemNotified: retrieved:item:item-05b9186e-d6f8-4fd2-a32e-d1f1458e869d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-03-17 22:29:00 |

2021-03-17 22:29:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:00 | ------------------------------------

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

2021-03-17 22:29:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f8567157-b137-4364-b495-461acd46b457",
        "node-79ff137e-974f-48a1-b87b-5d5543c4ef97"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-03-17 22:29:00 |

2021-03-17 22:29:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:00 | ------------------------------------

2021-03-17 22:29:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f8567157-b137-4364-b495-461acd46b457)"
}

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

subscribeNodes 1.009s
2021-03-17 22:28:59 |

2021-03-17 22:28:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:28:59 | ------------------------------------

2021-03-17 22:28:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f8567157-b137-4364-b495-461acd46b457",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-17 22:28:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.016s
2021-03-17 22:29:01 |

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

2021-03-17 22:29:01 | ------------------------------------

2021-03-17 22:29:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f8567157-b137-4364-b495-461acd46b457",
    "jids": [
        "admin@test-domain.com"
    ]
}

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