Generated by TestNG with ReportNG at 22:22 PDT on Monday 02 May 2022
root@61c39d2ed70d / 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.705s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2022-05-02 22:37:34 |

2022-05-02 22:37:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:34 | ------------------------------------

2022-05-02 22:37:34 | [Mutex] waiting for: [configured:node:node-7a8bfb54-2b1d-476e-bef3-98323258d534:node-0c721593-0fc7-42e7-a783-8685c452a990]

2022-05-02 22:37:35 | [Mutex] received everything.

2022-05-02 22:37:35 | [Mutex] isItemNotified: configured:node:node-7a8bfb54-2b1d-476e-bef3-98323258d534:node-0c721593-0fc7-42e7-a783-8685c452a990 :: true

2022-05-02 22:37:36 | [Mutex] waiting for: [received:nodes:11d68365-6a08-45b4-98fb-f086e10137e5:localhost]

2022-05-02 22:37:36 | [Mutex] received everything.

2022-05-02 22:37:36 | [Mutex] isItemNotified: received:node:11d68365-6a08-45b4-98fb-f086e10137e5:localhost:node-7a8bfb54-2b1d-476e-bef3-98323258d534:Node 7a8bfb54-2b1d-476e-bef3-98323258d534 :: true

2022-05-02 22:37:36 | [Mutex] waiting for: [received:nodes:582abc51-c223-4584-925f-a9a049b401ce:localhost]

2022-05-02 22:37:36 | [Mutex] waiting for: [received:nodes:582abc51-c223-4584-925f-a9a049b401ce:localhost]

2022-05-02 22:37:36 | [Mutex] received everything.

2022-05-02 22:37:36 | [Mutex] isItemNotified: received:node:582abc51-c223-4584-925f-a9a049b401ce:localhost:node-7a8bfb54-2b1d-476e-bef3-98323258d534:Node 7a8bfb54-2b1d-476e-bef3-98323258d534 :: false

createNodes 1.542s
2022-05-02 22:37:32 |

2022-05-02 22:37:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:32 | ------------------------------------

2022-05-02 22:37:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7a8bfb54-2b1d-476e-bef3-98323258d534",
    "pubsub#title": "Node 7a8bfb54-2b1d-476e-bef3-98323258d534"
}

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

2022-05-02 22:37:33 | [Mutex] waiting for: [received:nodes:5e1e7970-052a-4d45-bc72-6545d6813a5a:localhost]

2022-05-02 22:37:33 | [Mutex] waiting for: [received:nodes:5e1e7970-052a-4d45-bc72-6545d6813a5a:localhost]

2022-05-02 22:37:33 | [Mutex] received everything.

2022-05-02 22:37:33 | [Mutex] isItemNotified: received:node:5e1e7970-052a-4d45-bc72-6545d6813a5a:localhost:node-7a8bfb54-2b1d-476e-bef3-98323258d534:Node 7a8bfb54-2b1d-476e-bef3-98323258d534 :: true

createSubnodes 1.023s
2022-05-02 22:37:33 |

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

2022-05-02 22:37:33 | ------------------------------------

2022-05-02 22:37:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0c721593-0fc7-42e7-a783-8685c452a990",
    "pubsub#title": "Node 0c721593-0fc7-42e7-a783-8685c452a990"
}

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

2022-05-02 22:37:34 | [Mutex] waiting for: [received:nodes:cac1e4e4-af0f-4eaa-94c2-9efffc3df9dc:localhost]

2022-05-02 22:37:34 | [Mutex] waiting for: [received:nodes:cac1e4e4-af0f-4eaa-94c2-9efffc3df9dc:localhost]

2022-05-02 22:37:34 | [Mutex] received everything.

2022-05-02 22:37:34 | [Mutex] isItemNotified: received:node:cac1e4e4-af0f-4eaa-94c2-9efffc3df9dc:localhost:node-0c721593-0fc7-42e7-a783-8685c452a990:Node 0c721593-0fc7-42e7-a783-8685c452a990 :: true

deleteNodes 1.020s
2022-05-02 22:37:39 |

2022-05-02 22:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:39 | ------------------------------------

2022-05-02 22:37:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0c721593-0fc7-42e7-a783-8685c452a990"
}

2022-05-02 22:37:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 22:37:40 | [Mutex] waiting for: [received:nodes:3c5144b6-02f4-4e84-90d9-b109109002b9:localhost]

2022-05-02 22:37:40 | [Mutex] received everything.

2022-05-02 22:37:40 | [Mutex] isItemNotified: received:node:3c5144b6-02f4-4e84-90d9-b109109002b9:localhost:node-0c721593-0fc7-42e7-a783-8685c452a990:Node 0c721593-0fc7-42e7-a783-8685c452a990 :: false

