Generated by TestNG with ReportNG at 22:20 PDT on Tuesday 21 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.719s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.155s
2022-06-21 22:35:29 |

2022-06-21 22:35:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:29 | ------------------------------------

2022-06-21 22:35:29 | [Mutex] waiting for: [configured:node:node-91de8ed1-4793-4207-8514-93d8e0bc8b15:node-a7b92a60-828d-4e61-8d29-c541dd1b2087]

2022-06-21 22:35:29 | [Mutex] received everything.

2022-06-21 22:35:29 | [Mutex] isItemNotified: configured:node:node-91de8ed1-4793-4207-8514-93d8e0bc8b15:node-a7b92a60-828d-4e61-8d29-c541dd1b2087 :: true

2022-06-21 22:35:30 | [Mutex] waiting for: [received:nodes:97cb5f30-8ec6-45f2-a2a8-8705dff2450b:localhost]

2022-06-21 22:35:30 | [Mutex] received everything.

2022-06-21 22:35:30 | [Mutex] isItemNotified: received:node:97cb5f30-8ec6-45f2-a2a8-8705dff2450b:localhost:node-91de8ed1-4793-4207-8514-93d8e0bc8b15:Node 91de8ed1-4793-4207-8514-93d8e0bc8b15 :: true

2022-06-21 22:35:30 | [Mutex] waiting for: [received:nodes:c77b7a81-578d-40be-a70c-76dfdcd5486d:localhost]

2022-06-21 22:35:30 | [Mutex] received everything.

2022-06-21 22:35:30 | [Mutex] isItemNotified: received:node:c77b7a81-578d-40be-a70c-76dfdcd5486d:localhost:node-91de8ed1-4793-4207-8514-93d8e0bc8b15:Node 91de8ed1-4793-4207-8514-93d8e0bc8b15 :: false

createNodes 1.590s
2022-06-21 22:35:26 |

2022-06-21 22:35:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:26 | ------------------------------------

2022-06-21 22:35:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-91de8ed1-4793-4207-8514-93d8e0bc8b15",
    "pubsub#title": "Node 91de8ed1-4793-4207-8514-93d8e0bc8b15"
}

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

2022-06-21 22:35:28 | [Mutex] waiting for: [received:nodes:5029af28-eceb-4fb0-a6d9-a44178f3efc1:localhost]

2022-06-21 22:35:28 | [Mutex] waiting for: [received:nodes:5029af28-eceb-4fb0-a6d9-a44178f3efc1:localhost]

2022-06-21 22:35:28 | [Mutex] received everything.

2022-06-21 22:35:28 | [Mutex] isItemNotified: received:node:5029af28-eceb-4fb0-a6d9-a44178f3efc1:localhost:node-91de8ed1-4793-4207-8514-93d8e0bc8b15:Node 91de8ed1-4793-4207-8514-93d8e0bc8b15 :: true

createSubnodes 1.034s
2022-06-21 22:35:28 |

2022-06-21 22:35:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:28 | ------------------------------------

2022-06-21 22:35:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a7b92a60-828d-4e61-8d29-c541dd1b2087",
    "pubsub#title": "Node a7b92a60-828d-4e61-8d29-c541dd1b2087"
}

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

2022-06-21 22:35:29 | [Mutex] waiting for: [received:nodes:14cc9877-d841-494e-9a4b-971c25448012:localhost]

2022-06-21 22:35:29 | [Mutex] received everything.

2022-06-21 22:35:29 | [Mutex] isItemNotified: received:node:14cc9877-d841-494e-9a4b-971c25448012:localhost:node-a7b92a60-828d-4e61-8d29-c541dd1b2087:Node a7b92a60-828d-4e61-8d29-c541dd1b2087 :: true

deleteNodes 1.025s
2022-06-21 22:35:33 |

2022-06-21 22:35:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:33 | ------------------------------------

2022-06-21 22:35:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a7b92a60-828d-4e61-8d29-c541dd1b2087"
}

2022-06-21 22:35:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 22:35:34 | [Mutex] waiting for: [received:nodes:7990cd01-7c04-40d3-8880-2819ca451b80:localhost]

2022-06-21 22:35:35 | [Mutex] received everything.

2022-06-21 22:35:35 | [Mutex] isItemNotified: received:node:7990cd01-7c04-40d3-8880-2819ca451b80:localhost:node-a7b92a60-828d-4e61-8d29-c541dd1b2087:Node a7b92a60-828d-4e61-8d29-c541dd1b2087 :: false

deleteSubnodes 1.029s
2022-06-21 22:35:32 |

2022-06-21 22:35:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:32 | ------------------------------------

