Generated by TestNG with ReportNG at 21:24 PST on Wednesday 18 November 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.089s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2020-11-18 21:42:36 |

2020-11-18 21:42:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:36 | ------------------------------------

2020-11-18 21:42:36 | [Mutex] waiting for: [configured:node:node-e64290fb-3fae-46e6-81a0-84466b4066c4:node-a1bde95d-d044-4734-9b6c-49313ac3e7bf]

2020-11-18 21:42:36 | [Mutex] received everything.

2020-11-18 21:42:36 | [Mutex] isItemNotified: configured:node:node-e64290fb-3fae-46e6-81a0-84466b4066c4:node-a1bde95d-d044-4734-9b6c-49313ac3e7bf :: true

2020-11-18 21:42:37 | [Mutex] waiting for: [received:nodes:58314521-ce15-4243-9a50-ed2b09f740e0:localhost]

2020-11-18 21:42:37 | [Mutex] waiting for: [received:nodes:58314521-ce15-4243-9a50-ed2b09f740e0:localhost]

2020-11-18 21:42:37 | [Mutex] received everything.

2020-11-18 21:42:37 | [Mutex] isItemNotified: received:node:58314521-ce15-4243-9a50-ed2b09f740e0:localhost:node-e64290fb-3fae-46e6-81a0-84466b4066c4:Node e64290fb-3fae-46e6-81a0-84466b4066c4 :: true

2020-11-18 21:42:37 | [Mutex] waiting for: [received:nodes:30271fb3-0425-4f3a-833f-c960e1196562:localhost]

2020-11-18 21:42:37 | [Mutex] waiting for: [received:nodes:30271fb3-0425-4f3a-833f-c960e1196562:localhost]

2020-11-18 21:42:37 | [Mutex] received everything.

2020-11-18 21:42:37 | [Mutex] isItemNotified: received:node:30271fb3-0425-4f3a-833f-c960e1196562:localhost:node-e64290fb-3fae-46e6-81a0-84466b4066c4:Node e64290fb-3fae-46e6-81a0-84466b4066c4 :: false

createNodes 1.648s
2020-11-18 21:42:33 |

2020-11-18 21:42:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:33 | ------------------------------------

2020-11-18 21:42:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e64290fb-3fae-46e6-81a0-84466b4066c4",
    "pubsub#title": "Node e64290fb-3fae-46e6-81a0-84466b4066c4"
}

2020-11-18 21:42:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-18 21:42:35 | [Mutex] waiting for: [received:nodes:ffc2dbfa-7c44-40c8-8e11-654cf781cb82:localhost]

2020-11-18 21:42:35 | [Mutex] waiting for: [received:nodes:ffc2dbfa-7c44-40c8-8e11-654cf781cb82:localhost]

2020-11-18 21:42:35 | [Mutex] received everything.

2020-11-18 21:42:35 | [Mutex] isItemNotified: received:node:ffc2dbfa-7c44-40c8-8e11-654cf781cb82:localhost:node-e64290fb-3fae-46e6-81a0-84466b4066c4:Node e64290fb-3fae-46e6-81a0-84466b4066c4 :: true

createSubnodes 1.031s
2020-11-18 21:42:35 |

2020-11-18 21:42:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:35 | ------------------------------------

2020-11-18 21:42:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a1bde95d-d044-4734-9b6c-49313ac3e7bf",
    "pubsub#title": "Node a1bde95d-d044-4734-9b6c-49313ac3e7bf"
}

2020-11-18 21:42:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-18 21:42:36 | [Mutex] waiting for: [received:nodes:3ac22dcf-28b5-4c92-9fd8-5f181e2cbaf8:localhost]

2020-11-18 21:42:36 | [Mutex] received everything.

2020-11-18 21:42:36 | [Mutex] isItemNotified: received:node:3ac22dcf-28b5-4c92-9fd8-5f181e2cbaf8:localhost:node-a1bde95d-d044-4734-9b6c-49313ac3e7bf:Node a1bde95d-d044-4734-9b6c-49313ac3e7bf :: true

deleteNodes 1.031s
2020-11-18 21:42:41 |

2020-11-18 21:42:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:41 | ------------------------------------

2020-11-18 21:42:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a1bde95d-d044-4734-9b6c-49313ac3e7bf"
}

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

2020-11-18 21:42:42 | [Mutex] waiting for: [received:nodes:4ed67eff-396c-4e36-92ab-a2f002edbcef:localhost]

2020-11-18 21:42:42 | [Mutex] received everything.

2020-11-18 21:42:42 | [Mutex] isItemNotified: received:node:4ed67eff-396c-4e36-92ab-a2f002edbcef:localhost:node-a1bde95d-d044-4734-9b6c-49313ac3e7bf:Node a1bde95d-d044-4734-9b6c-49313ac3e7bf :: false

deleteSubnodes 1.035s
2020-11-18 21:42:40 |

2020-11-18 21:42:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:40 | ------------------------------------

