Generated by TestNG with ReportNG at 22:15 PDT on Sunday 09 July 2023
root@1512af24e4a5 / 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.543s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2023-07-09 22:30:14 |

2023-07-09 22:30:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:14 | ------------------------------------

2023-07-09 22:30:14 | [Mutex] waiting for: [configured:node:node-2be2e0e0-8a47-430a-b8bb-4a229242692b:node-0b028047-dfef-43f1-82f8-bd6b698232e7]

2023-07-09 22:30:14 | [Mutex] received everything.

2023-07-09 22:30:14 | [Mutex] isItemNotified: configured:node:node-2be2e0e0-8a47-430a-b8bb-4a229242692b:node-0b028047-dfef-43f1-82f8-bd6b698232e7 :: true

2023-07-09 22:30:15 | [Mutex] waiting for: [received:nodes:d906f9bf-c545-4dc3-88b8-92b317bd2215:localhost]

2023-07-09 22:30:15 | [Mutex] received everything.

2023-07-09 22:30:15 | [Mutex] isItemNotified: received:node:d906f9bf-c545-4dc3-88b8-92b317bd2215:localhost:node-2be2e0e0-8a47-430a-b8bb-4a229242692b:Node 2be2e0e0-8a47-430a-b8bb-4a229242692b :: true

2023-07-09 22:30:15 | [Mutex] waiting for: [received:nodes:03fdf234-791d-4570-ad18-4d0422b45f0b:localhost]

2023-07-09 22:30:15 | [Mutex] waiting for: [received:nodes:03fdf234-791d-4570-ad18-4d0422b45f0b:localhost]

2023-07-09 22:30:15 | [Mutex] waiting for: [received:nodes:03fdf234-791d-4570-ad18-4d0422b45f0b:localhost]

2023-07-09 22:30:15 | [Mutex] waiting for: [received:nodes:03fdf234-791d-4570-ad18-4d0422b45f0b:localhost]

2023-07-09 22:30:15 | [Mutex] received everything.

2023-07-09 22:30:15 | [Mutex] isItemNotified: received:node:03fdf234-791d-4570-ad18-4d0422b45f0b:localhost:node-2be2e0e0-8a47-430a-b8bb-4a229242692b:Node 2be2e0e0-8a47-430a-b8bb-4a229242692b :: false

createNodes 1.561s
2023-07-09 22:30:11 |

2023-07-09 22:30:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:11 | ------------------------------------

2023-07-09 22:30: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-2be2e0e0-8a47-430a-b8bb-4a229242692b",
    "pubsub#title": "Node 2be2e0e0-8a47-430a-b8bb-4a229242692b"
}

2023-07-09 22:30:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-09 22:30:13 | [Mutex] waiting for: [received:nodes:28cf808c-b14b-4943-bc6e-9cc14779f007:localhost]

2023-07-09 22:30:13 | [Mutex] waiting for: [received:nodes:28cf808c-b14b-4943-bc6e-9cc14779f007:localhost]

2023-07-09 22:30:13 | [Mutex] waiting for: [received:nodes:28cf808c-b14b-4943-bc6e-9cc14779f007:localhost]

2023-07-09 22:30:13 | [Mutex] waiting for: [received:nodes:28cf808c-b14b-4943-bc6e-9cc14779f007:localhost]

2023-07-09 22:30:13 | [Mutex] received everything.

2023-07-09 22:30:13 | [Mutex] isItemNotified: received:node:28cf808c-b14b-4943-bc6e-9cc14779f007:localhost:node-2be2e0e0-8a47-430a-b8bb-4a229242692b:Node 2be2e0e0-8a47-430a-b8bb-4a229242692b :: true

createSubnodes 1.027s
2023-07-09 22:30:13 |

2023-07-09 22:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:13 | ------------------------------------

2023-07-09 22:30: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-0b028047-dfef-43f1-82f8-bd6b698232e7",
    "pubsub#title": "Node 0b028047-dfef-43f1-82f8-bd6b698232e7"
}

