Generated by TestNG with ReportNG at 22:19 PDT on Thursday 25 August 2022
root@f9c07ffec79b / 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.647s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-08-25 22:34:13 |

2022-08-25 22:34:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:13 | ------------------------------------

2022-08-25 22:34:13 | [Mutex] waiting for: [configured:node:node-198a56a9-808f-4bad-82b5-93fb27528c8d:node-85af75cb-78df-4281-a711-4444c201eb3d]

2022-08-25 22:34:13 | [Mutex] received everything.

2022-08-25 22:34:13 | [Mutex] isItemNotified: configured:node:node-198a56a9-808f-4bad-82b5-93fb27528c8d:node-85af75cb-78df-4281-a711-4444c201eb3d :: true

2022-08-25 22:34:14 | [Mutex] waiting for: [received:nodes:c2949e77-3a4c-477f-8fe6-15e972b9e393:localhost]

2022-08-25 22:34:14 | [Mutex] received everything.

2022-08-25 22:34:14 | [Mutex] isItemNotified: received:node:c2949e77-3a4c-477f-8fe6-15e972b9e393:localhost:node-198a56a9-808f-4bad-82b5-93fb27528c8d:Node 198a56a9-808f-4bad-82b5-93fb27528c8d :: true

2022-08-25 22:34:14 | [Mutex] waiting for: [received:nodes:dd06d93f-47a2-49c0-bf8d-083244796165:localhost]

2022-08-25 22:34:14 | [Mutex] received everything.

2022-08-25 22:34:14 | [Mutex] isItemNotified: received:node:dd06d93f-47a2-49c0-bf8d-083244796165:localhost:node-198a56a9-808f-4bad-82b5-93fb27528c8d:Node 198a56a9-808f-4bad-82b5-93fb27528c8d :: false

createNodes 1.555s
2022-08-25 22:34:11 |

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

2022-08-25 22:34:11 | ------------------------------------

2022-08-25 22:34:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-198a56a9-808f-4bad-82b5-93fb27528c8d",
    "pubsub#title": "Node 198a56a9-808f-4bad-82b5-93fb27528c8d"
}

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

2022-08-25 22:34:12 | [Mutex] waiting for: [received:nodes:f2b0c114-e454-4c84-a660-c9bb287ae701:localhost]

2022-08-25 22:34:12 | [Mutex] received everything.

2022-08-25 22:34:12 | [Mutex] isItemNotified: received:node:f2b0c114-e454-4c84-a660-c9bb287ae701:localhost:node-198a56a9-808f-4bad-82b5-93fb27528c8d:Node 198a56a9-808f-4bad-82b5-93fb27528c8d :: true

createSubnodes 1.025s
2022-08-25 22:34:12 |

2022-08-25 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:12 | ------------------------------------

2022-08-25 22:34:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-85af75cb-78df-4281-a711-4444c201eb3d",
    "pubsub#title": "Node 85af75cb-78df-4281-a711-4444c201eb3d"
}

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

2022-08-25 22:34:13 | [Mutex] waiting for: [received:nodes:20e38086-87ab-4d36-ac5b-9571ebb357f3:localhost]

2022-08-25 22:34:13 | [Mutex] received everything.

2022-08-25 22:34:13 | [Mutex] isItemNotified: received:node:20e38086-87ab-4d36-ac5b-9571ebb357f3:localhost:node-85af75cb-78df-4281-a711-4444c201eb3d:Node 85af75cb-78df-4281-a711-4444c201eb3d :: true

deleteNodes 1.021s
2022-08-25 22:34:18 |

2022-08-25 22:34:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:18 | ------------------------------------

2022-08-25 22:34:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-85af75cb-78df-4281-a711-4444c201eb3d"
}

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

2022-08-25 22:34:19 | [Mutex] waiting for: [received:nodes:2fff2529-ba8a-4457-9788-94cbe8a2ce5c:localhost]

2022-08-25 22:34:19 | [Mutex] received everything.

2022-08-25 22:34:19 | [Mutex] isItemNotified: received:node:2fff2529-ba8a-4457-9788-94cbe8a2ce5c:localhost:node-85af75cb-78df-4281-a711-4444c201eb3d:Node 85af75cb-78df-4281-a711-4444c201eb3d :: false

deleteSubnodes 1.025s
2022-08-25 22:34:17 |

2022-08-25 22:34:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:17 | ------------------------------------

2022-08-25 22:34:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-198a56a9-808f-4bad-82b5-93fb27528c8d"
}

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

2022-08-25 22:34:18 | [Mutex] waiting for: [received:nodes:f631f0af-b26f-4a06-83ab-018cb82e97c4:localhost]