2020-11-18 21:42:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e64290fb-3fae-46e6-81a0-84466b4066c4"
}

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

2020-11-18 21:42:41 | [Mutex] waiting for: [received:nodes:c15251b7-614c-4d5a-92d9-70e5f9eb8fbf:localhost]

2020-11-18 21:42:41 | [Mutex] received everything.

2020-11-18 21:42:41 | [Mutex] isItemNotified: received:node:c15251b7-614c-4d5a-92d9-70e5f9eb8fbf:localhost:node-e64290fb-3fae-46e6-81a0-84466b4066c4:Node e64290fb-3fae-46e6-81a0-84466b4066c4 :: false

2020-11-18 21:42:41 | [Mutex] waiting for: [received:nodes:472ac729-14e7-41f4-9fe6-7bdd9b79bfa8:localhost]

2020-11-18 21:42:41 | [Mutex] received everything.

2020-11-18 21:42:41 | [Mutex] isItemNotified: received:node:472ac729-14e7-41f4-9fe6-7bdd9b79bfa8:localhost:node-e64290fb-3fae-46e6-81a0-84466b4066c4:Node e64290fb-3fae-46e6-81a0-84466b4066c4 :: false

publishItemsToNodes 0.032s
2020-11-18 21:42:38 |

2020-11-18 21:42:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:38 | ------------------------------------

2020-11-18 21:42:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e64290fb-3fae-46e6-81a0-84466b4066c4",
    "entry": "<test>item-c783b5d8-30e2-4c2d-a96e-88f0c111863c</test>",
    "item-id": "item-c783b5d8-30e2-4c2d-a96e-88f0c111863c"
}

2020-11-18 21:42:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c783b5d8-30e2-4c2d-a96e-88f0c111863c"
}

2020-11-18 21:42:38 | [Mutex] waiting for: [published:item:notifieditem-c783b5d8-30e2-4c2d-a96e-88f0c111863c:admin@test-domain.com]

2020-11-18 21:42:38 | [Mutex] received everything.

2020-11-18 21:42:38 | [Mutex] isItemNotified: published:item:notifieditem-c783b5d8-30e2-4c2d-a96e-88f0c111863c:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2020-11-18 21:42:38 |

2020-11-18 21:42:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:38 | ------------------------------------

2020-11-18 21:42:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e64290fb-3fae-46e6-81a0-84466b4066c4",
    "item-id": "item-c783b5d8-30e2-4c2d-a96e-88f0c111863c"
}

2020-11-18 21:42:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c783b5d8-30e2-4c2d-a96e-88f0c111863c"
}

2020-11-18 21:42:38 | [Mutex] received everything.

2020-11-18 21:42:38 | [Mutex] isItemNotified: retracted:item:notifieditem-c783b5d8-30e2-4c2d-a96e-88f0c111863c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.127s
2020-11-18 21:42:38 |

2020-11-18 21:42:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:38 | ------------------------------------

2020-11-18 21:42:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e64290fb-3fae-46e6-81a0-84466b4066c4",
    "item-id": "item-c783b5d8-30e2-4c2d-a96e-88f0c111863c"
}

2020-11-18 21:42:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e64290fb-3fae-46e6-81a0-84466b4066c4",
    "item-id": "item-c783b5d8-30e2-4c2d-a96e-88f0c111863c",
    "item": [
        "<item id=\"item-c783b5d8-30e2-4c2d-a96e-88f0c111863c\"><test>item-c783b5d8-30e2-4c2d-a96e-88f0c111863c</test></item>"
    ]
}

2020-11-18 21:42:38 | [Mutex] notify: [retrieved:item:item-c783b5d8-30e2-4c2d-a96e-88f0c111863c:payload-matches:true:localhost]

2020-11-18 21:42:38 | [Mutex] received everything.

2020-11-18 21:42:38 | [Mutex] isItemNotified: retrieved:item:item-c783b5d8-30e2-4c2d-a96e-88f0c111863c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-11-18 21:42:38 |

2020-11-18 21:42:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:38 | ------------------------------------

2020-11-18 21:42:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-18 21:42:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a1bde95d-d044-4734-9b6c-49313ac3e7bf",
        "node-e64290fb-3fae-46e6-81a0-84466b4066c4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-11-18 21:42:38 |

2020-11-18 21:42:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:38 | ------------------------------------

2020-11-18 21:42:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e64290fb-3fae-46e6-81a0-84466b4066c4)"
}

2020-11-18 21:42:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-11-18 21:42:37 |

2020-11-18 21:42:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:37 | ------------------------------------

2020-11-18 21:42:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e64290fb-3fae-46e6-81a0-84466b4066c4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-18 21:42:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.104s
2020-11-18 21:42:38 |

2020-11-18 21:42:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-18 21:42:38 | ------------------------------------

2020-11-18 21:42:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e64290fb-3fae-46e6-81a0-84466b4066c4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-18 21:42:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}