Generated by TestNG with ReportNG at 22:42 PDT on Sunday 11 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.235s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.130s
2020-10-11 22:59:11 |

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

2020-10-11 22:59:11 | ------------------------------------

2020-10-11 22:59:11 | [Mutex] waiting for: [configured:node:node-cc0da92f-f091-4306-85b6-a35a37173718:node-29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d]

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

2020-10-11 22:59:11 | [Mutex] isItemNotified: configured:node:node-cc0da92f-f091-4306-85b6-a35a37173718:node-29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d :: true

2020-10-11 22:59:12 | [Mutex] waiting for: [received:nodes:1bb6a591-a377-4159-9663-f5408a91ea06:localhost]

2020-10-11 22:59:12 | [Mutex] received everything.

2020-10-11 22:59:12 | [Mutex] isItemNotified: received:node:1bb6a591-a377-4159-9663-f5408a91ea06:localhost:node-cc0da92f-f091-4306-85b6-a35a37173718:Node cc0da92f-f091-4306-85b6-a35a37173718 :: true

2020-10-11 22:59:12 | [Mutex] waiting for: [received:nodes:0f7595d0-4bf1-42e4-919a-90a9ad78e17e:localhost]

2020-10-11 22:59:12 | [Mutex] received everything.

2020-10-11 22:59:12 | [Mutex] isItemNotified: received:node:0f7595d0-4bf1-42e4-919a-90a9ad78e17e:localhost:node-cc0da92f-f091-4306-85b6-a35a37173718:Node cc0da92f-f091-4306-85b6-a35a37173718 :: false

createNodes 1.789s
2020-10-11 22:59:08 |

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

2020-10-11 22:59:08 | ------------------------------------

2020-10-11 22:59:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cc0da92f-f091-4306-85b6-a35a37173718",
    "pubsub#title": "Node cc0da92f-f091-4306-85b6-a35a37173718"
}

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

2020-10-11 22:59:10 | [Mutex] waiting for: [received:nodes:b686e568-ccd8-45ea-844c-20047048efc7:localhost]

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

2020-10-11 22:59:10 | [Mutex] isItemNotified: received:node:b686e568-ccd8-45ea-844c-20047048efc7:localhost:node-cc0da92f-f091-4306-85b6-a35a37173718:Node cc0da92f-f091-4306-85b6-a35a37173718 :: true

createSubnodes 1.035s
2020-10-11 22:59:10 |

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

2020-10-11 22:59:10 | ------------------------------------

2020-10-11 22:59:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d",
    "pubsub#title": "Node 29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d"
}

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

2020-10-11 22:59:11 | [Mutex] waiting for: [received:nodes:9f95a0b4-41d6-4e77-8636-f93d6e3a5bcb:localhost]

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

2020-10-11 22:59:11 | [Mutex] isItemNotified: received:node:9f95a0b4-41d6-4e77-8636-f93d6e3a5bcb:localhost:node-29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d:Node 29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d :: true

deleteNodes 1.024s
2020-10-11 22:59:16 |

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

2020-10-11 22:59:16 | ------------------------------------

2020-10-11 22:59:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d"
}

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

2020-10-11 22:59:17 | [Mutex] waiting for: [received:nodes:6f7e73a7-a35e-4de1-9ded-58e6398c5d4c:localhost]

2020-10-11 22:59:17 | [Mutex] waiting for: [received:nodes:6f7e73a7-a35e-4de1-9ded-58e6398c5d4c:localhost]

2020-10-11 22:59:17 | [Mutex] received everything.

2020-10-11 22:59:17 | [Mutex] isItemNotified: received:node:6f7e73a7-a35e-4de1-9ded-58e6398c5d4c:localhost:node-29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d:Node 29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d :: false

deleteSubnodes 1.054s
2020-10-11 22:59:15 |

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

2020-10-11 22:59:15 | ------------------------------------

2020-10-11 22:59:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cc0da92f-f091-4306-85b6-a35a37173718"
}

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

2020-10-11 22:59:16 | [Mutex] waiting for: [received:nodes:af1ed59f-fe8b-479f-8039-5528cf9e3323:localhost]

2020-10-11 22:59:16 | [Mutex] received everything.

