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

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2023-03-29 22:30:26 |

2023-03-29 22:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-29 22:30:26 | ------------------------------------

2023-03-29 22:30:26 | [Mutex] waiting for: [configured:node:node-643c325e-dd22-46d2-a312-7cf542e61a58:node-a30480f1-7512-4905-8365-29930c987649]

2023-03-29 22:30:26 | [Mutex] received everything.

2023-03-29 22:30:26 | [Mutex] isItemNotified: configured:node:node-643c325e-dd22-46d2-a312-7cf542e61a58:node-a30480f1-7512-4905-8365-29930c987649 :: true

2023-03-29 22:30:27 | [Mutex] waiting for: [received:nodes:406e9ce5-ac9a-432d-b47f-89996603a18f:localhost]

2023-03-29 22:30:27 | [Mutex] received everything.

2023-03-29 22:30:27 | [Mutex] isItemNotified: received:node:406e9ce5-ac9a-432d-b47f-89996603a18f:localhost:node-643c325e-dd22-46d2-a312-7cf542e61a58:Node 643c325e-dd22-46d2-a312-7cf542e61a58 :: true

2023-03-29 22:30:27 | [Mutex] waiting for: [received:nodes:ba915150-b026-4b6b-b1cd-692b3aeba367:localhost]

2023-03-29 22:30:27 | [Mutex] waiting for: [received:nodes:ba915150-b026-4b6b-b1cd-692b3aeba367:localhost]

2023-03-29 22:30:27 | [Mutex] waiting for: [received:nodes:ba915150-b026-4b6b-b1cd-692b3aeba367:localhost]

2023-03-29 22:30:27 | [Mutex] waiting for: [received:nodes:ba915150-b026-4b6b-b1cd-692b3aeba367:localhost]

2023-03-29 22:30:27 | [Mutex] received everything.

2023-03-29 22:30:27 | [Mutex] isItemNotified: received:node:ba915150-b026-4b6b-b1cd-692b3aeba367:localhost:node-643c325e-dd22-46d2-a312-7cf542e61a58:Node 643c325e-dd22-46d2-a312-7cf542e61a58 :: false

createNodes 1.574s
2023-03-29 22:30:24 |

2023-03-29 22:30:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-29 22:30:24 | ------------------------------------

2023-03-29 22:30:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-643c325e-dd22-46d2-a312-7cf542e61a58",
    "pubsub#title": "Node 643c325e-dd22-46d2-a312-7cf542e61a58"
}

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

2023-03-29 22:30:25 | [Mutex] waiting for: [received:nodes:bb0a273d-244f-48c8-8b1d-85619b1424a6:localhost]

2023-03-29 22:30:25 | [Mutex] waiting for: [received:nodes:bb0a273d-244f-48c8-8b1d-85619b1424a6:localhost]

2023-03-29 22:30:25 | [Mutex] waiting for: [received:nodes:bb0a273d-244f-48c8-8b1d-85619b1424a6:localhost]

2023-03-29 22:30:25 | [Mutex] received everything.

2023-03-29 22:30:25 | [Mutex] isItemNotified: received:node:bb0a273d-244f-48c8-8b1d-85619b1424a6:localhost:node-643c325e-dd22-46d2-a312-7cf542e61a58:Node 643c325e-dd22-46d2-a312-7cf542e61a58 :: true

createSubnodes 1.034s
2023-03-29 22:30:25 |

2023-03-29 22:30:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-29 22:30:25 | ------------------------------------

2023-03-29 22:30:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a30480f1-7512-4905-8365-29930c987649",
    "pubsub#title": "Node a30480f1-7512-4905-8365-29930c987649"
}

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

2023-03-29 22:30:26 | [Mutex] waiting for: [received:nodes:ae011de1-7829-4a6d-832f-59f5b08749ee:localhost]

2023-03-29 22:30:26 | [Mutex] waiting for: [received:nodes:ae011de1-7829-4a6d-832f-59f5b08749ee:localhost]

2023-03-29 22:30:26 | [Mutex] waiting for: [received:nodes:ae011de1-7829-4a6d-832f-59f5b08749ee:localhost]

2023-03-29 22:30:26 | [Mutex] waiting for: [received:nodes:ae011de1-7829-4a6d-832f-59f5b08749ee:localhost]

2023-03-29 22:30:26 | [Mutex] waiting for: [received:nodes:ae011de1-7829-4a6d-832f-59f5b08749ee:localhost]

2023-03-29 22:30:26 | [Mutex] received everything.

2023-03-29 22:30:26 | [Mutex] isItemNotified: received:node:ae011de1-7829-4a6d-832f-59f5b08749ee:localhost:node-a30480f1-7512-4905-8365-29930c987649:Node a30480f1-7512-4905-8365-29930c987649 :: true

deleteNodes 1.030s
2023-03-29 22:30:31 |

2023-03-29 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-29 22:30:31 | ------------------------------------

2023-03-29 22:30:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a30480f1-7512-4905-8365-29930c987649"
}

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

2023-03-29 22:30:32 | [Mutex] waiting for: [received:nodes:6c01977e-ef40-4334-b527-c409b2aab803:localhost]

2023-03-29 22:30:32 | [Mutex] waiting for: [received:nodes:6c01977e-ef40-4334-b527-c409b2aab803:localhost]

2023-03-29 22:30:32 | [Mutex] waiting for: [received:nodes:6c01977e-ef40-4334-b527-c409b2aab803:localhost]

2023-03-29 22:30:32 | [Mutex] received everything.

