Generated by TestNG with ReportNG at 22:42 PDT on Friday 23 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.149s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2020-10-23 22:58:42 |

2020-10-23 22:58:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:42 | ------------------------------------

2020-10-23 22:58:42 | [Mutex] waiting for: [configured:node:node-89e29db0-740d-499e-9076-c82852b9e5a3:node-346705bd-3219-48e2-8dca-a817df579e94]

2020-10-23 22:58:42 | [Mutex] received everything.

2020-10-23 22:58:42 | [Mutex] isItemNotified: configured:node:node-89e29db0-740d-499e-9076-c82852b9e5a3:node-346705bd-3219-48e2-8dca-a817df579e94 :: true

2020-10-23 22:58:43 | [Mutex] waiting for: [received:nodes:586ad01c-3c0b-47cc-9fde-c3563545ac77:localhost]

2020-10-23 22:58:43 | [Mutex] waiting for: [received:nodes:586ad01c-3c0b-47cc-9fde-c3563545ac77:localhost]

2020-10-23 22:58:43 | [Mutex] received everything.

2020-10-23 22:58:43 | [Mutex] isItemNotified: received:node:586ad01c-3c0b-47cc-9fde-c3563545ac77:localhost:node-89e29db0-740d-499e-9076-c82852b9e5a3:Node 89e29db0-740d-499e-9076-c82852b9e5a3 :: true

2020-10-23 22:58:43 | [Mutex] waiting for: [received:nodes:dfd77ba0-ae3f-49a1-8d02-56e93bd915af:localhost]

2020-10-23 22:58:43 | [Mutex] waiting for: [received:nodes:dfd77ba0-ae3f-49a1-8d02-56e93bd915af:localhost]

2020-10-23 22:58:43 | [Mutex] received everything.

2020-10-23 22:58:43 | [Mutex] isItemNotified: received:node:dfd77ba0-ae3f-49a1-8d02-56e93bd915af:localhost:node-89e29db0-740d-499e-9076-c82852b9e5a3:Node 89e29db0-740d-499e-9076-c82852b9e5a3 :: false

createNodes 1.778s
2020-10-23 22:58:39 |

2020-10-23 22:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:39 | ------------------------------------

2020-10-23 22:58:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-89e29db0-740d-499e-9076-c82852b9e5a3",
    "pubsub#title": "Node 89e29db0-740d-499e-9076-c82852b9e5a3"
}

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

2020-10-23 22:58:41 | [Mutex] waiting for: [received:nodes:7642d0f1-4e30-42cb-bcfa-172e3c903155:localhost]

2020-10-23 22:58:41 | [Mutex] received everything.

2020-10-23 22:58:41 | [Mutex] isItemNotified: received:node:7642d0f1-4e30-42cb-bcfa-172e3c903155:localhost:node-89e29db0-740d-499e-9076-c82852b9e5a3:Node 89e29db0-740d-499e-9076-c82852b9e5a3 :: true

createSubnodes 1.029s
2020-10-23 22:58:41 |

2020-10-23 22:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:41 | ------------------------------------

2020-10-23 22:58:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-346705bd-3219-48e2-8dca-a817df579e94",
    "pubsub#title": "Node 346705bd-3219-48e2-8dca-a817df579e94"
}

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

2020-10-23 22:58:42 | [Mutex] waiting for: [received:nodes:56b4d999-d6fb-4f42-a602-53d7c19c2990:localhost]

2020-10-23 22:58:42 | [Mutex] waiting for: [received:nodes:56b4d999-d6fb-4f42-a602-53d7c19c2990:localhost]

2020-10-23 22:58:42 | [Mutex] received everything.

2020-10-23 22:58:42 | [Mutex] isItemNotified: received:node:56b4d999-d6fb-4f42-a602-53d7c19c2990:localhost:node-346705bd-3219-48e2-8dca-a817df579e94:Node 346705bd-3219-48e2-8dca-a817df579e94 :: true

deleteNodes 1.025s
2020-10-23 22:58:46 |

2020-10-23 22:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:46 | ------------------------------------

2020-10-23 22:58:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-346705bd-3219-48e2-8dca-a817df579e94"
}

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

2020-10-23 22:58:47 | [Mutex] waiting for: [received:nodes:2e415a41-bd73-4b83-b94f-0d5f321b2bac:localhost]

2020-10-23 22:58:47 | [Mutex] waiting for: [received:nodes:2e415a41-bd73-4b83-b94f-0d5f321b2bac:localhost]

2020-10-23 22:58:47 | [Mutex] received everything.

2020-10-23 22:58:47 | [Mutex] isItemNotified: received:node:2e415a41-bd73-4b83-b94f-0d5f321b2bac:localhost:node-346705bd-3219-48e2-8dca-a817df579e94:Node 346705bd-3219-48e2-8dca-a817df579e94 :: false

deleteSubnodes 1.031s
2020-10-23 22:58:45 |

2020-10-23 22:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:45 | ------------------------------------

2020-10-23 22:58:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-89e29db0-740d-499e-9076-c82852b9e5a3"
}

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