2020-10-11 22:59:16 | [Mutex] isItemNotified: received:node:af1ed59f-fe8b-479f-8039-5528cf9e3323:localhost:node-cc0da92f-f091-4306-85b6-a35a37173718:Node cc0da92f-f091-4306-85b6-a35a37173718 :: false

2020-10-11 22:59:16 | [Mutex] waiting for: [received:nodes:810f3912-364f-4c52-a359-1050219123ee:localhost]

2020-10-11 22:59:16 | [Mutex] received everything.

2020-10-11 22:59:16 | [Mutex] isItemNotified: received:node:810f3912-364f-4c52-a359-1050219123ee:localhost:node-cc0da92f-f091-4306-85b6-a35a37173718:Node cc0da92f-f091-4306-85b6-a35a37173718 :: false

publishItemsToNodes 0.042s
2020-10-11 22:59:13 |

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

2020-10-11 22:59:13 | ------------------------------------

2020-10-11 22:59:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cc0da92f-f091-4306-85b6-a35a37173718",
    "entry": "<test>item-8d871934-5957-4a51-9ce7-1fbbc2021278</test>",
    "item-id": "item-8d871934-5957-4a51-9ce7-1fbbc2021278"
}

2020-10-11 22:59:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8d871934-5957-4a51-9ce7-1fbbc2021278"
}

2020-10-11 22:59:13 | [Mutex] waiting for: [published:item:notifieditem-8d871934-5957-4a51-9ce7-1fbbc2021278:admin@test-domain.com]

2020-10-11 22:59:13 | [Mutex] received everything.

2020-10-11 22:59:13 | [Mutex] isItemNotified: published:item:notifieditem-8d871934-5957-4a51-9ce7-1fbbc2021278:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-10-11 22:59:13 |

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

2020-10-11 22:59:13 | ------------------------------------

2020-10-11 22:59:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cc0da92f-f091-4306-85b6-a35a37173718",
    "item-id": "item-8d871934-5957-4a51-9ce7-1fbbc2021278"
}

2020-10-11 22:59:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8d871934-5957-4a51-9ce7-1fbbc2021278"
}

2020-10-11 22:59:13 | [Mutex] received everything.

2020-10-11 22:59:13 | [Mutex] isItemNotified: retracted:item:notifieditem-8d871934-5957-4a51-9ce7-1fbbc2021278:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2020-10-11 22:59:13 |

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

2020-10-11 22:59:13 | ------------------------------------

2020-10-11 22:59:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cc0da92f-f091-4306-85b6-a35a37173718",
    "item-id": "item-8d871934-5957-4a51-9ce7-1fbbc2021278"
}

2020-10-11 22:59:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cc0da92f-f091-4306-85b6-a35a37173718",
    "item-id": "item-8d871934-5957-4a51-9ce7-1fbbc2021278",
    "item": [
        "<item id=\"item-8d871934-5957-4a51-9ce7-1fbbc2021278\"><test>item-8d871934-5957-4a51-9ce7-1fbbc2021278</test></item>"
    ]
}

2020-10-11 22:59:13 | [Mutex] notify: [retrieved:item:item-8d871934-5957-4a51-9ce7-1fbbc2021278:payload-matches:true:localhost]

2020-10-11 22:59:13 | [Mutex] received everything.

2020-10-11 22:59:13 | [Mutex] isItemNotified: retrieved:item:item-8d871934-5957-4a51-9ce7-1fbbc2021278:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-10-11 22:59:13 |

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

2020-10-11 22:59:13 | ------------------------------------

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

2020-10-11 22:59:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-cc0da92f-f091-4306-85b6-a35a37173718",
        "node-29e1e8d7-e2ac-4d2d-8b02-7a89cc035a0d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-11 22:59:13 |

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

2020-10-11 22:59:13 | ------------------------------------

2020-10-11 22:59:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cc0da92f-f091-4306-85b6-a35a37173718)"
}

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

subscribeNodes 1.011s
2020-10-11 22:59:12 |

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

2020-10-11 22:59:12 | ------------------------------------

2020-10-11 22:59:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cc0da92f-f091-4306-85b6-a35a37173718",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.064s
2020-10-11 22:59:13 |

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

2020-10-11 22:59:13 | ------------------------------------

2020-10-11 22:59:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cc0da92f-f091-4306-85b6-a35a37173718",
    "jids": [
        "admin@test-domain.com"
    ]
}

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