Generated by TestNG with ReportNG at 08:53 PST on Monday 06 March 2023
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.591s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2023-03-06 09:08:25 |

2023-03-06 09:08:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:25 | ------------------------------------

2023-03-06 09:08:25 | [Mutex] waiting for: [configured:node:node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb:node-079b7255-f49f-447f-9a6e-4cd85874526b]

2023-03-06 09:08:25 | [Mutex] received everything.

2023-03-06 09:08:25 | [Mutex] isItemNotified: configured:node:node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb:node-079b7255-f49f-447f-9a6e-4cd85874526b :: true

2023-03-06 09:08:26 | [Mutex] waiting for: [received:nodes:30a361fb-e57d-4ce1-be49-46dfe3594e5e:localhost]

2023-03-06 09:08:26 | [Mutex] received everything.

2023-03-06 09:08:26 | [Mutex] isItemNotified: received:node:30a361fb-e57d-4ce1-be49-46dfe3594e5e:localhost:node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb:Node 481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb :: true

2023-03-06 09:08:26 | [Mutex] waiting for: [received:nodes:8de77704-45fe-4986-bfdc-31986bf01b8f:localhost]

2023-03-06 09:08:26 | [Mutex] received everything.

2023-03-06 09:08:26 | [Mutex] isItemNotified: received:node:8de77704-45fe-4986-bfdc-31986bf01b8f:localhost:node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb:Node 481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb :: false

createNodes 1.559s
2023-03-06 09:08:22 |

2023-03-06 09:08:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:22 | ------------------------------------

2023-03-06 09:08:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb",
    "pubsub#title": "Node 481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb"
}

2023-03-06 09:08:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:08:24 | [Mutex] waiting for: [received:nodes:0523ab86-0389-4181-8161-4328247cac85:localhost]

2023-03-06 09:08:24 | [Mutex] waiting for: [received:nodes:0523ab86-0389-4181-8161-4328247cac85:localhost]

2023-03-06 09:08:24 | [Mutex] received everything.

2023-03-06 09:08:24 | [Mutex] isItemNotified: received:node:0523ab86-0389-4181-8161-4328247cac85:localhost:node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb:Node 481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb :: true

createSubnodes 1.022s
2023-03-06 09:08:24 |

2023-03-06 09:08:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:24 | ------------------------------------

2023-03-06 09:08:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-079b7255-f49f-447f-9a6e-4cd85874526b",
    "pubsub#title": "Node 079b7255-f49f-447f-9a6e-4cd85874526b"
}

2023-03-06 09:08:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:08:25 | [Mutex] waiting for: [received:nodes:59947956-1798-40f8-97c1-f024a57bccc9:localhost]

2023-03-06 09:08:25 | [Mutex] waiting for: [received:nodes:59947956-1798-40f8-97c1-f024a57bccc9:localhost]

2023-03-06 09:08:25 | [Mutex] waiting for: [received:nodes:59947956-1798-40f8-97c1-f024a57bccc9:localhost]

2023-03-06 09:08:25 | [Mutex] waiting for: [received:nodes:59947956-1798-40f8-97c1-f024a57bccc9:localhost]

2023-03-06 09:08:25 | [Mutex] received everything.

2023-03-06 09:08:25 | [Mutex] isItemNotified: received:node:59947956-1798-40f8-97c1-f024a57bccc9:localhost:node-079b7255-f49f-447f-9a6e-4cd85874526b:Node 079b7255-f49f-447f-9a6e-4cd85874526b :: true

deleteNodes 1.060s
2023-03-06 09:08:29 |

2023-03-06 09:08:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:29 | ------------------------------------

2023-03-06 09:08:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-079b7255-f49f-447f-9a6e-4cd85874526b"
}

2023-03-06 09:08:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:08:30 | [Mutex] waiting for: [received:nodes:4316eb42-f540-47ee-bc98-18de14595bad:localhost]

2023-03-06 09:08:30 | [Mutex] waiting for: [received:nodes:4316eb42-f540-47ee-bc98-18de14595bad:localhost]

2023-03-06 09:08:30 | [Mutex] waiting for: [received:nodes:4316eb42-f540-47ee-bc98-18de14595bad:localhost]

2023-03-06 09:08:30 | [Mutex] waiting for: [received:nodes:4316eb42-f540-47ee-bc98-18de14595bad:localhost]

2023-03-06 09:08:30 | [Mutex] received everything.

2023-03-06 09:08:30 | [Mutex] isItemNotified: received:node:4316eb42-f540-47ee-bc98-18de14595bad:localhost:node-079b7255-f49f-447f-9a6e-4cd85874526b:Node 079b7255-f49f-447f-9a6e-4cd85874526b :: false

deleteSubnodes 1.026s
2023-03-06 09:08:28 |

