Generated by TestNG with ReportNG at 22:30 PDT on Wednesday 26 August 2020
root@18d694fe8e0a / 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 : 8.869s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.037s
2020-08-26 22:46:29 |

2020-08-26 22:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:29 | ------------------------------------

2020-08-26 22:46:29 | [Mutex] waiting for: [configured:node:node-ead2202a-6955-49d0-ae7c-835df059e7e8:node-a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6]

2020-08-26 22:46:29 | [Mutex] received everything.

2020-08-26 22:46:29 | [Mutex] isItemNotified: configured:node:node-ead2202a-6955-49d0-ae7c-835df059e7e8:node-a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6 :: true

2020-08-26 22:46:30 | [Mutex] waiting for: [received:nodes:281ff1b8-caae-48f2-beaa-6296e765dccb:localhost]

2020-08-26 22:46:30 | [Mutex] received everything.

2020-08-26 22:46:30 | [Mutex] isItemNotified: received:node:281ff1b8-caae-48f2-beaa-6296e765dccb:localhost:node-ead2202a-6955-49d0-ae7c-835df059e7e8:Node ead2202a-6955-49d0-ae7c-835df059e7e8 :: true

2020-08-26 22:46:30 | [Mutex] waiting for: [received:nodes:e1326626-8f13-4525-8eb0-c22f2b7f134e:localhost]

2020-08-26 22:46:30 | [Mutex] received everything.

2020-08-26 22:46:30 | [Mutex] isItemNotified: received:node:e1326626-8f13-4525-8eb0-c22f2b7f134e:localhost:node-ead2202a-6955-49d0-ae7c-835df059e7e8:Node ead2202a-6955-49d0-ae7c-835df059e7e8 :: false

createNodes 1.609s
2020-08-26 22:46:26 |

2020-08-26 22:46:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:26 | ------------------------------------

2020-08-26 22:46:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ead2202a-6955-49d0-ae7c-835df059e7e8",
    "pubsub#title": "Node ead2202a-6955-49d0-ae7c-835df059e7e8"
}

2020-08-26 22:46:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:46:28 | [Mutex] waiting for: [received:nodes:8c0db0a6-2956-4c77-b551-1e0965b21c55:localhost]

2020-08-26 22:46:28 | [Mutex] received everything.

2020-08-26 22:46:28 | [Mutex] isItemNotified: received:node:8c0db0a6-2956-4c77-b551-1e0965b21c55:localhost:node-ead2202a-6955-49d0-ae7c-835df059e7e8:Node ead2202a-6955-49d0-ae7c-835df059e7e8 :: true

createSubnodes 1.023s
2020-08-26 22:46:28 |

2020-08-26 22:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:28 | ------------------------------------

2020-08-26 22:46:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6",
    "pubsub#title": "Node a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6"
}

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

2020-08-26 22:46:29 | [Mutex] waiting for: [received:nodes:214db49d-af7f-49b7-b078-4b1ceb3c9d3b:localhost]

2020-08-26 22:46:29 | [Mutex] received everything.

2020-08-26 22:46:29 | [Mutex] isItemNotified: received:node:214db49d-af7f-49b7-b078-4b1ceb3c9d3b:localhost:node-a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6:Node a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6 :: true

deleteNodes 1.019s
2020-08-26 22:46:33 |

2020-08-26 22:46:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:33 | ------------------------------------

2020-08-26 22:46:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6"
}

2020-08-26 22:46:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 22:46:34 | [Mutex] waiting for: [received:nodes:9dafe7d4-e5c5-4a98-a5e6-3fc26dbea151:localhost]

2020-08-26 22:46:34 | [Mutex] received everything.

2020-08-26 22:46:34 | [Mutex] isItemNotified: received:node:9dafe7d4-e5c5-4a98-a5e6-3fc26dbea151:localhost:node-a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6:Node a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6 :: false

deleteSubnodes 1.026s
2020-08-26 22:46:32 |

2020-08-26 22:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:32 | ------------------------------------

2020-08-26 22:46:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ead2202a-6955-49d0-ae7c-835df059e7e8"
}

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

2020-08-26 22:46:33 | [Mutex] waiting for: [received:nodes:ccf6ac97-4098-4f2c-bd82-71112db21673:localhost]

2020-08-26 22:46:33 | [Mutex] received everything.

