Generated by TestNG with ReportNG at 22:50 PDT on Monday 17 October 2022
root@ed1b7dd8a1b3 / 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.637s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.090s
2022-10-17 23:05:14 |

2022-10-17 23:05:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:14 | ------------------------------------

2022-10-17 23:05:14 | [Mutex] waiting for: [configured:node:node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0:node-898a7dc5-e70c-4434-8378-b868f999225d]

2022-10-17 23:05:14 | [Mutex] received everything.

2022-10-17 23:05:14 | [Mutex] isItemNotified: configured:node:node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0:node-898a7dc5-e70c-4434-8378-b868f999225d :: true

2022-10-17 23:05:15 | [Mutex] waiting for: [received:nodes:76f328c2-83e0-49a9-9441-7c2f4c9ee5d6:localhost]

2022-10-17 23:05:15 | [Mutex] received everything.

2022-10-17 23:05:15 | [Mutex] isItemNotified: received:node:76f328c2-83e0-49a9-9441-7c2f4c9ee5d6:localhost:node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0:Node b711e32b-d05a-42a6-9fc7-04f29c8b07b0 :: true

2022-10-17 23:05:15 | [Mutex] waiting for: [received:nodes:865ef14e-f503-46ce-8c5d-5a75504f722b:localhost]

2022-10-17 23:05:15 | [Mutex] received everything.

2022-10-17 23:05:15 | [Mutex] isItemNotified: received:node:865ef14e-f503-46ce-8c5d-5a75504f722b:localhost:node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0:Node b711e32b-d05a-42a6-9fc7-04f29c8b07b0 :: false

createNodes 1.607s
2022-10-17 23:05:11 |

2022-10-17 23:05:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:11 | ------------------------------------

2022-10-17 23:05:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0",
    "pubsub#title": "Node b711e32b-d05a-42a6-9fc7-04f29c8b07b0"
}

2022-10-17 23:05:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-17 23:05:13 | [Mutex] waiting for: [received:nodes:9f20a264-b1eb-462d-820d-381c663f0cef:localhost]

2022-10-17 23:05:13 | [Mutex] received everything.

2022-10-17 23:05:13 | [Mutex] isItemNotified: received:node:9f20a264-b1eb-462d-820d-381c663f0cef:localhost:node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0:Node b711e32b-d05a-42a6-9fc7-04f29c8b07b0 :: true

createSubnodes 1.024s
2022-10-17 23:05:13 |

2022-10-17 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:13 | ------------------------------------

2022-10-17 23:05:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-898a7dc5-e70c-4434-8378-b868f999225d",
    "pubsub#title": "Node 898a7dc5-e70c-4434-8378-b868f999225d"
}

2022-10-17 23:05:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-17 23:05:14 | [Mutex] waiting for: [received:nodes:30db15ae-4e8f-485a-a7a9-5e9c860f5f66:localhost]

2022-10-17 23:05:14 | [Mutex] waiting for: [received:nodes:30db15ae-4e8f-485a-a7a9-5e9c860f5f66:localhost]

2022-10-17 23:05:14 | [Mutex] received everything.

2022-10-17 23:05:14 | [Mutex] isItemNotified: received:node:30db15ae-4e8f-485a-a7a9-5e9c860f5f66:localhost:node-898a7dc5-e70c-4434-8378-b868f999225d:Node 898a7dc5-e70c-4434-8378-b868f999225d :: true

deleteNodes 1.021s
2022-10-17 23:05:18 |

2022-10-17 23:05:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:18 | ------------------------------------

2022-10-17 23:05:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-898a7dc5-e70c-4434-8378-b868f999225d"
}

2022-10-17 23:05:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-17 23:05:19 | [Mutex] waiting for: [received:nodes:fda229b0-83da-40b4-97ff-8cce9398ef85:localhost]

2022-10-17 23:05:19 | [Mutex] received everything.

2022-10-17 23:05:19 | [Mutex] isItemNotified: received:node:fda229b0-83da-40b4-97ff-8cce9398ef85:localhost:node-898a7dc5-e70c-4434-8378-b868f999225d:Node 898a7dc5-e70c-4434-8378-b868f999225d :: false

deleteSubnodes 1.024s
2022-10-17 23:05:17 |

2022-10-17 23:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:17 | ------------------------------------

2022-10-17 23:05:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0"
}

