Generated by TestNG with ReportNG at 22:42 PDT on Thursday 30 September 2021
root@f29ef40080b5 / 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.184s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2021-09-30 22:59:16 |

2021-09-30 22:59:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:16 | ------------------------------------

2021-09-30 22:59:16 | [Mutex] waiting for: [configured:node:node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec:node-6e780bc6-766b-41f6-b750-8a8573c5e114]

2021-09-30 22:59:16 | [Mutex] received everything.

2021-09-30 22:59:16 | [Mutex] isItemNotified: configured:node:node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec:node-6e780bc6-766b-41f6-b750-8a8573c5e114 :: true

2021-09-30 22:59:17 | [Mutex] waiting for: [received:nodes:2744b326-ca83-4fd3-9262-1880d5826e6d:localhost]

2021-09-30 22:59:17 | [Mutex] received everything.

2021-09-30 22:59:17 | [Mutex] isItemNotified: received:node:2744b326-ca83-4fd3-9262-1880d5826e6d:localhost:node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec:Node 945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec :: true

2021-09-30 22:59:17 | [Mutex] waiting for: [received:nodes:320bbb7c-d760-4481-89d8-884b85e77156:localhost]

2021-09-30 22:59:17 | [Mutex] waiting for: [received:nodes:320bbb7c-d760-4481-89d8-884b85e77156:localhost]

2021-09-30 22:59:17 | [Mutex] received everything.

2021-09-30 22:59:17 | [Mutex] isItemNotified: received:node:320bbb7c-d760-4481-89d8-884b85e77156:localhost:node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec:Node 945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec :: false

createNodes 1.782s
2021-09-30 22:59:13 |

2021-09-30 22:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:13 | ------------------------------------

2021-09-30 22:59:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec",
    "pubsub#title": "Node 945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec"
}

2021-09-30 22:59:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:59:15 | [Mutex] waiting for: [received:nodes:22c60a97-7420-4e2d-ab93-f05961d118e8:localhost]

2021-09-30 22:59:15 | [Mutex] waiting for: [received:nodes:22c60a97-7420-4e2d-ab93-f05961d118e8:localhost]

2021-09-30 22:59:15 | [Mutex] waiting for: [received:nodes:22c60a97-7420-4e2d-ab93-f05961d118e8:localhost]

2021-09-30 22:59:15 | [Mutex] received everything.

2021-09-30 22:59:15 | [Mutex] isItemNotified: received:node:22c60a97-7420-4e2d-ab93-f05961d118e8:localhost:node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec:Node 945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec :: true

createSubnodes 1.028s
2021-09-30 22:59:15 |

2021-09-30 22:59:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:15 | ------------------------------------

2021-09-30 22:59:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6e780bc6-766b-41f6-b750-8a8573c5e114",
    "pubsub#title": "Node 6e780bc6-766b-41f6-b750-8a8573c5e114"
}

2021-09-30 22:59:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:59:16 | [Mutex] waiting for: [received:nodes:e5baa694-5a74-452a-9773-60b2337fced1:localhost]

2021-09-30 22:59:16 | [Mutex] waiting for: [received:nodes:e5baa694-5a74-452a-9773-60b2337fced1:localhost]

2021-09-30 22:59:16 | [Mutex] received everything.

2021-09-30 22:59:16 | [Mutex] isItemNotified: received:node:e5baa694-5a74-452a-9773-60b2337fced1:localhost:node-6e780bc6-766b-41f6-b750-8a8573c5e114:Node 6e780bc6-766b-41f6-b750-8a8573c5e114 :: true

deleteNodes 1.021s
2021-09-30 22:59:21 |

2021-09-30 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:21 | ------------------------------------

2021-09-30 22:59:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6e780bc6-766b-41f6-b750-8a8573c5e114"
}

2021-09-30 22:59:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:59:22 | [Mutex] waiting for: [received:nodes:c3fb74d9-9971-4116-ab7d-0590b43f3aec:localhost]

2021-09-30 22:59:22 | [Mutex] received everything.

2021-09-30 22:59:22 | [Mutex] isItemNotified: received:node:c3fb74d9-9971-4116-ab7d-0590b43f3aec:localhost:node-6e780bc6-766b-41f6-b750-8a8573c5e114:Node 6e780bc6-766b-41f6-b750-8a8573c5e114 :: false

