Generated by TestNG with ReportNG at 23:24 PDT on Monday 19 October 2020
root@87f6aca6b6f2 / 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.316s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.151s
2020-10-19 23:39:55 |

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

2020-10-19 23:39:55 | ------------------------------------

2020-10-19 23:39:55 | [Mutex] waiting for: [configured:node:node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b:node-5d4dbf92-903d-46e5-9db1-c90287c6d521]

2020-10-19 23:39:55 | [Mutex] received everything.

2020-10-19 23:39:55 | [Mutex] isItemNotified: configured:node:node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b:node-5d4dbf92-903d-46e5-9db1-c90287c6d521 :: true

2020-10-19 23:39:56 | [Mutex] waiting for: [received:nodes:a2521ed3-17da-4e15-963e-95b962d19606:localhost]

2020-10-19 23:39:56 | [Mutex] received everything.

2020-10-19 23:39:56 | [Mutex] isItemNotified: received:node:a2521ed3-17da-4e15-963e-95b962d19606:localhost:node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b:Node 5f7dbcfc-aa49-432a-a125-06b04d6ed00b :: true

2020-10-19 23:39:56 | [Mutex] waiting for: [received:nodes:cf8a79ff-1795-4297-9c4b-1fb4e853a043:localhost]

2020-10-19 23:39:56 | [Mutex] received everything.

2020-10-19 23:39:56 | [Mutex] isItemNotified: received:node:cf8a79ff-1795-4297-9c4b-1fb4e853a043:localhost:node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b:Node 5f7dbcfc-aa49-432a-a125-06b04d6ed00b :: false

createNodes 1.738s
2020-10-19 23:39:53 |

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

2020-10-19 23:39:53 | ------------------------------------

2020-10-19 23:39:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b",
    "pubsub#title": "Node 5f7dbcfc-aa49-432a-a125-06b04d6ed00b"
}

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

2020-10-19 23:39:54 | [Mutex] waiting for: [received:nodes:a408a493-6990-46e3-8fc1-6e76604af1c2:localhost]

2020-10-19 23:39:54 | [Mutex] waiting for: [received:nodes:a408a493-6990-46e3-8fc1-6e76604af1c2:localhost]

2020-10-19 23:39:54 | [Mutex] received everything.

2020-10-19 23:39:54 | [Mutex] isItemNotified: received:node:a408a493-6990-46e3-8fc1-6e76604af1c2:localhost:node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b:Node 5f7dbcfc-aa49-432a-a125-06b04d6ed00b :: true

createSubnodes 1.063s
2020-10-19 23:39:54 |

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

2020-10-19 23:39:54 | ------------------------------------

2020-10-19 23:39:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5d4dbf92-903d-46e5-9db1-c90287c6d521",
    "pubsub#title": "Node 5d4dbf92-903d-46e5-9db1-c90287c6d521"
}

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

2020-10-19 23:39:55 | [Mutex] waiting for: [received:nodes:9fdf547c-2623-4502-8ba2-a4be65039dc3:localhost]

2020-10-19 23:39:55 | [Mutex] received everything.

2020-10-19 23:39:55 | [Mutex] isItemNotified: received:node:9fdf547c-2623-4502-8ba2-a4be65039dc3:localhost:node-5d4dbf92-903d-46e5-9db1-c90287c6d521:Node 5d4dbf92-903d-46e5-9db1-c90287c6d521 :: true

deleteNodes 1.024s
2020-10-19 23:40:00 |

2020-10-19 23:40:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:40:00 | ------------------------------------

2020-10-19 23:40:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5d4dbf92-903d-46e5-9db1-c90287c6d521"
}

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

2020-10-19 23:40:01 | [Mutex] waiting for: [received:nodes:3329315a-e186-43a6-8c3a-fa17e538dab9:localhost]

2020-10-19 23:40:01 | [Mutex] received everything.

2020-10-19 23:40:01 | [Mutex] isItemNotified: received:node:3329315a-e186-43a6-8c3a-fa17e538dab9:localhost:node-5d4dbf92-903d-46e5-9db1-c90287c6d521:Node 5d4dbf92-903d-46e5-9db1-c90287c6d521 :: false

deleteSubnodes 1.038s
2020-10-19 23:39:59 |

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

