Generated by TestNG with ReportNG at 21:14 PST on Friday 05 February 2021
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.131s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2021-02-05 21:28:59 |

2021-02-05 21:28:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:28:59 | ------------------------------------

2021-02-05 21:28:59 | [Mutex] waiting for: [configured:node:node-a961c704-e852-4eb4-8d15-9062fc94db4c:node-e2e81a0b-cd81-4765-9afb-7ba45a06952d]

2021-02-05 21:28:59 | [Mutex] received everything.

2021-02-05 21:28:59 | [Mutex] isItemNotified: configured:node:node-a961c704-e852-4eb4-8d15-9062fc94db4c:node-e2e81a0b-cd81-4765-9afb-7ba45a06952d :: true

2021-02-05 21:29:00 | [Mutex] waiting for: [received:nodes:9d4cbc42-327d-46f8-9a82-58ee5e22efce:localhost]

2021-02-05 21:29:00 | [Mutex] waiting for: [received:nodes:9d4cbc42-327d-46f8-9a82-58ee5e22efce:localhost]

2021-02-05 21:29:00 | [Mutex] received everything.

2021-02-05 21:29:00 | [Mutex] isItemNotified: received:node:9d4cbc42-327d-46f8-9a82-58ee5e22efce:localhost:node-a961c704-e852-4eb4-8d15-9062fc94db4c:Node a961c704-e852-4eb4-8d15-9062fc94db4c :: true

2021-02-05 21:29:00 | [Mutex] waiting for: [received:nodes:55356d99-d9cd-4269-a62f-5f1c2e4b978f:localhost]

2021-02-05 21:29:00 | [Mutex] waiting for: [received:nodes:55356d99-d9cd-4269-a62f-5f1c2e4b978f:localhost]

2021-02-05 21:29:00 | [Mutex] received everything.

2021-02-05 21:29:00 | [Mutex] isItemNotified: received:node:55356d99-d9cd-4269-a62f-5f1c2e4b978f:localhost:node-a961c704-e852-4eb4-8d15-9062fc94db4c:Node a961c704-e852-4eb4-8d15-9062fc94db4c :: false

createNodes 1.655s
2021-02-05 21:28:56 |

2021-02-05 21:28:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:28:56 | ------------------------------------

2021-02-05 21:28:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a961c704-e852-4eb4-8d15-9062fc94db4c",
    "pubsub#title": "Node a961c704-e852-4eb4-8d15-9062fc94db4c"
}

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

2021-02-05 21:28:58 | [Mutex] waiting for: [received:nodes:6e863d05-073d-4090-a76b-04e0a3190698:localhost]

2021-02-05 21:28:58 | [Mutex] waiting for: [received:nodes:6e863d05-073d-4090-a76b-04e0a3190698:localhost]

2021-02-05 21:28:58 | [Mutex] received everything.

2021-02-05 21:28:58 | [Mutex] isItemNotified: received:node:6e863d05-073d-4090-a76b-04e0a3190698:localhost:node-a961c704-e852-4eb4-8d15-9062fc94db4c:Node a961c704-e852-4eb4-8d15-9062fc94db4c :: true

createSubnodes 1.049s
2021-02-05 21:28:58 |

2021-02-05 21:28:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:28:58 | ------------------------------------

2021-02-05 21:28:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e2e81a0b-cd81-4765-9afb-7ba45a06952d",
    "pubsub#title": "Node e2e81a0b-cd81-4765-9afb-7ba45a06952d"
}

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

2021-02-05 21:28:59 | [Mutex] waiting for: [received:nodes:8dfd3fe2-85a3-443b-8527-13889b28f265:localhost]

2021-02-05 21:28:59 | [Mutex] received everything.

2021-02-05 21:28:59 | [Mutex] isItemNotified: received:node:8dfd3fe2-85a3-443b-8527-13889b28f265:localhost:node-e2e81a0b-cd81-4765-9afb-7ba45a06952d:Node e2e81a0b-cd81-4765-9afb-7ba45a06952d :: true

deleteNodes 1.026s
2021-02-05 21:29:04 |

2021-02-05 21:29:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:29:04 | ------------------------------------

2021-02-05 21:29:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e2e81a0b-cd81-4765-9afb-7ba45a06952d"
}

2021-02-05 21:29:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 21:29:05 | [Mutex] waiting for: [received:nodes:18dbe371-fc56-4019-8a07-ba2890d13b62:localhost]

2021-02-05 21:29:05 | [Mutex] received everything.

2021-02-05 21:29:05 | [Mutex] isItemNotified: received:node:18dbe371-fc56-4019-8a07-ba2890d13b62:localhost:node-e2e81a0b-cd81-4765-9afb-7ba45a06952d:Node e2e81a0b-cd81-4765-9afb-7ba45a06952d :: false

deleteSubnodes 1.030s
2021-02-05 21:29:03 |

