Generated by TestNG with ReportNG at 22:20 PDT on Wednesday 07 September 2022
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.733s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-09-07 22:34:35 |

2022-09-07 22:34:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:34:35 | ------------------------------------

2022-09-07 22:34:35 | [Mutex] waiting for: [configured:node:node-0b6d425f-a505-4393-bc37-6b04c88afd87:node-265b646c-8359-4e35-9959-2da9a188ffd2]

2022-09-07 22:34:35 | [Mutex] received everything.

2022-09-07 22:34:35 | [Mutex] isItemNotified: configured:node:node-0b6d425f-a505-4393-bc37-6b04c88afd87:node-265b646c-8359-4e35-9959-2da9a188ffd2 :: true

2022-09-07 22:34:36 | [Mutex] waiting for: [received:nodes:4d395056-4c43-441d-81d7-ce8df4743618:localhost]

2022-09-07 22:34:36 | [Mutex] received everything.

2022-09-07 22:34:36 | [Mutex] isItemNotified: received:node:4d395056-4c43-441d-81d7-ce8df4743618:localhost:node-0b6d425f-a505-4393-bc37-6b04c88afd87:Node 0b6d425f-a505-4393-bc37-6b04c88afd87 :: true

2022-09-07 22:34:36 | [Mutex] waiting for: [received:nodes:9842e945-61d6-4270-94e2-95d8504811c7:localhost]

2022-09-07 22:34:36 | [Mutex] received everything.

2022-09-07 22:34:36 | [Mutex] isItemNotified: received:node:9842e945-61d6-4270-94e2-95d8504811c7:localhost:node-0b6d425f-a505-4393-bc37-6b04c88afd87:Node 0b6d425f-a505-4393-bc37-6b04c88afd87 :: false

createNodes 1.623s
2022-09-07 22:34:32 |

2022-09-07 22:34:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:34:32 | ------------------------------------

2022-09-07 22:34:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0b6d425f-a505-4393-bc37-6b04c88afd87",
    "pubsub#title": "Node 0b6d425f-a505-4393-bc37-6b04c88afd87"
}

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

2022-09-07 22:34:34 | [Mutex] waiting for: [received:nodes:2bd9885e-dd72-4ada-b840-32d0b1cf301a:localhost]

2022-09-07 22:34:34 | [Mutex] received everything.

2022-09-07 22:34:34 | [Mutex] isItemNotified: received:node:2bd9885e-dd72-4ada-b840-32d0b1cf301a:localhost:node-0b6d425f-a505-4393-bc37-6b04c88afd87:Node 0b6d425f-a505-4393-bc37-6b04c88afd87 :: true

createSubnodes 1.028s
2022-09-07 22:34:34 |

2022-09-07 22:34:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:34:34 | ------------------------------------

2022-09-07 22:34:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-265b646c-8359-4e35-9959-2da9a188ffd2",
    "pubsub#title": "Node 265b646c-8359-4e35-9959-2da9a188ffd2"
}

2022-09-07 22:34:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-07 22:34:35 | [Mutex] waiting for: [received:nodes:b218b123-9f8f-40c0-8333-a881a63260fc:localhost]

2022-09-07 22:34:35 | [Mutex] received everything.

2022-09-07 22:34:35 | [Mutex] isItemNotified: received:node:b218b123-9f8f-40c0-8333-a881a63260fc:localhost:node-265b646c-8359-4e35-9959-2da9a188ffd2:Node 265b646c-8359-4e35-9959-2da9a188ffd2 :: true

deleteNodes 1.022s
2022-09-07 22:34:39 |

2022-09-07 22:34:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:34:39 | ------------------------------------

2022-09-07 22:34:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-265b646c-8359-4e35-9959-2da9a188ffd2"
}

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

2022-09-07 22:34:40 | [Mutex] waiting for: [received:nodes:89c75be7-ad7c-484b-8b28-85943cadd1af:localhost]

2022-09-07 22:34:40 | [Mutex] received everything.

2022-09-07 22:34:40 | [Mutex] isItemNotified: received:node:89c75be7-ad7c-484b-8b28-85943cadd1af:localhost:node-265b646c-8359-4e35-9959-2da9a188ffd2:Node 265b646c-8359-4e35-9959-2da9a188ffd2 :: false

deleteSubnodes 1.026s
2022-09-07 22:34:38 |

2022-09-07 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:34:38 | ------------------------------------

2022-09-07 22:34:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0b6d425f-a505-4393-bc37-6b04c88afd87"
}

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

2022-09-07 22:34:39 | [Mutex] waiting for: [received:nodes:e7ac2203-0885-4ffd-9ff4-0c2b843d7d70:localhost]

2022-09-07 22:34:39 | [Mutex] waiting for: [received:nodes:e7ac2203-0885-4ffd-9ff4-0c2b843d7d70:localhost]

