Generated by TestNG with ReportNG at 22:33 PDT on Thursday 02 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.646s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2022-06-02 22:47:32 |

2022-06-02 22:47:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:32 | ------------------------------------

2022-06-02 22:47:32 | [Mutex] waiting for: [configured:node:node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939:node-156f14cf-079c-43e9-97e6-73902e9d3a26]

2022-06-02 22:47:32 | [Mutex] received everything.

2022-06-02 22:47:32 | [Mutex] isItemNotified: configured:node:node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939:node-156f14cf-079c-43e9-97e6-73902e9d3a26 :: true

2022-06-02 22:47:33 | [Mutex] waiting for: [received:nodes:81f64179-c8d4-457b-992d-3de317a9e053:localhost]

2022-06-02 22:47:33 | [Mutex] received everything.

2022-06-02 22:47:33 | [Mutex] isItemNotified: received:node:81f64179-c8d4-457b-992d-3de317a9e053:localhost:node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939:Node 4bb89fe3-d2a0-43fa-899c-88ebd45e5939 :: true

2022-06-02 22:47:33 | [Mutex] waiting for: [received:nodes:85eaad6d-addf-4b8f-a61e-d3ab0697200d:localhost]

2022-06-02 22:47:33 | [Mutex] received everything.

2022-06-02 22:47:33 | [Mutex] isItemNotified: received:node:85eaad6d-addf-4b8f-a61e-d3ab0697200d:localhost:node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939:Node 4bb89fe3-d2a0-43fa-899c-88ebd45e5939 :: false

createNodes 1.639s
2022-06-02 22:47:29 |

2022-06-02 22:47:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:29 | ------------------------------------

2022-06-02 22:47:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939",
    "pubsub#title": "Node 4bb89fe3-d2a0-43fa-899c-88ebd45e5939"
}

2022-06-02 22:47:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-02 22:47:31 | [Mutex] waiting for: [received:nodes:6643ef48-5225-43da-8bca-699465fd2aae:localhost]

2022-06-02 22:47:31 | [Mutex] received everything.

2022-06-02 22:47:31 | [Mutex] isItemNotified: received:node:6643ef48-5225-43da-8bca-699465fd2aae:localhost:node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939:Node 4bb89fe3-d2a0-43fa-899c-88ebd45e5939 :: true

createSubnodes 1.024s
2022-06-02 22:47:31 |

2022-06-02 22:47:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:31 | ------------------------------------

2022-06-02 22:47:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-156f14cf-079c-43e9-97e6-73902e9d3a26",
    "pubsub#title": "Node 156f14cf-079c-43e9-97e6-73902e9d3a26"
}

2022-06-02 22:47:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-02 22:47:32 | [Mutex] waiting for: [received:nodes:15586561-3d1c-4a0b-bd70-6d43271997d0:localhost]

2022-06-02 22:47:32 | [Mutex] waiting for: [received:nodes:15586561-3d1c-4a0b-bd70-6d43271997d0:localhost]

2022-06-02 22:47:32 | [Mutex] received everything.

2022-06-02 22:47:32 | [Mutex] isItemNotified: received:node:15586561-3d1c-4a0b-bd70-6d43271997d0:localhost:node-156f14cf-079c-43e9-97e6-73902e9d3a26:Node 156f14cf-079c-43e9-97e6-73902e9d3a26 :: true

deleteNodes 1.019s
2022-06-02 22:47:37 |

2022-06-02 22:47:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:37 | ------------------------------------

2022-06-02 22:47:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-156f14cf-079c-43e9-97e6-73902e9d3a26"
}

2022-06-02 22:47:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-02 22:47:38 | [Mutex] waiting for: [received:nodes:9f3f2561-7b7c-49c7-9558-1ae33194e717:localhost]

2022-06-02 22:47:38 | [Mutex] waiting for: [received:nodes:9f3f2561-7b7c-49c7-9558-1ae33194e717:localhost]

