Generated by TestNG with ReportNG at 22:46 PDT on Tuesday 23 August 2022
root@7c41cec37518 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.568s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2022-08-23 23:01:52 |

2022-08-23 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:52 | ------------------------------------

2022-08-23 23:01:52 | [Mutex] waiting for: [configured:node:node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1:node-b3143d09-2453-4d07-9470-e539fa944a82]

2022-08-23 23:01:52 | [Mutex] received everything.

2022-08-23 23:01:52 | [Mutex] isItemNotified: configured:node:node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1:node-b3143d09-2453-4d07-9470-e539fa944a82 :: true

2022-08-23 23:01:53 | [Mutex] waiting for: [received:nodes:c1cf1735-42d3-4a67-85bb-75111a2e0f03:localhost]

2022-08-23 23:01:54 | [Mutex] received everything.

2022-08-23 23:01:54 | [Mutex] isItemNotified: received:node:c1cf1735-42d3-4a67-85bb-75111a2e0f03:localhost:node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1:Node 3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1 :: true

2022-08-23 23:01:54 | [Mutex] waiting for: [received:nodes:f0c7460e-73e2-449e-9322-8cae7c310e98:localhost]

2022-08-23 23:01:54 | [Mutex] waiting for: [received:nodes:f0c7460e-73e2-449e-9322-8cae7c310e98:localhost]

2022-08-23 23:01:54 | [Mutex] received everything.

2022-08-23 23:01:54 | [Mutex] isItemNotified: received:node:f0c7460e-73e2-449e-9322-8cae7c310e98:localhost:node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1:Node 3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1 :: false

createNodes 1.591s
2022-08-23 23:01:50 |

2022-08-23 23:01:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:50 | ------------------------------------

2022-08-23 23:01:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1",
    "pubsub#title": "Node 3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1"
}

2022-08-23 23:01:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 23:01:51 | [Mutex] waiting for: [received:nodes:73540605-8277-49f4-b6e2-e7db3f9597e6:localhost]

2022-08-23 23:01:51 | [Mutex] waiting for: [received:nodes:73540605-8277-49f4-b6e2-e7db3f9597e6:localhost]

2022-08-23 23:01:51 | [Mutex] received everything.

2022-08-23 23:01:51 | [Mutex] isItemNotified: received:node:73540605-8277-49f4-b6e2-e7db3f9597e6:localhost:node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1:Node 3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1 :: true

createSubnodes 1.022s
2022-08-23 23:01:51 |

2022-08-23 23:01:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:51 | ------------------------------------

2022-08-23 23:01:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b3143d09-2453-4d07-9470-e539fa944a82",
    "pubsub#title": "Node b3143d09-2453-4d07-9470-e539fa944a82"
}

2022-08-23 23:01:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 23:01:52 | [Mutex] waiting for: [received:nodes:5000e23b-95d8-4c24-bb9d-b696b783b3b2:localhost]

2022-08-23 23:01:52 | [Mutex] waiting for: [received:nodes:5000e23b-95d8-4c24-bb9d-b696b783b3b2:localhost]

2022-08-23 23:01:52 | [Mutex] received everything.

2022-08-23 23:01:52 | [Mutex] isItemNotified: received:node:5000e23b-95d8-4c24-bb9d-b696b783b3b2:localhost:node-b3143d09-2453-4d07-9470-e539fa944a82:Node b3143d09-2453-4d07-9470-e539fa944a82 :: true

deleteNodes 1.022s
2022-08-23 23:01:57 |

2022-08-23 23:01:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:57 | ------------------------------------

2022-08-23 23:01:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b3143d09-2453-4d07-9470-e539fa944a82"
}

2022-08-23 23:01:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 23:01:58 | [Mutex] waiting for: [received:nodes:97a12ef9-8a5e-4eae-888b-afce25d9db29:localhost]

2022-08-23 23:01:58 | [Mutex] received everything.

2022-08-23 23:01:58 | [Mutex] isItemNotified: received:node:97a12ef9-8a5e-4eae-888b-afce25d9db29:localhost:node-b3143d09-2453-4d07-9470-e539fa944a82:Node b3143d09-2453-4d07-9470-e539fa944a82 :: false