2023-07-09 22:30:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-09 22:30:14 | [Mutex] waiting for: [received:nodes:1dcd742e-b550-43ac-9994-8d4cf757ad1f:localhost]

2023-07-09 22:30:14 | [Mutex] waiting for: [received:nodes:1dcd742e-b550-43ac-9994-8d4cf757ad1f:localhost]

2023-07-09 22:30:14 | [Mutex] waiting for: [received:nodes:1dcd742e-b550-43ac-9994-8d4cf757ad1f:localhost]

2023-07-09 22:30:14 | [Mutex] waiting for: [received:nodes:1dcd742e-b550-43ac-9994-8d4cf757ad1f:localhost]

2023-07-09 22:30:14 | [Mutex] waiting for: [received:nodes:1dcd742e-b550-43ac-9994-8d4cf757ad1f:localhost]

2023-07-09 22:30:14 | [Mutex] waiting for: [received:nodes:1dcd742e-b550-43ac-9994-8d4cf757ad1f:localhost]

2023-07-09 22:30:14 | [Mutex] received everything.

2023-07-09 22:30:14 | [Mutex] isItemNotified: received:node:1dcd742e-b550-43ac-9994-8d4cf757ad1f:localhost:node-0b028047-dfef-43f1-82f8-bd6b698232e7:Node 0b028047-dfef-43f1-82f8-bd6b698232e7 :: true

deleteNodes 1.015s
2023-07-09 22:30:18 |

2023-07-09 22:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:18 | ------------------------------------

2023-07-09 22:30:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0b028047-dfef-43f1-82f8-bd6b698232e7"
}

2023-07-09 22:30:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-09 22:30:19 | [Mutex] waiting for: [received:nodes:8673f579-4b1a-401b-a4cc-3b9d5e8539cb:localhost]

2023-07-09 22:30:19 | [Mutex] waiting for: [received:nodes:8673f579-4b1a-401b-a4cc-3b9d5e8539cb:localhost]

2023-07-09 22:30:19 | [Mutex] waiting for: [received:nodes:8673f579-4b1a-401b-a4cc-3b9d5e8539cb:localhost]

2023-07-09 22:30:19 | [Mutex] received everything.

2023-07-09 22:30:19 | [Mutex] isItemNotified: received:node:8673f579-4b1a-401b-a4cc-3b9d5e8539cb:localhost:node-0b028047-dfef-43f1-82f8-bd6b698232e7:Node 0b028047-dfef-43f1-82f8-bd6b698232e7 :: false

deleteSubnodes 1.026s
2023-07-09 22:30:17 |

2023-07-09 22:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:17 | ------------------------------------

2023-07-09 22:30:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2be2e0e0-8a47-430a-b8bb-4a229242692b"
}

2023-07-09 22:30:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-09 22:30:18 | [Mutex] waiting for: [received:nodes:0726857f-4d10-4e8e-80f3-592f04118715:localhost]

2023-07-09 22:30:18 | [Mutex] waiting for: [received:nodes:0726857f-4d10-4e8e-80f3-592f04118715:localhost]

2023-07-09 22:30:18 | [Mutex] waiting for: [received:nodes:0726857f-4d10-4e8e-80f3-592f04118715:localhost]

2023-07-09 22:30:18 | [Mutex] waiting for: [received:nodes:0726857f-4d10-4e8e-80f3-592f04118715:localhost]

2023-07-09 22:30:18 | [Mutex] received everything.

2023-07-09 22:30:18 | [Mutex] isItemNotified: received:node:0726857f-4d10-4e8e-80f3-592f04118715:localhost:node-2be2e0e0-8a47-430a-b8bb-4a229242692b:Node 2be2e0e0-8a47-430a-b8bb-4a229242692b :: false

2023-07-09 22:30:18 | [Mutex] waiting for: [received:nodes:80934b5c-76f9-489d-a042-2f6b9897cc73:localhost]