2020-08-26 22:46:33 | [Mutex] isItemNotified: received:node:ccf6ac97-4098-4f2c-bd82-71112db21673:localhost:node-ead2202a-6955-49d0-ae7c-835df059e7e8:Node ead2202a-6955-49d0-ae7c-835df059e7e8 :: false

2020-08-26 22:46:33 | [Mutex] waiting for: [received:nodes:79f9b280-2fa6-4333-816e-1f3cd758fb01:localhost]

2020-08-26 22:46:33 | [Mutex] received everything.

2020-08-26 22:46:33 | [Mutex] isItemNotified: received:node:79f9b280-2fa6-4333-816e-1f3cd758fb01:localhost:node-ead2202a-6955-49d0-ae7c-835df059e7e8:Node ead2202a-6955-49d0-ae7c-835df059e7e8 :: false

publishItemsToNodes 0.031s
2020-08-26 22:46:31 |

2020-08-26 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:31 | ------------------------------------

2020-08-26 22:46:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ead2202a-6955-49d0-ae7c-835df059e7e8",
    "entry": "<test>item-5837a4be-c446-4d3e-b915-85863b1c6e57</test>",
    "item-id": "item-5837a4be-c446-4d3e-b915-85863b1c6e57"
}

2020-08-26 22:46:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5837a4be-c446-4d3e-b915-85863b1c6e57"
}

2020-08-26 22:46:31 | [Mutex] waiting for: [published:item:notifieditem-5837a4be-c446-4d3e-b915-85863b1c6e57:admin@test-domain.com]

2020-08-26 22:46:31 | [Mutex] received everything.

2020-08-26 22:46:31 | [Mutex] isItemNotified: published:item:notifieditem-5837a4be-c446-4d3e-b915-85863b1c6e57:admin@test-domain.com :: true

retractItemsFromNodes 0.080s
2020-08-26 22:46:31 |

2020-08-26 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:31 | ------------------------------------

2020-08-26 22:46:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ead2202a-6955-49d0-ae7c-835df059e7e8",
    "item-id": "item-5837a4be-c446-4d3e-b915-85863b1c6e57"
}

2020-08-26 22:46:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5837a4be-c446-4d3e-b915-85863b1c6e57"
}

2020-08-26 22:46:31 | [Mutex] received everything.

2020-08-26 22:46:31 | [Mutex] isItemNotified: retracted:item:notifieditem-5837a4be-c446-4d3e-b915-85863b1c6e57:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2020-08-26 22:46:31 |

2020-08-26 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:31 | ------------------------------------

2020-08-26 22:46:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ead2202a-6955-49d0-ae7c-835df059e7e8",
    "item-id": "item-5837a4be-c446-4d3e-b915-85863b1c6e57"
}

2020-08-26 22:46:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ead2202a-6955-49d0-ae7c-835df059e7e8",
    "item-id": "item-5837a4be-c446-4d3e-b915-85863b1c6e57",
    "item": [
        "<item id=\"item-5837a4be-c446-4d3e-b915-85863b1c6e57\"><test>item-5837a4be-c446-4d3e-b915-85863b1c6e57</test></item>"
    ]
}

2020-08-26 22:46:31 | [Mutex] notify: [retrieved:item:item-5837a4be-c446-4d3e-b915-85863b1c6e57:payload-matches:true:localhost]

2020-08-26 22:46:31 | [Mutex] received everything.

2020-08-26 22:46:31 | [Mutex] isItemNotified: retrieved:item:item-5837a4be-c446-4d3e-b915-85863b1c6e57:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-08-26 22:46:31 |

2020-08-26 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:31 | ------------------------------------

2020-08-26 22:46:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-26 22:46:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ead2202a-6955-49d0-ae7c-835df059e7e8",
        "test",
        "node-a6bd7b33-7c2f-4e63-9b24-3ca94e65d9f6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-08-26 22:46:31 |

2020-08-26 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:31 | ------------------------------------

2020-08-26 22:46:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ead2202a-6955-49d0-ae7c-835df059e7e8)"
}

2020-08-26 22:46:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-08-26 22:46:30 |

2020-08-26 22:46:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:30 | ------------------------------------

2020-08-26 22:46:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ead2202a-6955-49d0-ae7c-835df059e7e8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-26 22:46:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2020-08-26 22:46:31 |

2020-08-26 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 22:46:31 | ------------------------------------

2020-08-26 22:46:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ead2202a-6955-49d0-ae7c-835df059e7e8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-26 22:46:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}