2021-02-05 21:29:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:29:03 | ------------------------------------

2021-02-05 21:29:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a961c704-e852-4eb4-8d15-9062fc94db4c"
}

2021-02-05 21:29:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 21:29:04 | [Mutex] waiting for: [received:nodes:5bdada5a-f535-4e37-a8ca-d7e175314278:localhost]

2021-02-05 21:29:04 | [Mutex] received everything.

2021-02-05 21:29:04 | [Mutex] isItemNotified: received:node:5bdada5a-f535-4e37-a8ca-d7e175314278:localhost:node-a961c704-e852-4eb4-8d15-9062fc94db4c:Node a961c704-e852-4eb4-8d15-9062fc94db4c :: false

2021-02-05 21:29:04 | [Mutex] waiting for: [received:nodes:8b030e29-f03d-491b-a468-5af4fce4a397:localhost]

2021-02-05 21:29:04 | [Mutex] received everything.

2021-02-05 21:29:04 | [Mutex] isItemNotified: received:node:8b030e29-f03d-491b-a468-5af4fce4a397:localhost:node-a961c704-e852-4eb4-8d15-9062fc94db4c:Node a961c704-e852-4eb4-8d15-9062fc94db4c :: false

publishItemsToNodes 0.043s
2021-02-05 21:29:01 |

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

2021-02-05 21:29:01 | ------------------------------------

2021-02-05 21:29:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a961c704-e852-4eb4-8d15-9062fc94db4c",
    "entry": "<test>item-e4d499bc-f395-4689-9b6a-090da1e84429</test>",
    "item-id": "item-e4d499bc-f395-4689-9b6a-090da1e84429"
}

2021-02-05 21:29:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e4d499bc-f395-4689-9b6a-090da1e84429"
}

2021-02-05 21:29:01 | [Mutex] waiting for: [published:item:notifieditem-e4d499bc-f395-4689-9b6a-090da1e84429:admin@test-domain.com]

2021-02-05 21:29:01 | [Mutex] received everything.

2021-02-05 21:29:01 | [Mutex] isItemNotified: published:item:notifieditem-e4d499bc-f395-4689-9b6a-090da1e84429:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2021-02-05 21:29:01 |

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

2021-02-05 21:29:01 | ------------------------------------

2021-02-05 21:29:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a961c704-e852-4eb4-8d15-9062fc94db4c",
    "item-id": "item-e4d499bc-f395-4689-9b6a-090da1e84429"
}

2021-02-05 21:29:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e4d499bc-f395-4689-9b6a-090da1e84429"
}

2021-02-05 21:29:01 | [Mutex] received everything.

2021-02-05 21:29:01 | [Mutex] isItemNotified: retracted:item:notifieditem-e4d499bc-f395-4689-9b6a-090da1e84429:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2021-02-05 21:29:01 |

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

2021-02-05 21:29:01 | ------------------------------------

2021-02-05 21:29:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a961c704-e852-4eb4-8d15-9062fc94db4c",
    "item-id": "item-e4d499bc-f395-4689-9b6a-090da1e84429"
}

2021-02-05 21:29:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a961c704-e852-4eb4-8d15-9062fc94db4c",
    "item-id": "item-e4d499bc-f395-4689-9b6a-090da1e84429",
    "item": [
        "<item id=\"item-e4d499bc-f395-4689-9b6a-090da1e84429\"><test>item-e4d499bc-f395-4689-9b6a-090da1e84429</test></item>"
    ]
}

2021-02-05 21:29:01 | [Mutex] notify: [retrieved:item:item-e4d499bc-f395-4689-9b6a-090da1e84429:payload-matches:true:localhost]

2021-02-05 21:29:01 | [Mutex] received everything.

2021-02-05 21:29:01 | [Mutex] isItemNotified: retrieved:item:item-e4d499bc-f395-4689-9b6a-090da1e84429:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-02-05 21:29:01 |

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

2021-02-05 21:29:01 | ------------------------------------

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

2021-02-05 21:29:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e2e81a0b-cd81-4765-9afb-7ba45a06952d",
        "test",
        "node-a961c704-e852-4eb4-8d15-9062fc94db4c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-02-05 21:29:01 |

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

2021-02-05 21:29:01 | ------------------------------------

2021-02-05 21:29:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a961c704-e852-4eb4-8d15-9062fc94db4c)"
}

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

subscribeNodes 1.016s
2021-02-05 21:29:00 |

2021-02-05 21:29:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:29:00 | ------------------------------------

2021-02-05 21:29:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a961c704-e852-4eb4-8d15-9062fc94db4c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-05 21:29:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.164s
2021-02-05 21:29:01 |

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

2021-02-05 21:29:01 | ------------------------------------

2021-02-05 21:29:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a961c704-e852-4eb4-8d15-9062fc94db4c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-05 21:29:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}