Generated by TestNG with ReportNG at 16:14 PDT on Friday 25 September 2020
root@a2ca0c7e65bb / 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.275s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2020-09-25 16:30:03 |

2020-09-25 16:30:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:03 | ------------------------------------

2020-09-25 16:30:03 | [Mutex] waiting for: [configured:node:node-4c7ed180-c1db-4ba9-a086-c27625b3996d:node-ddd3b1de-6700-4636-8922-664e1d287665]

2020-09-25 16:30:03 | [Mutex] received everything.

2020-09-25 16:30:03 | [Mutex] isItemNotified: configured:node:node-4c7ed180-c1db-4ba9-a086-c27625b3996d:node-ddd3b1de-6700-4636-8922-664e1d287665 :: true

2020-09-25 16:30:04 | [Mutex] waiting for: [received:nodes:51986f0c-b445-4b04-a008-8fcbc6a9d24c:localhost]

2020-09-25 16:30:04 | [Mutex] received everything.

2020-09-25 16:30:04 | [Mutex] isItemNotified: received:node:51986f0c-b445-4b04-a008-8fcbc6a9d24c:localhost:node-4c7ed180-c1db-4ba9-a086-c27625b3996d:Node 4c7ed180-c1db-4ba9-a086-c27625b3996d :: true

2020-09-25 16:30:04 | [Mutex] waiting for: [received:nodes:3db41baf-7729-4152-a933-1bc6c875af38:localhost]

2020-09-25 16:30:04 | [Mutex] waiting for: [received:nodes:3db41baf-7729-4152-a933-1bc6c875af38:localhost]

2020-09-25 16:30:04 | [Mutex] waiting for: [received:nodes:3db41baf-7729-4152-a933-1bc6c875af38:localhost]

2020-09-25 16:30:04 | [Mutex] received everything.

2020-09-25 16:30:04 | [Mutex] isItemNotified: received:node:3db41baf-7729-4152-a933-1bc6c875af38:localhost:node-4c7ed180-c1db-4ba9-a086-c27625b3996d:Node 4c7ed180-c1db-4ba9-a086-c27625b3996d :: false

createNodes 1.934s
2020-09-25 16:30:00 |

2020-09-25 16:30:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:00 | ------------------------------------

2020-09-25 16:30:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4c7ed180-c1db-4ba9-a086-c27625b3996d",
    "pubsub#title": "Node 4c7ed180-c1db-4ba9-a086-c27625b3996d"
}

2020-09-25 16:30:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:30:02 | [Mutex] waiting for: [received:nodes:c7121914-06be-4e44-a762-f0e6932d2748:localhost]

2020-09-25 16:30:02 | [Mutex] waiting for: [received:nodes:c7121914-06be-4e44-a762-f0e6932d2748:localhost]

2020-09-25 16:30:02 | [Mutex] waiting for: [received:nodes:c7121914-06be-4e44-a762-f0e6932d2748:localhost]

2020-09-25 16:30:02 | [Mutex] received everything.

2020-09-25 16:30:02 | [Mutex] isItemNotified: received:node:c7121914-06be-4e44-a762-f0e6932d2748:localhost:node-4c7ed180-c1db-4ba9-a086-c27625b3996d:Node 4c7ed180-c1db-4ba9-a086-c27625b3996d :: true

createSubnodes 1.028s
2020-09-25 16:30:02 |

2020-09-25 16:30:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:02 | ------------------------------------

2020-09-25 16:30:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ddd3b1de-6700-4636-8922-664e1d287665",
    "pubsub#title": "Node ddd3b1de-6700-4636-8922-664e1d287665"
}

2020-09-25 16:30:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:30:03 | [Mutex] waiting for: [received:nodes:3194f6e8-2e28-4535-9029-799a36dcbc73:localhost]

2020-09-25 16:30:03 | [Mutex] received everything.

2020-09-25 16:30:03 | [Mutex] isItemNotified: received:node:3194f6e8-2e28-4535-9029-799a36dcbc73:localhost:node-ddd3b1de-6700-4636-8922-664e1d287665:Node ddd3b1de-6700-4636-8922-664e1d287665 :: true

deleteNodes 1.021s
2020-09-25 16:30:07 |

2020-09-25 16:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:07 | ------------------------------------

2020-09-25 16:30:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ddd3b1de-6700-4636-8922-664e1d287665"
}

2020-09-25 16:30:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:30:08 | [Mutex] waiting for: [received:nodes:7663cbd4-fdb1-4b0e-b03b-e46c154b6dd1:localhost]

2020-09-25 16:30:08 | [Mutex] waiting for: [received:nodes:7663cbd4-fdb1-4b0e-b03b-e46c154b6dd1:localhost]

2020-09-25 16:30:08 | [Mutex] received everything.

2020-09-25 16:30:08 | [Mutex] isItemNotified: received:node:7663cbd4-fdb1-4b0e-b03b-e46c154b6dd1:localhost:node-ddd3b1de-6700-4636-8922-664e1d287665:Node ddd3b1de-6700-4636-8922-664e1d287665 :: false

