Generated by TestNG with ReportNG at 21:14 PST on Tuesday 29 December 2020
root@43fec6d4badf / 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.226s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.139s
2020-12-29 21:28:07 |

2020-12-29 21:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:07 | ------------------------------------

2020-12-29 21:28:07 | [Mutex] waiting for: [configured:node:node-443a004e-68bb-44c6-9614-3b5fb4dc0e23:node-3d0aba3f-ed33-43f4-98ab-8cb05e3e3866]

2020-12-29 21:28:07 | [Mutex] received everything.

2020-12-29 21:28:07 | [Mutex] isItemNotified: configured:node:node-443a004e-68bb-44c6-9614-3b5fb4dc0e23:node-3d0aba3f-ed33-43f4-98ab-8cb05e3e3866 :: true

2020-12-29 21:28:08 | [Mutex] waiting for: [received:nodes:1b2e50ab-a556-4cf4-91de-768856c38662:localhost]

2020-12-29 21:28:08 | [Mutex] received everything.

2020-12-29 21:28:08 | [Mutex] isItemNotified: received:node:1b2e50ab-a556-4cf4-91de-768856c38662:localhost:node-443a004e-68bb-44c6-9614-3b5fb4dc0e23:Node 443a004e-68bb-44c6-9614-3b5fb4dc0e23 :: true

2020-12-29 21:28:08 | [Mutex] waiting for: [received:nodes:671344b1-295b-4437-9c58-61fcd1785e23:localhost]

2020-12-29 21:28:08 | [Mutex] received everything.

2020-12-29 21:28:08 | [Mutex] isItemNotified: received:node:671344b1-295b-4437-9c58-61fcd1785e23:localhost:node-443a004e-68bb-44c6-9614-3b5fb4dc0e23:Node 443a004e-68bb-44c6-9614-3b5fb4dc0e23 :: false

createNodes 1.802s
2020-12-29 21:28:04 |

2020-12-29 21:28:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:04 | ------------------------------------

2020-12-29 21:28:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-443a004e-68bb-44c6-9614-3b5fb4dc0e23",
    "pubsub#title": "Node 443a004e-68bb-44c6-9614-3b5fb4dc0e23"
}

2020-12-29 21:28:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:28:06 | [Mutex] waiting for: [received:nodes:7cac5510-ff9c-4eca-ac44-529c25a1def1:localhost]

2020-12-29 21:28:06 | [Mutex] received everything.

2020-12-29 21:28:06 | [Mutex] isItemNotified: received:node:7cac5510-ff9c-4eca-ac44-529c25a1def1:localhost:node-443a004e-68bb-44c6-9614-3b5fb4dc0e23:Node 443a004e-68bb-44c6-9614-3b5fb4dc0e23 :: true

createSubnodes 1.028s
2020-12-29 21:28:06 |

2020-12-29 21:28:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:06 | ------------------------------------

2020-12-29 21:28:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3d0aba3f-ed33-43f4-98ab-8cb05e3e3866",
    "pubsub#title": "Node 3d0aba3f-ed33-43f4-98ab-8cb05e3e3866"
}

2020-12-29 21:28:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-29 21:28:07 | [Mutex] waiting for: [received:nodes:e38051d6-7c0e-4816-8c8f-4eca0b1cf869:localhost]

2020-12-29 21:28:07 | [Mutex] received everything.

2020-12-29 21:28:07 | [Mutex] isItemNotified: received:node:e38051d6-7c0e-4816-8c8f-4eca0b1cf869:localhost:node-3d0aba3f-ed33-43f4-98ab-8cb05e3e3866:Node 3d0aba3f-ed33-43f4-98ab-8cb05e3e3866 :: true

deleteNodes 1.022s
2020-12-29 21:28:11 |

2020-12-29 21:28:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:11 | ------------------------------------

2020-12-29 21:28:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3d0aba3f-ed33-43f4-98ab-8cb05e3e3866"
}

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

2020-12-29 21:28:12 | [Mutex] waiting for: [received:nodes:2f67cf87-8d53-4dca-8e0c-de831b02ae91:localhost]

2020-12-29 21:28:12 | [Mutex] waiting for: [received:nodes:2f67cf87-8d53-4dca-8e0c-de831b02ae91:localhost]

2020-12-29 21:28:12 | [Mutex] received everything.

2020-12-29 21:28:12 | [Mutex] isItemNotified: received:node:2f67cf87-8d53-4dca-8e0c-de831b02ae91:localhost:node-3d0aba3f-ed33-43f4-98ab-8cb05e3e3866:Node 3d0aba3f-ed33-43f4-98ab-8cb05e3e3866 :: false

deleteSubnodes 1.029s
2020-12-29 21:28:10 |

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

2020-12-29 21:28:10 | ------------------------------------

2020-12-29 21:28:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-443a004e-68bb-44c6-9614-3b5fb4dc0e23"
}

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

