Generated by TestNG with ReportNG at 22:35 PDT on Thursday 14 April 2022
root@21fb2cc9076b / 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.860s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2022-04-14 22:48:52 |

2022-04-14 22:48:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:52 | ------------------------------------

2022-04-14 22:48:52 | [Mutex] waiting for: [configured:node:node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a:node-2fa583c5-a209-4d03-8a31-5075a5cb9d52]

2022-04-14 22:48:53 | [Mutex] received everything.

2022-04-14 22:48:53 | [Mutex] isItemNotified: configured:node:node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a:node-2fa583c5-a209-4d03-8a31-5075a5cb9d52 :: true

2022-04-14 22:48:54 | [Mutex] waiting for: [received:nodes:bc3d56df-e4ff-4160-9c73-32662c38d957:localhost]

2022-04-14 22:48:54 | [Mutex] received everything.

2022-04-14 22:48:54 | [Mutex] isItemNotified: received:node:bc3d56df-e4ff-4160-9c73-32662c38d957:localhost:node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a:Node 48fdb0f1-b822-4925-8e8e-6ebe5715bc1a :: true

2022-04-14 22:48:54 | [Mutex] waiting for: [received:nodes:af4fb344-df76-480e-87d7-e6cbb6b9c454:localhost]

2022-04-14 22:48:54 | [Mutex] received everything.

2022-04-14 22:48:54 | [Mutex] isItemNotified: received:node:af4fb344-df76-480e-87d7-e6cbb6b9c454:localhost:node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a:Node 48fdb0f1-b822-4925-8e8e-6ebe5715bc1a :: false

createNodes 1.655s
2022-04-14 22:48:50 |

2022-04-14 22:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:50 | ------------------------------------

2022-04-14 22:48:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a",
    "pubsub#title": "Node 48fdb0f1-b822-4925-8e8e-6ebe5715bc1a"
}

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

2022-04-14 22:48:51 | [Mutex] waiting for: [received:nodes:50813271-c4dd-4c8f-8b9c-c6008defece2:localhost]

2022-04-14 22:48:51 | [Mutex] received everything.

2022-04-14 22:48:51 | [Mutex] isItemNotified: received:node:50813271-c4dd-4c8f-8b9c-c6008defece2:localhost:node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a:Node 48fdb0f1-b822-4925-8e8e-6ebe5715bc1a :: true

createSubnodes 1.031s
2022-04-14 22:48:51 |

2022-04-14 22:48:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:51 | ------------------------------------

2022-04-14 22:48:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2fa583c5-a209-4d03-8a31-5075a5cb9d52",
    "pubsub#title": "Node 2fa583c5-a209-4d03-8a31-5075a5cb9d52"
}

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

2022-04-14 22:48:52 | [Mutex] waiting for: [received:nodes:7c12ec42-bd58-4ac8-be7f-2028bc9e2f5d:localhost]

2022-04-14 22:48:52 | [Mutex] received everything.

2022-04-14 22:48:52 | [Mutex] isItemNotified: received:node:7c12ec42-bd58-4ac8-be7f-2028bc9e2f5d:localhost:node-2fa583c5-a209-4d03-8a31-5075a5cb9d52:Node 2fa583c5-a209-4d03-8a31-5075a5cb9d52 :: true

deleteNodes 1.028s
2022-04-14 22:48:57 |

2022-04-14 22:48:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:57 | ------------------------------------

2022-04-14 22:48:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2fa583c5-a209-4d03-8a31-5075a5cb9d52"
}

2022-04-14 22:48:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-14 22:48:58 | [Mutex] waiting for: [received:nodes:d6298988-3192-4cb8-a003-02db54e5f2fd:localhost]

2022-04-14 22:48:58 | [Mutex] waiting for: [received:nodes:d6298988-3192-4cb8-a003-02db54e5f2fd:localhost]

2022-04-14 22:48:58 | [Mutex] received everything.

2022-04-14 22:48:58 | [Mutex] isItemNotified: received:node:d6298988-3192-4cb8-a003-02db54e5f2fd:localhost:node-2fa583c5-a209-4d03-8a31-5075a5cb9d52:Node 2fa583c5-a209-4d03-8a31-5075a5cb9d52 :: false

deleteSubnodes 1.029s
2022-04-14 22:48:56 |

2022-04-14 22:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:56 | ------------------------------------

