Generated by TestNG with ReportNG at 22:38 PDT on Sunday 12 June 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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.709s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2022-06-12 22:53:05 |

2022-06-12 22:53:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:05 | ------------------------------------

2022-06-12 22:53:05 | [Mutex] waiting for: [configured:node:node-90333044-9b70-4a34-9f9c-8a8de35f4993:node-aa73df70-d064-4d4f-ba48-53289fa7a06c]

2022-06-12 22:53:05 | [Mutex] received everything.

2022-06-12 22:53:05 | [Mutex] isItemNotified: configured:node:node-90333044-9b70-4a34-9f9c-8a8de35f4993:node-aa73df70-d064-4d4f-ba48-53289fa7a06c :: true

2022-06-12 22:53:06 | [Mutex] waiting for: [received:nodes:c6045fc0-ae80-40e6-aaac-92562b133485:localhost]

2022-06-12 22:53:06 | [Mutex] received everything.

2022-06-12 22:53:06 | [Mutex] isItemNotified: received:node:c6045fc0-ae80-40e6-aaac-92562b133485:localhost:node-90333044-9b70-4a34-9f9c-8a8de35f4993:Node 90333044-9b70-4a34-9f9c-8a8de35f4993 :: true

2022-06-12 22:53:06 | [Mutex] waiting for: [received:nodes:e4305361-5369-4ff3-a698-8dce6d7becb0:localhost]

2022-06-12 22:53:06 | [Mutex] waiting for: [received:nodes:e4305361-5369-4ff3-a698-8dce6d7becb0:localhost]

2022-06-12 22:53:06 | [Mutex] received everything.

2022-06-12 22:53:06 | [Mutex] isItemNotified: received:node:e4305361-5369-4ff3-a698-8dce6d7becb0:localhost:node-90333044-9b70-4a34-9f9c-8a8de35f4993:Node 90333044-9b70-4a34-9f9c-8a8de35f4993 :: false

createNodes 1.632s
2022-06-12 22:53:02 |

2022-06-12 22:53:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:02 | ------------------------------------

2022-06-12 22:53:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-90333044-9b70-4a34-9f9c-8a8de35f4993",
    "pubsub#title": "Node 90333044-9b70-4a34-9f9c-8a8de35f4993"
}

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

2022-06-12 22:53:04 | [Mutex] waiting for: [received:nodes:d4c828ca-6b16-4d13-bc28-f2976335fa4d:localhost]

2022-06-12 22:53:04 | [Mutex] received everything.

2022-06-12 22:53:04 | [Mutex] isItemNotified: received:node:d4c828ca-6b16-4d13-bc28-f2976335fa4d:localhost:node-90333044-9b70-4a34-9f9c-8a8de35f4993:Node 90333044-9b70-4a34-9f9c-8a8de35f4993 :: true

createSubnodes 1.021s
2022-06-12 22:53:04 |

2022-06-12 22:53:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:04 | ------------------------------------

2022-06-12 22:53:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-aa73df70-d064-4d4f-ba48-53289fa7a06c",
    "pubsub#title": "Node aa73df70-d064-4d4f-ba48-53289fa7a06c"
}

2022-06-12 22:53:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-12 22:53:05 | [Mutex] waiting for: [received:nodes:f9dde103-8fe0-4a11-935b-614cc7ec4b7c:localhost]

2022-06-12 22:53:05 | [Mutex] received everything.

2022-06-12 22:53:05 | [Mutex] isItemNotified: received:node:f9dde103-8fe0-4a11-935b-614cc7ec4b7c:localhost:node-aa73df70-d064-4d4f-ba48-53289fa7a06c:Node aa73df70-d064-4d4f-ba48-53289fa7a06c :: true

deleteNodes 1.030s
2022-06-12 22:53:09 |

2022-06-12 22:53:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:09 | ------------------------------------

2022-06-12 22:53:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-aa73df70-d064-4d4f-ba48-53289fa7a06c"
}

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

2022-06-12 22:53:10 | [Mutex] waiting for: [received:nodes:6096a9ac-38c2-48c7-afac-612f2a63aa6d:localhost]

2022-06-12 22:53:10 | [Mutex] waiting for: [received:nodes:6096a9ac-38c2-48c7-afac-612f2a63aa6d:localhost]

2022-06-12 22:53:10 | [Mutex] waiting for: [received:nodes:6096a9ac-38c2-48c7-afac-612f2a63aa6d:localhost]

2022-06-12 22:53:10 | [Mutex] received everything.

2022-06-12 22:53:10 | [Mutex] isItemNotified: received:node:6096a9ac-38c2-48c7-afac-612f2a63aa6d:localhost:node-aa73df70-d064-4d4f-ba48-53289fa7a06c:Node aa73df70-d064-4d4f-ba48-53289fa7a06c :: false

deleteSubnodes 1.026s
2022-06-12 22:53:08 |

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

2022-06-12 22:53:08 | ------------------------------------

2022-06-12 22:53:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-90333044-9b70-4a34-9f9c-8a8de35f4993"
}

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

