Generated by TestNG with ReportNG at 21:46 PST on Friday 17 February 2023
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.638s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2023-02-17 22:03:55 |

2023-02-17 22:03:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:55 | ------------------------------------

2023-02-17 22:03:55 | [Mutex] waiting for: [configured:node:node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d:node-aa304fcb-a9bf-46af-8cb7-8b4518db3c46]

2023-02-17 22:03:55 | [Mutex] received everything.

2023-02-17 22:03:55 | [Mutex] isItemNotified: configured:node:node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d:node-aa304fcb-a9bf-46af-8cb7-8b4518db3c46 :: true

2023-02-17 22:03:56 | [Mutex] waiting for: [received:nodes:a6d6dd15-9648-4b59-9516-2d11712caa81:localhost]

2023-02-17 22:03:56 | [Mutex] received everything.

2023-02-17 22:03:56 | [Mutex] isItemNotified: received:node:a6d6dd15-9648-4b59-9516-2d11712caa81:localhost:node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d:Node 4287ddac-3f5d-42ac-a9c9-7409195c7e6d :: true

2023-02-17 22:03:56 | [Mutex] waiting for: [received:nodes:2a62ef22-5c13-4ec9-a428-89341e20464e:localhost]

2023-02-17 22:03:56 | [Mutex] waiting for: [received:nodes:2a62ef22-5c13-4ec9-a428-89341e20464e:localhost]

2023-02-17 22:03:56 | [Mutex] waiting for: [received:nodes:2a62ef22-5c13-4ec9-a428-89341e20464e:localhost]

2023-02-17 22:03:56 | [Mutex] received everything.

2023-02-17 22:03:56 | [Mutex] isItemNotified: received:node:2a62ef22-5c13-4ec9-a428-89341e20464e:localhost:node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d:Node 4287ddac-3f5d-42ac-a9c9-7409195c7e6d :: false

createNodes 1.618s
2023-02-17 22:03:52 |

2023-02-17 22:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:52 | ------------------------------------

2023-02-17 22:03:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d",
    "pubsub#title": "Node 4287ddac-3f5d-42ac-a9c9-7409195c7e6d"
}

2023-02-17 22:03:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 22:03:54 | [Mutex] waiting for: [received:nodes:b32ab142-fd88-4a83-8e59-ea285a95d451:localhost]

2023-02-17 22:03:54 | [Mutex] waiting for: [received:nodes:b32ab142-fd88-4a83-8e59-ea285a95d451:localhost]

2023-02-17 22:03:54 | [Mutex] waiting for: [received:nodes:b32ab142-fd88-4a83-8e59-ea285a95d451:localhost]

2023-02-17 22:03:54 | [Mutex] received everything.

2023-02-17 22:03:54 | [Mutex] isItemNotified: received:node:b32ab142-fd88-4a83-8e59-ea285a95d451:localhost:node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d:Node 4287ddac-3f5d-42ac-a9c9-7409195c7e6d :: true

createSubnodes 1.024s
2023-02-17 22:03:54 |

2023-02-17 22:03:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:54 | ------------------------------------

2023-02-17 22:03:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-aa304fcb-a9bf-46af-8cb7-8b4518db3c46",
    "pubsub#title": "Node aa304fcb-a9bf-46af-8cb7-8b4518db3c46"
}

2023-02-17 22:03:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 22:03:55 | [Mutex] waiting for: [received:nodes:16cd3fc0-e177-4084-8023-9a9c604c20cc:localhost]

2023-02-17 22:03:55 | [Mutex] waiting for: [received:nodes:16cd3fc0-e177-4084-8023-9a9c604c20cc:localhost]

2023-02-17 22:03:55 | [Mutex] waiting for: [received:nodes:16cd3fc0-e177-4084-8023-9a9c604c20cc:localhost]

2023-02-17 22:03:55 | [Mutex] waiting for: [received:nodes:16cd3fc0-e177-4084-8023-9a9c604c20cc:localhost]

2023-02-17 22:03:55 | [Mutex] waiting for: [received:nodes:16cd3fc0-e177-4084-8023-9a9c604c20cc:localhost]

2023-02-17 22:03:55 | [Mutex] received everything.

2023-02-17 22:03:55 | [Mutex] isItemNotified: received:node:16cd3fc0-e177-4084-8023-9a9c604c20cc:localhost:node-aa304fcb-a9bf-46af-8cb7-8b4518db3c46:Node aa304fcb-a9bf-46af-8cb7-8b4518db3c46 :: true

deleteNodes 1.022s
2023-02-17 22:03:59 |

2023-02-17 22:03:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:59 | ------------------------------------

2023-02-17 22:03:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-aa304fcb-a9bf-46af-8cb7-8b4518db3c46"
}

2023-02-17 22:03:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 22:04:00 | [Mutex] waiting for: [received:nodes:6ba7f5e4-63d1-4bb4-81b1-3b72929d8ff8:localhost]

2023-02-17 22:04:00 | [Mutex] waiting for: [received:nodes:6ba7f5e4-63d1-4bb4-81b1-3b72929d8ff8:localhost]

2023-02-17 22:04:00 | [Mutex] waiting for: [received:nodes:6ba7f5e4-63d1-4bb4-81b1-3b72929d8ff8:localhost]

2023-02-17 22:04:00 | [Mutex] received everything.