2022-04-14 22:48:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a"
}

2022-04-14 22:48:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-14 22:48:57 | [Mutex] waiting for: [received:nodes:d75365f3-c078-43df-b282-7ef09cb2376b:localhost]

2022-04-14 22:48:57 | [Mutex] waiting for: [received:nodes:d75365f3-c078-43df-b282-7ef09cb2376b:localhost]

2022-04-14 22:48:57 | [Mutex] received everything.

2022-04-14 22:48:57 | [Mutex] isItemNotified: received:node:d75365f3-c078-43df-b282-7ef09cb2376b:localhost:node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a:Node 48fdb0f1-b822-4925-8e8e-6ebe5715bc1a :: false

2022-04-14 22:48:57 | [Mutex] waiting for: [received:nodes:31134c0f-6dd4-45d4-ae9d-99837ef8fb95:localhost]

2022-04-14 22:48:57 | [Mutex] received everything.

2022-04-14 22:48:57 | [Mutex] isItemNotified: received:node:31134c0f-6dd4-45d4-ae9d-99837ef8fb95:localhost:node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a:Node 48fdb0f1-b822-4925-8e8e-6ebe5715bc1a :: false

publishItemsToNodes 0.047s
2022-04-14 22:48:55 |

2022-04-14 22:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:55 | ------------------------------------

2022-04-14 22:48:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a",
    "entry": "<test>item-bafe75b5-b74d-4f72-bf39-851c761358ff</test>",
    "item-id": "item-bafe75b5-b74d-4f72-bf39-851c761358ff"
}

2022-04-14 22:48:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bafe75b5-b74d-4f72-bf39-851c761358ff"
}

2022-04-14 22:48:55 | [Mutex] waiting for: [published:item:notifieditem-bafe75b5-b74d-4f72-bf39-851c761358ff:admin@test-domain.com]

2022-04-14 22:48:55 | [Mutex] received everything.

2022-04-14 22:48:55 | [Mutex] isItemNotified: published:item:notifieditem-bafe75b5-b74d-4f72-bf39-851c761358ff:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-04-14 22:48:55 |

2022-04-14 22:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:55 | ------------------------------------

2022-04-14 22:48:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a",
    "item-id": "item-bafe75b5-b74d-4f72-bf39-851c761358ff"
}

2022-04-14 22:48:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bafe75b5-b74d-4f72-bf39-851c761358ff"
}

2022-04-14 22:48:55 | [Mutex] received everything.

2022-04-14 22:48:55 | [Mutex] isItemNotified: retracted:item:notifieditem-bafe75b5-b74d-4f72-bf39-851c761358ff:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2022-04-14 22:48:55 |

2022-04-14 22:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:55 | ------------------------------------

2022-04-14 22:48:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a",
    "item-id": "item-bafe75b5-b74d-4f72-bf39-851c761358ff"
}

2022-04-14 22:48:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a",
    "item-id": "item-bafe75b5-b74d-4f72-bf39-851c761358ff",
    "item": [
        "<item id=\"item-bafe75b5-b74d-4f72-bf39-851c761358ff\"><test>item-bafe75b5-b74d-4f72-bf39-851c761358ff</test></item>"
    ]
}

2022-04-14 22:48:55 | [Mutex] notify: [retrieved:item:item-bafe75b5-b74d-4f72-bf39-851c761358ff:payload-matches:true:localhost]

2022-04-14 22:48:55 | [Mutex] received everything.

2022-04-14 22:48:55 | [Mutex] isItemNotified: retrieved:item:item-bafe75b5-b74d-4f72-bf39-851c761358ff:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-04-14 22:48:55 |

2022-04-14 22:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:55 | ------------------------------------

2022-04-14 22:48:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-04-14 22:48:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2fa583c5-a209-4d03-8a31-5075a5cb9d52",
        "node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.058s
2022-04-14 22:48:55 |

2022-04-14 22:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:55 | ------------------------------------

2022-04-14 22:48:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a)"
}

2022-04-14 22:48:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-04-14 22:48:54 |

2022-04-14 22:48:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:54 | ------------------------------------

2022-04-14 22:48:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-14 22:48:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.091s
2022-04-14 22:48:55 |

2022-04-14 22:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:48:55 | ------------------------------------

2022-04-14 22:48:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-48fdb0f1-b822-4925-8e8e-6ebe5715bc1a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-14 22:48:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}