2023-03-29 22:30:32 | [Mutex] isItemNotified: received:node:6c01977e-ef40-4334-b527-c409b2aab803:localhost:node-a30480f1-7512-4905-8365-29930c987649:Node a30480f1-7512-4905-8365-29930c987649 :: false

deleteSubnodes 1.033s
2023-03-29 22:30:30 |

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

2023-03-29 22:30:30 | ------------------------------------

2023-03-29 22:30:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-643c325e-dd22-46d2-a312-7cf542e61a58"
}

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

2023-03-29 22:30:31 | [Mutex] waiting for: [received:nodes:14342e21-d79c-4b27-82dc-c914ff78338e:localhost]

2023-03-29 22:30:31 | [Mutex] waiting for: [received:nodes:14342e21-d79c-4b27-82dc-c914ff78338e:localhost]

2023-03-29 22:30:31 | [Mutex] waiting for: [received:nodes:14342e21-d79c-4b27-82dc-c914ff78338e:localhost]

2023-03-29 22:30:31 | [Mutex] received everything.

2023-03-29 22:30:31 | [Mutex] isItemNotified: received:node:14342e21-d79c-4b27-82dc-c914ff78338e:localhost:node-643c325e-dd22-46d2-a312-7cf542e61a58:Node 643c325e-dd22-46d2-a312-7cf542e61a58 :: false

2023-03-29 22:30:31 | [Mutex] waiting for: [received:nodes:644095d7-2c05-4a51-a7d7-849b975f571a:localhost]

2023-03-29 22:30:31 | [Mutex] received everything.

2023-03-29 22:30:31 | [Mutex] isItemNotified: received:node:644095d7-2c05-4a51-a7d7-849b975f571a:localhost:node-643c325e-dd22-46d2-a312-7cf542e61a58:Node 643c325e-dd22-46d2-a312-7cf542e61a58 :: false

publishItemsToNodes 0.038s
2023-03-29 22:30:28 |

2023-03-29 22:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-29 22:30:28 | ------------------------------------

2023-03-29 22:30:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-643c325e-dd22-46d2-a312-7cf542e61a58",
    "entry": "<test>item-e08dfeb6-8168-4802-a3be-2385f9238be1</test>",
    "item-id": "item-e08dfeb6-8168-4802-a3be-2385f9238be1"
}

2023-03-29 22:30:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e08dfeb6-8168-4802-a3be-2385f9238be1"
}

2023-03-29 22:30:28 | [Mutex] waiting for: [published:item:notifieditem-e08dfeb6-8168-4802-a3be-2385f9238be1:admin@test-domain.com]

2023-03-29 22:30:28 | [Mutex] received everything.

2023-03-29 22:30:28 | [Mutex] isItemNotified: published:item:notifieditem-e08dfeb6-8168-4802-a3be-2385f9238be1:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2023-03-29 22:30:29 |

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

2023-03-29 22:30:29 | ------------------------------------

2023-03-29 22:30:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-643c325e-dd22-46d2-a312-7cf542e61a58",
    "item-id": "item-e08dfeb6-8168-4802-a3be-2385f9238be1"
}

2023-03-29 22:30:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e08dfeb6-8168-4802-a3be-2385f9238be1"
}

2023-03-29 22:30:29 | [Mutex] waiting for: [retracted:item:notifieditem-e08dfeb6-8168-4802-a3be-2385f9238be1:admin@test-domain.com]

2023-03-29 22:30:29 | [Mutex] received everything.

2023-03-29 22:30:29 | [Mutex] isItemNotified: retracted:item:notifieditem-e08dfeb6-8168-4802-a3be-2385f9238be1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.079s
2023-03-29 22:30:28 |

2023-03-29 22:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-29 22:30:28 | ------------------------------------

2023-03-29 22:30:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-643c325e-dd22-46d2-a312-7cf542e61a58",
    "item-id": "item-e08dfeb6-8168-4802-a3be-2385f9238be1"
}

2023-03-29 22:30:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-643c325e-dd22-46d2-a312-7cf542e61a58",
    "item-id": "item-e08dfeb6-8168-4802-a3be-2385f9238be1",
    "item": [
        "<item id=\"item-e08dfeb6-8168-4802-a3be-2385f9238be1\"><test>item-e08dfeb6-8168-4802-a3be-2385f9238be1</test></item>"
    ]
}

2023-03-29 22:30:29 | [Mutex] notify: [retrieved:item:item-e08dfeb6-8168-4802-a3be-2385f9238be1:payload-matches:true:localhost]

2023-03-29 22:30:29 | [Mutex] received everything.

2023-03-29 22:30:29 | [Mutex] isItemNotified: retrieved:item:item-e08dfeb6-8168-4802-a3be-2385f9238be1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-03-29 22:30:29 |

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

2023-03-29 22:30:29 | ------------------------------------

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

2023-03-29 22:30:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a30480f1-7512-4905-8365-29930c987649",
        "node-643c325e-dd22-46d2-a312-7cf542e61a58"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-03-29 22:30:29 |

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

2023-03-29 22:30:29 | ------------------------------------

2023-03-29 22:30:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-643c325e-dd22-46d2-a312-7cf542e61a58)"
}

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

subscribeNodes 1.013s
2023-03-29 22:30:27 |

2023-03-29 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-29 22:30:27 | ------------------------------------

2023-03-29 22:30:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-643c325e-dd22-46d2-a312-7cf542e61a58",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.057s
2023-03-29 22:30:29 |

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

2023-03-29 22:30:29 | ------------------------------------

2023-03-29 22:30:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-643c325e-dd22-46d2-a312-7cf542e61a58",
    "jids": [
        "admin@test-domain.com"
    ]
}

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