Generated by TestNG with ReportNG at 22:29 PDT on Wednesday 15 March 2023
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.652s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-03-15 22:44:10 |

2023-03-15 22:44:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:10 | ------------------------------------

2023-03-15 22:44:10 | [Mutex] waiting for: [configured:node:node-fdf14df4-897c-40c1-a153-3196ad576940:node-da19857d-8334-48a5-94e1-6300cdfb67b1]

2023-03-15 22:44:10 | [Mutex] received everything.

2023-03-15 22:44:10 | [Mutex] isItemNotified: configured:node:node-fdf14df4-897c-40c1-a153-3196ad576940:node-da19857d-8334-48a5-94e1-6300cdfb67b1 :: true

2023-03-15 22:44:11 | [Mutex] waiting for: [received:nodes:baf401e5-95d6-4146-b8a5-d3d2574aac49:localhost]

2023-03-15 22:44:11 | [Mutex] received everything.

2023-03-15 22:44:11 | [Mutex] isItemNotified: received:node:baf401e5-95d6-4146-b8a5-d3d2574aac49:localhost:node-fdf14df4-897c-40c1-a153-3196ad576940:Node fdf14df4-897c-40c1-a153-3196ad576940 :: true

2023-03-15 22:44:11 | [Mutex] waiting for: [received:nodes:6e806e9f-a195-4bdd-a9e5-eeeb5afffaeb:localhost]

2023-03-15 22:44:11 | [Mutex] waiting for: [received:nodes:6e806e9f-a195-4bdd-a9e5-eeeb5afffaeb:localhost]

2023-03-15 22:44:11 | [Mutex] waiting for: [received:nodes:6e806e9f-a195-4bdd-a9e5-eeeb5afffaeb:localhost]

2023-03-15 22:44:11 | [Mutex] waiting for: [received:nodes:6e806e9f-a195-4bdd-a9e5-eeeb5afffaeb:localhost]

2023-03-15 22:44:11 | [Mutex] received everything.

2023-03-15 22:44:11 | [Mutex] isItemNotified: received:node:6e806e9f-a195-4bdd-a9e5-eeeb5afffaeb:localhost:node-fdf14df4-897c-40c1-a153-3196ad576940:Node fdf14df4-897c-40c1-a153-3196ad576940 :: false

createNodes 1.613s
2023-03-15 22:44:07 |

2023-03-15 22:44:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:07 | ------------------------------------

2023-03-15 22:44:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fdf14df4-897c-40c1-a153-3196ad576940",
    "pubsub#title": "Node fdf14df4-897c-40c1-a153-3196ad576940"
}

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

2023-03-15 22:44:09 | [Mutex] waiting for: [received:nodes:931d4549-f3c5-4216-a13f-2ef98ddf4d28:localhost]

2023-03-15 22:44:09 | [Mutex] received everything.

2023-03-15 22:44:09 | [Mutex] isItemNotified: received:node:931d4549-f3c5-4216-a13f-2ef98ddf4d28:localhost:node-fdf14df4-897c-40c1-a153-3196ad576940:Node fdf14df4-897c-40c1-a153-3196ad576940 :: true

createSubnodes 1.038s
2023-03-15 22:44:09 |

2023-03-15 22:44:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:09 | ------------------------------------

2023-03-15 22:44:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-da19857d-8334-48a5-94e1-6300cdfb67b1",
    "pubsub#title": "Node da19857d-8334-48a5-94e1-6300cdfb67b1"
}

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

2023-03-15 22:44:10 | [Mutex] waiting for: [received:nodes:24e98275-0d5a-48c0-95ee-cd8ff8fcefe1:localhost]

2023-03-15 22:44:10 | [Mutex] waiting for: [received:nodes:24e98275-0d5a-48c0-95ee-cd8ff8fcefe1:localhost]

2023-03-15 22:44:10 | [Mutex] received everything.

2023-03-15 22:44:10 | [Mutex] isItemNotified: received:node:24e98275-0d5a-48c0-95ee-cd8ff8fcefe1:localhost:node-da19857d-8334-48a5-94e1-6300cdfb67b1:Node da19857d-8334-48a5-94e1-6300cdfb67b1 :: true

deleteNodes 1.028s
2023-03-15 22:44:15 |

2023-03-15 22:44:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:15 | ------------------------------------

2023-03-15 22:44:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-da19857d-8334-48a5-94e1-6300cdfb67b1"
}

2023-03-15 22:44:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 22:44:16 | [Mutex] waiting for: [received:nodes:df8b8b78-9dad-4d40-881e-c0dada867123:localhost]

2023-03-15 22:44:16 | [Mutex] waiting for: [received:nodes:df8b8b78-9dad-4d40-881e-c0dada867123:localhost]

2023-03-15 22:44:16 | [Mutex] waiting for: [received:nodes:df8b8b78-9dad-4d40-881e-c0dada867123:localhost]

2023-03-15 22:44:16 | [Mutex] received everything.

2023-03-15 22:44:16 | [Mutex] isItemNotified: received:node:df8b8b78-9dad-4d40-881e-c0dada867123:localhost:node-da19857d-8334-48a5-94e1-6300cdfb67b1:Node da19857d-8334-48a5-94e1-6300cdfb67b1 :: false

