Generated by TestNG with ReportNG at 22:17 PDT on Saturday 09 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.740s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2022-07-09 22:32:58 |

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

2022-07-09 22:32:58 | ------------------------------------

2022-07-09 22:32:58 | [Mutex] waiting for: [configured:node:node-1e9adc54-adca-41db-9f05-70744fa7e938:node-8bafc055-60d0-431f-9d5d-3b4de5980a07]

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

2022-07-09 22:32:58 | [Mutex] isItemNotified: configured:node:node-1e9adc54-adca-41db-9f05-70744fa7e938:node-8bafc055-60d0-431f-9d5d-3b4de5980a07 :: true

2022-07-09 22:32:59 | [Mutex] waiting for: [received:nodes:eec495d8-55ed-4689-8f6d-9652f6f5cb6a:localhost]

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

2022-07-09 22:32:59 | [Mutex] isItemNotified: received:node:eec495d8-55ed-4689-8f6d-9652f6f5cb6a:localhost:node-1e9adc54-adca-41db-9f05-70744fa7e938:Node 1e9adc54-adca-41db-9f05-70744fa7e938 :: true

2022-07-09 22:32:59 | [Mutex] waiting for: [received:nodes:373dc9aa-b0ab-46db-9961-be558de40605:localhost]

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

2022-07-09 22:32:59 | [Mutex] isItemNotified: received:node:373dc9aa-b0ab-46db-9961-be558de40605:localhost:node-1e9adc54-adca-41db-9f05-70744fa7e938:Node 1e9adc54-adca-41db-9f05-70744fa7e938 :: false

createNodes 1.597s
2022-07-09 22:32:56 |

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

2022-07-09 22:32:56 | ------------------------------------

2022-07-09 22:32:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1e9adc54-adca-41db-9f05-70744fa7e938",
    "pubsub#title": "Node 1e9adc54-adca-41db-9f05-70744fa7e938"
}

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

2022-07-09 22:32:57 | [Mutex] waiting for: [received:nodes:e910042f-4744-4995-b546-ee1b513a2039:localhost]

2022-07-09 22:32:57 | [Mutex] waiting for: [received:nodes:e910042f-4744-4995-b546-ee1b513a2039:localhost]

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

2022-07-09 22:32:57 | [Mutex] isItemNotified: received:node:e910042f-4744-4995-b546-ee1b513a2039:localhost:node-1e9adc54-adca-41db-9f05-70744fa7e938:Node 1e9adc54-adca-41db-9f05-70744fa7e938 :: true

createSubnodes 1.022s
2022-07-09 22:32:57 |

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

2022-07-09 22:32:57 | ------------------------------------

2022-07-09 22:32:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8bafc055-60d0-431f-9d5d-3b4de5980a07",
    "pubsub#title": "Node 8bafc055-60d0-431f-9d5d-3b4de5980a07"
}

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

2022-07-09 22:32:58 | [Mutex] waiting for: [received:nodes:d3049ae9-59e9-48cd-8e62-485f9b0d2590:localhost]

2022-07-09 22:32:58 | [Mutex] waiting for: [received:nodes:d3049ae9-59e9-48cd-8e62-485f9b0d2590:localhost]

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

2022-07-09 22:32:58 | [Mutex] isItemNotified: received:node:d3049ae9-59e9-48cd-8e62-485f9b0d2590:localhost:node-8bafc055-60d0-431f-9d5d-3b4de5980a07:Node 8bafc055-60d0-431f-9d5d-3b4de5980a07 :: true

deleteNodes 1.019s
2022-07-09 22:33:03 |

2022-07-09 22:33:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 22:33:03 | ------------------------------------

2022-07-09 22:33:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8bafc055-60d0-431f-9d5d-3b4de5980a07"
}

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

2022-07-09 22:33:04 | [Mutex] waiting for: [received:nodes:f5b32bfc-8ac2-4761-9e55-4c1350e4ec42:localhost]

2022-07-09 22:33:04 | [Mutex] received everything.

2022-07-09 22:33:04 | [Mutex] isItemNotified: received:node:f5b32bfc-8ac2-4761-9e55-4c1350e4ec42:localhost:node-8bafc055-60d0-431f-9d5d-3b4de5980a07:Node 8bafc055-60d0-431f-9d5d-3b4de5980a07 :: false

deleteSubnodes 1.062s
2022-07-09 22:33:02 |

2022-07-09 22:33:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 22:33:02 | ------------------------------------

2022-07-09 22:33:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1e9adc54-adca-41db-9f05-70744fa7e938"
}

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

2022-07-09 22:33:03 | [Mutex] waiting for: [received:nodes:8bbc566f-7610-41de-a693-8be3a5b32133:localhost]

