Generated by TestNG with ReportNG at 22:18 PDT on Monday 15 August 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.596s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2022-08-15 22:33:04 |

2022-08-15 22:33:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:04 | ------------------------------------

2022-08-15 22:33:04 | [Mutex] waiting for: [configured:node:node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557:node-ccab872e-1585-4053-bbe3-82b744e9457b]

2022-08-15 22:33:04 | [Mutex] received everything.

2022-08-15 22:33:04 | [Mutex] isItemNotified: configured:node:node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557:node-ccab872e-1585-4053-bbe3-82b744e9457b :: true

2022-08-15 22:33:05 | [Mutex] waiting for: [received:nodes:a4913b88-691d-47ae-91fc-144873c965f2:localhost]

2022-08-15 22:33:05 | [Mutex] received everything.

2022-08-15 22:33:05 | [Mutex] isItemNotified: received:node:a4913b88-691d-47ae-91fc-144873c965f2:localhost:node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557:Node d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557 :: true

2022-08-15 22:33:05 | [Mutex] waiting for: [received:nodes:93438b74-b97f-4865-ad95-5f6e105338d7:localhost]

2022-08-15 22:33:05 | [Mutex] waiting for: [received:nodes:93438b74-b97f-4865-ad95-5f6e105338d7:localhost]

2022-08-15 22:33:05 | [Mutex] received everything.

2022-08-15 22:33:05 | [Mutex] isItemNotified: received:node:93438b74-b97f-4865-ad95-5f6e105338d7:localhost:node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557:Node d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557 :: false

createNodes 1.587s
2022-08-15 22:33:01 |

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

2022-08-15 22:33:01 | ------------------------------------

2022-08-15 22:33:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557",
    "pubsub#title": "Node d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557"
}

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

2022-08-15 22:33:03 | [Mutex] waiting for: [received:nodes:47f10d2b-4b5f-4ad9-a455-5dc99dfd1a0d:localhost]

2022-08-15 22:33:03 | [Mutex] received everything.

2022-08-15 22:33:03 | [Mutex] isItemNotified: received:node:47f10d2b-4b5f-4ad9-a455-5dc99dfd1a0d:localhost:node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557:Node d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557 :: true

createSubnodes 1.030s
2022-08-15 22:33:03 |

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

2022-08-15 22:33:03 | ------------------------------------

2022-08-15 22:33:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ccab872e-1585-4053-bbe3-82b744e9457b",
    "pubsub#title": "Node ccab872e-1585-4053-bbe3-82b744e9457b"
}

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

2022-08-15 22:33:04 | [Mutex] waiting for: [received:nodes:2b2f37a6-4d02-4e6f-bd6d-4f536975bd54:localhost]

2022-08-15 22:33:04 | [Mutex] received everything.

2022-08-15 22:33:04 | [Mutex] isItemNotified: received:node:2b2f37a6-4d02-4e6f-bd6d-4f536975bd54:localhost:node-ccab872e-1585-4053-bbe3-82b744e9457b:Node ccab872e-1585-4053-bbe3-82b744e9457b :: true

deleteNodes 1.019s
2022-08-15 22:33:08 |

2022-08-15 22:33:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:08 | ------------------------------------

2022-08-15 22:33:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ccab872e-1585-4053-bbe3-82b744e9457b"
}

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

2022-08-15 22:33:09 | [Mutex] waiting for: [received:nodes:8e759c06-9ca0-47bf-8c53-6a0c659478c5:localhost]

2022-08-15 22:33:09 | [Mutex] waiting for: [received:nodes:8e759c06-9ca0-47bf-8c53-6a0c659478c5:localhost]

2022-08-15 22:33:09 | [Mutex] waiting for: [received:nodes:8e759c06-9ca0-47bf-8c53-6a0c659478c5:localhost]

2022-08-15 22:33:09 | [Mutex] received everything.

2022-08-15 22:33:09 | [Mutex] isItemNotified: received:node:8e759c06-9ca0-47bf-8c53-6a0c659478c5:localhost:node-ccab872e-1585-4053-bbe3-82b744e9457b:Node ccab872e-1585-4053-bbe3-82b744e9457b :: false

deleteSubnodes 1.025s
2022-08-15 22:33:07 |

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

