Generated by TestNG with ReportNG at 22:18 PDT on Monday 18 July 2022
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.741s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2022-07-18 22:32:20 |

2022-07-18 22:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:20 | ------------------------------------

2022-07-18 22:32:20 | [Mutex] waiting for: [configured:node:node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6:node-11dc2685-5bd8-470f-9b4e-27ced2cfa2d4]

2022-07-18 22:32:20 | [Mutex] received everything.

2022-07-18 22:32:20 | [Mutex] isItemNotified: configured:node:node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6:node-11dc2685-5bd8-470f-9b4e-27ced2cfa2d4 :: true

2022-07-18 22:32:21 | [Mutex] waiting for: [received:nodes:a8cca1f7-f779-4c99-97b8-3bd88af0cf65:localhost]

2022-07-18 22:32:21 | [Mutex] received everything.

2022-07-18 22:32:21 | [Mutex] isItemNotified: received:node:a8cca1f7-f779-4c99-97b8-3bd88af0cf65:localhost:node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6:Node 4dc762e4-ccfa-4d76-97c3-fae0692b02b6 :: true

2022-07-18 22:32:21 | [Mutex] waiting for: [received:nodes:ea1fe7de-c099-425a-868f-ded1abd0b402:localhost]

2022-07-18 22:32:21 | [Mutex] received everything.

2022-07-18 22:32:21 | [Mutex] isItemNotified: received:node:ea1fe7de-c099-425a-868f-ded1abd0b402:localhost:node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6:Node 4dc762e4-ccfa-4d76-97c3-fae0692b02b6 :: false

createNodes 1.630s
2022-07-18 22:32:17 |

2022-07-18 22:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:17 | ------------------------------------

2022-07-18 22:32:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6",
    "pubsub#title": "Node 4dc762e4-ccfa-4d76-97c3-fae0692b02b6"
}

2022-07-18 22:32:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 22:32:19 | [Mutex] waiting for: [received:nodes:0bd33684-9db5-46bf-a8e0-7d19ef70671d:localhost]

2022-07-18 22:32:19 | [Mutex] received everything.

2022-07-18 22:32:19 | [Mutex] isItemNotified: received:node:0bd33684-9db5-46bf-a8e0-7d19ef70671d:localhost:node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6:Node 4dc762e4-ccfa-4d76-97c3-fae0692b02b6 :: true

createSubnodes 1.021s
2022-07-18 22:32:19 |

2022-07-18 22:32:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:19 | ------------------------------------

2022-07-18 22:32:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-11dc2685-5bd8-470f-9b4e-27ced2cfa2d4",
    "pubsub#title": "Node 11dc2685-5bd8-470f-9b4e-27ced2cfa2d4"
}

2022-07-18 22:32:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 22:32:20 | [Mutex] waiting for: [received:nodes:f842e032-e72b-4877-9aee-dec981640f65:localhost]

2022-07-18 22:32:20 | [Mutex] waiting for: [received:nodes:f842e032-e72b-4877-9aee-dec981640f65:localhost]

2022-07-18 22:32:20 | [Mutex] received everything.

2022-07-18 22:32:20 | [Mutex] isItemNotified: received:node:f842e032-e72b-4877-9aee-dec981640f65:localhost:node-11dc2685-5bd8-470f-9b4e-27ced2cfa2d4:Node 11dc2685-5bd8-470f-9b4e-27ced2cfa2d4 :: true

deleteNodes 1.022s
2022-07-18 22:32:24 |

2022-07-18 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:24 | ------------------------------------

2022-07-18 22:32:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-11dc2685-5bd8-470f-9b4e-27ced2cfa2d4"
}

2022-07-18 22:32:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-18 22:32:25 | [Mutex] waiting for: [received:nodes:e6dfd9fd-7a50-42a2-98a4-a1cc8434e991:localhost]

2022-07-18 22:32:25 | [Mutex] received everything.

2022-07-18 22:32:25 | [Mutex] isItemNotified: received:node:e6dfd9fd-7a50-42a2-98a4-a1cc8434e991:localhost:node-11dc2685-5bd8-470f-9b4e-27ced2cfa2d4:Node 11dc2685-5bd8-470f-9b4e-27ced2cfa2d4 :: false

