Generated by TestNG with ReportNG at 21:48 PST on Wednesday 16 November 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (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.635s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2022-11-16 22:03:23 |

2022-11-16 22:03:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:23 | ------------------------------------

2022-11-16 22:03:23 | [Mutex] waiting for: [configured:node:node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd:node-ca56a825-bba0-40a5-89a0-2f606646250c]

2022-11-16 22:03:23 | [Mutex] received everything.

2022-11-16 22:03:23 | [Mutex] isItemNotified: configured:node:node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd:node-ca56a825-bba0-40a5-89a0-2f606646250c :: true

2022-11-16 22:03:24 | [Mutex] waiting for: [received:nodes:6529354b-cb41-466f-b33f-e0c0866242ce:localhost]

2022-11-16 22:03:24 | [Mutex] received everything.

2022-11-16 22:03:24 | [Mutex] isItemNotified: received:node:6529354b-cb41-466f-b33f-e0c0866242ce:localhost:node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd:Node f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd :: true

2022-11-16 22:03:24 | [Mutex] waiting for: [received:nodes:499b9e63-4ac4-43bc-a861-263ab4464719:localhost]

2022-11-16 22:03:24 | [Mutex] received everything.

2022-11-16 22:03:24 | [Mutex] isItemNotified: received:node:499b9e63-4ac4-43bc-a861-263ab4464719:localhost:node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd:Node f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd :: false

createNodes 1.564s
2022-11-16 22:03:20 |

2022-11-16 22:03:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:20 | ------------------------------------

2022-11-16 22:03:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd",
    "pubsub#title": "Node f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd"
}

2022-11-16 22:03:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-16 22:03:22 | [Mutex] waiting for: [received:nodes:407bfbba-adf9-4777-a280-55e580d09c91:localhost]

2022-11-16 22:03:22 | [Mutex] waiting for: [received:nodes:407bfbba-adf9-4777-a280-55e580d09c91:localhost]

2022-11-16 22:03:22 | [Mutex] received everything.

2022-11-16 22:03:22 | [Mutex] isItemNotified: received:node:407bfbba-adf9-4777-a280-55e580d09c91:localhost:node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd:Node f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd :: true

createSubnodes 1.029s
2022-11-16 22:03:22 |

2022-11-16 22:03:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:22 | ------------------------------------

2022-11-16 22:03:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ca56a825-bba0-40a5-89a0-2f606646250c",
    "pubsub#title": "Node ca56a825-bba0-40a5-89a0-2f606646250c"
}

2022-11-16 22:03:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-16 22:03:23 | [Mutex] waiting for: [received:nodes:e720d901-cd06-4de8-b306-cf7811ea572e:localhost]

2022-11-16 22:03:23 | [Mutex] received everything.

2022-11-16 22:03:23 | [Mutex] isItemNotified: received:node:e720d901-cd06-4de8-b306-cf7811ea572e:localhost:node-ca56a825-bba0-40a5-89a0-2f606646250c:Node ca56a825-bba0-40a5-89a0-2f606646250c :: true

deleteNodes 1.021s
2022-11-16 22:03:27 |

2022-11-16 22:03:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:27 | ------------------------------------

2022-11-16 22:03:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ca56a825-bba0-40a5-89a0-2f606646250c"
}

2022-11-16 22:03:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-16 22:03:28 | [Mutex] waiting for: [received:nodes:bf68adbf-4483-4844-b5a3-65ecf0af528d:localhost]

2022-11-16 22:03:28 | [Mutex] waiting for: [received:nodes:bf68adbf-4483-4844-b5a3-65ecf0af528d:localhost]

2022-11-16 22:03:28 | [Mutex] waiting for: [received:nodes:bf68adbf-4483-4844-b5a3-65ecf0af528d:localhost]

2022-11-16 22:03:28 | [Mutex] received everything.

2022-11-16 22:03:28 | [Mutex] isItemNotified: received:node:bf68adbf-4483-4844-b5a3-65ecf0af528d:localhost:node-ca56a825-bba0-40a5-89a0-2f606646250c:Node ca56a825-bba0-40a5-89a0-2f606646250c :: false

deleteSubnodes 1.081s
2022-11-16 22:03:26 |

2022-11-16 22:03:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:26 | ------------------------------------

2022-11-16 22:03:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd"
}

2022-11-16 22:03:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-16 22:03:27 | [Mutex] waiting for: [received:nodes:3d9163eb-9413-4d8d-a165-4f159f4ef0b9:localhost]

2022-11-16 22:03:27 | [Mutex] received everything.

2022-11-16 22:03:27 | [Mutex] isItemNotified: received:node:3d9163eb-9413-4d8d-a165-4f159f4ef0b9:localhost:node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd:Node f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd :: false

2022-11-16 22:03:27 | [Mutex] waiting for: [received:nodes:7acc6fb2-1607-4973-a982-1a3025a61950:localhost]

2022-11-16 22:03:27 | [Mutex] received everything.

2022-11-16 22:03:27 | [Mutex] isItemNotified: received:node:7acc6fb2-1607-4973-a982-1a3025a61950:localhost:node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd:Node f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd :: false

publishItemsToNodes 0.038s
2022-11-16 22:03:25 |

2022-11-16 22:03:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:25 | ------------------------------------

2022-11-16 22:03:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd",
    "entry": "<test>item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93</test>",
    "item-id": "item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93"
}

2022-11-16 22:03:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93"
}

2022-11-16 22:03:25 | [Mutex] waiting for: [published:item:notifieditem-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93:admin@test-domain.com]

2022-11-16 22:03:25 | [Mutex] received everything.

2022-11-16 22:03:25 | [Mutex] isItemNotified: published:item:notifieditem-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-11-16 22:03:25 |

2022-11-16 22:03:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:25 | ------------------------------------

2022-11-16 22:03:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd",
    "item-id": "item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93"
}

2022-11-16 22:03:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93"
}

2022-11-16 22:03:25 | [Mutex] received everything.

2022-11-16 22:03:25 | [Mutex] isItemNotified: retracted:item:notifieditem-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2022-11-16 22:03:25 |

2022-11-16 22:03:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:25 | ------------------------------------

2022-11-16 22:03:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd",
    "item-id": "item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93"
}

2022-11-16 22:03:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd",
    "item-id": "item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93",
    "item": [
        "<item id=\"item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93\"><test>item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93</test></item>"
    ]
}

2022-11-16 22:03:25 | [Mutex] notify: [retrieved:item:item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93:payload-matches:true:localhost]

2022-11-16 22:03:25 | [Mutex] received everything.

2022-11-16 22:03:25 | [Mutex] isItemNotified: retrieved:item:item-9e3bb6e4-ef4b-4d2f-bec5-bbd43546ac93:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.064s
2022-11-16 22:03:25 |

2022-11-16 22:03:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:25 | ------------------------------------

2022-11-16 22:03:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-16 22:03:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ca56a825-bba0-40a5-89a0-2f606646250c",
        "test",
        "node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-11-16 22:03:25 |

2022-11-16 22:03:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:25 | ------------------------------------

2022-11-16 22:03:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd)"
}

2022-11-16 22:03:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-11-16 22:03:24 |

2022-11-16 22:03:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:24 | ------------------------------------

2022-11-16 22:03:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-16 22:03:24 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-11-16 22:03:25 |

2022-11-16 22:03:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 22:03:25 | ------------------------------------

2022-11-16 22:03:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f6ce2d82-9f32-46c0-95ff-9c2ebb00f5fd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-16 22:03:25 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}