Generated by TestNG with ReportNG at 22:47 PDT on Friday 25 August 2023
root@a4d66e74f1de / Java 17.0.8 (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.591s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2023-08-25 23:01:49 |

2023-08-25 23:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:49 | ------------------------------------

2023-08-25 23:01:49 | [Mutex] waiting for: [configured:node:node-77c96cb0-c178-4342-9434-93b7db65b265:node-1d9b402e-fdb9-480b-a832-57bc87646c55]

2023-08-25 23:01:49 | [Mutex] received everything.

2023-08-25 23:01:49 | [Mutex] isItemNotified: configured:node:node-77c96cb0-c178-4342-9434-93b7db65b265:node-1d9b402e-fdb9-480b-a832-57bc87646c55 :: true

2023-08-25 23:01:50 | [Mutex] waiting for: [received:nodes:93f5088b-bdd3-4554-8222-2122eb840777:localhost]

2023-08-25 23:01:51 | [Mutex] received everything.

2023-08-25 23:01:51 | [Mutex] isItemNotified: received:node:93f5088b-bdd3-4554-8222-2122eb840777:localhost:node-77c96cb0-c178-4342-9434-93b7db65b265:Node 77c96cb0-c178-4342-9434-93b7db65b265 :: true

2023-08-25 23:01:51 | [Mutex] waiting for: [received:nodes:f1d75061-2513-41bd-ac7f-b3bb22b42fc1:localhost]

2023-08-25 23:01:51 | [Mutex] waiting for: [received:nodes:f1d75061-2513-41bd-ac7f-b3bb22b42fc1:localhost]

2023-08-25 23:01:51 | [Mutex] waiting for: [received:nodes:f1d75061-2513-41bd-ac7f-b3bb22b42fc1:localhost]

2023-08-25 23:01:51 | [Mutex] received everything.

2023-08-25 23:01:51 | [Mutex] isItemNotified: received:node:f1d75061-2513-41bd-ac7f-b3bb22b42fc1:localhost:node-77c96cb0-c178-4342-9434-93b7db65b265:Node 77c96cb0-c178-4342-9434-93b7db65b265 :: false

createNodes 1.604s
2023-08-25 23:01:47 |

2023-08-25 23:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:47 | ------------------------------------

2023-08-25 23:01:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-77c96cb0-c178-4342-9434-93b7db65b265",
    "pubsub#title": "Node 77c96cb0-c178-4342-9434-93b7db65b265"
}

2023-08-25 23:01:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 23:01:48 | [Mutex] waiting for: [received:nodes:37f0f8f0-b6b3-498b-a8b6-5b802964031b:localhost]

2023-08-25 23:01:48 | [Mutex] waiting for: [received:nodes:37f0f8f0-b6b3-498b-a8b6-5b802964031b:localhost]

2023-08-25 23:01:48 | [Mutex] received everything.

2023-08-25 23:01:48 | [Mutex] isItemNotified: received:node:37f0f8f0-b6b3-498b-a8b6-5b802964031b:localhost:node-77c96cb0-c178-4342-9434-93b7db65b265:Node 77c96cb0-c178-4342-9434-93b7db65b265 :: true

createSubnodes 1.024s
2023-08-25 23:01:48 |

2023-08-25 23:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:48 | ------------------------------------

2023-08-25 23:01:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1d9b402e-fdb9-480b-a832-57bc87646c55",
    "pubsub#title": "Node 1d9b402e-fdb9-480b-a832-57bc87646c55"
}

2023-08-25 23:01:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 23:01:49 | [Mutex] waiting for: [received:nodes:f8c1248f-a1a5-433a-aa1c-54629c123111:localhost]

2023-08-25 23:01:49 | [Mutex] waiting for: [received:nodes:f8c1248f-a1a5-433a-aa1c-54629c123111:localhost]

2023-08-25 23:01:49 | [Mutex] waiting for: [received:nodes:f8c1248f-a1a5-433a-aa1c-54629c123111:localhost]

2023-08-25 23:01:49 | [Mutex] waiting for: [received:nodes:f8c1248f-a1a5-433a-aa1c-54629c123111:localhost]

2023-08-25 23:01:49 | [Mutex] received everything.

2023-08-25 23:01:49 | [Mutex] isItemNotified: received:node:f8c1248f-a1a5-433a-aa1c-54629c123111:localhost:node-1d9b402e-fdb9-480b-a832-57bc87646c55:Node 1d9b402e-fdb9-480b-a832-57bc87646c55 :: true

deleteNodes 1.023s
2023-08-25 23:01:54 |

2023-08-25 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:54 | ------------------------------------

2023-08-25 23:01:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1d9b402e-fdb9-480b-a832-57bc87646c55"
}

2023-08-25 23:01:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 23:01:55 | [Mutex] waiting for: [received:nodes:99746d87-cfcc-496f-bf06-1662ef00b87d:localhost]

2023-08-25 23:01:55 | [Mutex] waiting for: [received:nodes:99746d87-cfcc-496f-bf06-1662ef00b87d:localhost]

2023-08-25 23:01:55 | [Mutex] waiting for: [received:nodes:99746d87-cfcc-496f-bf06-1662ef00b87d:localhost]

2023-08-25 23:01:55 | [Mutex] received everything.