2022-06-21 22:35:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-91de8ed1-4793-4207-8514-93d8e0bc8b15"
}

2022-06-21 22:35:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-21 22:35:33 | [Mutex] waiting for: [received:nodes:1c86f41e-ad91-4c06-b212-6f70a31e3942:localhost]

2022-06-21 22:35:33 | [Mutex] received everything.

2022-06-21 22:35:33 | [Mutex] isItemNotified: received:node:1c86f41e-ad91-4c06-b212-6f70a31e3942:localhost:node-91de8ed1-4793-4207-8514-93d8e0bc8b15:Node 91de8ed1-4793-4207-8514-93d8e0bc8b15 :: false

2022-06-21 22:35:33 | [Mutex] waiting for: [received:nodes:f538a36b-6914-4a01-bc83-df6bde777bf8:localhost]

2022-06-21 22:35:33 | [Mutex] received everything.

2022-06-21 22:35:33 | [Mutex] isItemNotified: received:node:f538a36b-6914-4a01-bc83-df6bde777bf8:localhost:node-91de8ed1-4793-4207-8514-93d8e0bc8b15:Node 91de8ed1-4793-4207-8514-93d8e0bc8b15 :: false

publishItemsToNodes 0.054s
2022-06-21 22:35:31 |

2022-06-21 22:35:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:31 | ------------------------------------

2022-06-21 22:35:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-91de8ed1-4793-4207-8514-93d8e0bc8b15",
    "entry": "<test>item-1fec3eb8-d354-4550-91f5-29e16b4bf284</test>",
    "item-id": "item-1fec3eb8-d354-4550-91f5-29e16b4bf284"
}

2022-06-21 22:35:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1fec3eb8-d354-4550-91f5-29e16b4bf284"
}

2022-06-21 22:35:31 | [Mutex] received everything.

2022-06-21 22:35:31 | [Mutex] isItemNotified: published:item:notifieditem-1fec3eb8-d354-4550-91f5-29e16b4bf284:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-21 22:35:31 |

2022-06-21 22:35:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:31 | ------------------------------------

2022-06-21 22:35:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-91de8ed1-4793-4207-8514-93d8e0bc8b15",
    "item-id": "item-1fec3eb8-d354-4550-91f5-29e16b4bf284"
}

2022-06-21 22:35:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1fec3eb8-d354-4550-91f5-29e16b4bf284"
}

2022-06-21 22:35:31 | [Mutex] received everything.

2022-06-21 22:35:31 | [Mutex] isItemNotified: retracted:item:notifieditem-1fec3eb8-d354-4550-91f5-29e16b4bf284:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2022-06-21 22:35:31 |

2022-06-21 22:35:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:31 | ------------------------------------

2022-06-21 22:35:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-91de8ed1-4793-4207-8514-93d8e0bc8b15",
    "item-id": "item-1fec3eb8-d354-4550-91f5-29e16b4bf284"
}

2022-06-21 22:35:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-91de8ed1-4793-4207-8514-93d8e0bc8b15",
    "item-id": "item-1fec3eb8-d354-4550-91f5-29e16b4bf284",
    "item": [
        "<item id=\"item-1fec3eb8-d354-4550-91f5-29e16b4bf284\"><test>item-1fec3eb8-d354-4550-91f5-29e16b4bf284</test></item>"
    ]
}

2022-06-21 22:35:31 | [Mutex] notify: [retrieved:item:item-1fec3eb8-d354-4550-91f5-29e16b4bf284:payload-matches:true:localhost]

2022-06-21 22:35:31 | [Mutex] received everything.

2022-06-21 22:35:31 | [Mutex] isItemNotified: retrieved:item:item-1fec3eb8-d354-4550-91f5-29e16b4bf284:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-21 22:35:31 |

2022-06-21 22:35:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:31 | ------------------------------------

2022-06-21 22:35:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-21 22:35:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a7b92a60-828d-4e61-8d29-c541dd1b2087",
        "node-91de8ed1-4793-4207-8514-93d8e0bc8b15"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-21 22:35:31 |

2022-06-21 22:35:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:31 | ------------------------------------

2022-06-21 22:35:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-91de8ed1-4793-4207-8514-93d8e0bc8b15)"
}

2022-06-21 22:35:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-06-21 22:35:30 |

2022-06-21 22:35:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:30 | ------------------------------------

2022-06-21 22:35:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-91de8ed1-4793-4207-8514-93d8e0bc8b15",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-21 22:35:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-06-21 22:35:31 |

2022-06-21 22:35:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-21 22:35:31 | ------------------------------------

2022-06-21 22:35:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-91de8ed1-4793-4207-8514-93d8e0bc8b15",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-21 22:35:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}