Generated by TestNG with ReportNG at 22:01 PST on Sunday 05 December 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.243s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.130s
2021-12-05 22:16:45 |

2021-12-05 22:16:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:45 | ------------------------------------

2021-12-05 22:16:45 | [Mutex] waiting for: [configured:node:node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5:node-0121eecc-c1f8-4181-8ea7-071c963e1df1]

2021-12-05 22:16:45 | [Mutex] received everything.

2021-12-05 22:16:45 | [Mutex] isItemNotified: configured:node:node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5:node-0121eecc-c1f8-4181-8ea7-071c963e1df1 :: true

2021-12-05 22:16:46 | [Mutex] waiting for: [received:nodes:fb9e1ca0-b4f9-4a22-a31c-f0a411be000c:localhost]

2021-12-05 22:16:46 | [Mutex] waiting for: [received:nodes:fb9e1ca0-b4f9-4a22-a31c-f0a411be000c:localhost]

2021-12-05 22:16:46 | [Mutex] received everything.

2021-12-05 22:16:46 | [Mutex] isItemNotified: received:node:fb9e1ca0-b4f9-4a22-a31c-f0a411be000c:localhost:node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5:Node b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5 :: true

2021-12-05 22:16:46 | [Mutex] waiting for: [received:nodes:e45ab297-2e04-45ca-8366-3c73b39ae0dd:localhost]

2021-12-05 22:16:46 | [Mutex] received everything.

2021-12-05 22:16:46 | [Mutex] isItemNotified: received:node:e45ab297-2e04-45ca-8366-3c73b39ae0dd:localhost:node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5:Node b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5 :: false

createNodes 1.755s
2021-12-05 22:16:42 |

2021-12-05 22:16:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:42 | ------------------------------------

2021-12-05 22:16:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5",
    "pubsub#title": "Node b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5"
}

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

2021-12-05 22:16:44 | [Mutex] waiting for: [received:nodes:cb794cea-d3bd-49d5-9eec-57b52b977d6e:localhost]

2021-12-05 22:16:44 | [Mutex] waiting for: [received:nodes:cb794cea-d3bd-49d5-9eec-57b52b977d6e:localhost]

2021-12-05 22:16:44 | [Mutex] received everything.

2021-12-05 22:16:44 | [Mutex] isItemNotified: received:node:cb794cea-d3bd-49d5-9eec-57b52b977d6e:localhost:node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5:Node b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5 :: true

createSubnodes 1.027s
2021-12-05 22:16:44 |

2021-12-05 22:16:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:44 | ------------------------------------

2021-12-05 22:16:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0121eecc-c1f8-4181-8ea7-071c963e1df1",
    "pubsub#title": "Node 0121eecc-c1f8-4181-8ea7-071c963e1df1"
}

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

2021-12-05 22:16:45 | [Mutex] waiting for: [received:nodes:15cb9d26-fa4b-4157-986f-69b9a3e60e26:localhost]

2021-12-05 22:16:45 | [Mutex] received everything.

2021-12-05 22:16:45 | [Mutex] isItemNotified: received:node:15cb9d26-fa4b-4157-986f-69b9a3e60e26:localhost:node-0121eecc-c1f8-4181-8ea7-071c963e1df1:Node 0121eecc-c1f8-4181-8ea7-071c963e1df1 :: true

deleteNodes 1.024s
2021-12-05 22:16:50 |

2021-12-05 22:16:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:50 | ------------------------------------

2021-12-05 22:16:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0121eecc-c1f8-4181-8ea7-071c963e1df1"
}

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

2021-12-05 22:16:51 | [Mutex] waiting for: [received:nodes:352cdb90-8deb-4ab3-ac08-79d052ff19f6:localhost]

2021-12-05 22:16:51 | [Mutex] received everything.

2021-12-05 22:16:51 | [Mutex] isItemNotified: received:node:352cdb90-8deb-4ab3-ac08-79d052ff19f6:localhost:node-0121eecc-c1f8-4181-8ea7-071c963e1df1:Node 0121eecc-c1f8-4181-8ea7-071c963e1df1 :: false

deleteSubnodes 1.030s
2021-12-05 22:16:48 |