2020-10-23 22:58:46 | [Mutex] waiting for: [received:nodes:e5a37d4f-f8dd-4207-b5c6-5aeefc6733a7:localhost]

2020-10-23 22:58:46 | [Mutex] waiting for: [received:nodes:e5a37d4f-f8dd-4207-b5c6-5aeefc6733a7:localhost]

2020-10-23 22:58:46 | [Mutex] received everything.

2020-10-23 22:58:46 | [Mutex] isItemNotified: received:node:e5a37d4f-f8dd-4207-b5c6-5aeefc6733a7:localhost:node-89e29db0-740d-499e-9076-c82852b9e5a3:Node 89e29db0-740d-499e-9076-c82852b9e5a3 :: false

2020-10-23 22:58:46 | [Mutex] waiting for: [received:nodes:58bb0f68-4520-476e-a098-32039ab04c29:localhost]

2020-10-23 22:58:46 | [Mutex] received everything.

2020-10-23 22:58:46 | [Mutex] isItemNotified: received:node:58bb0f68-4520-476e-a098-32039ab04c29:localhost:node-89e29db0-740d-499e-9076-c82852b9e5a3:Node 89e29db0-740d-499e-9076-c82852b9e5a3 :: false

publishItemsToNodes 0.035s
2020-10-23 22:58:44 |

2020-10-23 22:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:44 | ------------------------------------

2020-10-23 22:58:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-89e29db0-740d-499e-9076-c82852b9e5a3",
    "entry": "<test>item-69af24b6-dfc6-425c-903a-8ce2308e5fe9</test>",
    "item-id": "item-69af24b6-dfc6-425c-903a-8ce2308e5fe9"
}

2020-10-23 22:58:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-69af24b6-dfc6-425c-903a-8ce2308e5fe9"
}

2020-10-23 22:58:44 | [Mutex] waiting for: [published:item:notifieditem-69af24b6-dfc6-425c-903a-8ce2308e5fe9:admin@test-domain.com]

2020-10-23 22:58:44 | [Mutex] received everything.

2020-10-23 22:58:44 | [Mutex] isItemNotified: published:item:notifieditem-69af24b6-dfc6-425c-903a-8ce2308e5fe9:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-10-23 22:58:44 |

2020-10-23 22:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:44 | ------------------------------------

2020-10-23 22:58:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-89e29db0-740d-499e-9076-c82852b9e5a3",
    "item-id": "item-69af24b6-dfc6-425c-903a-8ce2308e5fe9"
}

2020-10-23 22:58:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-69af24b6-dfc6-425c-903a-8ce2308e5fe9"
}

2020-10-23 22:58:44 | [Mutex] waiting for: [retracted:item:notifieditem-69af24b6-dfc6-425c-903a-8ce2308e5fe9:admin@test-domain.com]

2020-10-23 22:58:44 | [Mutex] received everything.

2020-10-23 22:58:44 | [Mutex] isItemNotified: retracted:item:notifieditem-69af24b6-dfc6-425c-903a-8ce2308e5fe9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2020-10-23 22:58:44 |

2020-10-23 22:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:44 | ------------------------------------

2020-10-23 22:58:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-89e29db0-740d-499e-9076-c82852b9e5a3",
    "item-id": "item-69af24b6-dfc6-425c-903a-8ce2308e5fe9"
}

2020-10-23 22:58:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-89e29db0-740d-499e-9076-c82852b9e5a3",
    "item-id": "item-69af24b6-dfc6-425c-903a-8ce2308e5fe9",
    "item": [
        "<item id=\"item-69af24b6-dfc6-425c-903a-8ce2308e5fe9\"><test>item-69af24b6-dfc6-425c-903a-8ce2308e5fe9</test></item>"
    ]
}

2020-10-23 22:58:44 | [Mutex] notify: [retrieved:item:item-69af24b6-dfc6-425c-903a-8ce2308e5fe9:payload-matches:true:localhost]

2020-10-23 22:58:44 | [Mutex] received everything.

2020-10-23 22:58:44 | [Mutex] isItemNotified: retrieved:item:item-69af24b6-dfc6-425c-903a-8ce2308e5fe9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-10-23 22:58:44 |

2020-10-23 22:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:44 | ------------------------------------

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

2020-10-23 22:58:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-89e29db0-740d-499e-9076-c82852b9e5a3",
        "node-346705bd-3219-48e2-8dca-a817df579e94"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-23 22:58:44 |

2020-10-23 22:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:44 | ------------------------------------

2020-10-23 22:58:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-89e29db0-740d-499e-9076-c82852b9e5a3)"
}

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

subscribeNodes 1.018s
2020-10-23 22:58:43 |

2020-10-23 22:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:43 | ------------------------------------

2020-10-23 22:58:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-89e29db0-740d-499e-9076-c82852b9e5a3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.080s
2020-10-23 22:58:44 |

2020-10-23 22:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:58:44 | ------------------------------------

2020-10-23 22:58:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-89e29db0-740d-499e-9076-c82852b9e5a3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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