Generated by TestNG with ReportNG at 21:32 PST on Wednesday 16 February 2022
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / 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.968s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-02-16 21:46:41 |

2022-02-16 21:46:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:41 | ------------------------------------

2022-02-16 21:46:41 | [Mutex] waiting for: [configured:node:node-1902468f-b788-42cc-9ae6-02e9fa53b47f:node-bb900680-88d6-43b1-9855-f88028fb0bda]

2022-02-16 21:46:41 | [Mutex] received everything.

2022-02-16 21:46:41 | [Mutex] isItemNotified: configured:node:node-1902468f-b788-42cc-9ae6-02e9fa53b47f:node-bb900680-88d6-43b1-9855-f88028fb0bda :: true

2022-02-16 21:46:42 | [Mutex] waiting for: [received:nodes:a838b9ac-0645-4bf1-989c-24d15c243943:localhost]

2022-02-16 21:46:42 | [Mutex] received everything.

2022-02-16 21:46:42 | [Mutex] isItemNotified: received:node:a838b9ac-0645-4bf1-989c-24d15c243943:localhost:node-1902468f-b788-42cc-9ae6-02e9fa53b47f:Node 1902468f-b788-42cc-9ae6-02e9fa53b47f :: true

2022-02-16 21:46:42 | [Mutex] waiting for: [received:nodes:6f181dc6-c8b0-4c3d-aa1e-06740fc30505:localhost]

2022-02-16 21:46:42 | [Mutex] received everything.

2022-02-16 21:46:42 | [Mutex] isItemNotified: received:node:6f181dc6-c8b0-4c3d-aa1e-06740fc30505:localhost:node-1902468f-b788-42cc-9ae6-02e9fa53b47f:Node 1902468f-b788-42cc-9ae6-02e9fa53b47f :: false

createNodes 1.544s
2022-02-16 21:46:39 |

2022-02-16 21:46:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:39 | ------------------------------------

2022-02-16 21:46:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1902468f-b788-42cc-9ae6-02e9fa53b47f",
    "pubsub#title": "Node 1902468f-b788-42cc-9ae6-02e9fa53b47f"
}

2022-02-16 21:46:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 21:46:40 | [Mutex] waiting for: [received:nodes:3ace5657-1203-48d8-9f6a-a813fc160fb1:localhost]

2022-02-16 21:46:40 | [Mutex] received everything.

2022-02-16 21:46:40 | [Mutex] isItemNotified: received:node:3ace5657-1203-48d8-9f6a-a813fc160fb1:localhost:node-1902468f-b788-42cc-9ae6-02e9fa53b47f:Node 1902468f-b788-42cc-9ae6-02e9fa53b47f :: true

createSubnodes 1.038s
2022-02-16 21:46:40 |

2022-02-16 21:46:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:40 | ------------------------------------

2022-02-16 21:46:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bb900680-88d6-43b1-9855-f88028fb0bda",
    "pubsub#title": "Node bb900680-88d6-43b1-9855-f88028fb0bda"
}

2022-02-16 21:46:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 21:46:41 | [Mutex] waiting for: [received:nodes:f8825333-d8b7-472f-ad75-35d1c15dae43:localhost]

2022-02-16 21:46:41 | [Mutex] waiting for: [received:nodes:f8825333-d8b7-472f-ad75-35d1c15dae43:localhost]

2022-02-16 21:46:41 | [Mutex] waiting for: [received:nodes:f8825333-d8b7-472f-ad75-35d1c15dae43:localhost]

2022-02-16 21:46:41 | [Mutex] received everything.

2022-02-16 21:46:41 | [Mutex] isItemNotified: received:node:f8825333-d8b7-472f-ad75-35d1c15dae43:localhost:node-bb900680-88d6-43b1-9855-f88028fb0bda:Node bb900680-88d6-43b1-9855-f88028fb0bda :: true

deleteNodes 1.024s
2022-02-16 21:46:46 |

2022-02-16 21:46:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:46 | ------------------------------------

2022-02-16 21:46:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bb900680-88d6-43b1-9855-f88028fb0bda"
}

2022-02-16 21:46:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 21:46:47 | [Mutex] waiting for: [received:nodes:b5f59a08-cd3f-441b-a927-168d437cee95:localhost]

2022-02-16 21:46:47 | [Mutex] received everything.

2022-02-16 21:46:47 | [Mutex] isItemNotified: received:node:b5f59a08-cd3f-441b-a927-168d437cee95:localhost:node-bb900680-88d6-43b1-9855-f88028fb0bda:Node bb900680-88d6-43b1-9855-f88028fb0bda :: false

deleteSubnodes 1.035s
2022-02-16 21:46:45 |

2022-02-16 21:46:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:45 | ------------------------------------

2022-02-16 21:46:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1902468f-b788-42cc-9ae6-02e9fa53b47f"
}

2022-02-16 21:46:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 21:46:46 | [Mutex] waiting for: [received:nodes:a22c97af-551c-4b71-a167-0c173fb52bce:localhost]

