Generated by TestNG with ReportNG at 05:26 PST on Wednesday 27 January 2021
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.349s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2021-01-27 05:41:05 |

2021-01-27 05:41:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:05 | ------------------------------------

2021-01-27 05:41:05 | [Mutex] waiting for: [configured:node:node-c58aed0f-391b-4d09-a4dd-01b28b3d8796:node-8f18346b-cc92-460b-8489-311051c12c3c]

2021-01-27 05:41:06 | [Mutex] received everything.

2021-01-27 05:41:06 | [Mutex] isItemNotified: configured:node:node-c58aed0f-391b-4d09-a4dd-01b28b3d8796:node-8f18346b-cc92-460b-8489-311051c12c3c :: true

2021-01-27 05:41:07 | [Mutex] waiting for: [received:nodes:fcbb55c4-177d-4659-bae2-47d8f5683bba:localhost]

2021-01-27 05:41:07 | [Mutex] received everything.

2021-01-27 05:41:07 | [Mutex] isItemNotified: received:node:fcbb55c4-177d-4659-bae2-47d8f5683bba:localhost:node-c58aed0f-391b-4d09-a4dd-01b28b3d8796:Node c58aed0f-391b-4d09-a4dd-01b28b3d8796 :: true

2021-01-27 05:41:07 | [Mutex] waiting for: [received:nodes:18c059fe-aaa0-45aa-893d-04375863ecb8:localhost]

2021-01-27 05:41:07 | [Mutex] received everything.

2021-01-27 05:41:07 | [Mutex] isItemNotified: received:node:18c059fe-aaa0-45aa-893d-04375863ecb8:localhost:node-c58aed0f-391b-4d09-a4dd-01b28b3d8796:Node c58aed0f-391b-4d09-a4dd-01b28b3d8796 :: false

createNodes 1.933s
2021-01-27 05:41:02 |

2021-01-27 05:41:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:02 | ------------------------------------

2021-01-27 05:41:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c58aed0f-391b-4d09-a4dd-01b28b3d8796",
    "pubsub#title": "Node c58aed0f-391b-4d09-a4dd-01b28b3d8796"
}

2021-01-27 05:41:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:41:04 | [Mutex] waiting for: [received:nodes:3f16f563-70a6-42ea-8437-bd6b30ce26c8:localhost]

2021-01-27 05:41:04 | [Mutex] received everything.

2021-01-27 05:41:04 | [Mutex] isItemNotified: received:node:3f16f563-70a6-42ea-8437-bd6b30ce26c8:localhost:node-c58aed0f-391b-4d09-a4dd-01b28b3d8796:Node c58aed0f-391b-4d09-a4dd-01b28b3d8796 :: true

createSubnodes 1.034s
2021-01-27 05:41:04 |

2021-01-27 05:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:04 | ------------------------------------

2021-01-27 05:41:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8f18346b-cc92-460b-8489-311051c12c3c",
    "pubsub#title": "Node 8f18346b-cc92-460b-8489-311051c12c3c"
}

2021-01-27 05:41:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:41:05 | [Mutex] waiting for: [received:nodes:ff3cafd4-f960-4f8e-9dcc-e0ae0fa6b7da:localhost]

2021-01-27 05:41:05 | [Mutex] received everything.

2021-01-27 05:41:05 | [Mutex] isItemNotified: received:node:ff3cafd4-f960-4f8e-9dcc-e0ae0fa6b7da:localhost:node-8f18346b-cc92-460b-8489-311051c12c3c:Node 8f18346b-cc92-460b-8489-311051c12c3c :: true

deleteNodes 1.026s
2021-01-27 05:41:10 |

2021-01-27 05:41:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:10 | ------------------------------------

2021-01-27 05:41:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8f18346b-cc92-460b-8489-311051c12c3c"
}

2021-01-27 05:41:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:41:11 | [Mutex] waiting for: [received:nodes:e466bd1a-e9ec-48dd-982e-d94738f74393:localhost]

2021-01-27 05:41:11 | [Mutex] received everything.

2021-01-27 05:41:11 | [Mutex] isItemNotified: received:node:e466bd1a-e9ec-48dd-982e-d94738f74393:localhost:node-8f18346b-cc92-460b-8489-311051c12c3c:Node 8f18346b-cc92-460b-8489-311051c12c3c :: false

deleteSubnodes 1.047s
2021-01-27 05:41:09 |

2021-01-27 05:41:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:09 | ------------------------------------

2021-01-27 05:41:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c58aed0f-391b-4d09-a4dd-01b28b3d8796"
}

2021-01-27 05:41:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:41:10 | [Mutex] waiting for: [received:nodes:72f7c285-9dc3-4e27-bdb5-db2dcfae6339:localhost]

