Generated by TestNG with ReportNG at 22:49 PDT on Wednesday 05 July 2023
root@8f5c98824654 / Java 17.0.6 (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.666s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2023-07-05 23:04:29 |

2023-07-05 23:04:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:29 | ------------------------------------

2023-07-05 23:04:29 | [Mutex] waiting for: [configured:node:node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7:node-3550c0f5-3753-4df8-b136-c9fb6fda2eb5]

2023-07-05 23:04:29 | [Mutex] received everything.

2023-07-05 23:04:29 | [Mutex] isItemNotified: configured:node:node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7:node-3550c0f5-3753-4df8-b136-c9fb6fda2eb5 :: true

2023-07-05 23:04:30 | [Mutex] waiting for: [received:nodes:c0a9d758-4669-4acd-82ea-1447b1db571d:localhost]

2023-07-05 23:04:30 | [Mutex] received everything.

2023-07-05 23:04:30 | [Mutex] isItemNotified: received:node:c0a9d758-4669-4acd-82ea-1447b1db571d:localhost:node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7:Node bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7 :: true

2023-07-05 23:04:30 | [Mutex] waiting for: [received:nodes:90e9f572-4eb0-4b00-adf7-1d751260cf97:localhost]

2023-07-05 23:04:30 | [Mutex] waiting for: [received:nodes:90e9f572-4eb0-4b00-adf7-1d751260cf97:localhost]

2023-07-05 23:04:30 | [Mutex] waiting for: [received:nodes:90e9f572-4eb0-4b00-adf7-1d751260cf97:localhost]

2023-07-05 23:04:30 | [Mutex] received everything.

2023-07-05 23:04:30 | [Mutex] isItemNotified: received:node:90e9f572-4eb0-4b00-adf7-1d751260cf97:localhost:node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7:Node bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7 :: false

createNodes 1.675s
2023-07-05 23:04:26 |

2023-07-05 23:04:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:26 | ------------------------------------

2023-07-05 23:04:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7",
    "pubsub#title": "Node bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7"
}

2023-07-05 23:04:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:28 | [Mutex] waiting for: [received:nodes:88fa99db-5733-47bb-94cd-17e621c53ace:localhost]

2023-07-05 23:04:28 | [Mutex] waiting for: [received:nodes:88fa99db-5733-47bb-94cd-17e621c53ace:localhost]

2023-07-05 23:04:28 | [Mutex] waiting for: [received:nodes:88fa99db-5733-47bb-94cd-17e621c53ace:localhost]

2023-07-05 23:04:28 | [Mutex] received everything.

2023-07-05 23:04:28 | [Mutex] isItemNotified: received:node:88fa99db-5733-47bb-94cd-17e621c53ace:localhost:node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7:Node bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7 :: true

createSubnodes 1.030s
2023-07-05 23:04:28 |

2023-07-05 23:04:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:28 | ------------------------------------

2023-07-05 23:04:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3550c0f5-3753-4df8-b136-c9fb6fda2eb5",
    "pubsub#title": "Node 3550c0f5-3753-4df8-b136-c9fb6fda2eb5"
}

2023-07-05 23:04:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:29 | [Mutex] waiting for: [received:nodes:0f9ac6aa-f764-47f3-96e0-bba46903e206:localhost]

2023-07-05 23:04:29 | [Mutex] waiting for: [received:nodes:0f9ac6aa-f764-47f3-96e0-bba46903e206:localhost]

2023-07-05 23:04:29 | [Mutex] waiting for: [received:nodes:0f9ac6aa-f764-47f3-96e0-bba46903e206:localhost]

2023-07-05 23:04:29 | [Mutex] waiting for: [received:nodes:0f9ac6aa-f764-47f3-96e0-bba46903e206:localhost]

2023-07-05 23:04:29 | [Mutex] received everything.

2023-07-05 23:04:29 | [Mutex] isItemNotified: received:node:0f9ac6aa-f764-47f3-96e0-bba46903e206:localhost:node-3550c0f5-3753-4df8-b136-c9fb6fda2eb5:Node 3550c0f5-3753-4df8-b136-c9fb6fda2eb5 :: true

deleteNodes 1.031s
2023-07-05 23:04:33 |

2023-07-05 23:04:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:33 | ------------------------------------

2023-07-05 23:04:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3550c0f5-3753-4df8-b136-c9fb6fda2eb5"
}

2023-07-05 23:04:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:34 | [Mutex] waiting for: [received:nodes:1bcc4fa9-5f57-4cb5-ae85-ff5a133b5315:localhost]

2023-07-05 23:04:34 | [Mutex] waiting for: [received:nodes:1bcc4fa9-5f57-4cb5-ae85-ff5a133b5315:localhost]

2023-07-05 23:04:34 | [Mutex] waiting for: [received:nodes:1bcc4fa9-5f57-4cb5-ae85-ff5a133b5315:localhost]

2023-07-05 23:04:34 | [Mutex] received everything.

