Generated by TestNG with ReportNG at 21:34 PST on Tuesday 08 February 2022
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.982s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.144s
2022-02-08 21:50:32 |

2022-02-08 21:50:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:32 | ------------------------------------

2022-02-08 21:50:32 | [Mutex] waiting for: [configured:node:node-4824dcc2-e4ca-4111-8f5c-8d38269affdc:node-1df0e889-11e3-4490-98b9-0816758fdcdd]

2022-02-08 21:50:32 | [Mutex] received everything.

2022-02-08 21:50:32 | [Mutex] isItemNotified: configured:node:node-4824dcc2-e4ca-4111-8f5c-8d38269affdc:node-1df0e889-11e3-4490-98b9-0816758fdcdd :: true

2022-02-08 21:50:33 | [Mutex] waiting for: [received:nodes:7ae8d896-191a-4e16-9c9e-395223f10dca:localhost]

2022-02-08 21:50:33 | [Mutex] waiting for: [received:nodes:7ae8d896-191a-4e16-9c9e-395223f10dca:localhost]

2022-02-08 21:50:33 | [Mutex] received everything.

2022-02-08 21:50:33 | [Mutex] isItemNotified: received:node:7ae8d896-191a-4e16-9c9e-395223f10dca:localhost:node-4824dcc2-e4ca-4111-8f5c-8d38269affdc:Node 4824dcc2-e4ca-4111-8f5c-8d38269affdc :: true

2022-02-08 21:50:33 | [Mutex] waiting for: [received:nodes:af14b309-9a3c-4250-8fa3-e2d8ebffae75:localhost]

2022-02-08 21:50:33 | [Mutex] waiting for: [received:nodes:af14b309-9a3c-4250-8fa3-e2d8ebffae75:localhost]

2022-02-08 21:50:33 | [Mutex] waiting for: [received:nodes:af14b309-9a3c-4250-8fa3-e2d8ebffae75:localhost]

2022-02-08 21:50:33 | [Mutex] received everything.

2022-02-08 21:50:33 | [Mutex] isItemNotified: received:node:af14b309-9a3c-4250-8fa3-e2d8ebffae75:localhost:node-4824dcc2-e4ca-4111-8f5c-8d38269affdc:Node 4824dcc2-e4ca-4111-8f5c-8d38269affdc :: false

createNodes 1.705s
2022-02-08 21:50:29 |

2022-02-08 21:50:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:29 | ------------------------------------

2022-02-08 21:50:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4824dcc2-e4ca-4111-8f5c-8d38269affdc",
    "pubsub#title": "Node 4824dcc2-e4ca-4111-8f5c-8d38269affdc"
}

2022-02-08 21:50:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-08 21:50:31 | [Mutex] waiting for: [received:nodes:68a99c44-4a68-45fc-83b3-443646cd0ebf:localhost]

2022-02-08 21:50:31 | [Mutex] received everything.

2022-02-08 21:50:31 | [Mutex] isItemNotified: received:node:68a99c44-4a68-45fc-83b3-443646cd0ebf:localhost:node-4824dcc2-e4ca-4111-8f5c-8d38269affdc:Node 4824dcc2-e4ca-4111-8f5c-8d38269affdc :: true

createSubnodes 1.030s
2022-02-08 21:50:31 |

2022-02-08 21:50:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:31 | ------------------------------------

2022-02-08 21:50:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1df0e889-11e3-4490-98b9-0816758fdcdd",
    "pubsub#title": "Node 1df0e889-11e3-4490-98b9-0816758fdcdd"
}

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

2022-02-08 21:50:32 | [Mutex] waiting for: [received:nodes:5b1c4439-98fc-4622-b71e-b689d9880219:localhost]

2022-02-08 21:50:32 | [Mutex] received everything.

2022-02-08 21:50:32 | [Mutex] isItemNotified: received:node:5b1c4439-98fc-4622-b71e-b689d9880219:localhost:node-1df0e889-11e3-4490-98b9-0816758fdcdd:Node 1df0e889-11e3-4490-98b9-0816758fdcdd :: true

deleteNodes 1.020s
2022-02-08 21:50:36 |

2022-02-08 21:50:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:36 | ------------------------------------

2022-02-08 21:50:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1df0e889-11e3-4490-98b9-0816758fdcdd"
}

2022-02-08 21:50:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-08 21:50:37 | [Mutex] waiting for: [received:nodes:e1d5e908-87c8-44ba-907c-1e3cac18d16d:localhost]

2022-02-08 21:50:37 | [Mutex] waiting for: [received:nodes:e1d5e908-87c8-44ba-907c-1e3cac18d16d:localhost]

2022-02-08 21:50:37 | [Mutex] received everything.

2022-02-08 21:50:37 | [Mutex] isItemNotified: received:node:e1d5e908-87c8-44ba-907c-1e3cac18d16d:localhost:node-1df0e889-11e3-4490-98b9-0816758fdcdd:Node 1df0e889-11e3-4490-98b9-0816758fdcdd :: false

deleteSubnodes 1.033s
2022-02-08 21:50:35 |

2022-02-08 21:50:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:35 | ------------------------------------

