Generated by TestNG with ReportNG at 19:33 PDT on Tuesday 01 September 2020
root@45eef7750236 / 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.977s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2020-09-01 19:50:03 |

2020-09-01 19:50:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:03 | ------------------------------------

2020-09-01 19:50:03 | [Mutex] waiting for: [configured:node:node-afabeb3e-b47d-4089-afd6-7fe886a3d16e:node-e42ea533-ac4f-4ec9-8f1a-6221e72929ea]

2020-09-01 19:50:03 | [Mutex] received everything.

2020-09-01 19:50:03 | [Mutex] isItemNotified: configured:node:node-afabeb3e-b47d-4089-afd6-7fe886a3d16e:node-e42ea533-ac4f-4ec9-8f1a-6221e72929ea :: true

2020-09-01 19:50:04 | [Mutex] waiting for: [received:nodes:2ccdc47b-9d59-4b1d-93a6-1d062953ce5d:localhost]

2020-09-01 19:50:04 | [Mutex] waiting for: [received:nodes:2ccdc47b-9d59-4b1d-93a6-1d062953ce5d:localhost]

2020-09-01 19:50:04 | [Mutex] received everything.

2020-09-01 19:50:04 | [Mutex] isItemNotified: received:node:2ccdc47b-9d59-4b1d-93a6-1d062953ce5d:localhost:node-afabeb3e-b47d-4089-afd6-7fe886a3d16e:Node afabeb3e-b47d-4089-afd6-7fe886a3d16e :: true

2020-09-01 19:50:04 | [Mutex] waiting for: [received:nodes:b82f0d77-454f-48a8-951e-5d4f8a6e0785:localhost]

2020-09-01 19:50:04 | [Mutex] received everything.

2020-09-01 19:50:04 | [Mutex] isItemNotified: received:node:b82f0d77-454f-48a8-951e-5d4f8a6e0785:localhost:node-afabeb3e-b47d-4089-afd6-7fe886a3d16e:Node afabeb3e-b47d-4089-afd6-7fe886a3d16e :: false

createNodes 1.672s
2020-09-01 19:50:00 |

2020-09-01 19:50:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:00 | ------------------------------------

2020-09-01 19:50:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-afabeb3e-b47d-4089-afd6-7fe886a3d16e",
    "pubsub#title": "Node afabeb3e-b47d-4089-afd6-7fe886a3d16e"
}

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

2020-09-01 19:50:02 | [Mutex] waiting for: [received:nodes:6b57d1a3-4fe0-4991-8155-341209be72c7:localhost]

2020-09-01 19:50:02 | [Mutex] received everything.

2020-09-01 19:50:02 | [Mutex] isItemNotified: received:node:6b57d1a3-4fe0-4991-8155-341209be72c7:localhost:node-afabeb3e-b47d-4089-afd6-7fe886a3d16e:Node afabeb3e-b47d-4089-afd6-7fe886a3d16e :: true

createSubnodes 1.025s
2020-09-01 19:50:02 |

2020-09-01 19:50:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:02 | ------------------------------------

2020-09-01 19:50: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-e42ea533-ac4f-4ec9-8f1a-6221e72929ea",
    "pubsub#title": "Node e42ea533-ac4f-4ec9-8f1a-6221e72929ea"
}

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

2020-09-01 19:50:03 | [Mutex] waiting for: [received:nodes:3e77dc78-7870-4f6e-9976-10fd004ca496:localhost]

2020-09-01 19:50:03 | [Mutex] received everything.

2020-09-01 19:50:03 | [Mutex] isItemNotified: received:node:3e77dc78-7870-4f6e-9976-10fd004ca496:localhost:node-e42ea533-ac4f-4ec9-8f1a-6221e72929ea:Node e42ea533-ac4f-4ec9-8f1a-6221e72929ea :: true

deleteNodes 1.018s
2020-09-01 19:50:07 |

2020-09-01 19:50:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:07 | ------------------------------------

2020-09-01 19:50:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e42ea533-ac4f-4ec9-8f1a-6221e72929ea"
}

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

2020-09-01 19:50:08 | [Mutex] waiting for: [received:nodes:967ad67e-6739-4983-8217-80829aac344c:localhost]

2020-09-01 19:50:08 | [Mutex] received everything.

2020-09-01 19:50:08 | [Mutex] isItemNotified: received:node:967ad67e-6739-4983-8217-80829aac344c:localhost:node-e42ea533-ac4f-4ec9-8f1a-6221e72929ea:Node e42ea533-ac4f-4ec9-8f1a-6221e72929ea :: false

deleteSubnodes 1.027s
2020-09-01 19:50:06 |

2020-09-01 19:50:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:06 | ------------------------------------

2020-09-01 19:50:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-afabeb3e-b47d-4089-afd6-7fe886a3d16e"
}

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

2020-09-01 19:50:07 | [Mutex] waiting for: [received:nodes:8b966b53-1a1f-48cf-97ec-345d3a662cc8:localhost]

