Generated by TestNG with ReportNG at 21:15 PST on Wednesday 28 December 2022
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.762s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.164s
2022-12-28 21:31:56 |

2022-12-28 21:31:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:56 | ------------------------------------

2022-12-28 21:31:56 | [Mutex] waiting for: [configured:node:node-15fa9786-04de-4e00-b532-060726b47454:node-04154c3b-187d-41db-a04b-ad354e6e09f6]

2022-12-28 21:31:56 | [Mutex] received everything.

2022-12-28 21:31:56 | [Mutex] isItemNotified: configured:node:node-15fa9786-04de-4e00-b532-060726b47454:node-04154c3b-187d-41db-a04b-ad354e6e09f6 :: true

2022-12-28 21:31:57 | [Mutex] waiting for: [received:nodes:8f995a9b-ea12-49a5-b5cd-8db1d30c2cdf:localhost]

2022-12-28 21:31:57 | [Mutex] received everything.

2022-12-28 21:31:57 | [Mutex] isItemNotified: received:node:8f995a9b-ea12-49a5-b5cd-8db1d30c2cdf:localhost:node-15fa9786-04de-4e00-b532-060726b47454:Node 15fa9786-04de-4e00-b532-060726b47454 :: true

2022-12-28 21:31:57 | [Mutex] waiting for: [received:nodes:5e48e978-f3ed-469c-a00e-4a79a6290fe6:localhost]

2022-12-28 21:31:57 | [Mutex] waiting for: [received:nodes:5e48e978-f3ed-469c-a00e-4a79a6290fe6:localhost]

2022-12-28 21:31:57 | [Mutex] received everything.

2022-12-28 21:31:57 | [Mutex] isItemNotified: received:node:5e48e978-f3ed-469c-a00e-4a79a6290fe6:localhost:node-15fa9786-04de-4e00-b532-060726b47454:Node 15fa9786-04de-4e00-b532-060726b47454 :: false

createNodes 1.661s
2022-12-28 21:31:53 |

2022-12-28 21:31:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:53 | ------------------------------------

2022-12-28 21:31:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-15fa9786-04de-4e00-b532-060726b47454",
    "pubsub#title": "Node 15fa9786-04de-4e00-b532-060726b47454"
}

2022-12-28 21:31:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-28 21:31:55 | [Mutex] waiting for: [received:nodes:0b4d98b4-a48a-4685-8f0e-ba0eb6714632:localhost]

2022-12-28 21:31:55 | [Mutex] waiting for: [received:nodes:0b4d98b4-a48a-4685-8f0e-ba0eb6714632:localhost]

2022-12-28 21:31:55 | [Mutex] waiting for: [received:nodes:0b4d98b4-a48a-4685-8f0e-ba0eb6714632:localhost]

2022-12-28 21:31:55 | [Mutex] received everything.

2022-12-28 21:31:55 | [Mutex] isItemNotified: received:node:0b4d98b4-a48a-4685-8f0e-ba0eb6714632:localhost:node-15fa9786-04de-4e00-b532-060726b47454:Node 15fa9786-04de-4e00-b532-060726b47454 :: true

createSubnodes 1.029s
2022-12-28 21:31:55 |

2022-12-28 21:31:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:55 | ------------------------------------

2022-12-28 21:31:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-04154c3b-187d-41db-a04b-ad354e6e09f6",
    "pubsub#title": "Node 04154c3b-187d-41db-a04b-ad354e6e09f6"
}

2022-12-28 21:31:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-28 21:31:56 | [Mutex] waiting for: [received:nodes:4c78186d-0515-4e01-bc89-4ac48b10d47e:localhost]

2022-12-28 21:31:56 | [Mutex] waiting for: [received:nodes:4c78186d-0515-4e01-bc89-4ac48b10d47e:localhost]

2022-12-28 21:31:56 | [Mutex] waiting for: [received:nodes:4c78186d-0515-4e01-bc89-4ac48b10d47e:localhost]

2022-12-28 21:31:56 | [Mutex] waiting for: [received:nodes:4c78186d-0515-4e01-bc89-4ac48b10d47e:localhost]

2022-12-28 21:31:56 | [Mutex] waiting for: [received:nodes:4c78186d-0515-4e01-bc89-4ac48b10d47e:localhost]

2022-12-28 21:31:56 | [Mutex] received everything.

2022-12-28 21:31:56 | [Mutex] isItemNotified: received:node:4c78186d-0515-4e01-bc89-4ac48b10d47e:localhost:node-04154c3b-187d-41db-a04b-ad354e6e09f6:Node 04154c3b-187d-41db-a04b-ad354e6e09f6 :: true

deleteNodes 1.024s
2022-12-28 21:32:01 |

2022-12-28 21:32:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:32:01 | ------------------------------------

2022-12-28 21:32:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-04154c3b-187d-41db-a04b-ad354e6e09f6"
}

2022-12-28 21:32:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-28 21:32:02 | [Mutex] waiting for: [received:nodes:e5514a37-0b52-4b27-872f-b78922fbd47c:localhost]

2022-12-28 21:32:02 | [Mutex] waiting for: [received:nodes:e5514a37-0b52-4b27-872f-b78922fbd47c:localhost]

