Generated by TestNG with ReportNG at 22:15 PDT on Thursday 23 March 2023
root@7c41cec37518 / 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.554s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2023-03-23 22:30:15 |

2023-03-23 22:30:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:15 | ------------------------------------

2023-03-23 22:30:15 | [Mutex] waiting for: [configured:node:node-e14fdba3-1d5d-4962-a21e-c5e59614d009:node-f117a792-35c0-40d4-9b58-62dde47c78ba]

2023-03-23 22:30:15 | [Mutex] received everything.

2023-03-23 22:30:15 | [Mutex] isItemNotified: configured:node:node-e14fdba3-1d5d-4962-a21e-c5e59614d009:node-f117a792-35c0-40d4-9b58-62dde47c78ba :: true

2023-03-23 22:30:16 | [Mutex] waiting for: [received:nodes:24b8f3c4-b5c5-42ca-8f0f-c71eae46fab7:localhost]

2023-03-23 22:30:16 | [Mutex] received everything.

2023-03-23 22:30:16 | [Mutex] isItemNotified: received:node:24b8f3c4-b5c5-42ca-8f0f-c71eae46fab7:localhost:node-e14fdba3-1d5d-4962-a21e-c5e59614d009:Node e14fdba3-1d5d-4962-a21e-c5e59614d009 :: true

2023-03-23 22:30:16 | [Mutex] waiting for: [received:nodes:1ffdee46-aa71-4069-bab8-a977f272b4a0:localhost]

2023-03-23 22:30:16 | [Mutex] waiting for: [received:nodes:1ffdee46-aa71-4069-bab8-a977f272b4a0:localhost]

2023-03-23 22:30:16 | [Mutex] waiting for: [received:nodes:1ffdee46-aa71-4069-bab8-a977f272b4a0:localhost]

2023-03-23 22:30:16 | [Mutex] received everything.

2023-03-23 22:30:16 | [Mutex] isItemNotified: received:node:1ffdee46-aa71-4069-bab8-a977f272b4a0:localhost:node-e14fdba3-1d5d-4962-a21e-c5e59614d009:Node e14fdba3-1d5d-4962-a21e-c5e59614d009 :: false

createNodes 1.565s
2023-03-23 22:30:12 |

2023-03-23 22:30:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:12 | ------------------------------------

2023-03-23 22:30:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e14fdba3-1d5d-4962-a21e-c5e59614d009",
    "pubsub#title": "Node e14fdba3-1d5d-4962-a21e-c5e59614d009"
}

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

2023-03-23 22:30:14 | [Mutex] waiting for: [received:nodes:d7542c04-063e-4007-a2db-3c999f3fe481:localhost]

2023-03-23 22:30:14 | [Mutex] waiting for: [received:nodes:d7542c04-063e-4007-a2db-3c999f3fe481:localhost]

2023-03-23 22:30:14 | [Mutex] waiting for: [received:nodes:d7542c04-063e-4007-a2db-3c999f3fe481:localhost]

2023-03-23 22:30:14 | [Mutex] waiting for: [received:nodes:d7542c04-063e-4007-a2db-3c999f3fe481:localhost]

2023-03-23 22:30:14 | [Mutex] received everything.

2023-03-23 22:30:14 | [Mutex] isItemNotified: received:node:d7542c04-063e-4007-a2db-3c999f3fe481:localhost:node-e14fdba3-1d5d-4962-a21e-c5e59614d009:Node e14fdba3-1d5d-4962-a21e-c5e59614d009 :: true

createSubnodes 1.026s
2023-03-23 22:30:14 |

2023-03-23 22:30:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:14 | ------------------------------------

2023-03-23 22:30:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f117a792-35c0-40d4-9b58-62dde47c78ba",
    "pubsub#title": "Node f117a792-35c0-40d4-9b58-62dde47c78ba"
}

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

2023-03-23 22:30:15 | [Mutex] waiting for: [received:nodes:ffa9d066-b78d-4cb5-b4c4-61d2310302e9:localhost]

2023-03-23 22:30:15 | [Mutex] waiting for: [received:nodes:ffa9d066-b78d-4cb5-b4c4-61d2310302e9:localhost]

2023-03-23 22:30:15 | [Mutex] waiting for: [received:nodes:ffa9d066-b78d-4cb5-b4c4-61d2310302e9:localhost]

2023-03-23 22:30:15 | [Mutex] waiting for: [received:nodes:ffa9d066-b78d-4cb5-b4c4-61d2310302e9:localhost]

2023-03-23 22:30:15 | [Mutex] received everything.

2023-03-23 22:30:15 | [Mutex] isItemNotified: received:node:ffa9d066-b78d-4cb5-b4c4-61d2310302e9:localhost:node-f117a792-35c0-40d4-9b58-62dde47c78ba:Node f117a792-35c0-40d4-9b58-62dde47c78ba :: true

deleteNodes 1.016s
2023-03-23 22:30:19 |

2023-03-23 22:30:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:19 | ------------------------------------

2023-03-23 22:30:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f117a792-35c0-40d4-9b58-62dde47c78ba"
}

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

2023-03-23 22:30:20 | [Mutex] waiting for: [received:nodes:40e334ea-d321-402a-a395-93c93047fa93:localhost]

2023-03-23 22:30:20 | [Mutex] waiting for: [received:nodes:40e334ea-d321-402a-a395-93c93047fa93:localhost]

2023-03-23 22:30:20 | [Mutex] waiting for: [received:nodes:40e334ea-d321-402a-a395-93c93047fa93:localhost]

2023-03-23 22:30:20 | [Mutex] received everything.

