Generated by TestNG with ReportNG at 22:51 PDT on Tuesday 27 September 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.680s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2022-09-27 23:05:11 |

2022-09-27 23:05:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:11 | ------------------------------------

2022-09-27 23:05:11 | [Mutex] waiting for: [configured:node:node-c31a8163-0993-4343-9e16-88e1a7b35515:node-7503e8ac-8d73-42c3-bdeb-25c2ec5f5194]

2022-09-27 23:05:11 | [Mutex] received everything.

2022-09-27 23:05:11 | [Mutex] isItemNotified: configured:node:node-c31a8163-0993-4343-9e16-88e1a7b35515:node-7503e8ac-8d73-42c3-bdeb-25c2ec5f5194 :: true

2022-09-27 23:05:12 | [Mutex] waiting for: [received:nodes:189bd128-184a-44e4-8d19-9b1ff8e05c64:localhost]

2022-09-27 23:05:12 | [Mutex] received everything.

2022-09-27 23:05:12 | [Mutex] isItemNotified: received:node:189bd128-184a-44e4-8d19-9b1ff8e05c64:localhost:node-c31a8163-0993-4343-9e16-88e1a7b35515:Node c31a8163-0993-4343-9e16-88e1a7b35515 :: true

2022-09-27 23:05:12 | [Mutex] waiting for: [received:nodes:85e81569-b040-4ac5-b26e-8fb5c4a40dac:localhost]

2022-09-27 23:05:12 | [Mutex] received everything.

2022-09-27 23:05:12 | [Mutex] isItemNotified: received:node:85e81569-b040-4ac5-b26e-8fb5c4a40dac:localhost:node-c31a8163-0993-4343-9e16-88e1a7b35515:Node c31a8163-0993-4343-9e16-88e1a7b35515 :: false

createNodes 1.552s
2022-09-27 23:05:08 |

2022-09-27 23:05:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:08 | ------------------------------------

2022-09-27 23:05:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c31a8163-0993-4343-9e16-88e1a7b35515",
    "pubsub#title": "Node c31a8163-0993-4343-9e16-88e1a7b35515"
}

2022-09-27 23:05:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-27 23:05:10 | [Mutex] waiting for: [received:nodes:cfe7f828-5301-4965-9857-c7111f698fa1:localhost]

2022-09-27 23:05:10 | [Mutex] received everything.

2022-09-27 23:05:10 | [Mutex] isItemNotified: received:node:cfe7f828-5301-4965-9857-c7111f698fa1:localhost:node-c31a8163-0993-4343-9e16-88e1a7b35515:Node c31a8163-0993-4343-9e16-88e1a7b35515 :: true

createSubnodes 1.020s
2022-09-27 23:05:10 |

2022-09-27 23:05:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:10 | ------------------------------------

2022-09-27 23:05:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7503e8ac-8d73-42c3-bdeb-25c2ec5f5194",
    "pubsub#title": "Node 7503e8ac-8d73-42c3-bdeb-25c2ec5f5194"
}

2022-09-27 23:05:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-27 23:05:11 | [Mutex] waiting for: [received:nodes:f2410e6b-e259-4827-817b-0e4ac21af062:localhost]

2022-09-27 23:05:11 | [Mutex] received everything.

2022-09-27 23:05:11 | [Mutex] isItemNotified: received:node:f2410e6b-e259-4827-817b-0e4ac21af062:localhost:node-7503e8ac-8d73-42c3-bdeb-25c2ec5f5194:Node 7503e8ac-8d73-42c3-bdeb-25c2ec5f5194 :: true

deleteNodes 1.024s
2022-09-27 23:05:15 |

2022-09-27 23:05:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:15 | ------------------------------------

2022-09-27 23:05:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7503e8ac-8d73-42c3-bdeb-25c2ec5f5194"
}

2022-09-27 23:05:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-27 23:05:16 | [Mutex] waiting for: [received:nodes:12d63a6d-8ec6-49db-ba9f-8cae02233c2a:localhost]

2022-09-27 23:05:16 | [Mutex] received everything.

2022-09-27 23:05:16 | [Mutex] isItemNotified: received:node:12d63a6d-8ec6-49db-ba9f-8cae02233c2a:localhost:node-7503e8ac-8d73-42c3-bdeb-25c2ec5f5194:Node 7503e8ac-8d73-42c3-bdeb-25c2ec5f5194 :: false

deleteSubnodes 1.023s
2022-09-27 23:05:14 |

2022-09-27 23:05:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:14 | ------------------------------------

2022-09-27 23:05:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c31a8163-0993-4343-9e16-88e1a7b35515"
}

2022-09-27 23:05:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-27 23:05:15 | [Mutex] waiting for: [received:nodes:92ac0ef5-1a91-4732-9a0d-1e6ac0f6dc72:localhost]

