Generated by TestNG with ReportNG at 22:14 PDT on Tuesday 27 October 2020
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.038s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2020-10-27 22:29:09 |

2020-10-27 22:29:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:09 | ------------------------------------

2020-10-27 22:29:09 | [Mutex] waiting for: [configured:node:node-61607566-3c40-4427-9791-738cb298deff:node-07993341-9621-4f31-82db-9793983329c1]

2020-10-27 22:29:09 | [Mutex] received everything.

2020-10-27 22:29:09 | [Mutex] isItemNotified: configured:node:node-61607566-3c40-4427-9791-738cb298deff:node-07993341-9621-4f31-82db-9793983329c1 :: true

2020-10-27 22:29:10 | [Mutex] waiting for: [received:nodes:b92b4643-1fc5-4172-b78b-8f23fae9b7f0:localhost]

2020-10-27 22:29:10 | [Mutex] waiting for: [received:nodes:b92b4643-1fc5-4172-b78b-8f23fae9b7f0:localhost]

2020-10-27 22:29:10 | [Mutex] received everything.

2020-10-27 22:29:10 | [Mutex] isItemNotified: received:node:b92b4643-1fc5-4172-b78b-8f23fae9b7f0:localhost:node-61607566-3c40-4427-9791-738cb298deff:Node 61607566-3c40-4427-9791-738cb298deff :: true

2020-10-27 22:29:10 | [Mutex] waiting for: [received:nodes:dd4e999f-372d-4ecc-9fdb-95a06ca46a0d:localhost]

2020-10-27 22:29:10 | [Mutex] received everything.

2020-10-27 22:29:10 | [Mutex] isItemNotified: received:node:dd4e999f-372d-4ecc-9fdb-95a06ca46a0d:localhost:node-61607566-3c40-4427-9791-738cb298deff:Node 61607566-3c40-4427-9791-738cb298deff :: false

createNodes 1.788s
2020-10-27 22:29:06 |

2020-10-27 22:29:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:06 | ------------------------------------

2020-10-27 22:29:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-61607566-3c40-4427-9791-738cb298deff",
    "pubsub#title": "Node 61607566-3c40-4427-9791-738cb298deff"
}

2020-10-27 22:29:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:29:08 | [Mutex] waiting for: [received:nodes:71dc35a0-7b45-436f-bb35-44dccc8dfa29:localhost]

2020-10-27 22:29:08 | [Mutex] waiting for: [received:nodes:71dc35a0-7b45-436f-bb35-44dccc8dfa29:localhost]

2020-10-27 22:29:08 | [Mutex] waiting for: [received:nodes:71dc35a0-7b45-436f-bb35-44dccc8dfa29:localhost]

2020-10-27 22:29:08 | [Mutex] received everything.

2020-10-27 22:29:08 | [Mutex] isItemNotified: received:node:71dc35a0-7b45-436f-bb35-44dccc8dfa29:localhost:node-61607566-3c40-4427-9791-738cb298deff:Node 61607566-3c40-4427-9791-738cb298deff :: true

createSubnodes 1.027s
2020-10-27 22:29:08 |

2020-10-27 22:29:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:08 | ------------------------------------

2020-10-27 22:29:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-07993341-9621-4f31-82db-9793983329c1",
    "pubsub#title": "Node 07993341-9621-4f31-82db-9793983329c1"
}

2020-10-27 22:29:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:29:09 | [Mutex] waiting for: [received:nodes:43217ad3-23e3-4b7d-a9b6-bad36448f88d:localhost]

2020-10-27 22:29:09 | [Mutex] received everything.

2020-10-27 22:29:09 | [Mutex] isItemNotified: received:node:43217ad3-23e3-4b7d-a9b6-bad36448f88d:localhost:node-07993341-9621-4f31-82db-9793983329c1:Node 07993341-9621-4f31-82db-9793983329c1 :: true

deleteNodes 1.019s
2020-10-27 22:29:13 |

2020-10-27 22:29:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:13 | ------------------------------------

2020-10-27 22:29:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-07993341-9621-4f31-82db-9793983329c1"
}

2020-10-27 22:29:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:29:14 | [Mutex] waiting for: [received:nodes:356501d7-c844-41d0-84fa-7e72d9bd1a5c:localhost]

2020-10-27 22:29:14 | [Mutex] received everything.

2020-10-27 22:29:14 | [Mutex] isItemNotified: received:node:356501d7-c844-41d0-84fa-7e72d9bd1a5c:localhost:node-07993341-9621-4f31-82db-9793983329c1:Node 07993341-9621-4f31-82db-9793983329c1 :: false

deleteSubnodes 1.025s
2020-10-27 22:29:12 |

2020-10-27 22:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:12 | ------------------------------------