2021-12-05 22:16:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:48 | ------------------------------------

2021-12-05 22:16:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5"
}

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

2021-12-05 22:16:49 | [Mutex] waiting for: [received:nodes:d230213c-5e5d-4e93-98c2-9bdd986ae58a:localhost]

2021-12-05 22:16:49 | [Mutex] received everything.

2021-12-05 22:16:49 | [Mutex] isItemNotified: received:node:d230213c-5e5d-4e93-98c2-9bdd986ae58a:localhost:node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5:Node b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5 :: false

2021-12-05 22:16:49 | [Mutex] waiting for: [received:nodes:182a0e59-241e-4591-85e2-c77b3aa3aa88:localhost]

2021-12-05 22:16:50 | [Mutex] received everything.

2021-12-05 22:16:50 | [Mutex] isItemNotified: received:node:182a0e59-241e-4591-85e2-c77b3aa3aa88:localhost:node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5:Node b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5 :: false

publishItemsToNodes 0.045s
2021-12-05 22:16:47 |

2021-12-05 22:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:47 | ------------------------------------

2021-12-05 22:16:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5",
    "entry": "<test>item-b4d317b1-ccfd-4428-9524-e043488d1d99</test>",
    "item-id": "item-b4d317b1-ccfd-4428-9524-e043488d1d99"
}

2021-12-05 22:16:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b4d317b1-ccfd-4428-9524-e043488d1d99"
}

2021-12-05 22:16:47 | [Mutex] waiting for: [published:item:notifieditem-b4d317b1-ccfd-4428-9524-e043488d1d99:admin@test-domain.com]

2021-12-05 22:16:47 | [Mutex] received everything.

2021-12-05 22:16:47 | [Mutex] isItemNotified: published:item:notifieditem-b4d317b1-ccfd-4428-9524-e043488d1d99:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2021-12-05 22:16:47 |

2021-12-05 22:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:47 | ------------------------------------

2021-12-05 22:16:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5",
    "item-id": "item-b4d317b1-ccfd-4428-9524-e043488d1d99"
}

2021-12-05 22:16:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b4d317b1-ccfd-4428-9524-e043488d1d99"
}

2021-12-05 22:16:47 | [Mutex] received everything.

2021-12-05 22:16:47 | [Mutex] isItemNotified: retracted:item:notifieditem-b4d317b1-ccfd-4428-9524-e043488d1d99:admin@test-domain.com :: true

retrieveItemsFromNodes 0.091s
2021-12-05 22:16:47 |

2021-12-05 22:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:47 | ------------------------------------

2021-12-05 22:16:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5",
    "item-id": "item-b4d317b1-ccfd-4428-9524-e043488d1d99"
}

2021-12-05 22:16:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5",
    "item-id": "item-b4d317b1-ccfd-4428-9524-e043488d1d99",
    "item": [
        "<item id=\"item-b4d317b1-ccfd-4428-9524-e043488d1d99\"><test>item-b4d317b1-ccfd-4428-9524-e043488d1d99</test></item>"
    ]
}

2021-12-05 22:16:47 | [Mutex] notify: [retrieved:item:item-b4d317b1-ccfd-4428-9524-e043488d1d99:payload-matches:true:localhost]

2021-12-05 22:16:47 | [Mutex] received everything.

2021-12-05 22:16:47 | [Mutex] isItemNotified: retrieved:item:item-b4d317b1-ccfd-4428-9524-e043488d1d99:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-12-05 22:16:47 |

2021-12-05 22:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:47 | ------------------------------------

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

2021-12-05 22:16:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5",
        "node-0121eecc-c1f8-4181-8ea7-071c963e1df1",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-12-05 22:16:47 |

2021-12-05 22:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:47 | ------------------------------------

2021-12-05 22:16:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5)"
}

2021-12-05 22:16:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-12-05 22:16:46 |

2021-12-05 22:16:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:46 | ------------------------------------

2021-12-05 22:16:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-05 22:16:46 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2021-12-05 22:16:47 |

2021-12-05 22:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-05 22:16:47 | ------------------------------------

2021-12-05 22:16:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b911d4d4-7ae3-49af-a469-5b3cbd9ad7a5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-05 22:16:47 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}