Generated by TestNG with ReportNG at 22:45 PDT on Friday 07 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.563s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.028s
2023-07-07 23:00:09 |

2023-07-07 23:00:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:09 | ------------------------------------

2023-07-07 23:00:09 | [Mutex] waiting for: [configured:node:node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd:node-4a89c6b5-dd68-4fd8-b1a2-51723c723c70]

2023-07-07 23:00:09 | [Mutex] received everything.

2023-07-07 23:00:09 | [Mutex] isItemNotified: configured:node:node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd:node-4a89c6b5-dd68-4fd8-b1a2-51723c723c70 :: true

2023-07-07 23:00:10 | [Mutex] waiting for: [received:nodes:04c42bbd-6cb0-4863-a044-26baacd7de91:localhost]

2023-07-07 23:00:10 | [Mutex] received everything.

2023-07-07 23:00:10 | [Mutex] isItemNotified: received:node:04c42bbd-6cb0-4863-a044-26baacd7de91:localhost:node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd:Node b6d2a29f-e37e-42c8-9949-7a69fb5e03fd :: true

2023-07-07 23:00:10 | [Mutex] waiting for: [received:nodes:b0f5ffd6-7474-49a6-b6a5-789b2f116d06:localhost]

2023-07-07 23:00:10 | [Mutex] waiting for: [received:nodes:b0f5ffd6-7474-49a6-b6a5-789b2f116d06:localhost]

2023-07-07 23:00:10 | [Mutex] waiting for: [received:nodes:b0f5ffd6-7474-49a6-b6a5-789b2f116d06:localhost]

2023-07-07 23:00:10 | [Mutex] waiting for: [received:nodes:b0f5ffd6-7474-49a6-b6a5-789b2f116d06:localhost]

2023-07-07 23:00:10 | [Mutex] received everything.

2023-07-07 23:00:10 | [Mutex] isItemNotified: received:node:b0f5ffd6-7474-49a6-b6a5-789b2f116d06:localhost:node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd:Node b6d2a29f-e37e-42c8-9949-7a69fb5e03fd :: false

createNodes 1.638s
2023-07-07 23:00:06 |

2023-07-07 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:06 | ------------------------------------

2023-07-07 23:00:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd",
    "pubsub#title": "Node b6d2a29f-e37e-42c8-9949-7a69fb5e03fd"
}

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

2023-07-07 23:00:08 | [Mutex] waiting for: [received:nodes:c5d3c75c-343a-464f-a7b0-3b6f9644d706:localhost]

2023-07-07 23:00:08 | [Mutex] waiting for: [received:nodes:c5d3c75c-343a-464f-a7b0-3b6f9644d706:localhost]

2023-07-07 23:00:08 | [Mutex] waiting for: [received:nodes:c5d3c75c-343a-464f-a7b0-3b6f9644d706:localhost]

2023-07-07 23:00:08 | [Mutex] waiting for: [received:nodes:c5d3c75c-343a-464f-a7b0-3b6f9644d706:localhost]

2023-07-07 23:00:08 | [Mutex] received everything.

2023-07-07 23:00:08 | [Mutex] isItemNotified: received:node:c5d3c75c-343a-464f-a7b0-3b6f9644d706:localhost:node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd:Node b6d2a29f-e37e-42c8-9949-7a69fb5e03fd :: true

createSubnodes 1.021s
2023-07-07 23:00:08 |

2023-07-07 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:08 | ------------------------------------

2023-07-07 23:00:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4a89c6b5-dd68-4fd8-b1a2-51723c723c70",
    "pubsub#title": "Node 4a89c6b5-dd68-4fd8-b1a2-51723c723c70"
}

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

2023-07-07 23:00:09 | [Mutex] waiting for: [received:nodes:ccde006d-416e-492d-80fa-0bb3d9db7c4e:localhost]

2023-07-07 23:00:09 | [Mutex] waiting for: [received:nodes:ccde006d-416e-492d-80fa-0bb3d9db7c4e:localhost]

2023-07-07 23:00:09 | [Mutex] waiting for: [received:nodes:ccde006d-416e-492d-80fa-0bb3d9db7c4e:localhost]

2023-07-07 23:00:09 | [Mutex] received everything.

2023-07-07 23:00:09 | [Mutex] isItemNotified: received:node:ccde006d-416e-492d-80fa-0bb3d9db7c4e:localhost:node-4a89c6b5-dd68-4fd8-b1a2-51723c723c70:Node 4a89c6b5-dd68-4fd8-b1a2-51723c723c70 :: true

deleteNodes 1.024s
2023-07-07 23:00:13 |

2023-07-07 23:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:13 | ------------------------------------

2023-07-07 23:00:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4a89c6b5-dd68-4fd8-b1a2-51723c723c70"
}

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

2023-07-07 23:00:14 | [Mutex] waiting for: [received:nodes:90b6873b-8edf-428d-8904-b80b0f6bb40e:localhost]

2023-07-07 23:00:14 | [Mutex] waiting for: [received:nodes:90b6873b-8edf-428d-8904-b80b0f6bb40e:localhost]

2023-07-07 23:00:14 | [Mutex] waiting for: [received:nodes:90b6873b-8edf-428d-8904-b80b0f6bb40e:localhost]

2023-07-07 23:00:14 | [Mutex] received everything.

