Generated by TestNG with ReportNG at 07:21 PST on Monday 06 March 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.689s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2023-03-06 07:36:21 |

2023-03-06 07:36:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:21 | ------------------------------------

2023-03-06 07:36:21 | [Mutex] waiting for: [configured:node:node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8:node-93ccff99-b59b-4428-b293-86c17f0f59af]

2023-03-06 07:36:21 | [Mutex] received everything.

2023-03-06 07:36:21 | [Mutex] isItemNotified: configured:node:node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8:node-93ccff99-b59b-4428-b293-86c17f0f59af :: true

2023-03-06 07:36:22 | [Mutex] waiting for: [received:nodes:9d48e39b-1c6a-46fb-bc92-94e0fbf40ea0:localhost]

2023-03-06 07:36:22 | [Mutex] received everything.

2023-03-06 07:36:22 | [Mutex] isItemNotified: received:node:9d48e39b-1c6a-46fb-bc92-94e0fbf40ea0:localhost:node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8:Node 76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8 :: true

2023-03-06 07:36:22 | [Mutex] waiting for: [received:nodes:47c3f6f5-10ee-4d03-b777-98a1bb31a9bf:localhost]

2023-03-06 07:36:22 | [Mutex] received everything.

2023-03-06 07:36:22 | [Mutex] isItemNotified: received:node:47c3f6f5-10ee-4d03-b777-98a1bb31a9bf:localhost:node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8:Node 76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8 :: false

createNodes 1.688s
2023-03-06 07:36:18 |

2023-03-06 07:36:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:18 | ------------------------------------

2023-03-06 07:36:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8",
    "pubsub#title": "Node 76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8"
}

2023-03-06 07:36:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:36:20 | [Mutex] waiting for: [received:nodes:f248287d-747f-4b31-a028-23d919a93a61:localhost]

2023-03-06 07:36:20 | [Mutex] waiting for: [received:nodes:f248287d-747f-4b31-a028-23d919a93a61:localhost]

2023-03-06 07:36:20 | [Mutex] waiting for: [received:nodes:f248287d-747f-4b31-a028-23d919a93a61:localhost]

2023-03-06 07:36:20 | [Mutex] waiting for: [received:nodes:f248287d-747f-4b31-a028-23d919a93a61:localhost]

2023-03-06 07:36:20 | [Mutex] received everything.

2023-03-06 07:36:20 | [Mutex] isItemNotified: received:node:f248287d-747f-4b31-a028-23d919a93a61:localhost:node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8:Node 76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8 :: true

createSubnodes 1.022s
2023-03-06 07:36:20 |

2023-03-06 07:36:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:20 | ------------------------------------

2023-03-06 07:36:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-93ccff99-b59b-4428-b293-86c17f0f59af",
    "pubsub#title": "Node 93ccff99-b59b-4428-b293-86c17f0f59af"
}

2023-03-06 07:36:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:36:21 | [Mutex] waiting for: [received:nodes:87591e51-3e14-4389-bdb6-45529e4cdf3d:localhost]

2023-03-06 07:36:21 | [Mutex] waiting for: [received:nodes:87591e51-3e14-4389-bdb6-45529e4cdf3d:localhost]

2023-03-06 07:36:21 | [Mutex] waiting for: [received:nodes:87591e51-3e14-4389-bdb6-45529e4cdf3d:localhost]

2023-03-06 07:36:21 | [Mutex] waiting for: [received:nodes:87591e51-3e14-4389-bdb6-45529e4cdf3d:localhost]

2023-03-06 07:36:21 | [Mutex] received everything.

2023-03-06 07:36:21 | [Mutex] isItemNotified: received:node:87591e51-3e14-4389-bdb6-45529e4cdf3d:localhost:node-93ccff99-b59b-4428-b293-86c17f0f59af:Node 93ccff99-b59b-4428-b293-86c17f0f59af :: true

deleteNodes 1.021s
2023-03-06 07:36:25 |

2023-03-06 07:36:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:25 | ------------------------------------

2023-03-06 07:36:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-93ccff99-b59b-4428-b293-86c17f0f59af"
}

2023-03-06 07:36:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:36:26 | [Mutex] waiting for: [received:nodes:4c06e5a5-72c5-449c-a0ec-d565f3e2fed2:localhost]

2023-03-06 07:36:26 | [Mutex] waiting for: [received:nodes:4c06e5a5-72c5-449c-a0ec-d565f3e2fed2:localhost]

2023-03-06 07:36:26 | [Mutex] waiting for: [received:nodes:4c06e5a5-72c5-449c-a0ec-d565f3e2fed2:localhost]

2023-03-06 07:36:26 | [Mutex] received everything.