2022-07-09 22:33:03 | [Mutex] waiting for: [received:nodes:8bbc566f-7610-41de-a693-8be3a5b32133:localhost]

2022-07-09 22:33:03 | [Mutex] received everything.

2022-07-09 22:33:03 | [Mutex] isItemNotified: received:node:8bbc566f-7610-41de-a693-8be3a5b32133:localhost:node-1e9adc54-adca-41db-9f05-70744fa7e938:Node 1e9adc54-adca-41db-9f05-70744fa7e938 :: false

2022-07-09 22:33:03 | [Mutex] waiting for: [received:nodes:0c8d4322-2783-411f-8b50-8577707a9e13:localhost]

2022-07-09 22:33:03 | [Mutex] received everything.

2022-07-09 22:33:03 | [Mutex] isItemNotified: received:node:0c8d4322-2783-411f-8b50-8577707a9e13:localhost:node-1e9adc54-adca-41db-9f05-70744fa7e938:Node 1e9adc54-adca-41db-9f05-70744fa7e938 :: false

publishItemsToNodes 0.027s
2022-07-09 22:33:00 |

2022-07-09 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 22:33:00 | ------------------------------------

2022-07-09 22:33:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1e9adc54-adca-41db-9f05-70744fa7e938",
    "entry": "<test>item-23af253c-9219-492d-8e0e-22560ad9b126</test>",
    "item-id": "item-23af253c-9219-492d-8e0e-22560ad9b126"
}

2022-07-09 22:33:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-23af253c-9219-492d-8e0e-22560ad9b126"
}

2022-07-09 22:33:00 | [Mutex] waiting for: [published:item:notifieditem-23af253c-9219-492d-8e0e-22560ad9b126:admin@test-domain.com]

2022-07-09 22:33:00 | [Mutex] received everything.

2022-07-09 22:33:00 | [Mutex] isItemNotified: published:item:notifieditem-23af253c-9219-492d-8e0e-22560ad9b126:admin@test-domain.com :: true

retractItemsFromNodes 0.075s
2022-07-09 22:33:01 |

2022-07-09 22:33:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 22:33:01 | ------------------------------------

2022-07-09 22:33:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1e9adc54-adca-41db-9f05-70744fa7e938",
    "item-id": "item-23af253c-9219-492d-8e0e-22560ad9b126"
}

2022-07-09 22:33:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-23af253c-9219-492d-8e0e-22560ad9b126"
}

2022-07-09 22:33:01 | [Mutex] received everything.

2022-07-09 22:33:01 | [Mutex] isItemNotified: retracted:item:notifieditem-23af253c-9219-492d-8e0e-22560ad9b126:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2022-07-09 22:33:00 |

2022-07-09 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 22:33:00 | ------------------------------------

2022-07-09 22:33:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1e9adc54-adca-41db-9f05-70744fa7e938",
    "item-id": "item-23af253c-9219-492d-8e0e-22560ad9b126"
}

2022-07-09 22:33:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1e9adc54-adca-41db-9f05-70744fa7e938",
    "item-id": "item-23af253c-9219-492d-8e0e-22560ad9b126",
    "item": [
        "<item id=\"item-23af253c-9219-492d-8e0e-22560ad9b126\"><test>item-23af253c-9219-492d-8e0e-22560ad9b126</test></item>"
    ]
}

2022-07-09 22:33:01 | [Mutex] notify: [retrieved:item:item-23af253c-9219-492d-8e0e-22560ad9b126:payload-matches:true:localhost]

2022-07-09 22:33:01 | [Mutex] received everything.

2022-07-09 22:33:01 | [Mutex] isItemNotified: retrieved:item:item-23af253c-9219-492d-8e0e-22560ad9b126:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-07-09 22:33:01 |

2022-07-09 22:33:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 22:33:01 | ------------------------------------

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

2022-07-09 22:33:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1e9adc54-adca-41db-9f05-70744fa7e938",
        "node-8bafc055-60d0-431f-9d5d-3b4de5980a07"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-07-09 22:33:01 |

2022-07-09 22:33:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 22:33:01 | ------------------------------------

2022-07-09 22:33:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1e9adc54-adca-41db-9f05-70744fa7e938)"
}

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

subscribeNodes 1.015s
2022-07-09 22:32:59 |

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

2022-07-09 22:32:59 | ------------------------------------

2022-07-09 22:32:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1e9adc54-adca-41db-9f05-70744fa7e938",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2022-07-09 22:33:01 |

2022-07-09 22:33:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 22:33:01 | ------------------------------------

2022-07-09 22:33:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1e9adc54-adca-41db-9f05-70744fa7e938",
    "jids": [
        "admin@test-domain.com"
    ]
}

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