2022-02-16 21:46:46 | [Mutex] waiting for: [received:nodes:a22c97af-551c-4b71-a167-0c173fb52bce:localhost]

2022-02-16 21:46:46 | [Mutex] received everything.

2022-02-16 21:46:46 | [Mutex] isItemNotified: received:node:a22c97af-551c-4b71-a167-0c173fb52bce:localhost:node-1902468f-b788-42cc-9ae6-02e9fa53b47f:Node 1902468f-b788-42cc-9ae6-02e9fa53b47f :: false

2022-02-16 21:46:46 | [Mutex] waiting for: [received:nodes:0a85221e-1706-44ea-b6bf-f876574d8cc5:localhost]

2022-02-16 21:46:46 | [Mutex] received everything.

2022-02-16 21:46:46 | [Mutex] isItemNotified: received:node:0a85221e-1706-44ea-b6bf-f876574d8cc5:localhost:node-1902468f-b788-42cc-9ae6-02e9fa53b47f:Node 1902468f-b788-42cc-9ae6-02e9fa53b47f :: false

publishItemsToNodes 0.049s
2022-02-16 21:46:43 |

2022-02-16 21:46:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:43 | ------------------------------------

2022-02-16 21:46:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1902468f-b788-42cc-9ae6-02e9fa53b47f",
    "entry": "<test>item-50d95518-bc73-470d-9db2-17d5bac54293</test>",
    "item-id": "item-50d95518-bc73-470d-9db2-17d5bac54293"
}

2022-02-16 21:46:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-50d95518-bc73-470d-9db2-17d5bac54293"
}

2022-02-16 21:46:43 | [Mutex] waiting for: [published:item:notifieditem-50d95518-bc73-470d-9db2-17d5bac54293:admin@test-domain.com]

2022-02-16 21:46:43 | [Mutex] received everything.

2022-02-16 21:46:43 | [Mutex] isItemNotified: published:item:notifieditem-50d95518-bc73-470d-9db2-17d5bac54293:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2022-02-16 21:46:44 |

2022-02-16 21:46:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:44 | ------------------------------------

2022-02-16 21:46:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1902468f-b788-42cc-9ae6-02e9fa53b47f",
    "item-id": "item-50d95518-bc73-470d-9db2-17d5bac54293"
}

2022-02-16 21:46:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-50d95518-bc73-470d-9db2-17d5bac54293"
}

2022-02-16 21:46:44 | [Mutex] waiting for: [retracted:item:notifieditem-50d95518-bc73-470d-9db2-17d5bac54293:admin@test-domain.com]

2022-02-16 21:46:44 | [Mutex] received everything.

2022-02-16 21:46:44 | [Mutex] isItemNotified: retracted:item:notifieditem-50d95518-bc73-470d-9db2-17d5bac54293:admin@test-domain.com :: true

retrieveItemsFromNodes 0.088s
2022-02-16 21:46:43 |

2022-02-16 21:46:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:43 | ------------------------------------

2022-02-16 21:46:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1902468f-b788-42cc-9ae6-02e9fa53b47f",
    "item-id": "item-50d95518-bc73-470d-9db2-17d5bac54293"
}

2022-02-16 21:46:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1902468f-b788-42cc-9ae6-02e9fa53b47f",
    "item-id": "item-50d95518-bc73-470d-9db2-17d5bac54293",
    "item": [
        "<item id=\"item-50d95518-bc73-470d-9db2-17d5bac54293\"><test>item-50d95518-bc73-470d-9db2-17d5bac54293</test></item>"
    ]
}

2022-02-16 21:46:44 | [Mutex] notify: [retrieved:item:item-50d95518-bc73-470d-9db2-17d5bac54293:payload-matches:true:localhost]

2022-02-16 21:46:44 | [Mutex] received everything.

2022-02-16 21:46:44 | [Mutex] isItemNotified: retrieved:item:item-50d95518-bc73-470d-9db2-17d5bac54293:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2022-02-16 21:46:44 |

2022-02-16 21:46:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:44 | ------------------------------------

2022-02-16 21:46:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-16 21:46:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-bb900680-88d6-43b1-9855-f88028fb0bda",
        "node-1902468f-b788-42cc-9ae6-02e9fa53b47f",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-16 21:46:44 |

2022-02-16 21:46:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:44 | ------------------------------------

2022-02-16 21:46:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1902468f-b788-42cc-9ae6-02e9fa53b47f)"
}

2022-02-16 21:46:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-02-16 21:46:42 |

2022-02-16 21:46:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:42 | ------------------------------------

2022-02-16 21:46:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1902468f-b788-42cc-9ae6-02e9fa53b47f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-16 21:46:42 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.069s
2022-02-16 21:46:44 |

2022-02-16 21:46:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:46:44 | ------------------------------------

2022-02-16 21:46:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1902468f-b788-42cc-9ae6-02e9fa53b47f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-16 21:46:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}