Generated by TestNG with ReportNG at 22:32 PDT on Friday 25 August 2023
root@3a0debf50d0d / Java 17.0.8 (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.526s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2023-08-25 22:46:57 |

2023-08-25 22:46:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:57 | ------------------------------------

2023-08-25 22:46:57 | [Mutex] waiting for: [configured:node:node-e8658fa1-b11a-4a03-83cd-8257a0df8c43:node-dff342b2-0333-4c96-a1bd-32c62c00c901]

2023-08-25 22:46:57 | [Mutex] received everything.

2023-08-25 22:46:57 | [Mutex] isItemNotified: configured:node:node-e8658fa1-b11a-4a03-83cd-8257a0df8c43:node-dff342b2-0333-4c96-a1bd-32c62c00c901 :: true

2023-08-25 22:46:58 | [Mutex] waiting for: [received:nodes:1ede6454-d678-42b4-a4a6-ddb7df2ab2f5:localhost]

2023-08-25 22:46:58 | [Mutex] received everything.

2023-08-25 22:46:58 | [Mutex] isItemNotified: received:node:1ede6454-d678-42b4-a4a6-ddb7df2ab2f5:localhost:node-e8658fa1-b11a-4a03-83cd-8257a0df8c43:Node e8658fa1-b11a-4a03-83cd-8257a0df8c43 :: true

2023-08-25 22:46:58 | [Mutex] waiting for: [received:nodes:c651dec2-69bb-4979-9077-af07e7ac6e33:localhost]

2023-08-25 22:46:58 | [Mutex] waiting for: [received:nodes:c651dec2-69bb-4979-9077-af07e7ac6e33:localhost]

2023-08-25 22:46:58 | [Mutex] waiting for: [received:nodes:c651dec2-69bb-4979-9077-af07e7ac6e33:localhost]

2023-08-25 22:46:58 | [Mutex] received everything.

2023-08-25 22:46:58 | [Mutex] isItemNotified: received:node:c651dec2-69bb-4979-9077-af07e7ac6e33:localhost:node-e8658fa1-b11a-4a03-83cd-8257a0df8c43:Node e8658fa1-b11a-4a03-83cd-8257a0df8c43 :: false

createNodes 1.559s
2023-08-25 22:46:54 |

2023-08-25 22:46:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:54 | ------------------------------------

2023-08-25 22:46: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-e8658fa1-b11a-4a03-83cd-8257a0df8c43",
    "pubsub#title": "Node e8658fa1-b11a-4a03-83cd-8257a0df8c43"
}

2023-08-25 22:46:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 22:46:56 | [Mutex] waiting for: [received:nodes:9c648fd8-ac52-4e06-b95c-4ded8f8f478e:localhost]

2023-08-25 22:46:56 | [Mutex] received everything.

2023-08-25 22:46:56 | [Mutex] isItemNotified: received:node:9c648fd8-ac52-4e06-b95c-4ded8f8f478e:localhost:node-e8658fa1-b11a-4a03-83cd-8257a0df8c43:Node e8658fa1-b11a-4a03-83cd-8257a0df8c43 :: true

createSubnodes 1.034s
2023-08-25 22:46:56 |

2023-08-25 22:46:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:56 | ------------------------------------

2023-08-25 22:46:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dff342b2-0333-4c96-a1bd-32c62c00c901",
    "pubsub#title": "Node dff342b2-0333-4c96-a1bd-32c62c00c901"
}

2023-08-25 22:46:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 22:46:57 | [Mutex] waiting for: [received:nodes:c72e9a25-02a2-4cf8-9314-090aada9ee9d:localhost]

2023-08-25 22:46:57 | [Mutex] waiting for: [received:nodes:c72e9a25-02a2-4cf8-9314-090aada9ee9d:localhost]

2023-08-25 22:46:57 | [Mutex] waiting for: [received:nodes:c72e9a25-02a2-4cf8-9314-090aada9ee9d:localhost]

2023-08-25 22:46:57 | [Mutex] waiting for: [received:nodes:c72e9a25-02a2-4cf8-9314-090aada9ee9d:localhost]

2023-08-25 22:46:57 | [Mutex] received everything.

2023-08-25 22:46:57 | [Mutex] isItemNotified: received:node:c72e9a25-02a2-4cf8-9314-090aada9ee9d:localhost:node-dff342b2-0333-4c96-a1bd-32c62c00c901:Node dff342b2-0333-4c96-a1bd-32c62c00c901 :: true

deleteNodes 1.023s
2023-08-25 22:47:01 |

2023-08-25 22:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:47:01 | ------------------------------------

2023-08-25 22:47:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dff342b2-0333-4c96-a1bd-32c62c00c901"
}

2023-08-25 22:47:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 22:47:02 | [Mutex] waiting for: [received:nodes:e931a940-f921-412a-8769-b8c857d54ad2:localhost]

2023-08-25 22:47:02 | [Mutex] waiting for: [received:nodes:e931a940-f921-412a-8769-b8c857d54ad2:localhost]