2022-08-25 22:34:18 | [Mutex] received everything.

2022-08-25 22:34:18 | [Mutex] isItemNotified: received:node:f631f0af-b26f-4a06-83ab-018cb82e97c4:localhost:node-198a56a9-808f-4bad-82b5-93fb27528c8d:Node 198a56a9-808f-4bad-82b5-93fb27528c8d :: false

2022-08-25 22:34:18 | [Mutex] waiting for: [received:nodes:f74d05e9-1e48-45c9-b0f6-b6b443163c50:localhost]

2022-08-25 22:34:18 | [Mutex] received everything.

2022-08-25 22:34:18 | [Mutex] isItemNotified: received:node:f74d05e9-1e48-45c9-b0f6-b6b443163c50:localhost:node-198a56a9-808f-4bad-82b5-93fb27528c8d:Node 198a56a9-808f-4bad-82b5-93fb27528c8d :: false

publishItemsToNodes 0.053s
2022-08-25 22:34:15 |

2022-08-25 22:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:15 | ------------------------------------

2022-08-25 22:34:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-198a56a9-808f-4bad-82b5-93fb27528c8d",
    "entry": "<test>item-06d7858b-789f-48f7-9547-e7936850832f</test>",
    "item-id": "item-06d7858b-789f-48f7-9547-e7936850832f"
}

2022-08-25 22:34:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-06d7858b-789f-48f7-9547-e7936850832f"
}

2022-08-25 22:34:15 | [Mutex] waiting for: [published:item:notifieditem-06d7858b-789f-48f7-9547-e7936850832f:admin@test-domain.com]

2022-08-25 22:34:15 | [Mutex] received everything.

2022-08-25 22:34:15 | [Mutex] isItemNotified: published:item:notifieditem-06d7858b-789f-48f7-9547-e7936850832f:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-08-25 22:34:16 |

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

2022-08-25 22:34:16 | ------------------------------------

2022-08-25 22:34:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-198a56a9-808f-4bad-82b5-93fb27528c8d",
    "item-id": "item-06d7858b-789f-48f7-9547-e7936850832f"
}

2022-08-25 22:34:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-06d7858b-789f-48f7-9547-e7936850832f"
}

2022-08-25 22:34:16 | [Mutex] waiting for: [retracted:item:notifieditem-06d7858b-789f-48f7-9547-e7936850832f:admin@test-domain.com]

2022-08-25 22:34:16 | [Mutex] received everything.

2022-08-25 22:34:16 | [Mutex] isItemNotified: retracted:item:notifieditem-06d7858b-789f-48f7-9547-e7936850832f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2022-08-25 22:34:15 |

2022-08-25 22:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:15 | ------------------------------------

2022-08-25 22:34:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-198a56a9-808f-4bad-82b5-93fb27528c8d",
    "item-id": "item-06d7858b-789f-48f7-9547-e7936850832f"
}

2022-08-25 22:34:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-198a56a9-808f-4bad-82b5-93fb27528c8d",
    "item-id": "item-06d7858b-789f-48f7-9547-e7936850832f",
    "item": [
        "<item id=\"item-06d7858b-789f-48f7-9547-e7936850832f\"><test>item-06d7858b-789f-48f7-9547-e7936850832f</test></item>"
    ]
}

2022-08-25 22:34:15 | [Mutex] notify: [retrieved:item:item-06d7858b-789f-48f7-9547-e7936850832f:payload-matches:true:localhost]

2022-08-25 22:34:15 | [Mutex] received everything.

2022-08-25 22:34:15 | [Mutex] isItemNotified: retrieved:item:item-06d7858b-789f-48f7-9547-e7936850832f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-08-25 22:34:15 |

2022-08-25 22:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:15 | ------------------------------------

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

2022-08-25 22:34:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-85af75cb-78df-4281-a711-4444c201eb3d",
        "node-198a56a9-808f-4bad-82b5-93fb27528c8d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-08-25 22:34:16 |

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

2022-08-25 22:34:16 | ------------------------------------

2022-08-25 22:34:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-198a56a9-808f-4bad-82b5-93fb27528c8d)"
}

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

subscribeNodes 1.012s
2022-08-25 22:34:14 |

2022-08-25 22:34:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:14 | ------------------------------------

2022-08-25 22:34:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-198a56a9-808f-4bad-82b5-93fb27528c8d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.115s
2022-08-25 22:34:16 |

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

2022-08-25 22:34:16 | ------------------------------------

2022-08-25 22:34:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-198a56a9-808f-4bad-82b5-93fb27528c8d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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