Generated by TestNG with ReportNG at 00:00 PDT on Saturday 29 August 2020
root@3513606298cd / 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.986s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2020-08-29 00:16:17 |

2020-08-29 00:16:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:17 | ------------------------------------

2020-08-29 00:16:17 | [Mutex] waiting for: [configured:node:node-d093460e-e862-4808-b8a3-748f2aefb43e:node-2e783aa8-4a4d-4237-98ae-325e93cf7b3d]

2020-08-29 00:16:17 | [Mutex] received everything.

2020-08-29 00:16:17 | [Mutex] isItemNotified: configured:node:node-d093460e-e862-4808-b8a3-748f2aefb43e:node-2e783aa8-4a4d-4237-98ae-325e93cf7b3d :: true

2020-08-29 00:16:18 | [Mutex] waiting for: [received:nodes:c7f70462-5be3-4f27-8048-e8dde1a83a2c:localhost]

2020-08-29 00:16:18 | [Mutex] waiting for: [received:nodes:c7f70462-5be3-4f27-8048-e8dde1a83a2c:localhost]

2020-08-29 00:16:18 | [Mutex] received everything.

2020-08-29 00:16:18 | [Mutex] isItemNotified: received:node:c7f70462-5be3-4f27-8048-e8dde1a83a2c:localhost:node-d093460e-e862-4808-b8a3-748f2aefb43e:Node d093460e-e862-4808-b8a3-748f2aefb43e :: true

2020-08-29 00:16:18 | [Mutex] waiting for: [received:nodes:8d982a86-3011-478e-a965-d65e9fdcb937:localhost]

2020-08-29 00:16:18 | [Mutex] waiting for: [received:nodes:8d982a86-3011-478e-a965-d65e9fdcb937:localhost]

2020-08-29 00:16:18 | [Mutex] received everything.

2020-08-29 00:16:18 | [Mutex] isItemNotified: received:node:8d982a86-3011-478e-a965-d65e9fdcb937:localhost:node-d093460e-e862-4808-b8a3-748f2aefb43e:Node d093460e-e862-4808-b8a3-748f2aefb43e :: false

createNodes 1.669s
2020-08-29 00:16:14 |

2020-08-29 00:16:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:14 | ------------------------------------

2020-08-29 00:16:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d093460e-e862-4808-b8a3-748f2aefb43e",
    "pubsub#title": "Node d093460e-e862-4808-b8a3-748f2aefb43e"
}

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

2020-08-29 00:16:16 | [Mutex] waiting for: [received:nodes:43747afa-0f5b-4312-931a-0bf7ca40d6c6:localhost]

2020-08-29 00:16:16 | [Mutex] received everything.

2020-08-29 00:16:16 | [Mutex] isItemNotified: received:node:43747afa-0f5b-4312-931a-0bf7ca40d6c6:localhost:node-d093460e-e862-4808-b8a3-748f2aefb43e:Node d093460e-e862-4808-b8a3-748f2aefb43e :: true

createSubnodes 1.025s
2020-08-29 00:16:16 |

2020-08-29 00:16:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:16 | ------------------------------------

2020-08-29 00:16:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2e783aa8-4a4d-4237-98ae-325e93cf7b3d",
    "pubsub#title": "Node 2e783aa8-4a4d-4237-98ae-325e93cf7b3d"
}

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

2020-08-29 00:16:17 | [Mutex] waiting for: [received:nodes:8d13d709-c15c-406b-8e21-b5f5049ad293:localhost]

2020-08-29 00:16:17 | [Mutex] received everything.

2020-08-29 00:16:17 | [Mutex] isItemNotified: received:node:8d13d709-c15c-406b-8e21-b5f5049ad293:localhost:node-2e783aa8-4a4d-4237-98ae-325e93cf7b3d:Node 2e783aa8-4a4d-4237-98ae-325e93cf7b3d :: true

deleteNodes 1.021s
2020-08-29 00:16:22 |

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

2020-08-29 00:16:22 | ------------------------------------

2020-08-29 00:16:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2e783aa8-4a4d-4237-98ae-325e93cf7b3d"
}

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

2020-08-29 00:16:23 | [Mutex] waiting for: [received:nodes:013a497f-a745-466c-b7e5-b6b3250ff054:localhost]

2020-08-29 00:16:23 | [Mutex] received everything.