2023-02-17 22:04:00 | [Mutex] isItemNotified: received:node:6ba7f5e4-63d1-4bb4-81b1-3b72929d8ff8:localhost:node-aa304fcb-a9bf-46af-8cb7-8b4518db3c46:Node aa304fcb-a9bf-46af-8cb7-8b4518db3c46 :: false

deleteSubnodes 1.024s
2023-02-17 22:03:58 |

2023-02-17 22:03:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:58 | ------------------------------------

2023-02-17 22:03:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d"
}

2023-02-17 22:03:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 22:03:59 | [Mutex] waiting for: [received:nodes:3f138f3a-7691-4475-be79-f33d491eb83d:localhost]

2023-02-17 22:03:59 | [Mutex] waiting for: [received:nodes:3f138f3a-7691-4475-be79-f33d491eb83d:localhost]

2023-02-17 22:03:59 | [Mutex] waiting for: [received:nodes:3f138f3a-7691-4475-be79-f33d491eb83d:localhost]

2023-02-17 22:03:59 | [Mutex] waiting for: [received:nodes:3f138f3a-7691-4475-be79-f33d491eb83d:localhost]

2023-02-17 22:03:59 | [Mutex] waiting for: [received:nodes:3f138f3a-7691-4475-be79-f33d491eb83d:localhost]

2023-02-17 22:03:59 | [Mutex] received everything.

2023-02-17 22:03:59 | [Mutex] isItemNotified: received:node:3f138f3a-7691-4475-be79-f33d491eb83d:localhost:node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d:Node 4287ddac-3f5d-42ac-a9c9-7409195c7e6d :: false

2023-02-17 22:03:59 | [Mutex] waiting for: [received:nodes:85176865-c296-4117-bc5c-7d7f5760cb45:localhost]

2023-02-17 22:03:59 | [Mutex] received everything.

2023-02-17 22:03:59 | [Mutex] isItemNotified: received:node:85176865-c296-4117-bc5c-7d7f5760cb45:localhost:node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d:Node 4287ddac-3f5d-42ac-a9c9-7409195c7e6d :: false

publishItemsToNodes 0.082s
2023-02-17 22:03:57 |

2023-02-17 22:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:57 | ------------------------------------

2023-02-17 22:03:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d",
    "entry": "<test>item-7383c7d6-0e60-4271-8ab5-a709492bf111</test>",
    "item-id": "item-7383c7d6-0e60-4271-8ab5-a709492bf111"
}

2023-02-17 22:03:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7383c7d6-0e60-4271-8ab5-a709492bf111"
}

2023-02-17 22:03:57 | [Mutex] waiting for: [published:item:notifieditem-7383c7d6-0e60-4271-8ab5-a709492bf111:admin@test-domain.com]

2023-02-17 22:03:57 | [Mutex] received everything.

2023-02-17 22:03:57 | [Mutex] isItemNotified: published:item:notifieditem-7383c7d6-0e60-4271-8ab5-a709492bf111:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-02-17 22:03:57 |

2023-02-17 22:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:57 | ------------------------------------

2023-02-17 22:03:57 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d",
    "item-id": "item-7383c7d6-0e60-4271-8ab5-a709492bf111"
}

2023-02-17 22:03:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7383c7d6-0e60-4271-8ab5-a709492bf111"
}

2023-02-17 22:03:57 | [Mutex] received everything.

2023-02-17 22:03:57 | [Mutex] isItemNotified: retracted:item:notifieditem-7383c7d6-0e60-4271-8ab5-a709492bf111:admin@test-domain.com :: true

retrieveItemsFromNodes 0.024s
2023-02-17 22:03:57 |

2023-02-17 22:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:57 | ------------------------------------

2023-02-17 22:03:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d",
    "item-id": "item-7383c7d6-0e60-4271-8ab5-a709492bf111"
}

2023-02-17 22:03:57 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d",
    "item-id": "item-7383c7d6-0e60-4271-8ab5-a709492bf111",
    "item": [
        "<item id=\"item-7383c7d6-0e60-4271-8ab5-a709492bf111\"><test>item-7383c7d6-0e60-4271-8ab5-a709492bf111</test></item>"
    ]
}

2023-02-17 22:03:57 | [Mutex] notify: [retrieved:item:item-7383c7d6-0e60-4271-8ab5-a709492bf111:payload-matches:true:localhost]

2023-02-17 22:03:57 | [Mutex] received everything.

2023-02-17 22:03:57 | [Mutex] isItemNotified: retrieved:item:item-7383c7d6-0e60-4271-8ab5-a709492bf111:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.066s
2023-02-17 22:03:57 |

2023-02-17 22:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:57 | ------------------------------------

2023-02-17 22:03:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-17 22:03:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-aa304fcb-a9bf-46af-8cb7-8b4518db3c46",
        "test",
        "node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-02-17 22:03:57 |

2023-02-17 22:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:57 | ------------------------------------

2023-02-17 22:03:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d)"
}

2023-02-17 22:03:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-02-17 22:03:56 |

2023-02-17 22:03:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:56 | ------------------------------------

2023-02-17 22:03:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 22:03:56 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2023-02-17 22:03:57 |

2023-02-17 22:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 22:03:57 | ------------------------------------

2023-02-17 22:03:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4287ddac-3f5d-42ac-a9c9-7409195c7e6d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 22:03:57 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}