2022-06-12 22:53:09 | [Mutex] waiting for: [received:nodes:2050986a-3f2f-495a-96bb-a6e38cc6b9cf:localhost]

2022-06-12 22:53:09 | [Mutex] waiting for: [received:nodes:2050986a-3f2f-495a-96bb-a6e38cc6b9cf:localhost]

2022-06-12 22:53:09 | [Mutex] received everything.

2022-06-12 22:53:09 | [Mutex] isItemNotified: received:node:2050986a-3f2f-495a-96bb-a6e38cc6b9cf:localhost:node-90333044-9b70-4a34-9f9c-8a8de35f4993:Node 90333044-9b70-4a34-9f9c-8a8de35f4993 :: false

2022-06-12 22:53:09 | [Mutex] waiting for: [received:nodes:9c8bba72-52b5-402e-8aee-e9a241fe2739:localhost]

2022-06-12 22:53:09 | [Mutex] received everything.

2022-06-12 22:53:09 | [Mutex] isItemNotified: received:node:9c8bba72-52b5-402e-8aee-e9a241fe2739:localhost:node-90333044-9b70-4a34-9f9c-8a8de35f4993:Node 90333044-9b70-4a34-9f9c-8a8de35f4993 :: false

publishItemsToNodes 0.041s
2022-06-12 22:53:07 |

2022-06-12 22:53:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:07 | ------------------------------------

2022-06-12 22:53:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-90333044-9b70-4a34-9f9c-8a8de35f4993",
    "entry": "<test>item-1cea3701-5b93-4f8d-b531-d4da1dfe5247</test>",
    "item-id": "item-1cea3701-5b93-4f8d-b531-d4da1dfe5247"
}

2022-06-12 22:53:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1cea3701-5b93-4f8d-b531-d4da1dfe5247"
}

2022-06-12 22:53:07 | [Mutex] waiting for: [published:item:notifieditem-1cea3701-5b93-4f8d-b531-d4da1dfe5247:admin@test-domain.com]

2022-06-12 22:53:07 | [Mutex] received everything.

2022-06-12 22:53:07 | [Mutex] isItemNotified: published:item:notifieditem-1cea3701-5b93-4f8d-b531-d4da1dfe5247:admin@test-domain.com :: true

retractItemsFromNodes 0.088s
2022-06-12 22:53:07 |

2022-06-12 22:53:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:07 | ------------------------------------

2022-06-12 22:53:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-90333044-9b70-4a34-9f9c-8a8de35f4993",
    "item-id": "item-1cea3701-5b93-4f8d-b531-d4da1dfe5247"
}

2022-06-12 22:53:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1cea3701-5b93-4f8d-b531-d4da1dfe5247"
}

2022-06-12 22:53:07 | [Mutex] received everything.

2022-06-12 22:53:07 | [Mutex] isItemNotified: retracted:item:notifieditem-1cea3701-5b93-4f8d-b531-d4da1dfe5247:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2022-06-12 22:53:07 |

2022-06-12 22:53:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:07 | ------------------------------------

2022-06-12 22:53:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-90333044-9b70-4a34-9f9c-8a8de35f4993",
    "item-id": "item-1cea3701-5b93-4f8d-b531-d4da1dfe5247"
}

2022-06-12 22:53:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-90333044-9b70-4a34-9f9c-8a8de35f4993",
    "item-id": "item-1cea3701-5b93-4f8d-b531-d4da1dfe5247",
    "item": [
        "<item id=\"item-1cea3701-5b93-4f8d-b531-d4da1dfe5247\"><test>item-1cea3701-5b93-4f8d-b531-d4da1dfe5247</test></item>"
    ]
}

2022-06-12 22:53:07 | [Mutex] notify: [retrieved:item:item-1cea3701-5b93-4f8d-b531-d4da1dfe5247:payload-matches:true:localhost]

2022-06-12 22:53:07 | [Mutex] received everything.

2022-06-12 22:53:07 | [Mutex] isItemNotified: retrieved:item:item-1cea3701-5b93-4f8d-b531-d4da1dfe5247:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-12 22:53:07 |

2022-06-12 22:53:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:07 | ------------------------------------

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

2022-06-12 22:53:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-90333044-9b70-4a34-9f9c-8a8de35f4993",
        "node-aa73df70-d064-4d4f-ba48-53289fa7a06c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-12 22:53:07 |

2022-06-12 22:53:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:07 | ------------------------------------

2022-06-12 22:53:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-90333044-9b70-4a34-9f9c-8a8de35f4993)"
}

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

subscribeNodes 1.010s
2022-06-12 22:53:06 |

2022-06-12 22:53:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:06 | ------------------------------------

2022-06-12 22:53:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-90333044-9b70-4a34-9f9c-8a8de35f4993",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-12 22:53:06 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-06-12 22:53:07 |

2022-06-12 22:53:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:53:07 | ------------------------------------

2022-06-12 22:53:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-90333044-9b70-4a34-9f9c-8a8de35f4993",
    "jids": [
        "admin@test-domain.com"
    ]
}

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