2022-10-17 23:05:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-17 23:05:18 | [Mutex] waiting for: [received:nodes:fb407787-21b2-4def-aa15-e97a314e486b:localhost]

2022-10-17 23:05:18 | [Mutex] received everything.

2022-10-17 23:05:18 | [Mutex] isItemNotified: received:node:fb407787-21b2-4def-aa15-e97a314e486b:localhost:node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0:Node b711e32b-d05a-42a6-9fc7-04f29c8b07b0 :: false

2022-10-17 23:05:18 | [Mutex] waiting for: [received:nodes:3155fb97-a2a6-4feb-98e3-f3165266608c:localhost]

2022-10-17 23:05:18 | [Mutex] received everything.

2022-10-17 23:05:18 | [Mutex] isItemNotified: received:node:3155fb97-a2a6-4feb-98e3-f3165266608c:localhost:node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0:Node b711e32b-d05a-42a6-9fc7-04f29c8b07b0 :: false

publishItemsToNodes 0.079s
2022-10-17 23:05:16 |

2022-10-17 23:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:16 | ------------------------------------

2022-10-17 23:05:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0",
    "entry": "<test>item-35c5938f-741e-4d20-b2b0-07b7d7878e9c</test>",
    "item-id": "item-35c5938f-741e-4d20-b2b0-07b7d7878e9c"
}

2022-10-17 23:05:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-35c5938f-741e-4d20-b2b0-07b7d7878e9c"
}

2022-10-17 23:05:16 | [Mutex] waiting for: [published:item:notifieditem-35c5938f-741e-4d20-b2b0-07b7d7878e9c:admin@test-domain.com]

2022-10-17 23:05:16 | [Mutex] received everything.

2022-10-17 23:05:16 | [Mutex] isItemNotified: published:item:notifieditem-35c5938f-741e-4d20-b2b0-07b7d7878e9c:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-10-17 23:05:16 |

2022-10-17 23:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:16 | ------------------------------------

2022-10-17 23:05:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0",
    "item-id": "item-35c5938f-741e-4d20-b2b0-07b7d7878e9c"
}

2022-10-17 23:05:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-35c5938f-741e-4d20-b2b0-07b7d7878e9c"
}

2022-10-17 23:05:16 | [Mutex] waiting for: [retracted:item:notifieditem-35c5938f-741e-4d20-b2b0-07b7d7878e9c:admin@test-domain.com]

2022-10-17 23:05:16 | [Mutex] received everything.

2022-10-17 23:05:16 | [Mutex] isItemNotified: retracted:item:notifieditem-35c5938f-741e-4d20-b2b0-07b7d7878e9c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.029s
2022-10-17 23:05:16 |

2022-10-17 23:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:16 | ------------------------------------

2022-10-17 23:05:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0",
    "item-id": "item-35c5938f-741e-4d20-b2b0-07b7d7878e9c"
}

2022-10-17 23:05:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0",
    "item-id": "item-35c5938f-741e-4d20-b2b0-07b7d7878e9c",
    "item": [
        "<item id=\"item-35c5938f-741e-4d20-b2b0-07b7d7878e9c\"><test>item-35c5938f-741e-4d20-b2b0-07b7d7878e9c</test></item>"
    ]
}

2022-10-17 23:05:16 | [Mutex] notify: [retrieved:item:item-35c5938f-741e-4d20-b2b0-07b7d7878e9c:payload-matches:true:localhost]

2022-10-17 23:05:16 | [Mutex] received everything.

2022-10-17 23:05:16 | [Mutex] isItemNotified: retrieved:item:item-35c5938f-741e-4d20-b2b0-07b7d7878e9c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-10-17 23:05:16 |

2022-10-17 23:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:16 | ------------------------------------

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

2022-10-17 23:05:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0",
        "test",
        "node-898a7dc5-e70c-4434-8378-b868f999225d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-10-17 23:05:16 |

2022-10-17 23:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:16 | ------------------------------------

2022-10-17 23:05:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0)"
}

2022-10-17 23:05:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-10-17 23:05:15 |

2022-10-17 23:05:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:15 | ------------------------------------

2022-10-17 23:05:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-17 23:05:15 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2022-10-17 23:05:16 |

2022-10-17 23:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:05:16 | ------------------------------------

2022-10-17 23:05:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b711e32b-d05a-42a6-9fc7-04f29c8b07b0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-17 23:05:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}