2020-09-01 19:50:07 | [Mutex] received everything.

2020-09-01 19:50:07 | [Mutex] isItemNotified: received:node:8b966b53-1a1f-48cf-97ec-345d3a662cc8:localhost:node-afabeb3e-b47d-4089-afd6-7fe886a3d16e:Node afabeb3e-b47d-4089-afd6-7fe886a3d16e :: false

2020-09-01 19:50:07 | [Mutex] waiting for: [received:nodes:517924dd-b95b-47cd-b374-14b945bd960b:localhost]

2020-09-01 19:50:07 | [Mutex] received everything.

2020-09-01 19:50:07 | [Mutex] isItemNotified: received:node:517924dd-b95b-47cd-b374-14b945bd960b:localhost:node-afabeb3e-b47d-4089-afd6-7fe886a3d16e:Node afabeb3e-b47d-4089-afd6-7fe886a3d16e :: false

publishItemsToNodes 0.031s
2020-09-01 19:50:05 |

2020-09-01 19:50:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:05 | ------------------------------------

2020-09-01 19:50:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-afabeb3e-b47d-4089-afd6-7fe886a3d16e",
    "entry": "<test>item-727926ca-9f53-480c-a7c5-ac855293f928</test>",
    "item-id": "item-727926ca-9f53-480c-a7c5-ac855293f928"
}

2020-09-01 19:50:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-727926ca-9f53-480c-a7c5-ac855293f928"
}

2020-09-01 19:50:05 | [Mutex] waiting for: [published:item:notifieditem-727926ca-9f53-480c-a7c5-ac855293f928:admin@test-domain.com]

2020-09-01 19:50:05 | [Mutex] received everything.

2020-09-01 19:50:05 | [Mutex] isItemNotified: published:item:notifieditem-727926ca-9f53-480c-a7c5-ac855293f928:admin@test-domain.com :: true

retractItemsFromNodes 0.100s
2020-09-01 19:50:05 |

2020-09-01 19:50:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:05 | ------------------------------------

2020-09-01 19:50:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-afabeb3e-b47d-4089-afd6-7fe886a3d16e",
    "item-id": "item-727926ca-9f53-480c-a7c5-ac855293f928"
}

2020-09-01 19:50:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-727926ca-9f53-480c-a7c5-ac855293f928"
}

2020-09-01 19:50:05 | [Mutex] waiting for: [retracted:item:notifieditem-727926ca-9f53-480c-a7c5-ac855293f928:admin@test-domain.com]

2020-09-01 19:50:05 | [Mutex] received everything.

2020-09-01 19:50:05 | [Mutex] isItemNotified: retracted:item:notifieditem-727926ca-9f53-480c-a7c5-ac855293f928:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2020-09-01 19:50:05 |

2020-09-01 19:50:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:05 | ------------------------------------

2020-09-01 19:50:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-afabeb3e-b47d-4089-afd6-7fe886a3d16e",
    "item-id": "item-727926ca-9f53-480c-a7c5-ac855293f928"
}

2020-09-01 19:50:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-afabeb3e-b47d-4089-afd6-7fe886a3d16e",
    "item-id": "item-727926ca-9f53-480c-a7c5-ac855293f928",
    "item": [
        "<item id=\"item-727926ca-9f53-480c-a7c5-ac855293f928\"><test>item-727926ca-9f53-480c-a7c5-ac855293f928</test></item>"
    ]
}

2020-09-01 19:50:05 | [Mutex] notify: [retrieved:item:item-727926ca-9f53-480c-a7c5-ac855293f928:payload-matches:true:localhost]

2020-09-01 19:50:05 | [Mutex] received everything.

2020-09-01 19:50:05 | [Mutex] isItemNotified: retrieved:item:item-727926ca-9f53-480c-a7c5-ac855293f928:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-01 19:50:05 |

2020-09-01 19:50:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:05 | ------------------------------------

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

2020-09-01 19:50:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-afabeb3e-b47d-4089-afd6-7fe886a3d16e",
        "node-e42ea533-ac4f-4ec9-8f1a-6221e72929ea"
    ]
}

retrieveUserSubscriptionsWithRegex 0.059s
2020-09-01 19:50:05 |

2020-09-01 19:50:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:05 | ------------------------------------

2020-09-01 19:50:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-afabeb3e-b47d-4089-afd6-7fe886a3d16e)"
}

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

subscribeNodes 1.015s
2020-09-01 19:50:04 |

2020-09-01 19:50:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:04 | ------------------------------------

2020-09-01 19:50:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-afabeb3e-b47d-4089-afd6-7fe886a3d16e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.058s
2020-09-01 19:50:05 |

2020-09-01 19:50:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 19:50:05 | ------------------------------------

2020-09-01 19:50:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-afabeb3e-b47d-4089-afd6-7fe886a3d16e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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