2023-08-25 23:01:55 | [Mutex] isItemNotified: received:node:99746d87-cfcc-496f-bf06-1662ef00b87d:localhost:node-1d9b402e-fdb9-480b-a832-57bc87646c55:Node 1d9b402e-fdb9-480b-a832-57bc87646c55 :: false

deleteSubnodes 1.021s
2023-08-25 23:01:53 |

2023-08-25 23:01:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:53 | ------------------------------------

2023-08-25 23:01:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-77c96cb0-c178-4342-9434-93b7db65b265"
}

2023-08-25 23:01:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 23:01:54 | [Mutex] waiting for: [received:nodes:c505f83f-9092-474f-9f34-e2ba1a0e6207:localhost]

2023-08-25 23:01:54 | [Mutex] waiting for: [received:nodes:c505f83f-9092-474f-9f34-e2ba1a0e6207:localhost]

2023-08-25 23:01:54 | [Mutex] waiting for: [received:nodes:c505f83f-9092-474f-9f34-e2ba1a0e6207:localhost]

2023-08-25 23:01:54 | [Mutex] received everything.

2023-08-25 23:01:54 | [Mutex] isItemNotified: received:node:c505f83f-9092-474f-9f34-e2ba1a0e6207:localhost:node-77c96cb0-c178-4342-9434-93b7db65b265:Node 77c96cb0-c178-4342-9434-93b7db65b265 :: false

2023-08-25 23:01:54 | [Mutex] waiting for: [received:nodes:d8f2fac1-0875-49bd-9ffa-31b09487c6af:localhost]

2023-08-25 23:01:54 | [Mutex] received everything.

2023-08-25 23:01:54 | [Mutex] isItemNotified: received:node:d8f2fac1-0875-49bd-9ffa-31b09487c6af:localhost:node-77c96cb0-c178-4342-9434-93b7db65b265:Node 77c96cb0-c178-4342-9434-93b7db65b265 :: false

publishItemsToNodes 0.056s
2023-08-25 23:01:52 |

2023-08-25 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:52 | ------------------------------------

2023-08-25 23:01:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-77c96cb0-c178-4342-9434-93b7db65b265",
    "entry": "<test>item-a6917ef1-9941-40fa-ab14-78f730d7079b</test>",
    "item-id": "item-a6917ef1-9941-40fa-ab14-78f730d7079b"
}

2023-08-25 23:01:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a6917ef1-9941-40fa-ab14-78f730d7079b"
}

2023-08-25 23:01:52 | [Mutex] waiting for: [published:item:notifieditem-a6917ef1-9941-40fa-ab14-78f730d7079b:admin@test-domain.com]

2023-08-25 23:01:52 | [Mutex] received everything.

2023-08-25 23:01:52 | [Mutex] isItemNotified: published:item:notifieditem-a6917ef1-9941-40fa-ab14-78f730d7079b:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-08-25 23:01:52 |

2023-08-25 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:52 | ------------------------------------

2023-08-25 23:01:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-77c96cb0-c178-4342-9434-93b7db65b265",
    "item-id": "item-a6917ef1-9941-40fa-ab14-78f730d7079b"
}

2023-08-25 23:01:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a6917ef1-9941-40fa-ab14-78f730d7079b"
}

2023-08-25 23:01:52 | [Mutex] received everything.

2023-08-25 23:01:52 | [Mutex] isItemNotified: retracted:item:notifieditem-a6917ef1-9941-40fa-ab14-78f730d7079b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2023-08-25 23:01:52 |

2023-08-25 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:52 | ------------------------------------

2023-08-25 23:01:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-77c96cb0-c178-4342-9434-93b7db65b265",
    "item-id": "item-a6917ef1-9941-40fa-ab14-78f730d7079b"
}

2023-08-25 23:01:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-77c96cb0-c178-4342-9434-93b7db65b265",
    "item-id": "item-a6917ef1-9941-40fa-ab14-78f730d7079b",
    "item": [
        "<item id=\"item-a6917ef1-9941-40fa-ab14-78f730d7079b\"><test>item-a6917ef1-9941-40fa-ab14-78f730d7079b</test></item>"
    ]
}

2023-08-25 23:01:52 | [Mutex] notify: [retrieved:item:item-a6917ef1-9941-40fa-ab14-78f730d7079b:payload-matches:true:localhost]

2023-08-25 23:01:52 | [Mutex] received everything.

2023-08-25 23:01:52 | [Mutex] isItemNotified: retrieved:item:item-a6917ef1-9941-40fa-ab14-78f730d7079b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2023-08-25 23:01:52 |

2023-08-25 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:52 | ------------------------------------

2023-08-25 23:01:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-08-25 23:01:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-77c96cb0-c178-4342-9434-93b7db65b265",
        "node-1d9b402e-fdb9-480b-a832-57bc87646c55"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-08-25 23:01:52 |

2023-08-25 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:52 | ------------------------------------

2023-08-25 23:01:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-77c96cb0-c178-4342-9434-93b7db65b265)"
}

2023-08-25 23:01:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-08-25 23:01:51 |

2023-08-25 23:01:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:51 | ------------------------------------

2023-08-25 23:01:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-77c96cb0-c178-4342-9434-93b7db65b265",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 23:01:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.107s
2023-08-25 23:01:52 |

2023-08-25 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:52 | ------------------------------------

2023-08-25 23:01:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-77c96cb0-c178-4342-9434-93b7db65b265",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 23:01:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}