deleteSubnodes 1.028s
2022-05-02 22:37:38 |

2022-05-02 22:37:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:38 | ------------------------------------

2022-05-02 22:37:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7a8bfb54-2b1d-476e-bef3-98323258d534"
}

2022-05-02 22:37:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 22:37:39 | [Mutex] waiting for: [received:nodes:19d511c4-e8f4-4453-99b1-155aeeecbb2f:localhost]

2022-05-02 22:37:39 | [Mutex] received everything.

2022-05-02 22:37:39 | [Mutex] isItemNotified: received:node:19d511c4-e8f4-4453-99b1-155aeeecbb2f:localhost:node-7a8bfb54-2b1d-476e-bef3-98323258d534:Node 7a8bfb54-2b1d-476e-bef3-98323258d534 :: false

2022-05-02 22:37:39 | [Mutex] waiting for: [received:nodes:ad977a2e-8e88-45da-ab29-9c47afa66a7f:localhost]

2022-05-02 22:37:39 | [Mutex] received everything.

2022-05-02 22:37:39 | [Mutex] isItemNotified: received:node:ad977a2e-8e88-45da-ab29-9c47afa66a7f:localhost:node-7a8bfb54-2b1d-476e-bef3-98323258d534:Node 7a8bfb54-2b1d-476e-bef3-98323258d534 :: false

publishItemsToNodes 0.046s
2022-05-02 22:37:37 |

2022-05-02 22:37:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:37 | ------------------------------------

2022-05-02 22:37:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7a8bfb54-2b1d-476e-bef3-98323258d534",
    "entry": "<test>item-c0ed7b7d-8374-4110-b2a4-496ab9319a91</test>",
    "item-id": "item-c0ed7b7d-8374-4110-b2a4-496ab9319a91"
}

2022-05-02 22:37:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c0ed7b7d-8374-4110-b2a4-496ab9319a91"
}

2022-05-02 22:37:37 | [Mutex] received everything.

2022-05-02 22:37:37 | [Mutex] isItemNotified: published:item:notifieditem-c0ed7b7d-8374-4110-b2a4-496ab9319a91:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-05-02 22:37:37 |

2022-05-02 22:37:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:37 | ------------------------------------

2022-05-02 22:37:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7a8bfb54-2b1d-476e-bef3-98323258d534",
    "item-id": "item-c0ed7b7d-8374-4110-b2a4-496ab9319a91"
}

2022-05-02 22:37:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c0ed7b7d-8374-4110-b2a4-496ab9319a91"
}

2022-05-02 22:37:37 | [Mutex] received everything.

2022-05-02 22:37:37 | [Mutex] isItemNotified: retracted:item:notifieditem-c0ed7b7d-8374-4110-b2a4-496ab9319a91:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2022-05-02 22:37:37 |

2022-05-02 22:37:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:37 | ------------------------------------

2022-05-02 22:37:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7a8bfb54-2b1d-476e-bef3-98323258d534",
    "item-id": "item-c0ed7b7d-8374-4110-b2a4-496ab9319a91"
}

2022-05-02 22:37:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7a8bfb54-2b1d-476e-bef3-98323258d534",
    "item-id": "item-c0ed7b7d-8374-4110-b2a4-496ab9319a91",
    "item": [
        "<item id=\"item-c0ed7b7d-8374-4110-b2a4-496ab9319a91\"><test>item-c0ed7b7d-8374-4110-b2a4-496ab9319a91</test></item>"
    ]
}

2022-05-02 22:37:37 | [Mutex] notify: [retrieved:item:item-c0ed7b7d-8374-4110-b2a4-496ab9319a91:payload-matches:true:localhost]

2022-05-02 22:37:37 | [Mutex] received everything.

2022-05-02 22:37:37 | [Mutex] isItemNotified: retrieved:item:item-c0ed7b7d-8374-4110-b2a4-496ab9319a91:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-02 22:37:37 |

2022-05-02 22:37:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:37 | ------------------------------------

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

2022-05-02 22:37:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0c721593-0fc7-42e7-a783-8685c452a990",
        "node-7a8bfb54-2b1d-476e-bef3-98323258d534"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-05-02 22:37:37 |

2022-05-02 22:37:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:37 | ------------------------------------

2022-05-02 22:37:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7a8bfb54-2b1d-476e-bef3-98323258d534)"
}

2022-05-02 22:37:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-05-02 22:37:36 |

2022-05-02 22:37:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:36 | ------------------------------------

2022-05-02 22:37:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7a8bfb54-2b1d-476e-bef3-98323258d534",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.054s
2022-05-02 22:37:37 |

2022-05-02 22:37:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:37:37 | ------------------------------------

2022-05-02 22:37:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7a8bfb54-2b1d-476e-bef3-98323258d534",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-02 22:37:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}