2020-08-29 00:16:23 | [Mutex] isItemNotified: received:node:013a497f-a745-466c-b7e5-b6b3250ff054:localhost:node-2e783aa8-4a4d-4237-98ae-325e93cf7b3d:Node 2e783aa8-4a4d-4237-98ae-325e93cf7b3d :: false

deleteSubnodes 1.027s
2020-08-29 00:16:21 |

2020-08-29 00:16:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:21 | ------------------------------------

2020-08-29 00:16:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d093460e-e862-4808-b8a3-748f2aefb43e"
}

2020-08-29 00:16:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-29 00:16:22 | [Mutex] waiting for: [received:nodes:6d56f728-5476-4e2d-951c-d4a773b7ae66:localhost]

2020-08-29 00:16:22 | [Mutex] received everything.

2020-08-29 00:16:22 | [Mutex] isItemNotified: received:node:6d56f728-5476-4e2d-951c-d4a773b7ae66:localhost:node-d093460e-e862-4808-b8a3-748f2aefb43e:Node d093460e-e862-4808-b8a3-748f2aefb43e :: false

2020-08-29 00:16:22 | [Mutex] waiting for: [received:nodes:64bb680c-8c8d-4c04-b26b-73779af6596e:localhost]

2020-08-29 00:16:22 | [Mutex] received everything.

2020-08-29 00:16:22 | [Mutex] isItemNotified: received:node:64bb680c-8c8d-4c04-b26b-73779af6596e:localhost:node-d093460e-e862-4808-b8a3-748f2aefb43e:Node d093460e-e862-4808-b8a3-748f2aefb43e :: false

publishItemsToNodes 0.052s
2020-08-29 00:16:19 |

2020-08-29 00:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:19 | ------------------------------------

2020-08-29 00:16:19 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d093460e-e862-4808-b8a3-748f2aefb43e",
    "entry": "<test>item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d</test>",
    "item-id": "item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d"
}

2020-08-29 00:16:19 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d"
}

2020-08-29 00:16:19 | [Mutex] waiting for: [published:item:notifieditem-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d:admin@test-domain.com]

2020-08-29 00:16:19 | [Mutex] received everything.

2020-08-29 00:16:19 | [Mutex] isItemNotified: published:item:notifieditem-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-08-29 00:16:19 |

2020-08-29 00:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:19 | ------------------------------------

2020-08-29 00:16:19 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d093460e-e862-4808-b8a3-748f2aefb43e",
    "item-id": "item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d"
}

2020-08-29 00:16:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d"
}

2020-08-29 00:16:19 | [Mutex] received everything.

2020-08-29 00:16:19 | [Mutex] isItemNotified: retracted:item:notifieditem-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.036s
2020-08-29 00:16:19 |

2020-08-29 00:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:19 | ------------------------------------

2020-08-29 00:16:19 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d093460e-e862-4808-b8a3-748f2aefb43e",
    "item-id": "item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d"
}

2020-08-29 00:16:19 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d093460e-e862-4808-b8a3-748f2aefb43e",
    "item-id": "item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d",
    "item": [
        "<item id=\"item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d\"><test>item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d</test></item>"
    ]
}

2020-08-29 00:16:19 | [Mutex] notify: [retrieved:item:item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d:payload-matches:true:localhost]

2020-08-29 00:16:19 | [Mutex] received everything.

2020-08-29 00:16:19 | [Mutex] isItemNotified: retrieved:item:item-bc7dd4c1-7a7d-4d5d-afdf-fc7ac001778d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.067s
2020-08-29 00:16:19 |

2020-08-29 00:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:19 | ------------------------------------

2020-08-29 00:16:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-29 00:16:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2e783aa8-4a4d-4237-98ae-325e93cf7b3d",
        "node-d093460e-e862-4808-b8a3-748f2aefb43e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-29 00:16:19 |

2020-08-29 00:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:19 | ------------------------------------

2020-08-29 00:16:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d093460e-e862-4808-b8a3-748f2aefb43e)"
}

2020-08-29 00:16:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2020-08-29 00:16:18 |

2020-08-29 00:16:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:18 | ------------------------------------

2020-08-29 00:16:18 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d093460e-e862-4808-b8a3-748f2aefb43e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-29 00:16:18 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2020-08-29 00:16:19 |

2020-08-29 00:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-29 00:16:19 | ------------------------------------

2020-08-29 00:16:19 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d093460e-e862-4808-b8a3-748f2aefb43e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-29 00:16:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}