Generated by TestNG with ReportNG at 22:17 PDT on Thursday 07 July 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.657s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.127s
2022-07-07 22:32:58 |

2022-07-07 22:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:32:58 | ------------------------------------

2022-07-07 22:32:58 | [Mutex] waiting for: [configured:node:node-0f295827-abd2-4f9f-82e1-5025bc977d46:node-0f382894-b31a-4bbe-808d-af634f5b7d2e]

2022-07-07 22:32:58 | [Mutex] received everything.

2022-07-07 22:32:58 | [Mutex] isItemNotified: configured:node:node-0f295827-abd2-4f9f-82e1-5025bc977d46:node-0f382894-b31a-4bbe-808d-af634f5b7d2e :: true

2022-07-07 22:32:59 | [Mutex] waiting for: [received:nodes:53b447ad-83cf-4e7d-8d48-81b9a68502fc:localhost]

2022-07-07 22:32:59 | [Mutex] received everything.

2022-07-07 22:32:59 | [Mutex] isItemNotified: received:node:53b447ad-83cf-4e7d-8d48-81b9a68502fc:localhost:node-0f295827-abd2-4f9f-82e1-5025bc977d46:Node 0f295827-abd2-4f9f-82e1-5025bc977d46 :: true

2022-07-07 22:32:59 | [Mutex] waiting for: [received:nodes:fa90eba5-c3ec-4a71-8419-42d0bf630a25:localhost]

2022-07-07 22:32:59 | [Mutex] waiting for: [received:nodes:fa90eba5-c3ec-4a71-8419-42d0bf630a25:localhost]

2022-07-07 22:32:59 | [Mutex] received everything.

2022-07-07 22:32:59 | [Mutex] isItemNotified: received:node:fa90eba5-c3ec-4a71-8419-42d0bf630a25:localhost:node-0f295827-abd2-4f9f-82e1-5025bc977d46:Node 0f295827-abd2-4f9f-82e1-5025bc977d46 :: false

createNodes 1.558s
2022-07-07 22:32:55 |

2022-07-07 22:32:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:32:55 | ------------------------------------

2022-07-07 22:32:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0f295827-abd2-4f9f-82e1-5025bc977d46",
    "pubsub#title": "Node 0f295827-abd2-4f9f-82e1-5025bc977d46"
}

2022-07-07 22:32:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 22:32:57 | [Mutex] waiting for: [received:nodes:fb059e07-666c-4b69-bbae-a3cbf81cbe0b:localhost]

2022-07-07 22:32:57 | [Mutex] waiting for: [received:nodes:fb059e07-666c-4b69-bbae-a3cbf81cbe0b:localhost]

2022-07-07 22:32:57 | [Mutex] received everything.

2022-07-07 22:32:57 | [Mutex] isItemNotified: received:node:fb059e07-666c-4b69-bbae-a3cbf81cbe0b:localhost:node-0f295827-abd2-4f9f-82e1-5025bc977d46:Node 0f295827-abd2-4f9f-82e1-5025bc977d46 :: true

createSubnodes 1.022s
2022-07-07 22:32:57 |

2022-07-07 22:32:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:32:57 | ------------------------------------

2022-07-07 22:32:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0f382894-b31a-4bbe-808d-af634f5b7d2e",
    "pubsub#title": "Node 0f382894-b31a-4bbe-808d-af634f5b7d2e"
}

2022-07-07 22:32:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 22:32:58 | [Mutex] waiting for: [received:nodes:ae89fc06-4055-4763-b85a-252fef2615e5:localhost]

2022-07-07 22:32:58 | [Mutex] waiting for: [received:nodes:ae89fc06-4055-4763-b85a-252fef2615e5:localhost]

2022-07-07 22:32:58 | [Mutex] received everything.

2022-07-07 22:32:58 | [Mutex] isItemNotified: received:node:ae89fc06-4055-4763-b85a-252fef2615e5:localhost:node-0f382894-b31a-4bbe-808d-af634f5b7d2e:Node 0f382894-b31a-4bbe-808d-af634f5b7d2e :: true

deleteNodes 1.022s
2022-07-07 22:33:02 |

2022-07-07 22:33:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:33:02 | ------------------------------------

2022-07-07 22:33:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0f382894-b31a-4bbe-808d-af634f5b7d2e"
}

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

2022-07-07 22:33:03 | [Mutex] waiting for: [received:nodes:29761231-98a4-4d73-939b-4675ccb9d66c:localhost]

2022-07-07 22:33:03 | [Mutex] received everything.

