Generated by TestNG with ReportNG at 21:13 PST on Thursday 26 November 2020
root@43fec6d4badf / Java 11.0.8 (Ubuntu) / 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 : 9.022s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.150s
2020-11-26 21:28:27 |

2020-11-26 21:28:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:27 | ------------------------------------

2020-11-26 21:28:28 | [Mutex] waiting for: [configured:node:node-c81bf463-b274-4482-a3f7-3b99449da69c:node-8a3bb9b0-3ab0-416b-a324-b8a4957954ba]

2020-11-26 21:28:28 | [Mutex] received everything.

2020-11-26 21:28:28 | [Mutex] isItemNotified: configured:node:node-c81bf463-b274-4482-a3f7-3b99449da69c:node-8a3bb9b0-3ab0-416b-a324-b8a4957954ba :: true

2020-11-26 21:28:29 | [Mutex] waiting for: [received:nodes:0b28b6bc-8ec8-4e0f-a779-822f22c5f573:localhost]

2020-11-26 21:28:29 | [Mutex] received everything.

2020-11-26 21:28:29 | [Mutex] isItemNotified: received:node:0b28b6bc-8ec8-4e0f-a779-822f22c5f573:localhost:node-c81bf463-b274-4482-a3f7-3b99449da69c:Node c81bf463-b274-4482-a3f7-3b99449da69c :: true

2020-11-26 21:28:29 | [Mutex] waiting for: [received:nodes:551843d5-0156-4754-b1a7-5640743a0a78:localhost]

2020-11-26 21:28:29 | [Mutex] received everything.

2020-11-26 21:28:29 | [Mutex] isItemNotified: received:node:551843d5-0156-4754-b1a7-5640743a0a78:localhost:node-c81bf463-b274-4482-a3f7-3b99449da69c:Node c81bf463-b274-4482-a3f7-3b99449da69c :: false

createNodes 1.736s
2020-11-26 21:28:25 |

2020-11-26 21:28:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:25 | ------------------------------------

2020-11-26 21:28:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c81bf463-b274-4482-a3f7-3b99449da69c",
    "pubsub#title": "Node c81bf463-b274-4482-a3f7-3b99449da69c"
}

2020-11-26 21:28:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-26 21:28:26 | [Mutex] waiting for: [received:nodes:d0e45661-b59f-4a37-9d1b-71e5db2d3a54:localhost]

2020-11-26 21:28:26 | [Mutex] waiting for: [received:nodes:d0e45661-b59f-4a37-9d1b-71e5db2d3a54:localhost]

2020-11-26 21:28:26 | [Mutex] received everything.

2020-11-26 21:28:26 | [Mutex] isItemNotified: received:node:d0e45661-b59f-4a37-9d1b-71e5db2d3a54:localhost:node-c81bf463-b274-4482-a3f7-3b99449da69c:Node c81bf463-b274-4482-a3f7-3b99449da69c :: true

createSubnodes 1.031s
2020-11-26 21:28:26 |

2020-11-26 21:28:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:26 | ------------------------------------

2020-11-26 21:28:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8a3bb9b0-3ab0-416b-a324-b8a4957954ba",
    "pubsub#title": "Node 8a3bb9b0-3ab0-416b-a324-b8a4957954ba"
}

2020-11-26 21:28:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-26 21:28:27 | [Mutex] waiting for: [received:nodes:2220e68b-584f-4db8-9b85-b7453bb32070:localhost]

2020-11-26 21:28:27 | [Mutex] received everything.

2020-11-26 21:28:27 | [Mutex] isItemNotified: received:node:2220e68b-584f-4db8-9b85-b7453bb32070:localhost:node-8a3bb9b0-3ab0-416b-a324-b8a4957954ba:Node 8a3bb9b0-3ab0-416b-a324-b8a4957954ba :: true

deleteNodes 1.023s
2020-11-26 21:28:32 |

2020-11-26 21:28:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:32 | ------------------------------------

2020-11-26 21:28:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8a3bb9b0-3ab0-416b-a324-b8a4957954ba"
}

2020-11-26 21:28:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-26 21:28:33 | [Mutex] waiting for: [received:nodes:e0e0dbcb-2b30-4a47-bc66-2fd0506117be:localhost]

2020-11-26 21:28:33 | [Mutex] waiting for: [received:nodes:e0e0dbcb-2b30-4a47-bc66-2fd0506117be:localhost]

2020-11-26 21:28:33 | [Mutex] received everything.

2020-11-26 21:28:33 | [Mutex] isItemNotified: received:node:e0e0dbcb-2b30-4a47-bc66-2fd0506117be:localhost:node-8a3bb9b0-3ab0-416b-a324-b8a4957954ba:Node 8a3bb9b0-3ab0-416b-a324-b8a4957954ba :: false