2022-02-08 21:50:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4824dcc2-e4ca-4111-8f5c-8d38269affdc"
}

2022-02-08 21:50:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-08 21:50:36 | [Mutex] waiting for: [received:nodes:2cad4cfb-5268-42bc-bb2f-85b86ce3a5fc:localhost]

2022-02-08 21:50:36 | [Mutex] received everything.

2022-02-08 21:50:36 | [Mutex] isItemNotified: received:node:2cad4cfb-5268-42bc-bb2f-85b86ce3a5fc:localhost:node-4824dcc2-e4ca-4111-8f5c-8d38269affdc:Node 4824dcc2-e4ca-4111-8f5c-8d38269affdc :: false

2022-02-08 21:50:36 | [Mutex] waiting for: [received:nodes:1dba7cb9-d11f-4f5b-a9f4-a6045f783efd:localhost]

2022-02-08 21:50:36 | [Mutex] received everything.

2022-02-08 21:50:36 | [Mutex] isItemNotified: received:node:1dba7cb9-d11f-4f5b-a9f4-a6045f783efd:localhost:node-4824dcc2-e4ca-4111-8f5c-8d38269affdc:Node 4824dcc2-e4ca-4111-8f5c-8d38269affdc :: false

publishItemsToNodes 0.047s
2022-02-08 21:50:34 |

2022-02-08 21:50:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:34 | ------------------------------------

2022-02-08 21:50:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4824dcc2-e4ca-4111-8f5c-8d38269affdc",
    "entry": "<test>item-7e57308a-93cb-47a5-b7cb-86682e2e915b</test>",
    "item-id": "item-7e57308a-93cb-47a5-b7cb-86682e2e915b"
}

2022-02-08 21:50:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e57308a-93cb-47a5-b7cb-86682e2e915b"
}

2022-02-08 21:50:34 | [Mutex] waiting for: [published:item:notifieditem-7e57308a-93cb-47a5-b7cb-86682e2e915b:admin@test-domain.com]

2022-02-08 21:50:34 | [Mutex] received everything.

2022-02-08 21:50:34 | [Mutex] isItemNotified: published:item:notifieditem-7e57308a-93cb-47a5-b7cb-86682e2e915b:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2022-02-08 21:50:34 |

2022-02-08 21:50:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:34 | ------------------------------------

2022-02-08 21:50:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4824dcc2-e4ca-4111-8f5c-8d38269affdc",
    "item-id": "item-7e57308a-93cb-47a5-b7cb-86682e2e915b"
}

2022-02-08 21:50:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e57308a-93cb-47a5-b7cb-86682e2e915b"
}

2022-02-08 21:50:34 | [Mutex] waiting for: [retracted:item:notifieditem-7e57308a-93cb-47a5-b7cb-86682e2e915b:admin@test-domain.com]

2022-02-08 21:50:34 | [Mutex] received everything.

2022-02-08 21:50:34 | [Mutex] isItemNotified: retracted:item:notifieditem-7e57308a-93cb-47a5-b7cb-86682e2e915b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2022-02-08 21:50:34 |

2022-02-08 21:50:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:34 | ------------------------------------

2022-02-08 21:50:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4824dcc2-e4ca-4111-8f5c-8d38269affdc",
    "item-id": "item-7e57308a-93cb-47a5-b7cb-86682e2e915b"
}

2022-02-08 21:50:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4824dcc2-e4ca-4111-8f5c-8d38269affdc",
    "item-id": "item-7e57308a-93cb-47a5-b7cb-86682e2e915b",
    "item": [
        "<item id=\"item-7e57308a-93cb-47a5-b7cb-86682e2e915b\"><test>item-7e57308a-93cb-47a5-b7cb-86682e2e915b</test></item>"
    ]
}

2022-02-08 21:50:34 | [Mutex] notify: [retrieved:item:item-7e57308a-93cb-47a5-b7cb-86682e2e915b:payload-matches:true:localhost]

2022-02-08 21:50:34 | [Mutex] received everything.

2022-02-08 21:50:34 | [Mutex] isItemNotified: retrieved:item:item-7e57308a-93cb-47a5-b7cb-86682e2e915b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-08 21:50:34 |

2022-02-08 21:50:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:34 | ------------------------------------

2022-02-08 21:50:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-08 21:50:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1df0e889-11e3-4490-98b9-0816758fdcdd",
        "test",
        "node-4824dcc2-e4ca-4111-8f5c-8d38269affdc"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-08 21:50:34 |

2022-02-08 21:50:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:34 | ------------------------------------

2022-02-08 21:50:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4824dcc2-e4ca-4111-8f5c-8d38269affdc)"
}

2022-02-08 21:50:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-02-08 21:50:33 |

2022-02-08 21:50:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:33 | ------------------------------------

2022-02-08 21:50:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4824dcc2-e4ca-4111-8f5c-8d38269affdc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-08 21:50:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.080s
2022-02-08 21:50:34 |

2022-02-08 21:50:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:34 | ------------------------------------

2022-02-08 21:50:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4824dcc2-e4ca-4111-8f5c-8d38269affdc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-08 21:50:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}