deleteSubnodes 1.026s
2022-08-23 23:01:56 |

2022-08-23 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:56 | ------------------------------------

2022-08-23 23:01:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1"
}

2022-08-23 23:01:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 23:01:57 | [Mutex] waiting for: [received:nodes:24691247-ca1e-4b8a-b040-d2c8178bc545:localhost]

2022-08-23 23:01:57 | [Mutex] received everything.

2022-08-23 23:01:57 | [Mutex] isItemNotified: received:node:24691247-ca1e-4b8a-b040-d2c8178bc545:localhost:node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1:Node 3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1 :: false

2022-08-23 23:01:57 | [Mutex] waiting for: [received:nodes:15c2ffb4-6387-4d66-bc05-8c52b2af9cf1:localhost]

2022-08-23 23:01:57 | [Mutex] received everything.

2022-08-23 23:01:57 | [Mutex] isItemNotified: received:node:15c2ffb4-6387-4d66-bc05-8c52b2af9cf1:localhost:node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1:Node 3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1 :: false

publishItemsToNodes 0.057s
2022-08-23 23:01:55 |

2022-08-23 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:55 | ------------------------------------

2022-08-23 23:01:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1",
    "entry": "<test>item-4997b1ae-0771-4854-bed9-88157bdbea8a</test>",
    "item-id": "item-4997b1ae-0771-4854-bed9-88157bdbea8a"
}

2022-08-23 23:01:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4997b1ae-0771-4854-bed9-88157bdbea8a"
}

2022-08-23 23:01:55 | [Mutex] waiting for: [published:item:notifieditem-4997b1ae-0771-4854-bed9-88157bdbea8a:admin@test-domain.com]

2022-08-23 23:01:55 | [Mutex] received everything.

2022-08-23 23:01:55 | [Mutex] isItemNotified: published:item:notifieditem-4997b1ae-0771-4854-bed9-88157bdbea8a:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-08-23 23:01:55 |

2022-08-23 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:55 | ------------------------------------

2022-08-23 23:01:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1",
    "item-id": "item-4997b1ae-0771-4854-bed9-88157bdbea8a"
}

2022-08-23 23:01:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4997b1ae-0771-4854-bed9-88157bdbea8a"
}

2022-08-23 23:01:55 | [Mutex] received everything.

2022-08-23 23:01:55 | [Mutex] isItemNotified: retracted:item:notifieditem-4997b1ae-0771-4854-bed9-88157bdbea8a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-08-23 23:01:55 |

2022-08-23 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:55 | ------------------------------------

2022-08-23 23:01:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1",
    "item-id": "item-4997b1ae-0771-4854-bed9-88157bdbea8a"
}

2022-08-23 23:01:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1",
    "item-id": "item-4997b1ae-0771-4854-bed9-88157bdbea8a",
    "item": [
        "<item id=\"item-4997b1ae-0771-4854-bed9-88157bdbea8a\"><test>item-4997b1ae-0771-4854-bed9-88157bdbea8a</test></item>"
    ]
}

2022-08-23 23:01:55 | [Mutex] notify: [retrieved:item:item-4997b1ae-0771-4854-bed9-88157bdbea8a:payload-matches:true:localhost]

2022-08-23 23:01:55 | [Mutex] received everything.

2022-08-23 23:01:55 | [Mutex] isItemNotified: retrieved:item:item-4997b1ae-0771-4854-bed9-88157bdbea8a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-08-23 23:01:55 |

2022-08-23 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:55 | ------------------------------------

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

2022-08-23 23:01:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1",
        "node-b3143d09-2453-4d07-9470-e539fa944a82"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-23 23:01:55 |

2022-08-23 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:55 | ------------------------------------

2022-08-23 23:01:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1)"
}

2022-08-23 23:01:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-08-23 23:01:54 |

2022-08-23 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:54 | ------------------------------------

2022-08-23 23:01:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-23 23:01:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-08-23 23:01:55 |

2022-08-23 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 23:01:55 | ------------------------------------

2022-08-23 23:01:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3b3f5bc1-de5e-4e3a-8d10-91ad6d1d86e1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-23 23:01:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}