2023-03-06 07:36:26 | [Mutex] isItemNotified: received:node:4c06e5a5-72c5-449c-a0ec-d565f3e2fed2:localhost:node-93ccff99-b59b-4428-b293-86c17f0f59af:Node 93ccff99-b59b-4428-b293-86c17f0f59af :: false

deleteSubnodes 1.031s
2023-03-06 07:36:24 |

2023-03-06 07:36:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:24 | ------------------------------------

2023-03-06 07:36:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8"
}

2023-03-06 07:36:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:36:25 | [Mutex] waiting for: [received:nodes:a3692c96-8ebe-4603-b6a1-59397a742d1c:localhost]

2023-03-06 07:36:25 | [Mutex] waiting for: [received:nodes:a3692c96-8ebe-4603-b6a1-59397a742d1c:localhost]

2023-03-06 07:36:25 | [Mutex] waiting for: [received:nodes:a3692c96-8ebe-4603-b6a1-59397a742d1c:localhost]

2023-03-06 07:36:25 | [Mutex] received everything.

2023-03-06 07:36:25 | [Mutex] isItemNotified: received:node:a3692c96-8ebe-4603-b6a1-59397a742d1c:localhost:node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8:Node 76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8 :: false

2023-03-06 07:36:25 | [Mutex] waiting for: [received:nodes:8023586a-62d4-4ea7-a221-4120609df1a8:localhost]

2023-03-06 07:36:25 | [Mutex] received everything.

2023-03-06 07:36:25 | [Mutex] isItemNotified: received:node:8023586a-62d4-4ea7-a221-4120609df1a8:localhost:node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8:Node 76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8 :: false

publishItemsToNodes 0.054s
2023-03-06 07:36:23 |

2023-03-06 07:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:23 | ------------------------------------

2023-03-06 07:36:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8",
    "entry": "<test>item-75206696-0823-4853-b9a0-24a2c3df2820</test>",
    "item-id": "item-75206696-0823-4853-b9a0-24a2c3df2820"
}

2023-03-06 07:36:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-75206696-0823-4853-b9a0-24a2c3df2820"
}

2023-03-06 07:36:23 | [Mutex] waiting for: [published:item:notifieditem-75206696-0823-4853-b9a0-24a2c3df2820:admin@test-domain.com]

2023-03-06 07:36:23 | [Mutex] received everything.

2023-03-06 07:36:23 | [Mutex] isItemNotified: published:item:notifieditem-75206696-0823-4853-b9a0-24a2c3df2820:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-03-06 07:36:23 |

2023-03-06 07:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:23 | ------------------------------------

2023-03-06 07:36:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8",
    "item-id": "item-75206696-0823-4853-b9a0-24a2c3df2820"
}

2023-03-06 07:36:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-75206696-0823-4853-b9a0-24a2c3df2820"
}

2023-03-06 07:36:23 | [Mutex] received everything.

2023-03-06 07:36:23 | [Mutex] isItemNotified: retracted:item:notifieditem-75206696-0823-4853-b9a0-24a2c3df2820:admin@test-domain.com :: true

retrieveItemsFromNodes 0.026s
2023-03-06 07:36:23 |

2023-03-06 07:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:23 | ------------------------------------

2023-03-06 07:36:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8",
    "item-id": "item-75206696-0823-4853-b9a0-24a2c3df2820"
}

2023-03-06 07:36:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8",
    "item-id": "item-75206696-0823-4853-b9a0-24a2c3df2820",
    "item": [
        "<item id=\"item-75206696-0823-4853-b9a0-24a2c3df2820\"><test>item-75206696-0823-4853-b9a0-24a2c3df2820</test></item>"
    ]
}

2023-03-06 07:36:23 | [Mutex] notify: [retrieved:item:item-75206696-0823-4853-b9a0-24a2c3df2820:payload-matches:true:localhost]

2023-03-06 07:36:23 | [Mutex] received everything.

2023-03-06 07:36:23 | [Mutex] isItemNotified: retrieved:item:item-75206696-0823-4853-b9a0-24a2c3df2820:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2023-03-06 07:36:23 |

2023-03-06 07:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:23 | ------------------------------------

2023-03-06 07:36:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-06 07:36:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8",
        "test",
        "node-93ccff99-b59b-4428-b293-86c17f0f59af"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2023-03-06 07:36:23 |

2023-03-06 07:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:23 | ------------------------------------

2023-03-06 07:36:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8)"
}

2023-03-06 07:36:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-03-06 07:36:22 |

2023-03-06 07:36:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:22 | ------------------------------------

2023-03-06 07:36:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.116s
2023-03-06 07:36:23 |

2023-03-06 07:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:36:23 | ------------------------------------

2023-03-06 07:36:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-76dc66ca-b1ee-4c42-b95b-2bbe8c0c5ca8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 07:36:23 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}