2022-08-15 22:33:07 | ------------------------------------

2022-08-15 22:33:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557"
}

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

2022-08-15 22:33:08 | [Mutex] waiting for: [received:nodes:c5624577-d40e-454a-b459-57e9edac9ffb:localhost]

2022-08-15 22:33:08 | [Mutex] waiting for: [received:nodes:c5624577-d40e-454a-b459-57e9edac9ffb:localhost]

2022-08-15 22:33:08 | [Mutex] received everything.

2022-08-15 22:33:08 | [Mutex] isItemNotified: received:node:c5624577-d40e-454a-b459-57e9edac9ffb:localhost:node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557:Node d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557 :: false

2022-08-15 22:33:08 | [Mutex] waiting for: [received:nodes:33923100-9966-486d-abe9-834b60912c0b:localhost]

2022-08-15 22:33:08 | [Mutex] received everything.

2022-08-15 22:33:08 | [Mutex] isItemNotified: received:node:33923100-9966-486d-abe9-834b60912c0b:localhost:node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557:Node d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557 :: false

publishItemsToNodes 0.049s
2022-08-15 22:33:06 |

2022-08-15 22:33:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:06 | ------------------------------------

2022-08-15 22:33:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557",
    "entry": "<test>item-740636c3-665d-4cd8-9789-0d0c01033095</test>",
    "item-id": "item-740636c3-665d-4cd8-9789-0d0c01033095"
}

2022-08-15 22:33:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-740636c3-665d-4cd8-9789-0d0c01033095"
}

2022-08-15 22:33:06 | [Mutex] waiting for: [published:item:notifieditem-740636c3-665d-4cd8-9789-0d0c01033095:admin@test-domain.com]

2022-08-15 22:33:06 | [Mutex] received everything.

2022-08-15 22:33:06 | [Mutex] isItemNotified: published:item:notifieditem-740636c3-665d-4cd8-9789-0d0c01033095:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-08-15 22:33:06 |

2022-08-15 22:33:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:06 | ------------------------------------

2022-08-15 22:33:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557",
    "item-id": "item-740636c3-665d-4cd8-9789-0d0c01033095"
}

2022-08-15 22:33:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-740636c3-665d-4cd8-9789-0d0c01033095"
}

2022-08-15 22:33:06 | [Mutex] received everything.

2022-08-15 22:33:06 | [Mutex] isItemNotified: retracted:item:notifieditem-740636c3-665d-4cd8-9789-0d0c01033095:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2022-08-15 22:33:06 |

2022-08-15 22:33:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:06 | ------------------------------------

2022-08-15 22:33:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557",
    "item-id": "item-740636c3-665d-4cd8-9789-0d0c01033095"
}

2022-08-15 22:33:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557",
    "item-id": "item-740636c3-665d-4cd8-9789-0d0c01033095",
    "item": [
        "<item id=\"item-740636c3-665d-4cd8-9789-0d0c01033095\"><test>item-740636c3-665d-4cd8-9789-0d0c01033095</test></item>"
    ]
}

2022-08-15 22:33:06 | [Mutex] notify: [retrieved:item:item-740636c3-665d-4cd8-9789-0d0c01033095:payload-matches:true:localhost]

2022-08-15 22:33:06 | [Mutex] received everything.

2022-08-15 22:33:06 | [Mutex] isItemNotified: retrieved:item:item-740636c3-665d-4cd8-9789-0d0c01033095:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-08-15 22:33:06 |

2022-08-15 22:33:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:06 | ------------------------------------

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

2022-08-15 22:33:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ccab872e-1585-4053-bbe3-82b744e9457b",
        "test",
        "node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-15 22:33:06 |

2022-08-15 22:33:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:06 | ------------------------------------

2022-08-15 22:33:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557)"
}

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

subscribeNodes 1.016s
2022-08-15 22:33:05 |

2022-08-15 22:33:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:05 | ------------------------------------

2022-08-15 22:33:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.056s
2022-08-15 22:33:06 |

2022-08-15 22:33:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-15 22:33:06 | ------------------------------------

2022-08-15 22:33:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d1677cfd-d5e7-4b0f-9e31-6fdd7ee48557",
    "jids": [
        "admin@test-domain.com"
    ]
}

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