2022-12-28 21:32:02 | [Mutex] waiting for: [received:nodes:e5514a37-0b52-4b27-872f-b78922fbd47c:localhost]

2022-12-28 21:32:02 | [Mutex] received everything.

2022-12-28 21:32:02 | [Mutex] isItemNotified: received:node:e5514a37-0b52-4b27-872f-b78922fbd47c:localhost:node-04154c3b-187d-41db-a04b-ad354e6e09f6:Node 04154c3b-187d-41db-a04b-ad354e6e09f6 :: false

deleteSubnodes 1.028s
2022-12-28 21:32:00 |

2022-12-28 21:32:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:32:00 | ------------------------------------

2022-12-28 21:32:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-15fa9786-04de-4e00-b532-060726b47454"
}

2022-12-28 21:32:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-28 21:32:01 | [Mutex] waiting for: [received:nodes:4d9d7235-3d16-4abb-96bd-144eaccdc87e:localhost]

2022-12-28 21:32:01 | [Mutex] waiting for: [received:nodes:4d9d7235-3d16-4abb-96bd-144eaccdc87e:localhost]

2022-12-28 21:32:01 | [Mutex] waiting for: [received:nodes:4d9d7235-3d16-4abb-96bd-144eaccdc87e:localhost]

2022-12-28 21:32:01 | [Mutex] waiting for: [received:nodes:4d9d7235-3d16-4abb-96bd-144eaccdc87e:localhost]

2022-12-28 21:32:01 | [Mutex] received everything.

2022-12-28 21:32:01 | [Mutex] isItemNotified: received:node:4d9d7235-3d16-4abb-96bd-144eaccdc87e:localhost:node-15fa9786-04de-4e00-b532-060726b47454:Node 15fa9786-04de-4e00-b532-060726b47454 :: false

2022-12-28 21:32:01 | [Mutex] waiting for: [received:nodes:35ae04f6-3162-4364-a9f1-d43b23e759e4:localhost]

2022-12-28 21:32:01 | [Mutex] received everything.

2022-12-28 21:32:01 | [Mutex] isItemNotified: received:node:35ae04f6-3162-4364-a9f1-d43b23e759e4:localhost:node-15fa9786-04de-4e00-b532-060726b47454:Node 15fa9786-04de-4e00-b532-060726b47454 :: false

publishItemsToNodes 0.048s
2022-12-28 21:31:58 |

2022-12-28 21:31:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:58 | ------------------------------------

2022-12-28 21:31:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-15fa9786-04de-4e00-b532-060726b47454",
    "entry": "<test>item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf</test>",
    "item-id": "item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf"
}

2022-12-28 21:31:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf"
}

2022-12-28 21:31:58 | [Mutex] waiting for: [published:item:notifieditem-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf:admin@test-domain.com]

2022-12-28 21:31:58 | [Mutex] received everything.

2022-12-28 21:31:58 | [Mutex] isItemNotified: published:item:notifieditem-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-12-28 21:31:58 |

2022-12-28 21:31:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:58 | ------------------------------------

2022-12-28 21:31:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-15fa9786-04de-4e00-b532-060726b47454",
    "item-id": "item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf"
}

2022-12-28 21:31:59 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf"
}

2022-12-28 21:31:59 | [Mutex] received everything.

2022-12-28 21:31:59 | [Mutex] isItemNotified: retracted:item:notifieditem-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2022-12-28 21:31:58 |

2022-12-28 21:31:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:58 | ------------------------------------

2022-12-28 21:31:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-15fa9786-04de-4e00-b532-060726b47454",
    "item-id": "item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf"
}

2022-12-28 21:31:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-15fa9786-04de-4e00-b532-060726b47454",
    "item-id": "item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf",
    "item": [
        "<item id=\"item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf\"><test>item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf</test></item>"
    ]
}

2022-12-28 21:31:58 | [Mutex] notify: [retrieved:item:item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf:payload-matches:true:localhost]

2022-12-28 21:31:58 | [Mutex] received everything.

2022-12-28 21:31:58 | [Mutex] isItemNotified: retrieved:item:item-154ed99c-5e98-4b7a-99a1-b6e9a6cb5cbf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-12-28 21:31:58 |

2022-12-28 21:31:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:58 | ------------------------------------

2022-12-28 21:31:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-28 21:31:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-15fa9786-04de-4e00-b532-060726b47454",
        "test",
        "node-04154c3b-187d-41db-a04b-ad354e6e09f6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-12-28 21:31:58 |

2022-12-28 21:31:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:58 | ------------------------------------

2022-12-28 21:31:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-15fa9786-04de-4e00-b532-060726b47454)"
}

2022-12-28 21:31:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-12-28 21:31:57 |

2022-12-28 21:31:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:57 | ------------------------------------

2022-12-28 21:31:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-15fa9786-04de-4e00-b532-060726b47454",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-28 21:31:57 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-12-28 21:31:59 |

2022-12-28 21:31:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-28 21:31:59 | ------------------------------------

2022-12-28 21:31:59 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-15fa9786-04de-4e00-b532-060726b47454",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-28 21:31:59 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}