deleteSubnodes 1.029s
2020-11-26 21:28:31 |

2020-11-26 21:28:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:31 | ------------------------------------

2020-11-26 21:28:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c81bf463-b274-4482-a3f7-3b99449da69c"
}

2020-11-26 21:28:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-26 21:28:32 | [Mutex] waiting for: [received:nodes:b988956d-1347-4086-8d13-7b92e04a8322:localhost]

2020-11-26 21:28:32 | [Mutex] waiting for: [received:nodes:b988956d-1347-4086-8d13-7b92e04a8322:localhost]

2020-11-26 21:28:32 | [Mutex] received everything.

2020-11-26 21:28:32 | [Mutex] isItemNotified: received:node:b988956d-1347-4086-8d13-7b92e04a8322:localhost:node-c81bf463-b274-4482-a3f7-3b99449da69c:Node c81bf463-b274-4482-a3f7-3b99449da69c :: false

2020-11-26 21:28:32 | [Mutex] waiting for: [received:nodes:6bf15d22-23c4-4a57-bb76-f0f1d4272eb7:localhost]

2020-11-26 21:28:32 | [Mutex] received everything.

2020-11-26 21:28:32 | [Mutex] isItemNotified: received:node:6bf15d22-23c4-4a57-bb76-f0f1d4272eb7:localhost:node-c81bf463-b274-4482-a3f7-3b99449da69c:Node c81bf463-b274-4482-a3f7-3b99449da69c :: false

publishItemsToNodes 0.055s
2020-11-26 21:28:30 |

2020-11-26 21:28:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:30 | ------------------------------------

2020-11-26 21:28:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c81bf463-b274-4482-a3f7-3b99449da69c",
    "entry": "<test>item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160</test>",
    "item-id": "item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160"
}

2020-11-26 21:28:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160"
}

2020-11-26 21:28:30 | [Mutex] waiting for: [published:item:notifieditem-f6bd6009-f5a6-4e32-bbfa-0aca2e823160:admin@test-domain.com]

2020-11-26 21:28:30 | [Mutex] received everything.

2020-11-26 21:28:30 | [Mutex] isItemNotified: published:item:notifieditem-f6bd6009-f5a6-4e32-bbfa-0aca2e823160:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2020-11-26 21:28:30 |

2020-11-26 21:28:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:30 | ------------------------------------

2020-11-26 21:28:30 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c81bf463-b274-4482-a3f7-3b99449da69c",
    "item-id": "item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160"
}

2020-11-26 21:28:30 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160"
}

2020-11-26 21:28:30 | [Mutex] received everything.

2020-11-26 21:28:30 | [Mutex] isItemNotified: retracted:item:notifieditem-f6bd6009-f5a6-4e32-bbfa-0aca2e823160:admin@test-domain.com :: true

retrieveItemsFromNodes 0.021s
2020-11-26 21:28:30 |

2020-11-26 21:28:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:30 | ------------------------------------

2020-11-26 21:28:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c81bf463-b274-4482-a3f7-3b99449da69c",
    "item-id": "item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160"
}

2020-11-26 21:28:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c81bf463-b274-4482-a3f7-3b99449da69c",
    "item-id": "item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160",
    "item": [
        "<item id=\"item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160\"><test>item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160</test></item>"
    ]
}

2020-11-26 21:28:30 | [Mutex] notify: [retrieved:item:item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160:payload-matches:true:localhost]

2020-11-26 21:28:30 | [Mutex] received everything.

2020-11-26 21:28:30 | [Mutex] isItemNotified: retrieved:item:item-f6bd6009-f5a6-4e32-bbfa-0aca2e823160:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2020-11-26 21:28:30 |

2020-11-26 21:28:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:30 | ------------------------------------

2020-11-26 21:28:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-26 21:28:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c81bf463-b274-4482-a3f7-3b99449da69c",
        "node-8a3bb9b0-3ab0-416b-a324-b8a4957954ba"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-11-26 21:28:30 |

2020-11-26 21:28:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:30 | ------------------------------------

2020-11-26 21:28:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c81bf463-b274-4482-a3f7-3b99449da69c)"
}

2020-11-26 21:28:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-11-26 21:28:29 |

2020-11-26 21:28:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:29 | ------------------------------------

2020-11-26 21:28:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c81bf463-b274-4482-a3f7-3b99449da69c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-26 21:28:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.069s
2020-11-26 21:28:30 |

2020-11-26 21:28:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-26 21:28:30 | ------------------------------------

2020-11-26 21:28:30 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c81bf463-b274-4482-a3f7-3b99449da69c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-26 21:28:30 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}