2023-03-06 09:08:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:28 | ------------------------------------

2023-03-06 09:08:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb"
}

2023-03-06 09:08:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:08:29 | [Mutex] waiting for: [received:nodes:0f78d76a-1800-44d4-bcf5-f564a727b0da:localhost]

2023-03-06 09:08:29 | [Mutex] waiting for: [received:nodes:0f78d76a-1800-44d4-bcf5-f564a727b0da:localhost]

2023-03-06 09:08:29 | [Mutex] waiting for: [received:nodes:0f78d76a-1800-44d4-bcf5-f564a727b0da:localhost]

2023-03-06 09:08:29 | [Mutex] waiting for: [received:nodes:0f78d76a-1800-44d4-bcf5-f564a727b0da:localhost]

2023-03-06 09:08:29 | [Mutex] received everything.

2023-03-06 09:08:29 | [Mutex] isItemNotified: received:node:0f78d76a-1800-44d4-bcf5-f564a727b0da:localhost:node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb:Node 481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb :: false

2023-03-06 09:08:29 | [Mutex] waiting for: [received:nodes:46f75ffb-ad96-48e6-aa8b-907199cf3bfd:localhost]

2023-03-06 09:08:29 | [Mutex] received everything.

2023-03-06 09:08:29 | [Mutex] isItemNotified: received:node:46f75ffb-ad96-48e6-aa8b-907199cf3bfd:localhost:node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb:Node 481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb :: false

publishItemsToNodes 0.050s
2023-03-06 09:08:27 |

2023-03-06 09:08:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:27 | ------------------------------------

2023-03-06 09:08:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb",
    "entry": "<test>item-d5b7005e-7363-4d9b-9f10-934880e0a0ed</test>",
    "item-id": "item-d5b7005e-7363-4d9b-9f10-934880e0a0ed"
}

2023-03-06 09:08:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d5b7005e-7363-4d9b-9f10-934880e0a0ed"
}

2023-03-06 09:08:27 | [Mutex] waiting for: [published:item:notifieditem-d5b7005e-7363-4d9b-9f10-934880e0a0ed:admin@test-domain.com]

2023-03-06 09:08:27 | [Mutex] received everything.

2023-03-06 09:08:27 | [Mutex] isItemNotified: published:item:notifieditem-d5b7005e-7363-4d9b-9f10-934880e0a0ed:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2023-03-06 09:08:27 |

2023-03-06 09:08:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:27 | ------------------------------------

2023-03-06 09:08:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb",
    "item-id": "item-d5b7005e-7363-4d9b-9f10-934880e0a0ed"
}

2023-03-06 09:08:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d5b7005e-7363-4d9b-9f10-934880e0a0ed"
}

2023-03-06 09:08:27 | [Mutex] received everything.

2023-03-06 09:08:27 | [Mutex] isItemNotified: retracted:item:notifieditem-d5b7005e-7363-4d9b-9f10-934880e0a0ed:admin@test-domain.com :: true

retrieveItemsFromNodes 0.010s
2023-03-06 09:08:27 |

2023-03-06 09:08:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:27 | ------------------------------------

2023-03-06 09:08:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb",
    "item-id": "item-d5b7005e-7363-4d9b-9f10-934880e0a0ed"
}

2023-03-06 09:08:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb",
    "item-id": "item-d5b7005e-7363-4d9b-9f10-934880e0a0ed",
    "item": [
        "<item id=\"item-d5b7005e-7363-4d9b-9f10-934880e0a0ed\"><test>item-d5b7005e-7363-4d9b-9f10-934880e0a0ed</test></item>"
    ]
}

2023-03-06 09:08:27 | [Mutex] notify: [retrieved:item:item-d5b7005e-7363-4d9b-9f10-934880e0a0ed:payload-matches:true:localhost]

2023-03-06 09:08:27 | [Mutex] received everything.

2023-03-06 09:08:27 | [Mutex] isItemNotified: retrieved:item:item-d5b7005e-7363-4d9b-9f10-934880e0a0ed:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2023-03-06 09:08:27 |

2023-03-06 09:08:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:27 | ------------------------------------

2023-03-06 09:08:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-06 09:08:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-079b7255-f49f-447f-9a6e-4cd85874526b",
        "test",
        "node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-03-06 09:08:27 |

2023-03-06 09:08:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:27 | ------------------------------------

2023-03-06 09:08:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb)"
}

2023-03-06 09:08:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2023-03-06 09:08:26 |

2023-03-06 09:08:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:26 | ------------------------------------

2023-03-06 09:08:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 09:08:26 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-03-06 09:08:27 |

2023-03-06 09:08:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:27 | ------------------------------------

2023-03-06 09:08:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-481f5b5d-eb3e-4ba0-81e9-2081cf29f6fb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 09:08:27 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}