Generated by TestNG with ReportNG at 22:15 PDT on Monday 27 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.694s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.162s
2023-03-27 22:30:12 |

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

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

2023-03-27 22:30:12 | [Mutex] waiting for: [configured:node:node-e18baea8-ec26-4cb8-a17b-5119f6f4e515:node-54500312-ccc0-4437-9270-9bf70983d0cc]

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

2023-03-27 22:30:12 | [Mutex] isItemNotified: configured:node:node-e18baea8-ec26-4cb8-a17b-5119f6f4e515:node-54500312-ccc0-4437-9270-9bf70983d0cc :: true

2023-03-27 22:30:13 | [Mutex] waiting for: [received:nodes:941cc98a-6b5d-4600-b5fc-afa66fc4efc2:localhost]

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

2023-03-27 22:30:13 | [Mutex] isItemNotified: received:node:941cc98a-6b5d-4600-b5fc-afa66fc4efc2:localhost:node-e18baea8-ec26-4cb8-a17b-5119f6f4e515:Node e18baea8-ec26-4cb8-a17b-5119f6f4e515 :: true

2023-03-27 22:30:13 | [Mutex] waiting for: [received:nodes:7d2a6e49-485e-4fd4-a101-054e7f9df580:localhost]

2023-03-27 22:30:13 | [Mutex] waiting for: [received:nodes:7d2a6e49-485e-4fd4-a101-054e7f9df580:localhost]

2023-03-27 22:30:13 | [Mutex] waiting for: [received:nodes:7d2a6e49-485e-4fd4-a101-054e7f9df580:localhost]

2023-03-27 22:30:13 | [Mutex] waiting for: [received:nodes:7d2a6e49-485e-4fd4-a101-054e7f9df580:localhost]

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

2023-03-27 22:30:13 | [Mutex] isItemNotified: received:node:7d2a6e49-485e-4fd4-a101-054e7f9df580:localhost:node-e18baea8-ec26-4cb8-a17b-5119f6f4e515:Node e18baea8-ec26-4cb8-a17b-5119f6f4e515 :: false

createNodes 1.591s
2023-03-27 22:30:09 |

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

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

2023-03-27 22:30:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e18baea8-ec26-4cb8-a17b-5119f6f4e515",
    "pubsub#title": "Node e18baea8-ec26-4cb8-a17b-5119f6f4e515"
}

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

2023-03-27 22:30:11 | [Mutex] waiting for: [received:nodes:03899234-4ea0-402b-af09-be9eb4ef5813:localhost]

2023-03-27 22:30:11 | [Mutex] waiting for: [received:nodes:03899234-4ea0-402b-af09-be9eb4ef5813:localhost]

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

2023-03-27 22:30:11 | [Mutex] isItemNotified: received:node:03899234-4ea0-402b-af09-be9eb4ef5813:localhost:node-e18baea8-ec26-4cb8-a17b-5119f6f4e515:Node e18baea8-ec26-4cb8-a17b-5119f6f4e515 :: true

createSubnodes 1.031s
2023-03-27 22:30:11 |

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

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

2023-03-27 22:30:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-54500312-ccc0-4437-9270-9bf70983d0cc",
    "pubsub#title": "Node 54500312-ccc0-4437-9270-9bf70983d0cc"
}

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

2023-03-27 22:30:12 | [Mutex] waiting for: [received:nodes:317614e6-8efa-4a5b-956a-2fb637d60a1d:localhost]

2023-03-27 22:30:12 | [Mutex] waiting for: [received:nodes:317614e6-8efa-4a5b-956a-2fb637d60a1d:localhost]

2023-03-27 22:30:12 | [Mutex] waiting for: [received:nodes:317614e6-8efa-4a5b-956a-2fb637d60a1d:localhost]

2023-03-27 22:30:12 | [Mutex] waiting for: [received:nodes:317614e6-8efa-4a5b-956a-2fb637d60a1d:localhost]

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

2023-03-27 22:30:12 | [Mutex] isItemNotified: received:node:317614e6-8efa-4a5b-956a-2fb637d60a1d:localhost:node-54500312-ccc0-4437-9270-9bf70983d0cc:Node 54500312-ccc0-4437-9270-9bf70983d0cc :: true

deleteNodes 1.028s
2023-03-27 22:30:17 |

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

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

2023-03-27 22:30:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-54500312-ccc0-4437-9270-9bf70983d0cc"
}

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