2023-07-07 23:00:14 | [Mutex] isItemNotified: received:node:90b6873b-8edf-428d-8904-b80b0f6bb40e:localhost:node-4a89c6b5-dd68-4fd8-b1a2-51723c723c70:Node 4a89c6b5-dd68-4fd8-b1a2-51723c723c70 :: false

deleteSubnodes 1.021s
2023-07-07 23:00:12 |

2023-07-07 23:00:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:12 | ------------------------------------

2023-07-07 23:00:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd"
}

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

2023-07-07 23:00:13 | [Mutex] waiting for: [received:nodes:f37a4c34-a1cc-4dce-b663-b579734aa2d3:localhost]

2023-07-07 23:00:13 | [Mutex] waiting for: [received:nodes:f37a4c34-a1cc-4dce-b663-b579734aa2d3:localhost]

2023-07-07 23:00:13 | [Mutex] waiting for: [received:nodes:f37a4c34-a1cc-4dce-b663-b579734aa2d3:localhost]

2023-07-07 23:00:13 | [Mutex] waiting for: [received:nodes:f37a4c34-a1cc-4dce-b663-b579734aa2d3:localhost]

2023-07-07 23:00:13 | [Mutex] received everything.

2023-07-07 23:00:13 | [Mutex] isItemNotified: received:node:f37a4c34-a1cc-4dce-b663-b579734aa2d3:localhost:node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd:Node b6d2a29f-e37e-42c8-9949-7a69fb5e03fd :: false

2023-07-07 23:00:13 | [Mutex] waiting for: [received:nodes:edf8d27b-a65d-4fb3-abc7-ef6bb44a40cd:localhost]

2023-07-07 23:00:13 | [Mutex] received everything.

2023-07-07 23:00:13 | [Mutex] isItemNotified: received:node:edf8d27b-a65d-4fb3-abc7-ef6bb44a40cd:localhost:node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd:Node b6d2a29f-e37e-42c8-9949-7a69fb5e03fd :: false

publishItemsToNodes 0.042s
2023-07-07 23:00:11 |

2023-07-07 23:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:11 | ------------------------------------

2023-07-07 23:00:11 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd",
    "entry": "<test>item-7599b528-2977-4eb1-8a9a-6b7c39da0461</test>",
    "item-id": "item-7599b528-2977-4eb1-8a9a-6b7c39da0461"
}

2023-07-07 23:00:11 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7599b528-2977-4eb1-8a9a-6b7c39da0461"
}

2023-07-07 23:00:11 | [Mutex] waiting for: [published:item:notifieditem-7599b528-2977-4eb1-8a9a-6b7c39da0461:admin@test-domain.com]

2023-07-07 23:00:11 | [Mutex] received everything.

2023-07-07 23:00:11 | [Mutex] isItemNotified: published:item:notifieditem-7599b528-2977-4eb1-8a9a-6b7c39da0461:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2023-07-07 23:00:11 |

2023-07-07 23:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:11 | ------------------------------------

2023-07-07 23:00:11 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd",
    "item-id": "item-7599b528-2977-4eb1-8a9a-6b7c39da0461"
}

2023-07-07 23:00:11 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7599b528-2977-4eb1-8a9a-6b7c39da0461"
}

2023-07-07 23:00:11 | [Mutex] waiting for: [retracted:item:notifieditem-7599b528-2977-4eb1-8a9a-6b7c39da0461:admin@test-domain.com]

2023-07-07 23:00:11 | [Mutex] received everything.

2023-07-07 23:00:11 | [Mutex] isItemNotified: retracted:item:notifieditem-7599b528-2977-4eb1-8a9a-6b7c39da0461:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2023-07-07 23:00:11 |

2023-07-07 23:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:11 | ------------------------------------

2023-07-07 23:00:11 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd",
    "item-id": "item-7599b528-2977-4eb1-8a9a-6b7c39da0461"
}

2023-07-07 23:00:11 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd",
    "item-id": "item-7599b528-2977-4eb1-8a9a-6b7c39da0461",
    "item": [
        "<item id=\"item-7599b528-2977-4eb1-8a9a-6b7c39da0461\"><test>item-7599b528-2977-4eb1-8a9a-6b7c39da0461</test></item>"
    ]
}

2023-07-07 23:00:11 | [Mutex] notify: [retrieved:item:item-7599b528-2977-4eb1-8a9a-6b7c39da0461:payload-matches:true:localhost]

2023-07-07 23:00:11 | [Mutex] received everything.

2023-07-07 23:00:11 | [Mutex] isItemNotified: retrieved:item:item-7599b528-2977-4eb1-8a9a-6b7c39da0461:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-07 23:00:11 |

2023-07-07 23:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:11 | ------------------------------------

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

2023-07-07 23:00:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd",
        "node-4a89c6b5-dd68-4fd8-b1a2-51723c723c70"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-07 23:00:11 |

2023-07-07 23:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:11 | ------------------------------------

2023-07-07 23:00:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd)"
}

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

subscribeNodes 1.010s
2023-07-07 23:00:10 |

2023-07-07 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:10 | ------------------------------------

2023-07-07 23:00:10 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2023-07-07 23:00:11 |

2023-07-07 23:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 23:00:11 | ------------------------------------

2023-07-07 23:00:11 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b6d2a29f-e37e-42c8-9949-7a69fb5e03fd",
    "jids": [
        "admin@test-domain.com"
    ]
}

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