deleteSubnodes 1.025s
2021-09-30 22:59:20 |

2021-09-30 22:59:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:20 | ------------------------------------

2021-09-30 22:59:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec"
}

2021-09-30 22:59:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:59:21 | [Mutex] waiting for: [received:nodes:f0bcace5-4664-4131-95fb-aefe65f861e8:localhost]

2021-09-30 22:59:21 | [Mutex] received everything.

2021-09-30 22:59:21 | [Mutex] isItemNotified: received:node:f0bcace5-4664-4131-95fb-aefe65f861e8:localhost:node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec:Node 945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec :: false

2021-09-30 22:59:21 | [Mutex] waiting for: [received:nodes:5b60d378-26d5-45e4-af53-bb4660e7db95:localhost]

2021-09-30 22:59:21 | [Mutex] received everything.

2021-09-30 22:59:21 | [Mutex] isItemNotified: received:node:5b60d378-26d5-45e4-af53-bb4660e7db95:localhost:node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec:Node 945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec :: false

publishItemsToNodes 0.158s
2021-09-30 22:59:18 |

2021-09-30 22:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:18 | ------------------------------------

2021-09-30 22:59:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec",
    "entry": "<test>item-ce0e2150-5b0d-4132-9456-2079ea40d04d</test>",
    "item-id": "item-ce0e2150-5b0d-4132-9456-2079ea40d04d"
}

2021-09-30 22:59:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ce0e2150-5b0d-4132-9456-2079ea40d04d"
}

2021-09-30 22:59:18 | [Mutex] waiting for: [published:item:notifieditem-ce0e2150-5b0d-4132-9456-2079ea40d04d:admin@test-domain.com]

2021-09-30 22:59:18 | [Mutex] received everything.

2021-09-30 22:59:18 | [Mutex] isItemNotified: published:item:notifieditem-ce0e2150-5b0d-4132-9456-2079ea40d04d:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-09-30 22:59:19 |

2021-09-30 22:59:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:19 | ------------------------------------

2021-09-30 22:59:19 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec",
    "item-id": "item-ce0e2150-5b0d-4132-9456-2079ea40d04d"
}

2021-09-30 22:59:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ce0e2150-5b0d-4132-9456-2079ea40d04d"
}

2021-09-30 22:59:19 | [Mutex] received everything.

2021-09-30 22:59:19 | [Mutex] isItemNotified: retracted:item:notifieditem-ce0e2150-5b0d-4132-9456-2079ea40d04d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.041s
2021-09-30 22:59:18 |

2021-09-30 22:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:18 | ------------------------------------

2021-09-30 22:59:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec",
    "item-id": "item-ce0e2150-5b0d-4132-9456-2079ea40d04d"
}

2021-09-30 22:59:19 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec",
    "item-id": "item-ce0e2150-5b0d-4132-9456-2079ea40d04d",
    "item": [
        "<item id=\"item-ce0e2150-5b0d-4132-9456-2079ea40d04d\"><test>item-ce0e2150-5b0d-4132-9456-2079ea40d04d</test></item>"
    ]
}

2021-09-30 22:59:19 | [Mutex] notify: [retrieved:item:item-ce0e2150-5b0d-4132-9456-2079ea40d04d:payload-matches:true:localhost]

2021-09-30 22:59:19 | [Mutex] received everything.

2021-09-30 22:59:19 | [Mutex] isItemNotified: retrieved:item:item-ce0e2150-5b0d-4132-9456-2079ea40d04d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2021-09-30 22:59:19 |

2021-09-30 22:59:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:19 | ------------------------------------

2021-09-30 22:59:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-09-30 22:59:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec",
        "test",
        "node-6e780bc6-766b-41f6-b750-8a8573c5e114"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-09-30 22:59:19 |

2021-09-30 22:59:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:19 | ------------------------------------

2021-09-30 22:59:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec)"
}

2021-09-30 22:59:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2021-09-30 22:59:17 |

2021-09-30 22:59:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:17 | ------------------------------------

2021-09-30 22:59:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-30 22:59:17 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.095s
2021-09-30 22:59:19 |

2021-09-30 22:59:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:59:19 | ------------------------------------

2021-09-30 22:59:19 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-945ddb84-bc18-4fe6-8f35-7a5f4a27e6ec",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-30 22:59:19 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}