2023-07-09 22:30:18 | [Mutex] received everything.

2023-07-09 22:30:18 | [Mutex] isItemNotified: received:node:80934b5c-76f9-489d-a042-2f6b9897cc73:localhost:node-2be2e0e0-8a47-430a-b8bb-4a229242692b:Node 2be2e0e0-8a47-430a-b8bb-4a229242692b :: false

publishItemsToNodes 0.031s
2023-07-09 22:30:16 |

2023-07-09 22:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:16 | ------------------------------------

2023-07-09 22:30:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2be2e0e0-8a47-430a-b8bb-4a229242692b",
    "entry": "<test>item-6c439bcd-9526-4252-b042-9a25e9629475</test>",
    "item-id": "item-6c439bcd-9526-4252-b042-9a25e9629475"
}

2023-07-09 22:30:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6c439bcd-9526-4252-b042-9a25e9629475"
}

2023-07-09 22:30:16 | [Mutex] waiting for: [published:item:notifieditem-6c439bcd-9526-4252-b042-9a25e9629475:admin@test-domain.com]

2023-07-09 22:30:16 | [Mutex] received everything.

2023-07-09 22:30:16 | [Mutex] isItemNotified: published:item:notifieditem-6c439bcd-9526-4252-b042-9a25e9629475:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-07-09 22:30:16 |

2023-07-09 22:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:16 | ------------------------------------

2023-07-09 22:30:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2be2e0e0-8a47-430a-b8bb-4a229242692b",
    "item-id": "item-6c439bcd-9526-4252-b042-9a25e9629475"
}

2023-07-09 22:30:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6c439bcd-9526-4252-b042-9a25e9629475"
}

2023-07-09 22:30:16 | [Mutex] received everything.

2023-07-09 22:30:16 | [Mutex] isItemNotified: retracted:item:notifieditem-6c439bcd-9526-4252-b042-9a25e9629475:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2023-07-09 22:30:16 |

2023-07-09 22:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:16 | ------------------------------------

2023-07-09 22:30:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2be2e0e0-8a47-430a-b8bb-4a229242692b",
    "item-id": "item-6c439bcd-9526-4252-b042-9a25e9629475"
}

2023-07-09 22:30:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2be2e0e0-8a47-430a-b8bb-4a229242692b",
    "item-id": "item-6c439bcd-9526-4252-b042-9a25e9629475",
    "item": [
        "<item id=\"item-6c439bcd-9526-4252-b042-9a25e9629475\"><test>item-6c439bcd-9526-4252-b042-9a25e9629475</test></item>"
    ]
}

2023-07-09 22:30:16 | [Mutex] notify: [retrieved:item:item-6c439bcd-9526-4252-b042-9a25e9629475:payload-matches:true:localhost]

2023-07-09 22:30:16 | [Mutex] received everything.

2023-07-09 22:30:16 | [Mutex] isItemNotified: retrieved:item:item-6c439bcd-9526-4252-b042-9a25e9629475:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-09 22:30:16 |

2023-07-09 22:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:16 | ------------------------------------

2023-07-09 22:30:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-09 22:30:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0b028047-dfef-43f1-82f8-bd6b698232e7",
        "node-2be2e0e0-8a47-430a-b8bb-4a229242692b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2023-07-09 22:30:16 |

2023-07-09 22:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:16 | ------------------------------------

2023-07-09 22:30:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2be2e0e0-8a47-430a-b8bb-4a229242692b)"
}

2023-07-09 22:30:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-07-09 22:30:15 |

2023-07-09 22:30:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:15 | ------------------------------------

2023-07-09 22:30:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2be2e0e0-8a47-430a-b8bb-4a229242692b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2023-07-09 22:30:16 |

2023-07-09 22:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:30:16 | ------------------------------------

2023-07-09 22:30:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2be2e0e0-8a47-430a-b8bb-4a229242692b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-09 22:30:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}