Generated by TestNG with ReportNG at 03:41 PST on Thursday 24 November 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.600s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.144s
2022-11-24 03:58:58 |

2022-11-24 03:58:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:58:58 | ------------------------------------

2022-11-24 03:58:58 | [Mutex] waiting for: [configured:node:node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5:node-817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398]

2022-11-24 03:58:58 | [Mutex] received everything.

2022-11-24 03:58:58 | [Mutex] isItemNotified: configured:node:node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5:node-817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398 :: true

2022-11-24 03:58:59 | [Mutex] waiting for: [received:nodes:49678468-4b22-42cd-946d-166d4e7f5735:localhost]

2022-11-24 03:58:59 | [Mutex] received everything.

2022-11-24 03:58:59 | [Mutex] isItemNotified: received:node:49678468-4b22-42cd-946d-166d4e7f5735:localhost:node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5:Node b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5 :: true

2022-11-24 03:58:59 | [Mutex] waiting for: [received:nodes:ea5af010-f9f8-4b45-9ff4-2de2aa2e8338:localhost]

2022-11-24 03:58:59 | [Mutex] received everything.

2022-11-24 03:58:59 | [Mutex] isItemNotified: received:node:ea5af010-f9f8-4b45-9ff4-2de2aa2e8338:localhost:node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5:Node b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5 :: false

createNodes 1.537s
2022-11-24 03:58:55 |

2022-11-24 03:58:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:58:55 | ------------------------------------

2022-11-24 03:58:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5",
    "pubsub#title": "Node b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5"
}

2022-11-24 03:58:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 03:58:57 | [Mutex] waiting for: [received:nodes:e9e33de9-ce56-40f8-b375-d7573248ff8b:localhost]

2022-11-24 03:58:57 | [Mutex] waiting for: [received:nodes:e9e33de9-ce56-40f8-b375-d7573248ff8b:localhost]

2022-11-24 03:58:57 | [Mutex] received everything.

2022-11-24 03:58:57 | [Mutex] isItemNotified: received:node:e9e33de9-ce56-40f8-b375-d7573248ff8b:localhost:node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5:Node b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5 :: true

createSubnodes 1.023s
2022-11-24 03:58:57 |

2022-11-24 03:58:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:58:57 | ------------------------------------

2022-11-24 03:58:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398",
    "pubsub#title": "Node 817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398"
}

2022-11-24 03:58:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 03:58:58 | [Mutex] waiting for: [received:nodes:0b06908d-7fbf-4600-99a9-2bd290870f4f:localhost]

2022-11-24 03:58:58 | [Mutex] received everything.

2022-11-24 03:58:58 | [Mutex] isItemNotified: received:node:0b06908d-7fbf-4600-99a9-2bd290870f4f:localhost:node-817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398:Node 817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398 :: true

deleteNodes 1.022s
2022-11-24 03:59:02 |

2022-11-24 03:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:59:02 | ------------------------------------

2022-11-24 03:59:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398"
}

2022-11-24 03:59:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 03:59:03 | [Mutex] waiting for: [received:nodes:e247cdff-8844-434e-975e-1741a9641164:localhost]

2022-11-24 03:59:03 | [Mutex] waiting for: [received:nodes:e247cdff-8844-434e-975e-1741a9641164:localhost]

2022-11-24 03:59:03 | [Mutex] waiting for: [received:nodes:e247cdff-8844-434e-975e-1741a9641164:localhost]

2022-11-24 03:59:03 | [Mutex] received everything.

2022-11-24 03:59:03 | [Mutex] isItemNotified: received:node:e247cdff-8844-434e-975e-1741a9641164:localhost:node-817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398:Node 817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398 :: false

deleteSubnodes 1.025s
2022-11-24 03:59:01 |

2022-11-24 03:59:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:59:01 | ------------------------------------

2022-11-24 03:59:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5"
}

2022-11-24 03:59:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 03:59:02 | [Mutex] waiting for: [received:nodes:a3da674c-79fe-49f0-a19c-458cdf369071:localhost]

2022-11-24 03:59:02 | [Mutex] received everything.

2022-11-24 03:59:02 | [Mutex] isItemNotified: received:node:a3da674c-79fe-49f0-a19c-458cdf369071:localhost:node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5:Node b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5 :: false

2022-11-24 03:59:02 | [Mutex] waiting for: [received:nodes:aa4795b2-35c6-41db-bd1c-0d0894c7dcd6:localhost]

2022-11-24 03:59:02 | [Mutex] received everything.

2022-11-24 03:59:02 | [Mutex] isItemNotified: received:node:aa4795b2-35c6-41db-bd1c-0d0894c7dcd6:localhost:node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5:Node b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5 :: false

publishItemsToNodes 0.034s
2022-11-24 03:59:00 |

2022-11-24 03:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:59:00 | ------------------------------------

2022-11-24 03:59:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5",
    "entry": "<test>item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5</test>",
    "item-id": "item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5"
}

2022-11-24 03:59:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5"
}

2022-11-24 03:59:00 | [Mutex] waiting for: [published:item:notifieditem-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5:admin@test-domain.com]

2022-11-24 03:59:00 | [Mutex] received everything.

2022-11-24 03:59:00 | [Mutex] isItemNotified: published:item:notifieditem-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-11-24 03:59:00 |

2022-11-24 03:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:59:00 | ------------------------------------

2022-11-24 03:59:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5",
    "item-id": "item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5"
}

2022-11-24 03:59:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5"
}

2022-11-24 03:59:00 | [Mutex] received everything.

2022-11-24 03:59:00 | [Mutex] isItemNotified: retracted:item:notifieditem-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2022-11-24 03:59:00 |

2022-11-24 03:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:59:00 | ------------------------------------

2022-11-24 03:59:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5",
    "item-id": "item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5"
}

2022-11-24 03:59:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5",
    "item-id": "item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5",
    "item": [
        "<item id=\"item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5\"><test>item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5</test></item>"
    ]
}

2022-11-24 03:59:00 | [Mutex] notify: [retrieved:item:item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5:payload-matches:true:localhost]

2022-11-24 03:59:00 | [Mutex] received everything.

2022-11-24 03:59:00 | [Mutex] isItemNotified: retrieved:item:item-2f4bf98f-8abf-4278-80ab-127b2bf7d7b5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.063s
2022-11-24 03:59:00 |

2022-11-24 03:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:59:00 | ------------------------------------

2022-11-24 03:59:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-24 03:59:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5",
        "node-817d2ed4-f0b1-4b4f-a0c4-c51e4fc57398"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-11-24 03:59:00 |

2022-11-24 03:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:59:00 | ------------------------------------

2022-11-24 03:59:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5)"
}

2022-11-24 03:59:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-11-24 03:58:59 |

2022-11-24 03:58:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:58:59 | ------------------------------------

2022-11-24 03:58:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 03:58:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-11-24 03:59:00 |

2022-11-24 03:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:59:00 | ------------------------------------

2022-11-24 03:59:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b32ce9cb-d0ea-4d62-9aa1-2fa59afd28a5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 03:59:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}