2020-12-29 21:28:11 | [Mutex] waiting for: [received:nodes:71ebd711-b92d-48be-9982-cd06701c0da5:localhost]

2020-12-29 21:28:11 | [Mutex] received everything.

2020-12-29 21:28:11 | [Mutex] isItemNotified: received:node:71ebd711-b92d-48be-9982-cd06701c0da5:localhost:node-443a004e-68bb-44c6-9614-3b5fb4dc0e23:Node 443a004e-68bb-44c6-9614-3b5fb4dc0e23 :: false

2020-12-29 21:28:11 | [Mutex] waiting for: [received:nodes:a04f8460-1c56-4607-baae-197f8c911d7d:localhost]

2020-12-29 21:28:11 | [Mutex] received everything.

2020-12-29 21:28:11 | [Mutex] isItemNotified: received:node:a04f8460-1c56-4607-baae-197f8c911d7d:localhost:node-443a004e-68bb-44c6-9614-3b5fb4dc0e23:Node 443a004e-68bb-44c6-9614-3b5fb4dc0e23 :: false

publishItemsToNodes 0.049s
2020-12-29 21:28:09 |

2020-12-29 21:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:09 | ------------------------------------

2020-12-29 21:28:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-443a004e-68bb-44c6-9614-3b5fb4dc0e23",
    "entry": "<test>item-2e7e491e-0fc9-43a0-8a7f-529746c53592</test>",
    "item-id": "item-2e7e491e-0fc9-43a0-8a7f-529746c53592"
}

2020-12-29 21:28:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2e7e491e-0fc9-43a0-8a7f-529746c53592"
}

2020-12-29 21:28:09 | [Mutex] waiting for: [published:item:notifieditem-2e7e491e-0fc9-43a0-8a7f-529746c53592:admin@test-domain.com]

2020-12-29 21:28:09 | [Mutex] received everything.

2020-12-29 21:28:09 | [Mutex] isItemNotified: published:item:notifieditem-2e7e491e-0fc9-43a0-8a7f-529746c53592:admin@test-domain.com :: true

retractItemsFromNodes 0.143s
2020-12-29 21:28:09 |

2020-12-29 21:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:09 | ------------------------------------

2020-12-29 21:28:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-443a004e-68bb-44c6-9614-3b5fb4dc0e23",
    "item-id": "item-2e7e491e-0fc9-43a0-8a7f-529746c53592"
}

2020-12-29 21:28:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2e7e491e-0fc9-43a0-8a7f-529746c53592"
}

2020-12-29 21:28:09 | [Mutex] received everything.

2020-12-29 21:28:09 | [Mutex] isItemNotified: retracted:item:notifieditem-2e7e491e-0fc9-43a0-8a7f-529746c53592:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2020-12-29 21:28:09 |

2020-12-29 21:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:09 | ------------------------------------

2020-12-29 21:28:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-443a004e-68bb-44c6-9614-3b5fb4dc0e23",
    "item-id": "item-2e7e491e-0fc9-43a0-8a7f-529746c53592"
}

2020-12-29 21:28:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-443a004e-68bb-44c6-9614-3b5fb4dc0e23",
    "item-id": "item-2e7e491e-0fc9-43a0-8a7f-529746c53592",
    "item": [
        "<item id=\"item-2e7e491e-0fc9-43a0-8a7f-529746c53592\"><test>item-2e7e491e-0fc9-43a0-8a7f-529746c53592</test></item>"
    ]
}

2020-12-29 21:28:09 | [Mutex] notify: [retrieved:item:item-2e7e491e-0fc9-43a0-8a7f-529746c53592:payload-matches:true:localhost]

2020-12-29 21:28:09 | [Mutex] received everything.

2020-12-29 21:28:09 | [Mutex] isItemNotified: retrieved:item:item-2e7e491e-0fc9-43a0-8a7f-529746c53592:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-12-29 21:28:09 |

2020-12-29 21:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:09 | ------------------------------------

2020-12-29 21:28:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-29 21:28:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-443a004e-68bb-44c6-9614-3b5fb4dc0e23",
        "test",
        "node-3d0aba3f-ed33-43f4-98ab-8cb05e3e3866"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-12-29 21:28:09 |

2020-12-29 21:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:09 | ------------------------------------

2020-12-29 21:28:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-443a004e-68bb-44c6-9614-3b5fb4dc0e23)"
}

2020-12-29 21:28:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-12-29 21:28:08 |

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

2020-12-29 21:28:08 | ------------------------------------

2020-12-29 21:28:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-443a004e-68bb-44c6-9614-3b5fb4dc0e23",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2020-12-29 21:28:09 |

2020-12-29 21:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-29 21:28:09 | ------------------------------------

2020-12-29 21:28:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-443a004e-68bb-44c6-9614-3b5fb4dc0e23",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-29 21:28:09 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}