2021-01-27 05:41:10 | [Mutex] received everything.

2021-01-27 05:41:10 | [Mutex] isItemNotified: received:node:72f7c285-9dc3-4e27-bdb5-db2dcfae6339:localhost:node-c58aed0f-391b-4d09-a4dd-01b28b3d8796:Node c58aed0f-391b-4d09-a4dd-01b28b3d8796 :: false

2021-01-27 05:41:10 | [Mutex] waiting for: [received:nodes:a2e80719-1fc6-4db2-90d1-42ef80ca95d5:localhost]

2021-01-27 05:41:10 | [Mutex] received everything.

2021-01-27 05:41:10 | [Mutex] isItemNotified: received:node:a2e80719-1fc6-4db2-90d1-42ef80ca95d5:localhost:node-c58aed0f-391b-4d09-a4dd-01b28b3d8796:Node c58aed0f-391b-4d09-a4dd-01b28b3d8796 :: false

publishItemsToNodes 0.041s
2021-01-27 05:41:08 |

2021-01-27 05:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:08 | ------------------------------------

2021-01-27 05:41:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c58aed0f-391b-4d09-a4dd-01b28b3d8796",
    "entry": "<test>item-82ceea4b-868c-4ceb-b73e-5cc529e1a005</test>",
    "item-id": "item-82ceea4b-868c-4ceb-b73e-5cc529e1a005"
}

2021-01-27 05:41:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-82ceea4b-868c-4ceb-b73e-5cc529e1a005"
}

2021-01-27 05:41:08 | [Mutex] waiting for: [published:item:notifieditem-82ceea4b-868c-4ceb-b73e-5cc529e1a005:admin@test-domain.com]

2021-01-27 05:41:08 | [Mutex] received everything.

2021-01-27 05:41:08 | [Mutex] isItemNotified: published:item:notifieditem-82ceea4b-868c-4ceb-b73e-5cc529e1a005:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-01-27 05:41:08 |

2021-01-27 05:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:08 | ------------------------------------

2021-01-27 05:41:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c58aed0f-391b-4d09-a4dd-01b28b3d8796",
    "item-id": "item-82ceea4b-868c-4ceb-b73e-5cc529e1a005"
}

2021-01-27 05:41:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-82ceea4b-868c-4ceb-b73e-5cc529e1a005"
}

2021-01-27 05:41:08 | [Mutex] received everything.

2021-01-27 05:41:08 | [Mutex] isItemNotified: retracted:item:notifieditem-82ceea4b-868c-4ceb-b73e-5cc529e1a005:admin@test-domain.com :: true

retrieveItemsFromNodes 0.170s
2021-01-27 05:41:08 |

2021-01-27 05:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:08 | ------------------------------------

2021-01-27 05:41:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c58aed0f-391b-4d09-a4dd-01b28b3d8796",
    "item-id": "item-82ceea4b-868c-4ceb-b73e-5cc529e1a005"
}

2021-01-27 05:41:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c58aed0f-391b-4d09-a4dd-01b28b3d8796",
    "item-id": "item-82ceea4b-868c-4ceb-b73e-5cc529e1a005",
    "item": [
        "<item id=\"item-82ceea4b-868c-4ceb-b73e-5cc529e1a005\"><test>item-82ceea4b-868c-4ceb-b73e-5cc529e1a005</test></item>"
    ]
}

2021-01-27 05:41:08 | [Mutex] notify: [retrieved:item:item-82ceea4b-868c-4ceb-b73e-5cc529e1a005:payload-matches:true:localhost]

2021-01-27 05:41:08 | [Mutex] received everything.

2021-01-27 05:41:08 | [Mutex] isItemNotified: retrieved:item:item-82ceea4b-868c-4ceb-b73e-5cc529e1a005:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-27 05:41:08 |

2021-01-27 05:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:08 | ------------------------------------

2021-01-27 05:41:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-27 05:41:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c58aed0f-391b-4d09-a4dd-01b28b3d8796",
        "node-8f18346b-cc92-460b-8489-311051c12c3c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-27 05:41:08 |

2021-01-27 05:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:08 | ------------------------------------

2021-01-27 05:41:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c58aed0f-391b-4d09-a4dd-01b28b3d8796)"
}

2021-01-27 05:41:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-01-27 05:41:07 |

2021-01-27 05:41:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:07 | ------------------------------------

2021-01-27 05:41:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c58aed0f-391b-4d09-a4dd-01b28b3d8796",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 05:41:07 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2021-01-27 05:41:08 |

2021-01-27 05:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:41:08 | ------------------------------------

2021-01-27 05:41:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c58aed0f-391b-4d09-a4dd-01b28b3d8796",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 05:41:08 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}