2020-10-27 22:29:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-61607566-3c40-4427-9791-738cb298deff"
}

2020-10-27 22:29:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-27 22:29:13 | [Mutex] waiting for: [received:nodes:d3119438-cb62-4823-b2e7-7c9376bfe39e:localhost]

2020-10-27 22:29:13 | [Mutex] received everything.

2020-10-27 22:29:13 | [Mutex] isItemNotified: received:node:d3119438-cb62-4823-b2e7-7c9376bfe39e:localhost:node-61607566-3c40-4427-9791-738cb298deff:Node 61607566-3c40-4427-9791-738cb298deff :: false

2020-10-27 22:29:13 | [Mutex] waiting for: [received:nodes:3960e16b-3e8c-427b-b1bd-2edbf0a6c94a:localhost]

2020-10-27 22:29:13 | [Mutex] received everything.

2020-10-27 22:29:13 | [Mutex] isItemNotified: received:node:3960e16b-3e8c-427b-b1bd-2edbf0a6c94a:localhost:node-61607566-3c40-4427-9791-738cb298deff:Node 61607566-3c40-4427-9791-738cb298deff :: false

publishItemsToNodes 0.029s
2020-10-27 22:29:11 |

2020-10-27 22:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:11 | ------------------------------------

2020-10-27 22:29:11 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-61607566-3c40-4427-9791-738cb298deff",
    "entry": "<test>item-e51ecbef-d811-4eba-9725-f6d5987a0562</test>",
    "item-id": "item-e51ecbef-d811-4eba-9725-f6d5987a0562"
}

2020-10-27 22:29:11 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e51ecbef-d811-4eba-9725-f6d5987a0562"
}

2020-10-27 22:29:11 | [Mutex] waiting for: [published:item:notifieditem-e51ecbef-d811-4eba-9725-f6d5987a0562:admin@test-domain.com]

2020-10-27 22:29:11 | [Mutex] received everything.

2020-10-27 22:29:11 | [Mutex] isItemNotified: published:item:notifieditem-e51ecbef-d811-4eba-9725-f6d5987a0562:admin@test-domain.com :: true

retractItemsFromNodes 0.103s
2020-10-27 22:29:11 |

2020-10-27 22:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:11 | ------------------------------------

2020-10-27 22:29:11 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-61607566-3c40-4427-9791-738cb298deff",
    "item-id": "item-e51ecbef-d811-4eba-9725-f6d5987a0562"
}

2020-10-27 22:29:11 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e51ecbef-d811-4eba-9725-f6d5987a0562"
}

2020-10-27 22:29:11 | [Mutex] received everything.

2020-10-27 22:29:11 | [Mutex] isItemNotified: retracted:item:notifieditem-e51ecbef-d811-4eba-9725-f6d5987a0562:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2020-10-27 22:29:11 |

2020-10-27 22:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:11 | ------------------------------------

2020-10-27 22:29:11 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-61607566-3c40-4427-9791-738cb298deff",
    "item-id": "item-e51ecbef-d811-4eba-9725-f6d5987a0562"
}

2020-10-27 22:29:11 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-61607566-3c40-4427-9791-738cb298deff",
    "item-id": "item-e51ecbef-d811-4eba-9725-f6d5987a0562",
    "item": [
        "<item id=\"item-e51ecbef-d811-4eba-9725-f6d5987a0562\"><test>item-e51ecbef-d811-4eba-9725-f6d5987a0562</test></item>"
    ]
}

2020-10-27 22:29:11 | [Mutex] notify: [retrieved:item:item-e51ecbef-d811-4eba-9725-f6d5987a0562:payload-matches:true:localhost]

2020-10-27 22:29:11 | [Mutex] received everything.

2020-10-27 22:29:11 | [Mutex] isItemNotified: retrieved:item:item-e51ecbef-d811-4eba-9725-f6d5987a0562:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-10-27 22:29:11 |

2020-10-27 22:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:11 | ------------------------------------

2020-10-27 22:29:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-27 22:29:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-07993341-9621-4f31-82db-9793983329c1",
        "node-61607566-3c40-4427-9791-738cb298deff"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-10-27 22:29:11 |

2020-10-27 22:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:11 | ------------------------------------

2020-10-27 22:29:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-61607566-3c40-4427-9791-738cb298deff)"
}

2020-10-27 22:29:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2020-10-27 22:29:10 |

2020-10-27 22:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:10 | ------------------------------------

2020-10-27 22:29:10 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-61607566-3c40-4427-9791-738cb298deff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-27 22:29:10 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.068s
2020-10-27 22:29:11 |

2020-10-27 22:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:29:11 | ------------------------------------

2020-10-27 22:29:11 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-61607566-3c40-4427-9791-738cb298deff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-27 22:29:11 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}