2023-03-23 22:30:20 | [Mutex] isItemNotified: received:node:40e334ea-d321-402a-a395-93c93047fa93:localhost:node-f117a792-35c0-40d4-9b58-62dde47c78ba:Node f117a792-35c0-40d4-9b58-62dde47c78ba :: false

deleteSubnodes 1.025s
2023-03-23 22:30:18 |

2023-03-23 22:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:18 | ------------------------------------

2023-03-23 22:30:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e14fdba3-1d5d-4962-a21e-c5e59614d009"
}

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

2023-03-23 22:30:19 | [Mutex] waiting for: [received:nodes:6bf28a47-3657-44a7-acb4-3005999a2720:localhost]

2023-03-23 22:30:19 | [Mutex] waiting for: [received:nodes:6bf28a47-3657-44a7-acb4-3005999a2720:localhost]

2023-03-23 22:30:19 | [Mutex] waiting for: [received:nodes:6bf28a47-3657-44a7-acb4-3005999a2720:localhost]

2023-03-23 22:30:19 | [Mutex] waiting for: [received:nodes:6bf28a47-3657-44a7-acb4-3005999a2720:localhost]

2023-03-23 22:30:19 | [Mutex] received everything.

2023-03-23 22:30:19 | [Mutex] isItemNotified: received:node:6bf28a47-3657-44a7-acb4-3005999a2720:localhost:node-e14fdba3-1d5d-4962-a21e-c5e59614d009:Node e14fdba3-1d5d-4962-a21e-c5e59614d009 :: false

2023-03-23 22:30:19 | [Mutex] waiting for: [received:nodes:05732122-9d5e-463b-b7c5-efeb4a24455e:localhost]

2023-03-23 22:30:19 | [Mutex] received everything.

2023-03-23 22:30:19 | [Mutex] isItemNotified: received:node:05732122-9d5e-463b-b7c5-efeb4a24455e:localhost:node-e14fdba3-1d5d-4962-a21e-c5e59614d009:Node e14fdba3-1d5d-4962-a21e-c5e59614d009 :: false

publishItemsToNodes 0.038s
2023-03-23 22:30:17 |

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

2023-03-23 22:30:17 | ------------------------------------

2023-03-23 22:30:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e14fdba3-1d5d-4962-a21e-c5e59614d009",
    "entry": "<test>item-541ffc65-412f-4231-88e7-8e149b979d37</test>",
    "item-id": "item-541ffc65-412f-4231-88e7-8e149b979d37"
}

2023-03-23 22:30:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-541ffc65-412f-4231-88e7-8e149b979d37"
}

2023-03-23 22:30:17 | [Mutex] waiting for: [published:item:notifieditem-541ffc65-412f-4231-88e7-8e149b979d37:admin@test-domain.com]

2023-03-23 22:30:17 | [Mutex] received everything.

2023-03-23 22:30:17 | [Mutex] isItemNotified: published:item:notifieditem-541ffc65-412f-4231-88e7-8e149b979d37:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-03-23 22:30:17 |

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

2023-03-23 22:30:17 | ------------------------------------

2023-03-23 22:30:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e14fdba3-1d5d-4962-a21e-c5e59614d009",
    "item-id": "item-541ffc65-412f-4231-88e7-8e149b979d37"
}

2023-03-23 22:30:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-541ffc65-412f-4231-88e7-8e149b979d37"
}

2023-03-23 22:30:17 | [Mutex] received everything.

2023-03-23 22:30:17 | [Mutex] isItemNotified: retracted:item:notifieditem-541ffc65-412f-4231-88e7-8e149b979d37:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2023-03-23 22:30:17 |

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

2023-03-23 22:30:17 | ------------------------------------

2023-03-23 22:30:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e14fdba3-1d5d-4962-a21e-c5e59614d009",
    "item-id": "item-541ffc65-412f-4231-88e7-8e149b979d37"
}

2023-03-23 22:30:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e14fdba3-1d5d-4962-a21e-c5e59614d009",
    "item-id": "item-541ffc65-412f-4231-88e7-8e149b979d37",
    "item": [
        "<item id=\"item-541ffc65-412f-4231-88e7-8e149b979d37\"><test>item-541ffc65-412f-4231-88e7-8e149b979d37</test></item>"
    ]
}

2023-03-23 22:30:17 | [Mutex] notify: [retrieved:item:item-541ffc65-412f-4231-88e7-8e149b979d37:payload-matches:true:localhost]

2023-03-23 22:30:17 | [Mutex] received everything.

2023-03-23 22:30:17 | [Mutex] isItemNotified: retrieved:item:item-541ffc65-412f-4231-88e7-8e149b979d37:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-03-23 22:30:17 |

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

2023-03-23 22:30:17 | ------------------------------------

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

2023-03-23 22:30:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e14fdba3-1d5d-4962-a21e-c5e59614d009",
        "node-f117a792-35c0-40d4-9b58-62dde47c78ba",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-03-23 22:30:17 |

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

2023-03-23 22:30:17 | ------------------------------------

2023-03-23 22:30:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e14fdba3-1d5d-4962-a21e-c5e59614d009)"
}

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

subscribeNodes 1.008s
2023-03-23 22:30:16 |

2023-03-23 22:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:16 | ------------------------------------

2023-03-23 22:30:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e14fdba3-1d5d-4962-a21e-c5e59614d009",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.067s
2023-03-23 22:30:17 |

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

2023-03-23 22:30:17 | ------------------------------------

2023-03-23 22:30:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e14fdba3-1d5d-4962-a21e-c5e59614d009",
    "jids": [
        "admin@test-domain.com"
    ]
}

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