deleteSubnodes 1.029s
2020-09-25 16:30:06 |

2020-09-25 16:30:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:06 | ------------------------------------

2020-09-25 16:30:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4c7ed180-c1db-4ba9-a086-c27625b3996d"
}

2020-09-25 16:30:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 16:30:07 | [Mutex] waiting for: [received:nodes:b3a0d437-d76d-4711-95bd-9130918c03f2:localhost]

2020-09-25 16:30:07 | [Mutex] received everything.

2020-09-25 16:30:07 | [Mutex] isItemNotified: received:node:b3a0d437-d76d-4711-95bd-9130918c03f2:localhost:node-4c7ed180-c1db-4ba9-a086-c27625b3996d:Node 4c7ed180-c1db-4ba9-a086-c27625b3996d :: false

2020-09-25 16:30:07 | [Mutex] waiting for: [received:nodes:3b404319-cf42-4b0f-ab1e-92ce2257e769:localhost]

2020-09-25 16:30:07 | [Mutex] received everything.

2020-09-25 16:30:07 | [Mutex] isItemNotified: received:node:3b404319-cf42-4b0f-ab1e-92ce2257e769:localhost:node-4c7ed180-c1db-4ba9-a086-c27625b3996d:Node 4c7ed180-c1db-4ba9-a086-c27625b3996d :: false

publishItemsToNodes 0.047s
2020-09-25 16:30:05 |

2020-09-25 16:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:05 | ------------------------------------

2020-09-25 16:30:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4c7ed180-c1db-4ba9-a086-c27625b3996d",
    "entry": "<test>item-8934ebc0-ff3e-4914-8993-bd6984a49954</test>",
    "item-id": "item-8934ebc0-ff3e-4914-8993-bd6984a49954"
}

2020-09-25 16:30:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8934ebc0-ff3e-4914-8993-bd6984a49954"
}

2020-09-25 16:30:05 | [Mutex] waiting for: [published:item:notifieditem-8934ebc0-ff3e-4914-8993-bd6984a49954:admin@test-domain.com]

2020-09-25 16:30:05 | [Mutex] received everything.

2020-09-25 16:30:05 | [Mutex] isItemNotified: published:item:notifieditem-8934ebc0-ff3e-4914-8993-bd6984a49954:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-09-25 16:30:05 |

2020-09-25 16:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:05 | ------------------------------------

2020-09-25 16:30:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4c7ed180-c1db-4ba9-a086-c27625b3996d",
    "item-id": "item-8934ebc0-ff3e-4914-8993-bd6984a49954"
}

2020-09-25 16:30:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8934ebc0-ff3e-4914-8993-bd6984a49954"
}

2020-09-25 16:30:05 | [Mutex] received everything.

2020-09-25 16:30:05 | [Mutex] isItemNotified: retracted:item:notifieditem-8934ebc0-ff3e-4914-8993-bd6984a49954:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2020-09-25 16:30:05 |

2020-09-25 16:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:05 | ------------------------------------

2020-09-25 16:30:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4c7ed180-c1db-4ba9-a086-c27625b3996d",
    "item-id": "item-8934ebc0-ff3e-4914-8993-bd6984a49954"
}

2020-09-25 16:30:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4c7ed180-c1db-4ba9-a086-c27625b3996d",
    "item-id": "item-8934ebc0-ff3e-4914-8993-bd6984a49954",
    "item": [
        "<item id=\"item-8934ebc0-ff3e-4914-8993-bd6984a49954\"><test>item-8934ebc0-ff3e-4914-8993-bd6984a49954</test></item>"
    ]
}

2020-09-25 16:30:05 | [Mutex] notify: [retrieved:item:item-8934ebc0-ff3e-4914-8993-bd6984a49954:payload-matches:true:localhost]

2020-09-25 16:30:05 | [Mutex] received everything.

2020-09-25 16:30:05 | [Mutex] isItemNotified: retrieved:item:item-8934ebc0-ff3e-4914-8993-bd6984a49954:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-25 16:30:05 |

2020-09-25 16:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:05 | ------------------------------------

2020-09-25 16:30:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-25 16:30:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-4c7ed180-c1db-4ba9-a086-c27625b3996d",
        "test",
        "node-ddd3b1de-6700-4636-8922-664e1d287665"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-25 16:30:05 |

2020-09-25 16:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:05 | ------------------------------------

2020-09-25 16:30:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4c7ed180-c1db-4ba9-a086-c27625b3996d)"
}

2020-09-25 16:30:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-09-25 16:30:04 |

2020-09-25 16:30:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:04 | ------------------------------------

2020-09-25 16:30:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4c7ed180-c1db-4ba9-a086-c27625b3996d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 16:30:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-25 16:30:05 |

2020-09-25 16:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 16:30:05 | ------------------------------------

2020-09-25 16:30:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4c7ed180-c1db-4ba9-a086-c27625b3996d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 16:30:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}