2022-09-07 22:34:39 | [Mutex] received everything.

2022-09-07 22:34:39 | [Mutex] isItemNotified: received:node:e7ac2203-0885-4ffd-9ff4-0c2b843d7d70:localhost:node-0b6d425f-a505-4393-bc37-6b04c88afd87:Node 0b6d425f-a505-4393-bc37-6b04c88afd87 :: false

2022-09-07 22:34:39 | [Mutex] waiting for: [received:nodes:1f5681b5-0871-46c1-b45d-6bf20b28d9fe:localhost]

2022-09-07 22:34:39 | [Mutex] received everything.

2022-09-07 22:34:39 | [Mutex] isItemNotified: received:node:1f5681b5-0871-46c1-b45d-6bf20b28d9fe:localhost:node-0b6d425f-a505-4393-bc37-6b04c88afd87:Node 0b6d425f-a505-4393-bc37-6b04c88afd87 :: false

publishItemsToNodes 0.107s
2022-09-07 22:34:37 |

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

2022-09-07 22:34:37 | ------------------------------------

2022-09-07 22:34:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0b6d425f-a505-4393-bc37-6b04c88afd87",
    "entry": "<test>item-de32ba02-cf3c-435f-b756-6991a571100a</test>",
    "item-id": "item-de32ba02-cf3c-435f-b756-6991a571100a"
}

2022-09-07 22:34:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-de32ba02-cf3c-435f-b756-6991a571100a"
}

2022-09-07 22:34:37 | [Mutex] waiting for: [published:item:notifieditem-de32ba02-cf3c-435f-b756-6991a571100a:admin@test-domain.com]

2022-09-07 22:34:37 | [Mutex] received everything.

2022-09-07 22:34:37 | [Mutex] isItemNotified: published:item:notifieditem-de32ba02-cf3c-435f-b756-6991a571100a:admin@test-domain.com :: true

retractItemsFromNodes 0.100s
2022-09-07 22:34:37 |

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

2022-09-07 22:34:37 | ------------------------------------

2022-09-07 22:34:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0b6d425f-a505-4393-bc37-6b04c88afd87",
    "item-id": "item-de32ba02-cf3c-435f-b756-6991a571100a"
}

2022-09-07 22:34:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-de32ba02-cf3c-435f-b756-6991a571100a"
}

2022-09-07 22:34:37 | [Mutex] waiting for: [retracted:item:notifieditem-de32ba02-cf3c-435f-b756-6991a571100a:admin@test-domain.com]

2022-09-07 22:34:37 | [Mutex] received everything.

2022-09-07 22:34:37 | [Mutex] isItemNotified: retracted:item:notifieditem-de32ba02-cf3c-435f-b756-6991a571100a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-09-07 22:34:37 |

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

2022-09-07 22:34:37 | ------------------------------------

2022-09-07 22:34:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0b6d425f-a505-4393-bc37-6b04c88afd87",
    "item-id": "item-de32ba02-cf3c-435f-b756-6991a571100a"
}

2022-09-07 22:34:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0b6d425f-a505-4393-bc37-6b04c88afd87",
    "item-id": "item-de32ba02-cf3c-435f-b756-6991a571100a",
    "item": [
        "<item id=\"item-de32ba02-cf3c-435f-b756-6991a571100a\"><test>item-de32ba02-cf3c-435f-b756-6991a571100a</test></item>"
    ]
}

2022-09-07 22:34:37 | [Mutex] notify: [retrieved:item:item-de32ba02-cf3c-435f-b756-6991a571100a:payload-matches:true:localhost]

2022-09-07 22:34:37 | [Mutex] received everything.

2022-09-07 22:34:37 | [Mutex] isItemNotified: retrieved:item:item-de32ba02-cf3c-435f-b756-6991a571100a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.077s
2022-09-07 22:34:37 |

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

2022-09-07 22:34:37 | ------------------------------------

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

2022-09-07 22:34:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-265b646c-8359-4e35-9959-2da9a188ffd2",
        "test",
        "node-0b6d425f-a505-4393-bc37-6b04c88afd87"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-07 22:34:37 |

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

2022-09-07 22:34:37 | ------------------------------------

2022-09-07 22:34:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0b6d425f-a505-4393-bc37-6b04c88afd87)"
}

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

subscribeNodes 1.013s
2022-09-07 22:34:36 |

2022-09-07 22:34:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-07 22:34:36 | ------------------------------------

2022-09-07 22:34:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0b6d425f-a505-4393-bc37-6b04c88afd87",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.050s
2022-09-07 22:34:37 |

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

2022-09-07 22:34:37 | ------------------------------------

2022-09-07 22:34:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0b6d425f-a505-4393-bc37-6b04c88afd87",
    "jids": [
        "admin@test-domain.com"
    ]
}

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