deleteSubnodes 1.027s
2023-03-15 22:44:14 |

2023-03-15 22:44:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:14 | ------------------------------------

2023-03-15 22:44:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fdf14df4-897c-40c1-a153-3196ad576940"
}

2023-03-15 22:44:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 22:44:15 | [Mutex] waiting for: [received:nodes:ee987ae3-c1fb-4060-8870-4c5c0d1c251a:localhost]

2023-03-15 22:44:15 | [Mutex] waiting for: [received:nodes:ee987ae3-c1fb-4060-8870-4c5c0d1c251a:localhost]

2023-03-15 22:44:15 | [Mutex] waiting for: [received:nodes:ee987ae3-c1fb-4060-8870-4c5c0d1c251a:localhost]

2023-03-15 22:44:15 | [Mutex] received everything.

2023-03-15 22:44:15 | [Mutex] isItemNotified: received:node:ee987ae3-c1fb-4060-8870-4c5c0d1c251a:localhost:node-fdf14df4-897c-40c1-a153-3196ad576940:Node fdf14df4-897c-40c1-a153-3196ad576940 :: false

2023-03-15 22:44:15 | [Mutex] waiting for: [received:nodes:007fbeff-09f5-4a8c-9840-2c0a7c7b0714:localhost]

2023-03-15 22:44:15 | [Mutex] received everything.

2023-03-15 22:44:15 | [Mutex] isItemNotified: received:node:007fbeff-09f5-4a8c-9840-2c0a7c7b0714:localhost:node-fdf14df4-897c-40c1-a153-3196ad576940:Node fdf14df4-897c-40c1-a153-3196ad576940 :: false

publishItemsToNodes 0.044s
2023-03-15 22:44:12 |

2023-03-15 22:44:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:12 | ------------------------------------

2023-03-15 22:44:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fdf14df4-897c-40c1-a153-3196ad576940",
    "entry": "<test>item-7440716a-992b-443a-8f6d-92f3ec42e004</test>",
    "item-id": "item-7440716a-992b-443a-8f6d-92f3ec42e004"
}

2023-03-15 22:44:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7440716a-992b-443a-8f6d-92f3ec42e004"
}

2023-03-15 22:44:12 | [Mutex] waiting for: [published:item:notifieditem-7440716a-992b-443a-8f6d-92f3ec42e004:admin@test-domain.com]

2023-03-15 22:44:12 | [Mutex] received everything.

2023-03-15 22:44:12 | [Mutex] isItemNotified: published:item:notifieditem-7440716a-992b-443a-8f6d-92f3ec42e004:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2023-03-15 22:44:12 |

2023-03-15 22:44:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:12 | ------------------------------------

2023-03-15 22:44:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fdf14df4-897c-40c1-a153-3196ad576940",
    "item-id": "item-7440716a-992b-443a-8f6d-92f3ec42e004"
}

2023-03-15 22:44:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7440716a-992b-443a-8f6d-92f3ec42e004"
}

2023-03-15 22:44:13 | [Mutex] received everything.

2023-03-15 22:44:13 | [Mutex] isItemNotified: retracted:item:notifieditem-7440716a-992b-443a-8f6d-92f3ec42e004:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2023-03-15 22:44:12 |

2023-03-15 22:44:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:12 | ------------------------------------

2023-03-15 22:44:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fdf14df4-897c-40c1-a153-3196ad576940",
    "item-id": "item-7440716a-992b-443a-8f6d-92f3ec42e004"
}

2023-03-15 22:44:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fdf14df4-897c-40c1-a153-3196ad576940",
    "item-id": "item-7440716a-992b-443a-8f6d-92f3ec42e004",
    "item": [
        "<item id=\"item-7440716a-992b-443a-8f6d-92f3ec42e004\"><test>item-7440716a-992b-443a-8f6d-92f3ec42e004</test></item>"
    ]
}

2023-03-15 22:44:12 | [Mutex] notify: [retrieved:item:item-7440716a-992b-443a-8f6d-92f3ec42e004:payload-matches:true:localhost]

2023-03-15 22:44:12 | [Mutex] received everything.

2023-03-15 22:44:12 | [Mutex] isItemNotified: retrieved:item:item-7440716a-992b-443a-8f6d-92f3ec42e004:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.067s
2023-03-15 22:44:12 |

2023-03-15 22:44:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:12 | ------------------------------------

2023-03-15 22:44:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-15 22:44:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-da19857d-8334-48a5-94e1-6300cdfb67b1",
        "node-fdf14df4-897c-40c1-a153-3196ad576940"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-03-15 22:44:12 |

2023-03-15 22:44:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:12 | ------------------------------------

2023-03-15 22:44:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fdf14df4-897c-40c1-a153-3196ad576940)"
}

2023-03-15 22:44:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-03-15 22:44:11 |

2023-03-15 22:44:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:11 | ------------------------------------

2023-03-15 22:44:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fdf14df4-897c-40c1-a153-3196ad576940",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-15 22:44:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2023-03-15 22:44:13 |

2023-03-15 22:44:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:44:13 | ------------------------------------

2023-03-15 22:44:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fdf14df4-897c-40c1-a153-3196ad576940",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-15 22:44:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}