2020-10-19 23:39:59 | ------------------------------------

2020-10-19 23:39:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b"
}

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

2020-10-19 23:40:00 | [Mutex] waiting for: [received:nodes:6659dba4-db39-4a60-b6f8-8d9f1262f8fc:localhost]

2020-10-19 23:40:00 | [Mutex] received everything.

2020-10-19 23:40:00 | [Mutex] isItemNotified: received:node:6659dba4-db39-4a60-b6f8-8d9f1262f8fc:localhost:node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b:Node 5f7dbcfc-aa49-432a-a125-06b04d6ed00b :: false

2020-10-19 23:40:00 | [Mutex] waiting for: [received:nodes:d1c78ef2-0116-446a-9e97-f9b9ee3c17c9:localhost]

2020-10-19 23:40:00 | [Mutex] received everything.

2020-10-19 23:40:00 | [Mutex] isItemNotified: received:node:d1c78ef2-0116-446a-9e97-f9b9ee3c17c9:localhost:node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b:Node 5f7dbcfc-aa49-432a-a125-06b04d6ed00b :: false

publishItemsToNodes 0.072s
2020-10-19 23:39:57 |

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

2020-10-19 23:39:57 | ------------------------------------

2020-10-19 23:39:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b",
    "entry": "<test>item-397fc516-401f-4a2c-a990-757974da1a08</test>",
    "item-id": "item-397fc516-401f-4a2c-a990-757974da1a08"
}

2020-10-19 23:39:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-397fc516-401f-4a2c-a990-757974da1a08"
}

2020-10-19 23:39:58 | [Mutex] waiting for: [published:item:notifieditem-397fc516-401f-4a2c-a990-757974da1a08:admin@test-domain.com]

2020-10-19 23:39:58 | [Mutex] received everything.

2020-10-19 23:39:58 | [Mutex] isItemNotified: published:item:notifieditem-397fc516-401f-4a2c-a990-757974da1a08:admin@test-domain.com :: true

retractItemsFromNodes 0.227s
2020-10-19 23:39:58 |

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

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

2020-10-19 23:39:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b",
    "item-id": "item-397fc516-401f-4a2c-a990-757974da1a08"
}

2020-10-19 23:39:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-397fc516-401f-4a2c-a990-757974da1a08"
}

2020-10-19 23:39:58 | [Mutex] waiting for: [retracted:item:notifieditem-397fc516-401f-4a2c-a990-757974da1a08:admin@test-domain.com]

2020-10-19 23:39:58 | [Mutex] received everything.

2020-10-19 23:39:58 | [Mutex] isItemNotified: retracted:item:notifieditem-397fc516-401f-4a2c-a990-757974da1a08:admin@test-domain.com :: true

retrieveItemsFromNodes 0.032s
2020-10-19 23:39:58 |

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

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

2020-10-19 23:39:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b",
    "item-id": "item-397fc516-401f-4a2c-a990-757974da1a08"
}

2020-10-19 23:39:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b",
    "item-id": "item-397fc516-401f-4a2c-a990-757974da1a08",
    "item": [
        "<item id=\"item-397fc516-401f-4a2c-a990-757974da1a08\"><test>item-397fc516-401f-4a2c-a990-757974da1a08</test></item>"
    ]
}

2020-10-19 23:39:58 | [Mutex] notify: [retrieved:item:item-397fc516-401f-4a2c-a990-757974da1a08:payload-matches:true:localhost]

2020-10-19 23:39:58 | [Mutex] received everything.

2020-10-19 23:39:58 | [Mutex] isItemNotified: retrieved:item:item-397fc516-401f-4a2c-a990-757974da1a08:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.093s
2020-10-19 23:39:58 |

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

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

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

2020-10-19 23:39:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b",
        "node-5d4dbf92-903d-46e5-9db1-c90287c6d521"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-19 23:39:58 |

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

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

2020-10-19 23:39:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b)"
}

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

subscribeNodes 1.017s
2020-10-19 23:39:56 |

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

2020-10-19 23:39:56 | ------------------------------------

2020-10-19 23:39:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.028s
2020-10-19 23:39:58 |

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

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

2020-10-19 23:39:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5f7dbcfc-aa49-432a-a125-06b04d6ed00b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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