Generated by TestNG with ReportNG at 13:20 PDT on Monday 10 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.730s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.150s
2023-07-10 13:34:51 |

2023-07-10 13:34:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:51 | ------------------------------------

2023-07-10 13:34:51 | [Mutex] waiting for: [configured:node:node-6828e123-49e0-4538-b8ae-effbcb874513:node-adff9f80-5788-4b73-a33b-4c1797c4e702]

2023-07-10 13:34:51 | [Mutex] received everything.

2023-07-10 13:34:51 | [Mutex] isItemNotified: configured:node:node-6828e123-49e0-4538-b8ae-effbcb874513:node-adff9f80-5788-4b73-a33b-4c1797c4e702 :: true

2023-07-10 13:34:52 | [Mutex] waiting for: [received:nodes:16f04ebd-4337-4812-be6e-b2ffede2b1b1:localhost]

2023-07-10 13:34:52 | [Mutex] received everything.

2023-07-10 13:34:52 | [Mutex] isItemNotified: received:node:16f04ebd-4337-4812-be6e-b2ffede2b1b1:localhost:node-6828e123-49e0-4538-b8ae-effbcb874513:Node 6828e123-49e0-4538-b8ae-effbcb874513 :: true

2023-07-10 13:34:52 | [Mutex] waiting for: [received:nodes:a0f9a1b3-b627-4e20-9a80-d6385c2f253f:localhost]

2023-07-10 13:34:52 | [Mutex] waiting for: [received:nodes:a0f9a1b3-b627-4e20-9a80-d6385c2f253f:localhost]

2023-07-10 13:34:52 | [Mutex] received everything.

2023-07-10 13:34:52 | [Mutex] isItemNotified: received:node:a0f9a1b3-b627-4e20-9a80-d6385c2f253f:localhost:node-6828e123-49e0-4538-b8ae-effbcb874513:Node 6828e123-49e0-4538-b8ae-effbcb874513 :: false

createNodes 1.751s
2023-07-10 13:34:48 |

2023-07-10 13:34:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:48 | ------------------------------------

2023-07-10 13:34:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6828e123-49e0-4538-b8ae-effbcb874513",
    "pubsub#title": "Node 6828e123-49e0-4538-b8ae-effbcb874513"
}

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

2023-07-10 13:34:50 | [Mutex] waiting for: [received:nodes:702a1057-fd9b-4bb2-9290-d0ebb9a43036:localhost]

2023-07-10 13:34:50 | [Mutex] waiting for: [received:nodes:702a1057-fd9b-4bb2-9290-d0ebb9a43036:localhost]

2023-07-10 13:34:50 | [Mutex] waiting for: [received:nodes:702a1057-fd9b-4bb2-9290-d0ebb9a43036:localhost]

2023-07-10 13:34:50 | [Mutex] received everything.

2023-07-10 13:34:50 | [Mutex] isItemNotified: received:node:702a1057-fd9b-4bb2-9290-d0ebb9a43036:localhost:node-6828e123-49e0-4538-b8ae-effbcb874513:Node 6828e123-49e0-4538-b8ae-effbcb874513 :: true

createSubnodes 1.022s
2023-07-10 13:34:50 |

2023-07-10 13:34:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:50 | ------------------------------------

2023-07-10 13:34:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-adff9f80-5788-4b73-a33b-4c1797c4e702",
    "pubsub#title": "Node adff9f80-5788-4b73-a33b-4c1797c4e702"
}

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

2023-07-10 13:34:51 | [Mutex] waiting for: [received:nodes:107e0454-419a-4a81-ba20-d3191e38a8d5:localhost]

2023-07-10 13:34:51 | [Mutex] waiting for: [received:nodes:107e0454-419a-4a81-ba20-d3191e38a8d5:localhost]

2023-07-10 13:34:51 | [Mutex] waiting for: [received:nodes:107e0454-419a-4a81-ba20-d3191e38a8d5:localhost]

2023-07-10 13:34:51 | [Mutex] waiting for: [received:nodes:107e0454-419a-4a81-ba20-d3191e38a8d5:localhost]

2023-07-10 13:34:51 | [Mutex] waiting for: [received:nodes:107e0454-419a-4a81-ba20-d3191e38a8d5:localhost]

2023-07-10 13:34:51 | [Mutex] received everything.

2023-07-10 13:34:51 | [Mutex] isItemNotified: received:node:107e0454-419a-4a81-ba20-d3191e38a8d5:localhost:node-adff9f80-5788-4b73-a33b-4c1797c4e702:Node adff9f80-5788-4b73-a33b-4c1797c4e702 :: true

deleteNodes 1.016s
2023-07-10 13:34:55 |

2023-07-10 13:34:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:55 | ------------------------------------

2023-07-10 13:34:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-adff9f80-5788-4b73-a33b-4c1797c4e702"
}

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

2023-07-10 13:34:56 | [Mutex] waiting for: [received:nodes:1d875c0d-eaf0-4e57-a511-d8d6c1589826:localhost]

2023-07-10 13:34:56 | [Mutex] waiting for: [received:nodes:1d875c0d-eaf0-4e57-a511-d8d6c1589826:localhost]

2023-07-10 13:34:56 | [Mutex] waiting for: [received:nodes:1d875c0d-eaf0-4e57-a511-d8d6c1589826:localhost]

2023-07-10 13:34:56 | [Mutex] received everything.