2022-06-02 22:47:38 | [Mutex] waiting for: [received:nodes:9f3f2561-7b7c-49c7-9558-1ae33194e717:localhost]

2022-06-02 22:47:38 | [Mutex] received everything.

2022-06-02 22:47:38 | [Mutex] isItemNotified: received:node:9f3f2561-7b7c-49c7-9558-1ae33194e717:localhost:node-156f14cf-079c-43e9-97e6-73902e9d3a26:Node 156f14cf-079c-43e9-97e6-73902e9d3a26 :: false

deleteSubnodes 1.026s
2022-06-02 22:47:36 |

2022-06-02 22:47:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:36 | ------------------------------------

2022-06-02 22:47:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939"
}

2022-06-02 22:47:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-02 22:47:37 | [Mutex] waiting for: [received:nodes:783f6517-8d28-4b3e-b28a-1513ada00a6c:localhost]

2022-06-02 22:47:37 | [Mutex] received everything.

2022-06-02 22:47:37 | [Mutex] isItemNotified: received:node:783f6517-8d28-4b3e-b28a-1513ada00a6c:localhost:node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939:Node 4bb89fe3-d2a0-43fa-899c-88ebd45e5939 :: false

2022-06-02 22:47:37 | [Mutex] waiting for: [received:nodes:95fe767a-58f2-4cd8-9b35-fd44b477828b:localhost]

2022-06-02 22:47:37 | [Mutex] received everything.

2022-06-02 22:47:37 | [Mutex] isItemNotified: received:node:95fe767a-58f2-4cd8-9b35-fd44b477828b:localhost:node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939:Node 4bb89fe3-d2a0-43fa-899c-88ebd45e5939 :: false

publishItemsToNodes 0.030s
2022-06-02 22:47:34 |

2022-06-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:34 | ------------------------------------

2022-06-02 22:47:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939",
    "entry": "<test>item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b</test>",
    "item-id": "item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b"
}

2022-06-02 22:47:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b"
}

2022-06-02 22:47:34 | [Mutex] waiting for: [published:item:notifieditem-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b:admin@test-domain.com]

2022-06-02 22:47:34 | [Mutex] received everything.

2022-06-02 22:47:34 | [Mutex] isItemNotified: published:item:notifieditem-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-06-02 22:47:34 |

2022-06-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:34 | ------------------------------------

2022-06-02 22:47:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939",
    "item-id": "item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b"
}

2022-06-02 22:47:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b"
}

2022-06-02 22:47:34 | [Mutex] received everything.

2022-06-02 22:47:34 | [Mutex] isItemNotified: retracted:item:notifieditem-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2022-06-02 22:47:34 |

2022-06-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:34 | ------------------------------------

2022-06-02 22:47:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939",
    "item-id": "item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b"
}

2022-06-02 22:47:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939",
    "item-id": "item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b",
    "item": [
        "<item id=\"item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b\"><test>item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b</test></item>"
    ]
}

2022-06-02 22:47:34 | [Mutex] notify: [retrieved:item:item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b:payload-matches:true:localhost]

2022-06-02 22:47:34 | [Mutex] received everything.

2022-06-02 22:47:34 | [Mutex] isItemNotified: retrieved:item:item-5b6dafaa-974b-49b7-a8ff-55337f2d5e7b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-06-02 22:47:34 |

2022-06-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:34 | ------------------------------------

2022-06-02 22:47:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-02 22:47:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939",
        "test",
        "node-156f14cf-079c-43e9-97e6-73902e9d3a26"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-06-02 22:47:34 |

2022-06-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:34 | ------------------------------------

2022-06-02 22:47:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939)"
}

2022-06-02 22:47:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-06-02 22:47:33 |

2022-06-02 22:47:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:33 | ------------------------------------

2022-06-02 22:47:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-02 22:47:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-06-02 22:47:34 |

2022-06-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-02 22:47:34 | ------------------------------------

2022-06-02 22:47:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4bb89fe3-d2a0-43fa-899c-88ebd45e5939",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-02 22:47:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}