deleteSubnodes 1.025s
2022-07-18 22:32:23 |

2022-07-18 22:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:23 | ------------------------------------

2022-07-18 22:32:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6"
}

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

2022-07-18 22:32:24 | [Mutex] waiting for: [received:nodes:1c97a1b4-ec33-453d-ad9f-38e45e742150:localhost]

2022-07-18 22:32:24 | [Mutex] received everything.

2022-07-18 22:32:24 | [Mutex] isItemNotified: received:node:1c97a1b4-ec33-453d-ad9f-38e45e742150:localhost:node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6:Node 4dc762e4-ccfa-4d76-97c3-fae0692b02b6 :: false

2022-07-18 22:32:24 | [Mutex] waiting for: [received:nodes:76cfffe9-86af-4a88-8072-ce91eb65ee97:localhost]

2022-07-18 22:32:24 | [Mutex] received everything.

2022-07-18 22:32:24 | [Mutex] isItemNotified: received:node:76cfffe9-86af-4a88-8072-ce91eb65ee97:localhost:node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6:Node 4dc762e4-ccfa-4d76-97c3-fae0692b02b6 :: false

publishItemsToNodes 0.041s
2022-07-18 22:32:22 |

2022-07-18 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:22 | ------------------------------------

2022-07-18 22:32:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6",
    "entry": "<test>item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02</test>",
    "item-id": "item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02"
}

2022-07-18 22:32:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02"
}

2022-07-18 22:32:22 | [Mutex] waiting for: [published:item:notifieditem-343fb4bf-a4f8-49ae-b92a-b4296fff8f02:admin@test-domain.com]

2022-07-18 22:32:22 | [Mutex] received everything.

2022-07-18 22:32:22 | [Mutex] isItemNotified: published:item:notifieditem-343fb4bf-a4f8-49ae-b92a-b4296fff8f02:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-07-18 22:32:22 |

2022-07-18 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:22 | ------------------------------------

2022-07-18 22:32:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6",
    "item-id": "item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02"
}

2022-07-18 22:32:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02"
}

2022-07-18 22:32:22 | [Mutex] waiting for: [retracted:item:notifieditem-343fb4bf-a4f8-49ae-b92a-b4296fff8f02:admin@test-domain.com]

2022-07-18 22:32:22 | [Mutex] received everything.

2022-07-18 22:32:22 | [Mutex] isItemNotified: retracted:item:notifieditem-343fb4bf-a4f8-49ae-b92a-b4296fff8f02:admin@test-domain.com :: true

retrieveItemsFromNodes 0.105s
2022-07-18 22:32:22 |

2022-07-18 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:22 | ------------------------------------

2022-07-18 22:32:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6",
    "item-id": "item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02"
}

2022-07-18 22:32:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6",
    "item-id": "item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02",
    "item": [
        "<item id=\"item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02\"><test>item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02</test></item>"
    ]
}

2022-07-18 22:32:22 | [Mutex] notify: [retrieved:item:item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02:payload-matches:true:localhost]

2022-07-18 22:32:22 | [Mutex] received everything.

2022-07-18 22:32:22 | [Mutex] isItemNotified: retrieved:item:item-343fb4bf-a4f8-49ae-b92a-b4296fff8f02:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2022-07-18 22:32:22 |

2022-07-18 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:22 | ------------------------------------

2022-07-18 22:32:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-18 22:32:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6",
        "node-11dc2685-5bd8-470f-9b4e-27ced2cfa2d4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-18 22:32:22 |

2022-07-18 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:22 | ------------------------------------

2022-07-18 22:32:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6)"
}

2022-07-18 22:32:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-07-18 22:32:21 |

2022-07-18 22:32:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:21 | ------------------------------------

2022-07-18 22:32:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-18 22:32:21 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-07-18 22:32:22 |

2022-07-18 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-18 22:32:22 | ------------------------------------

2022-07-18 22:32:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4dc762e4-ccfa-4d76-97c3-fae0692b02b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-18 22:32:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}