2023-07-10 13:34:56 | [Mutex] isItemNotified: received:node:1d875c0d-eaf0-4e57-a511-d8d6c1589826:localhost:node-adff9f80-5788-4b73-a33b-4c1797c4e702:Node adff9f80-5788-4b73-a33b-4c1797c4e702 :: false

deleteSubnodes 1.022s
2023-07-10 13:34:54 |

2023-07-10 13:34:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:54 | ------------------------------------

2023-07-10 13:34:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6828e123-49e0-4538-b8ae-effbcb874513"
}

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

2023-07-10 13:34:55 | [Mutex] waiting for: [received:nodes:ed94accc-f9b5-43d3-a17d-087db3a5b7b5:localhost]

2023-07-10 13:34:55 | [Mutex] waiting for: [received:nodes:ed94accc-f9b5-43d3-a17d-087db3a5b7b5:localhost]

2023-07-10 13:34:55 | [Mutex] waiting for: [received:nodes:ed94accc-f9b5-43d3-a17d-087db3a5b7b5:localhost]

2023-07-10 13:34:55 | [Mutex] waiting for: [received:nodes:ed94accc-f9b5-43d3-a17d-087db3a5b7b5:localhost]

2023-07-10 13:34:55 | [Mutex] received everything.

2023-07-10 13:34:55 | [Mutex] isItemNotified: received:node:ed94accc-f9b5-43d3-a17d-087db3a5b7b5:localhost:node-6828e123-49e0-4538-b8ae-effbcb874513:Node 6828e123-49e0-4538-b8ae-effbcb874513 :: false

2023-07-10 13:34:55 | [Mutex] waiting for: [received:nodes:d5334c66-299f-43a4-86d8-a50ac4a0a808:localhost]

2023-07-10 13:34:55 | [Mutex] received everything.

2023-07-10 13:34:55 | [Mutex] isItemNotified: received:node:d5334c66-299f-43a4-86d8-a50ac4a0a808:localhost:node-6828e123-49e0-4538-b8ae-effbcb874513:Node 6828e123-49e0-4538-b8ae-effbcb874513 :: false

publishItemsToNodes 0.071s
2023-07-10 13:34:53 |

2023-07-10 13:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:53 | ------------------------------------

2023-07-10 13:34:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6828e123-49e0-4538-b8ae-effbcb874513",
    "entry": "<test>item-f6e5bfe3-9736-4bb1-9028-0c03089a677f</test>",
    "item-id": "item-f6e5bfe3-9736-4bb1-9028-0c03089a677f"
}

2023-07-10 13:34:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6e5bfe3-9736-4bb1-9028-0c03089a677f"
}

2023-07-10 13:34:53 | [Mutex] waiting for: [published:item:notifieditem-f6e5bfe3-9736-4bb1-9028-0c03089a677f:admin@test-domain.com]

2023-07-10 13:34:53 | [Mutex] received everything.

2023-07-10 13:34:53 | [Mutex] isItemNotified: published:item:notifieditem-f6e5bfe3-9736-4bb1-9028-0c03089a677f:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-07-10 13:34:53 |

2023-07-10 13:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:53 | ------------------------------------

2023-07-10 13:34:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6828e123-49e0-4538-b8ae-effbcb874513",
    "item-id": "item-f6e5bfe3-9736-4bb1-9028-0c03089a677f"
}

2023-07-10 13:34:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6e5bfe3-9736-4bb1-9028-0c03089a677f"
}

2023-07-10 13:34:53 | [Mutex] received everything.

2023-07-10 13:34:53 | [Mutex] isItemNotified: retracted:item:notifieditem-f6e5bfe3-9736-4bb1-9028-0c03089a677f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2023-07-10 13:34:53 |

2023-07-10 13:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:53 | ------------------------------------

2023-07-10 13:34:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6828e123-49e0-4538-b8ae-effbcb874513",
    "item-id": "item-f6e5bfe3-9736-4bb1-9028-0c03089a677f"
}

2023-07-10 13:34:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6828e123-49e0-4538-b8ae-effbcb874513",
    "item-id": "item-f6e5bfe3-9736-4bb1-9028-0c03089a677f",
    "item": [
        "<item id=\"item-f6e5bfe3-9736-4bb1-9028-0c03089a677f\"><test>item-f6e5bfe3-9736-4bb1-9028-0c03089a677f</test></item>"
    ]
}

2023-07-10 13:34:53 | [Mutex] notify: [retrieved:item:item-f6e5bfe3-9736-4bb1-9028-0c03089a677f:payload-matches:true:localhost]

2023-07-10 13:34:53 | [Mutex] received everything.

2023-07-10 13:34:53 | [Mutex] isItemNotified: retrieved:item:item-f6e5bfe3-9736-4bb1-9028-0c03089a677f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-07-10 13:34:53 |

2023-07-10 13:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:53 | ------------------------------------

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

2023-07-10 13:34:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6828e123-49e0-4538-b8ae-effbcb874513",
        "test",
        "node-adff9f80-5788-4b73-a33b-4c1797c4e702"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-10 13:34:53 |

2023-07-10 13:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:53 | ------------------------------------

2023-07-10 13:34:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6828e123-49e0-4538-b8ae-effbcb874513)"
}

2023-07-10 13:34:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-07-10 13:34:52 |

2023-07-10 13:34:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:52 | ------------------------------------

2023-07-10 13:34:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6828e123-49e0-4538-b8ae-effbcb874513",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2023-07-10 13:34:53 |

2023-07-10 13:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 13:34:53 | ------------------------------------

2023-07-10 13:34:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6828e123-49e0-4538-b8ae-effbcb874513",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-10 13:34:53 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}