2023-03-27 22:30:18 | [Mutex] waiting for: [received:nodes:8f686d89-9cd9-4df7-95ec-b70d49a9f99c:localhost]

2023-03-27 22:30:18 | [Mutex] waiting for: [received:nodes:8f686d89-9cd9-4df7-95ec-b70d49a9f99c:localhost]

2023-03-27 22:30:18 | [Mutex] waiting for: [received:nodes:8f686d89-9cd9-4df7-95ec-b70d49a9f99c:localhost]

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

2023-03-27 22:30:18 | [Mutex] isItemNotified: received:node:8f686d89-9cd9-4df7-95ec-b70d49a9f99c:localhost:node-54500312-ccc0-4437-9270-9bf70983d0cc:Node 54500312-ccc0-4437-9270-9bf70983d0cc :: false

deleteSubnodes 1.028s
2023-03-27 22:30:16 |

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

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

2023-03-27 22:30:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e18baea8-ec26-4cb8-a17b-5119f6f4e515"
}

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

2023-03-27 22:30:17 | [Mutex] waiting for: [received:nodes:74514bd4-7817-4ab9-a02f-0870697e21ae:localhost]

2023-03-27 22:30:17 | [Mutex] waiting for: [received:nodes:74514bd4-7817-4ab9-a02f-0870697e21ae:localhost]

2023-03-27 22:30:17 | [Mutex] waiting for: [received:nodes:74514bd4-7817-4ab9-a02f-0870697e21ae:localhost]

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

2023-03-27 22:30:17 | [Mutex] isItemNotified: received:node:74514bd4-7817-4ab9-a02f-0870697e21ae:localhost:node-e18baea8-ec26-4cb8-a17b-5119f6f4e515:Node e18baea8-ec26-4cb8-a17b-5119f6f4e515 :: false

2023-03-27 22:30:17 | [Mutex] waiting for: [received:nodes:26c74ab1-2998-4b95-a659-46b86274fbce:localhost]

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

2023-03-27 22:30:17 | [Mutex] isItemNotified: received:node:26c74ab1-2998-4b95-a659-46b86274fbce:localhost:node-e18baea8-ec26-4cb8-a17b-5119f6f4e515:Node e18baea8-ec26-4cb8-a17b-5119f6f4e515 :: false

publishItemsToNodes 0.046s
2023-03-27 22:30:14 |

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

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

2023-03-27 22:30:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e18baea8-ec26-4cb8-a17b-5119f6f4e515",
    "entry": "<test>item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973</test>",
    "item-id": "item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973"
}

2023-03-27 22:30:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973"
}

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

2023-03-27 22:30:14 | [Mutex] isItemNotified: published:item:notifieditem-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-03-27 22:30:15 |

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

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

2023-03-27 22:30:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e18baea8-ec26-4cb8-a17b-5119f6f4e515",
    "item-id": "item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973"
}

2023-03-27 22:30:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973"
}

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

2023-03-27 22:30:15 | [Mutex] isItemNotified: retracted:item:notifieditem-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973:admin@test-domain.com :: true

retrieveItemsFromNodes 0.095s
2023-03-27 22:30:14 |

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

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

2023-03-27 22:30:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e18baea8-ec26-4cb8-a17b-5119f6f4e515",
    "item-id": "item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973"
}

2023-03-27 22:30:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e18baea8-ec26-4cb8-a17b-5119f6f4e515",
    "item-id": "item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973",
    "item": [
        "<item id=\"item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973\"><test>item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973</test></item>"
    ]
}

2023-03-27 22:30:14 | [Mutex] notify: [retrieved:item:item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973:payload-matches:true:localhost]

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

2023-03-27 22:30:14 | [Mutex] isItemNotified: retrieved:item:item-3fc846a3-6f4a-47f9-8f4a-8a7eeed5c973:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-03-27 22:30:14 |

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

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

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

2023-03-27 22:30:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e18baea8-ec26-4cb8-a17b-5119f6f4e515",
        "test",
        "node-54500312-ccc0-4437-9270-9bf70983d0cc"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-03-27 22:30:14 |

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

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

2023-03-27 22:30:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e18baea8-ec26-4cb8-a17b-5119f6f4e515)"
}

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

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

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

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

2023-03-27 22:30:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e18baea8-ec26-4cb8-a17b-5119f6f4e515",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2023-03-27 22:30:15 |

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

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

2023-03-27 22:30:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e18baea8-ec26-4cb8-a17b-5119f6f4e515",
    "jids": [
        "admin@test-domain.com"
    ]
}

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