Generated by TestNG with ReportNG at 22:22 PDT on Wednesday 27 April 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.837s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2022-04-27 22:37:59 |

2022-04-27 22:37:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:37:59 | ------------------------------------

2022-04-27 22:37:59 | [Mutex] waiting for: [configured:node:node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7:node-b30f3d17-292e-41cf-97d1-a3d92cf33996]

2022-04-27 22:37:59 | [Mutex] received everything.

2022-04-27 22:37:59 | [Mutex] isItemNotified: configured:node:node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7:node-b30f3d17-292e-41cf-97d1-a3d92cf33996 :: true

2022-04-27 22:38:00 | [Mutex] waiting for: [received:nodes:e7a1e1a9-b97c-4dcf-9f3b-0b4410149032:localhost]

2022-04-27 22:38:00 | [Mutex] received everything.

2022-04-27 22:38:00 | [Mutex] isItemNotified: received:node:e7a1e1a9-b97c-4dcf-9f3b-0b4410149032:localhost:node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7:Node 1d2d65a6-98d8-4c5a-9891-e8aaceb605b7 :: true

2022-04-27 22:38:00 | [Mutex] waiting for: [received:nodes:b14c9555-dfc0-4c60-be4c-46a5a8c4428e:localhost]

2022-04-27 22:38:00 | [Mutex] received everything.

2022-04-27 22:38:00 | [Mutex] isItemNotified: received:node:b14c9555-dfc0-4c60-be4c-46a5a8c4428e:localhost:node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7:Node 1d2d65a6-98d8-4c5a-9891-e8aaceb605b7 :: false

createNodes 1.667s
2022-04-27 22:37:56 |

2022-04-27 22:37:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:37:56 | ------------------------------------

2022-04-27 22:37:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7",
    "pubsub#title": "Node 1d2d65a6-98d8-4c5a-9891-e8aaceb605b7"
}

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

2022-04-27 22:37:58 | [Mutex] waiting for: [received:nodes:b2d19d12-6698-4aae-8043-19ba7a6ec2b9:localhost]

2022-04-27 22:37:58 | [Mutex] received everything.

2022-04-27 22:37:58 | [Mutex] isItemNotified: received:node:b2d19d12-6698-4aae-8043-19ba7a6ec2b9:localhost:node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7:Node 1d2d65a6-98d8-4c5a-9891-e8aaceb605b7 :: true

createSubnodes 1.024s
2022-04-27 22:37:58 |

2022-04-27 22:37:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:37:58 | ------------------------------------

2022-04-27 22:37:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b30f3d17-292e-41cf-97d1-a3d92cf33996",
    "pubsub#title": "Node b30f3d17-292e-41cf-97d1-a3d92cf33996"
}

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

2022-04-27 22:37:59 | [Mutex] waiting for: [received:nodes:77e96eb4-e926-4843-8706-c4eb6254065b:localhost]

2022-04-27 22:37:59 | [Mutex] waiting for: [received:nodes:77e96eb4-e926-4843-8706-c4eb6254065b:localhost]

2022-04-27 22:37:59 | [Mutex] received everything.

2022-04-27 22:37:59 | [Mutex] isItemNotified: received:node:77e96eb4-e926-4843-8706-c4eb6254065b:localhost:node-b30f3d17-292e-41cf-97d1-a3d92cf33996:Node b30f3d17-292e-41cf-97d1-a3d92cf33996 :: true

deleteNodes 1.020s
2022-04-27 22:38:04 |

2022-04-27 22:38:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:38:04 | ------------------------------------

2022-04-27 22:38:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b30f3d17-292e-41cf-97d1-a3d92cf33996"
}

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

2022-04-27 22:38:05 | [Mutex] waiting for: [received:nodes:9f494661-6c78-4d7e-80df-bc5f4f2b7811:localhost]

2022-04-27 22:38:05 | [Mutex] waiting for: [received:nodes:9f494661-6c78-4d7e-80df-bc5f4f2b7811:localhost]

2022-04-27 22:38:05 | [Mutex] received everything.

2022-04-27 22:38:05 | [Mutex] isItemNotified: received:node:9f494661-6c78-4d7e-80df-bc5f4f2b7811:localhost:node-b30f3d17-292e-41cf-97d1-a3d92cf33996:Node b30f3d17-292e-41cf-97d1-a3d92cf33996 :: false

deleteSubnodes 1.027s
2022-04-27 22:38:03 |

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