2023-08-25 22:47:02 | [Mutex] received everything.

2023-08-25 22:47:02 | [Mutex] isItemNotified: received:node:e931a940-f921-412a-8769-b8c857d54ad2:localhost:node-dff342b2-0333-4c96-a1bd-32c62c00c901:Node dff342b2-0333-4c96-a1bd-32c62c00c901 :: false

deleteSubnodes 1.026s
2023-08-25 22:47:00 |

2023-08-25 22:47:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:47:00 | ------------------------------------

2023-08-25 22:47:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e8658fa1-b11a-4a03-83cd-8257a0df8c43"
}

2023-08-25 22:47:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 22:47:01 | [Mutex] waiting for: [received:nodes:6d95edaf-03cc-4a1c-b622-ae419998a692:localhost]

2023-08-25 22:47:01 | [Mutex] waiting for: [received:nodes:6d95edaf-03cc-4a1c-b622-ae419998a692:localhost]

2023-08-25 22:47:01 | [Mutex] waiting for: [received:nodes:6d95edaf-03cc-4a1c-b622-ae419998a692:localhost]

2023-08-25 22:47:01 | [Mutex] waiting for: [received:nodes:6d95edaf-03cc-4a1c-b622-ae419998a692:localhost]

2023-08-25 22:47:01 | [Mutex] received everything.

2023-08-25 22:47:01 | [Mutex] isItemNotified: received:node:6d95edaf-03cc-4a1c-b622-ae419998a692:localhost:node-e8658fa1-b11a-4a03-83cd-8257a0df8c43:Node e8658fa1-b11a-4a03-83cd-8257a0df8c43 :: false

2023-08-25 22:47:01 | [Mutex] waiting for: [received:nodes:10daed3d-63e7-48b6-ac85-7700bbfa2a39:localhost]

2023-08-25 22:47:01 | [Mutex] received everything.

2023-08-25 22:47:01 | [Mutex] isItemNotified: received:node:10daed3d-63e7-48b6-ac85-7700bbfa2a39:localhost:node-e8658fa1-b11a-4a03-83cd-8257a0df8c43:Node e8658fa1-b11a-4a03-83cd-8257a0df8c43 :: false

publishItemsToNodes 0.043s
2023-08-25 22:46:59 |

2023-08-25 22:46:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:59 | ------------------------------------

2023-08-25 22:46:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e8658fa1-b11a-4a03-83cd-8257a0df8c43",
    "entry": "<test>item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54</test>",
    "item-id": "item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54"
}

2023-08-25 22:46:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54"
}

2023-08-25 22:46:59 | [Mutex] received everything.

2023-08-25 22:46:59 | [Mutex] isItemNotified: published:item:notifieditem-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-08-25 22:46:59 |

2023-08-25 22:46:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:59 | ------------------------------------

2023-08-25 22:46:59 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e8658fa1-b11a-4a03-83cd-8257a0df8c43",
    "item-id": "item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54"
}

2023-08-25 22:46:59 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54"
}

2023-08-25 22:46:59 | [Mutex] received everything.

2023-08-25 22:46:59 | [Mutex] isItemNotified: retracted:item:notifieditem-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2023-08-25 22:46:59 |

2023-08-25 22:46:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:59 | ------------------------------------

2023-08-25 22:46:59 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e8658fa1-b11a-4a03-83cd-8257a0df8c43",
    "item-id": "item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54"
}

2023-08-25 22:46:59 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e8658fa1-b11a-4a03-83cd-8257a0df8c43",
    "item-id": "item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54",
    "item": [
        "<item id=\"item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54\"><test>item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54</test></item>"
    ]
}

2023-08-25 22:46:59 | [Mutex] notify: [retrieved:item:item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54:payload-matches:true:localhost]

2023-08-25 22:46:59 | [Mutex] received everything.

2023-08-25 22:46:59 | [Mutex] isItemNotified: retrieved:item:item-a51c4cfc-a30a-4f26-a0ee-7b31f18cdd54:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-08-25 22:46:59 |

2023-08-25 22:46:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:59 | ------------------------------------

2023-08-25 22:46:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-08-25 22:46:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-dff342b2-0333-4c96-a1bd-32c62c00c901",
        "node-e8658fa1-b11a-4a03-83cd-8257a0df8c43",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-08-25 22:46:59 |

2023-08-25 22:46:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:59 | ------------------------------------

2023-08-25 22:46:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e8658fa1-b11a-4a03-83cd-8257a0df8c43)"
}

2023-08-25 22:46:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2023-08-25 22:46:58 |

2023-08-25 22:46:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:58 | ------------------------------------

2023-08-25 22:46:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e8658fa1-b11a-4a03-83cd-8257a0df8c43",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 22:46:58 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2023-08-25 22:46:59 |

2023-08-25 22:46:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:46:59 | ------------------------------------

2023-08-25 22:46:59 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e8658fa1-b11a-4a03-83cd-8257a0df8c43",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 22:46:59 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}