2022-07-07 22:33:03 | [Mutex] isItemNotified: received:node:29761231-98a4-4d73-939b-4675ccb9d66c:localhost:node-0f382894-b31a-4bbe-808d-af634f5b7d2e:Node 0f382894-b31a-4bbe-808d-af634f5b7d2e :: false

deleteSubnodes 1.025s
2022-07-07 22:33:01 |

2022-07-07 22:33:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:33:01 | ------------------------------------

2022-07-07 22:33:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0f295827-abd2-4f9f-82e1-5025bc977d46"
}

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

2022-07-07 22:33:02 | [Mutex] waiting for: [received:nodes:98e63df2-7634-4c11-b5d2-53d4597eb7c4:localhost]

2022-07-07 22:33:02 | [Mutex] received everything.

2022-07-07 22:33:02 | [Mutex] isItemNotified: received:node:98e63df2-7634-4c11-b5d2-53d4597eb7c4:localhost:node-0f295827-abd2-4f9f-82e1-5025bc977d46:Node 0f295827-abd2-4f9f-82e1-5025bc977d46 :: false

2022-07-07 22:33:02 | [Mutex] waiting for: [received:nodes:1f9be1a5-1915-4679-abcd-c6431d9492bb:localhost]

2022-07-07 22:33:02 | [Mutex] received everything.

2022-07-07 22:33:02 | [Mutex] isItemNotified: received:node:1f9be1a5-1915-4679-abcd-c6431d9492bb:localhost:node-0f295827-abd2-4f9f-82e1-5025bc977d46:Node 0f295827-abd2-4f9f-82e1-5025bc977d46 :: false

publishItemsToNodes 0.040s
2022-07-07 22:33:00 |

2022-07-07 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:33:00 | ------------------------------------

2022-07-07 22:33:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0f295827-abd2-4f9f-82e1-5025bc977d46",
    "entry": "<test>item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4</test>",
    "item-id": "item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4"
}

2022-07-07 22:33:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4"
}

2022-07-07 22:33:00 | [Mutex] waiting for: [published:item:notifieditem-0f48fd7b-2a09-411d-8f5c-d847cb9659c4:admin@test-domain.com]

2022-07-07 22:33:00 | [Mutex] received everything.

2022-07-07 22:33:00 | [Mutex] isItemNotified: published:item:notifieditem-0f48fd7b-2a09-411d-8f5c-d847cb9659c4:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-07-07 22:33:00 |

2022-07-07 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:33:00 | ------------------------------------

2022-07-07 22:33:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0f295827-abd2-4f9f-82e1-5025bc977d46",
    "item-id": "item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4"
}

2022-07-07 22:33:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4"
}

2022-07-07 22:33:00 | [Mutex] received everything.

2022-07-07 22:33:00 | [Mutex] isItemNotified: retracted:item:notifieditem-0f48fd7b-2a09-411d-8f5c-d847cb9659c4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2022-07-07 22:33:00 |

2022-07-07 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:33:00 | ------------------------------------

2022-07-07 22:33:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0f295827-abd2-4f9f-82e1-5025bc977d46",
    "item-id": "item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4"
}

2022-07-07 22:33:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0f295827-abd2-4f9f-82e1-5025bc977d46",
    "item-id": "item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4",
    "item": [
        "<item id=\"item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4\"><test>item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4</test></item>"
    ]
}

2022-07-07 22:33:00 | [Mutex] notify: [retrieved:item:item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4:payload-matches:true:localhost]

2022-07-07 22:33:00 | [Mutex] received everything.

2022-07-07 22:33:00 | [Mutex] isItemNotified: retrieved:item:item-0f48fd7b-2a09-411d-8f5c-d847cb9659c4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-07-07 22:33:00 |

2022-07-07 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:33:00 | ------------------------------------

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

2022-07-07 22:33:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-0f382894-b31a-4bbe-808d-af634f5b7d2e",
        "test",
        "node-0f295827-abd2-4f9f-82e1-5025bc977d46"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-07 22:33:00 |

2022-07-07 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:33:00 | ------------------------------------

2022-07-07 22:33:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0f295827-abd2-4f9f-82e1-5025bc977d46)"
}

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

subscribeNodes 1.011s
2022-07-07 22:32:59 |

2022-07-07 22:32:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:32:59 | ------------------------------------

2022-07-07 22:32:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0f295827-abd2-4f9f-82e1-5025bc977d46",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-07 22:32:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-07-07 22:33:00 |

2022-07-07 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 22:33:00 | ------------------------------------

2022-07-07 22:33:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0f295827-abd2-4f9f-82e1-5025bc977d46",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-07 22:33:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}