2022-04-27 22:38:03 | ------------------------------------

2022-04-27 22:38:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7"
}

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

2022-04-27 22:38:04 | [Mutex] waiting for: [received:nodes:7cc0dc5d-100f-4e5a-b49a-5ced2a90423a:localhost]

2022-04-27 22:38:04 | [Mutex] received everything.

2022-04-27 22:38:04 | [Mutex] isItemNotified: received:node:7cc0dc5d-100f-4e5a-b49a-5ced2a90423a:localhost:node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7:Node 1d2d65a6-98d8-4c5a-9891-e8aaceb605b7 :: false

2022-04-27 22:38:04 | [Mutex] waiting for: [received:nodes:088cfd00-1e3a-49f9-8355-bc85b3659c15:localhost]

2022-04-27 22:38:04 | [Mutex] received everything.

2022-04-27 22:38:04 | [Mutex] isItemNotified: received:node:088cfd00-1e3a-49f9-8355-bc85b3659c15:localhost:node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7:Node 1d2d65a6-98d8-4c5a-9891-e8aaceb605b7 :: false

publishItemsToNodes 0.110s
2022-04-27 22:38:01 |

2022-04-27 22:38:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:38:01 | ------------------------------------

2022-04-27 22:38:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7",
    "entry": "<test>item-b8754130-c088-4dcf-a5f7-c24bbf361d2d</test>",
    "item-id": "item-b8754130-c088-4dcf-a5f7-c24bbf361d2d"
}

2022-04-27 22:38:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b8754130-c088-4dcf-a5f7-c24bbf361d2d"
}

2022-04-27 22:38:01 | [Mutex] waiting for: [published:item:notifieditem-b8754130-c088-4dcf-a5f7-c24bbf361d2d:admin@test-domain.com]

2022-04-27 22:38:01 | [Mutex] received everything.

2022-04-27 22:38:01 | [Mutex] isItemNotified: published:item:notifieditem-b8754130-c088-4dcf-a5f7-c24bbf361d2d:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-04-27 22:38:02 |

2022-04-27 22:38:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:38:02 | ------------------------------------

2022-04-27 22:38:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7",
    "item-id": "item-b8754130-c088-4dcf-a5f7-c24bbf361d2d"
}

2022-04-27 22:38:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b8754130-c088-4dcf-a5f7-c24bbf361d2d"
}

2022-04-27 22:38:02 | [Mutex] received everything.

2022-04-27 22:38:02 | [Mutex] isItemNotified: retracted:item:notifieditem-b8754130-c088-4dcf-a5f7-c24bbf361d2d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2022-04-27 22:38:01 |

2022-04-27 22:38:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:38:01 | ------------------------------------

2022-04-27 22:38:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7",
    "item-id": "item-b8754130-c088-4dcf-a5f7-c24bbf361d2d"
}

2022-04-27 22:38:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7",
    "item-id": "item-b8754130-c088-4dcf-a5f7-c24bbf361d2d",
    "item": [
        "<item id=\"item-b8754130-c088-4dcf-a5f7-c24bbf361d2d\"><test>item-b8754130-c088-4dcf-a5f7-c24bbf361d2d</test></item>"
    ]
}

2022-04-27 22:38:01 | [Mutex] notify: [retrieved:item:item-b8754130-c088-4dcf-a5f7-c24bbf361d2d:payload-matches:true:localhost]

2022-04-27 22:38:01 | [Mutex] received everything.

2022-04-27 22:38:01 | [Mutex] isItemNotified: retrieved:item:item-b8754130-c088-4dcf-a5f7-c24bbf361d2d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-04-27 22:38:01 |

2022-04-27 22:38:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:38:01 | ------------------------------------

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

2022-04-27 22:38:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7",
        "node-b30f3d17-292e-41cf-97d1-a3d92cf33996",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-04-27 22:38:01 |

2022-04-27 22:38:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:38:01 | ------------------------------------

2022-04-27 22:38:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7)"
}

2022-04-27 22:38:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-04-27 22:38:00 |

2022-04-27 22:38:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:38:00 | ------------------------------------

2022-04-27 22:38:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-27 22:38:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-04-27 22:38:02 |

2022-04-27 22:38:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:38:02 | ------------------------------------

2022-04-27 22:38:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1d2d65a6-98d8-4c5a-9891-e8aaceb605b7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-27 22:38:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}