2023-07-05 23:04:34 | [Mutex] isItemNotified: received:node:1bcc4fa9-5f57-4cb5-ae85-ff5a133b5315:localhost:node-3550c0f5-3753-4df8-b136-c9fb6fda2eb5:Node 3550c0f5-3753-4df8-b136-c9fb6fda2eb5 :: false

deleteSubnodes 1.030s
2023-07-05 23:04:32 |

2023-07-05 23:04:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:32 | ------------------------------------

2023-07-05 23:04:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7"
}

2023-07-05 23:04:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:33 | [Mutex] waiting for: [received:nodes:af221069-3707-4e90-8039-80e8a9f49301:localhost]

2023-07-05 23:04:33 | [Mutex] waiting for: [received:nodes:af221069-3707-4e90-8039-80e8a9f49301:localhost]

2023-07-05 23:04:33 | [Mutex] waiting for: [received:nodes:af221069-3707-4e90-8039-80e8a9f49301:localhost]

2023-07-05 23:04:33 | [Mutex] waiting for: [received:nodes:af221069-3707-4e90-8039-80e8a9f49301:localhost]

2023-07-05 23:04:33 | [Mutex] received everything.

2023-07-05 23:04:33 | [Mutex] isItemNotified: received:node:af221069-3707-4e90-8039-80e8a9f49301:localhost:node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7:Node bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7 :: false

2023-07-05 23:04:33 | [Mutex] waiting for: [received:nodes:58657875-4280-4ecf-b2c9-eef8a10a0a6a:localhost]

2023-07-05 23:04:33 | [Mutex] received everything.

2023-07-05 23:04:33 | [Mutex] isItemNotified: received:node:58657875-4280-4ecf-b2c9-eef8a10a0a6a:localhost:node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7:Node bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7 :: false

publishItemsToNodes 0.051s
2023-07-05 23:04:31 |

2023-07-05 23:04:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:31 | ------------------------------------

2023-07-05 23:04:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7",
    "entry": "<test>item-ad165898-850b-426c-b691-b04e7a08cc0c</test>",
    "item-id": "item-ad165898-850b-426c-b691-b04e7a08cc0c"
}

2023-07-05 23:04:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ad165898-850b-426c-b691-b04e7a08cc0c"
}

2023-07-05 23:04:31 | [Mutex] waiting for: [published:item:notifieditem-ad165898-850b-426c-b691-b04e7a08cc0c:admin@test-domain.com]

2023-07-05 23:04:31 | [Mutex] received everything.

2023-07-05 23:04:31 | [Mutex] isItemNotified: published:item:notifieditem-ad165898-850b-426c-b691-b04e7a08cc0c:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2023-07-05 23:04:31 |

2023-07-05 23:04:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:31 | ------------------------------------

2023-07-05 23:04:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7",
    "item-id": "item-ad165898-850b-426c-b691-b04e7a08cc0c"
}

2023-07-05 23:04:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ad165898-850b-426c-b691-b04e7a08cc0c"
}

2023-07-05 23:04:31 | [Mutex] waiting for: [retracted:item:notifieditem-ad165898-850b-426c-b691-b04e7a08cc0c:admin@test-domain.com]

2023-07-05 23:04:31 | [Mutex] received everything.

2023-07-05 23:04:31 | [Mutex] isItemNotified: retracted:item:notifieditem-ad165898-850b-426c-b691-b04e7a08cc0c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2023-07-05 23:04:31 |

2023-07-05 23:04:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:31 | ------------------------------------

2023-07-05 23:04:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7",
    "item-id": "item-ad165898-850b-426c-b691-b04e7a08cc0c"
}

2023-07-05 23:04:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7",
    "item-id": "item-ad165898-850b-426c-b691-b04e7a08cc0c",
    "item": [
        "<item id=\"item-ad165898-850b-426c-b691-b04e7a08cc0c\"><test>item-ad165898-850b-426c-b691-b04e7a08cc0c</test></item>"
    ]
}

2023-07-05 23:04:31 | [Mutex] notify: [retrieved:item:item-ad165898-850b-426c-b691-b04e7a08cc0c:payload-matches:true:localhost]

2023-07-05 23:04:31 | [Mutex] received everything.

2023-07-05 23:04:31 | [Mutex] isItemNotified: retrieved:item:item-ad165898-850b-426c-b691-b04e7a08cc0c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-05 23:04:31 |

2023-07-05 23:04:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:31 | ------------------------------------

2023-07-05 23:04:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-05 23:04:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3550c0f5-3753-4df8-b136-c9fb6fda2eb5",
        "node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2023-07-05 23:04:31 |

2023-07-05 23:04:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:31 | ------------------------------------

2023-07-05 23:04:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7)"
}

2023-07-05 23:04:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2023-07-05 23:04:30 |

2023-07-05 23:04:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:30 | ------------------------------------

2023-07-05 23:04:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-05 23:04:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.061s
2023-07-05 23:04:31 |

2023-07-05 23:04:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:31 | ------------------------------------

2023-07-05 23:04:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bb7fa1d1-1e4c-46ea-9fcc-2e5d92c19ca7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-05 23:04:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}