2022-09-27 23:05:15 | [Mutex] waiting for: [received:nodes:92ac0ef5-1a91-4732-9a0d-1e6ac0f6dc72:localhost]

2022-09-27 23:05:15 | [Mutex] waiting for: [received:nodes:92ac0ef5-1a91-4732-9a0d-1e6ac0f6dc72:localhost]

2022-09-27 23:05:15 | [Mutex] received everything.

2022-09-27 23:05:15 | [Mutex] isItemNotified: received:node:92ac0ef5-1a91-4732-9a0d-1e6ac0f6dc72:localhost:node-c31a8163-0993-4343-9e16-88e1a7b35515:Node c31a8163-0993-4343-9e16-88e1a7b35515 :: false

2022-09-27 23:05:15 | [Mutex] waiting for: [received:nodes:f24db680-ed53-4210-9a1a-1585de71ff14:localhost]

2022-09-27 23:05:15 | [Mutex] received everything.

2022-09-27 23:05:15 | [Mutex] isItemNotified: received:node:f24db680-ed53-4210-9a1a-1585de71ff14:localhost:node-c31a8163-0993-4343-9e16-88e1a7b35515:Node c31a8163-0993-4343-9e16-88e1a7b35515 :: false

publishItemsToNodes 0.115s
2022-09-27 23:05:13 |

2022-09-27 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:13 | ------------------------------------

2022-09-27 23:05:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c31a8163-0993-4343-9e16-88e1a7b35515",
    "entry": "<test>item-6d0034ed-0e8f-4d6e-9628-df7186332301</test>",
    "item-id": "item-6d0034ed-0e8f-4d6e-9628-df7186332301"
}

2022-09-27 23:05:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d0034ed-0e8f-4d6e-9628-df7186332301"
}

2022-09-27 23:05:13 | [Mutex] waiting for: [published:item:notifieditem-6d0034ed-0e8f-4d6e-9628-df7186332301:admin@test-domain.com]

2022-09-27 23:05:13 | [Mutex] received everything.

2022-09-27 23:05:13 | [Mutex] isItemNotified: published:item:notifieditem-6d0034ed-0e8f-4d6e-9628-df7186332301:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-09-27 23:05:13 |

2022-09-27 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:13 | ------------------------------------

2022-09-27 23:05:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c31a8163-0993-4343-9e16-88e1a7b35515",
    "item-id": "item-6d0034ed-0e8f-4d6e-9628-df7186332301"
}

2022-09-27 23:05:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d0034ed-0e8f-4d6e-9628-df7186332301"
}

2022-09-27 23:05:13 | [Mutex] received everything.

2022-09-27 23:05:13 | [Mutex] isItemNotified: retracted:item:notifieditem-6d0034ed-0e8f-4d6e-9628-df7186332301:admin@test-domain.com :: true

retrieveItemsFromNodes 0.052s
2022-09-27 23:05:13 |

2022-09-27 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:13 | ------------------------------------

2022-09-27 23:05:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c31a8163-0993-4343-9e16-88e1a7b35515",
    "item-id": "item-6d0034ed-0e8f-4d6e-9628-df7186332301"
}

2022-09-27 23:05:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c31a8163-0993-4343-9e16-88e1a7b35515",
    "item-id": "item-6d0034ed-0e8f-4d6e-9628-df7186332301",
    "item": [
        "<item id=\"item-6d0034ed-0e8f-4d6e-9628-df7186332301\"><test>item-6d0034ed-0e8f-4d6e-9628-df7186332301</test></item>"
    ]
}

2022-09-27 23:05:13 | [Mutex] notify: [retrieved:item:item-6d0034ed-0e8f-4d6e-9628-df7186332301:payload-matches:true:localhost]

2022-09-27 23:05:13 | [Mutex] received everything.

2022-09-27 23:05:13 | [Mutex] isItemNotified: retrieved:item:item-6d0034ed-0e8f-4d6e-9628-df7186332301:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-09-27 23:05:13 |

2022-09-27 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:13 | ------------------------------------

2022-09-27 23:05:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-27 23:05:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c31a8163-0993-4343-9e16-88e1a7b35515",
        "test",
        "node-7503e8ac-8d73-42c3-bdeb-25c2ec5f5194"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-27 23:05:13 |

2022-09-27 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:13 | ------------------------------------

2022-09-27 23:05:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c31a8163-0993-4343-9e16-88e1a7b35515)"
}

2022-09-27 23:05:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-09-27 23:05:12 |

2022-09-27 23:05:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:12 | ------------------------------------

2022-09-27 23:05:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c31a8163-0993-4343-9e16-88e1a7b35515",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-27 23:05:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-09-27 23:05:13 |

2022-09-27 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 23:05:13 | ------------------------------------

2022-09-27 23:05:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c31a8163-0993-4343-9e16-88e1a7b35515",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-27 23:05:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}