Generated by TestNG with ReportNG at 05:43 PST on Wednesday 27 January 2021
root@eaa73862192b / 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.952s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2021-01-27 05:57:34 |

2021-01-27 05:57:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:34 | ------------------------------------

2021-01-27 05:57:34 | [Mutex] waiting for: [configured:node:node-a6328049-30cd-418e-bcc7-7cb3254610c4:node-01db706f-5d58-4120-97b7-cf9cd3b38edc]

2021-01-27 05:57:34 | [Mutex] received everything.

2021-01-27 05:57:34 | [Mutex] isItemNotified: configured:node:node-a6328049-30cd-418e-bcc7-7cb3254610c4:node-01db706f-5d58-4120-97b7-cf9cd3b38edc :: true

2021-01-27 05:57:35 | [Mutex] waiting for: [received:nodes:8ac1867d-d7d2-4d40-a38d-8928080836e1:localhost]

2021-01-27 05:57:35 | [Mutex] received everything.

2021-01-27 05:57:35 | [Mutex] isItemNotified: received:node:8ac1867d-d7d2-4d40-a38d-8928080836e1:localhost:node-a6328049-30cd-418e-bcc7-7cb3254610c4:Node a6328049-30cd-418e-bcc7-7cb3254610c4 :: true

2021-01-27 05:57:35 | [Mutex] waiting for: [received:nodes:d0421a10-3c8e-42a7-8749-9b47c35fccf4:localhost]

2021-01-27 05:57:35 | [Mutex] waiting for: [received:nodes:d0421a10-3c8e-42a7-8749-9b47c35fccf4:localhost]

2021-01-27 05:57:35 | [Mutex] received everything.

2021-01-27 05:57:35 | [Mutex] isItemNotified: received:node:d0421a10-3c8e-42a7-8749-9b47c35fccf4:localhost:node-a6328049-30cd-418e-bcc7-7cb3254610c4:Node a6328049-30cd-418e-bcc7-7cb3254610c4 :: false

createNodes 1.716s
2021-01-27 05:57:31 |

2021-01-27 05:57:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:31 | ------------------------------------

2021-01-27 05:57:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a6328049-30cd-418e-bcc7-7cb3254610c4",
    "pubsub#title": "Node a6328049-30cd-418e-bcc7-7cb3254610c4"
}

2021-01-27 05:57:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:57:33 | [Mutex] waiting for: [received:nodes:d37c8652-5ddc-4870-be53-150c161b6bed:localhost]

2021-01-27 05:57:33 | [Mutex] received everything.

2021-01-27 05:57:33 | [Mutex] isItemNotified: received:node:d37c8652-5ddc-4870-be53-150c161b6bed:localhost:node-a6328049-30cd-418e-bcc7-7cb3254610c4:Node a6328049-30cd-418e-bcc7-7cb3254610c4 :: true

createSubnodes 1.042s
2021-01-27 05:57:33 |

2021-01-27 05:57:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:33 | ------------------------------------

2021-01-27 05:57:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-01db706f-5d58-4120-97b7-cf9cd3b38edc",
    "pubsub#title": "Node 01db706f-5d58-4120-97b7-cf9cd3b38edc"
}

2021-01-27 05:57:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:57:34 | [Mutex] waiting for: [received:nodes:57eba494-7c0f-4b77-8425-8b29f8186914:localhost]

2021-01-27 05:57:34 | [Mutex] received everything.

2021-01-27 05:57:34 | [Mutex] isItemNotified: received:node:57eba494-7c0f-4b77-8425-8b29f8186914:localhost:node-01db706f-5d58-4120-97b7-cf9cd3b38edc:Node 01db706f-5d58-4120-97b7-cf9cd3b38edc :: true

deleteNodes 1.023s
2021-01-27 05:57:39 |

2021-01-27 05:57:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:39 | ------------------------------------

2021-01-27 05:57:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-01db706f-5d58-4120-97b7-cf9cd3b38edc"
}

2021-01-27 05:57:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:57:40 | [Mutex] waiting for: [received:nodes:9610e98e-61dc-4550-9d72-e60fccc76c10:localhost]

2021-01-27 05:57:40 | [Mutex] received everything.

2021-01-27 05:57:40 | [Mutex] isItemNotified: received:node:9610e98e-61dc-4550-9d72-e60fccc76c10:localhost:node-01db706f-5d58-4120-97b7-cf9cd3b38edc:Node 01db706f-5d58-4120-97b7-cf9cd3b38edc :: false

deleteSubnodes 1.034s
2021-01-27 05:57:38 |

2021-01-27 05:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:38 | ------------------------------------

2021-01-27 05:57:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a6328049-30cd-418e-bcc7-7cb3254610c4"
}

2021-01-27 05:57:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 05:57:39 | [Mutex] waiting for: [received:nodes:9b302b28-5c01-4b15-8e2f-0a6ccaeda66c:localhost]

2021-01-27 05:57:39 | [Mutex] waiting for: [received:nodes:9b302b28-5c01-4b15-8e2f-0a6ccaeda66c:localhost]

2021-01-27 05:57:39 | [Mutex] received everything.

2021-01-27 05:57:39 | [Mutex] isItemNotified: received:node:9b302b28-5c01-4b15-8e2f-0a6ccaeda66c:localhost:node-a6328049-30cd-418e-bcc7-7cb3254610c4:Node a6328049-30cd-418e-bcc7-7cb3254610c4 :: false

2021-01-27 05:57:39 | [Mutex] waiting for: [received:nodes:6cf12d24-efe2-4a77-9717-4a46526cdf7c:localhost]

2021-01-27 05:57:39 | [Mutex] received everything.

2021-01-27 05:57:39 | [Mutex] isItemNotified: received:node:6cf12d24-efe2-4a77-9717-4a46526cdf7c:localhost:node-a6328049-30cd-418e-bcc7-7cb3254610c4:Node a6328049-30cd-418e-bcc7-7cb3254610c4 :: false

publishItemsToNodes 0.052s
2021-01-27 05:57:36 |

2021-01-27 05:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:36 | ------------------------------------

2021-01-27 05:57:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a6328049-30cd-418e-bcc7-7cb3254610c4",
    "entry": "<test>item-2045876e-956e-47ab-a043-731ede1d9d76</test>",
    "item-id": "item-2045876e-956e-47ab-a043-731ede1d9d76"
}

2021-01-27 05:57:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2045876e-956e-47ab-a043-731ede1d9d76"
}

2021-01-27 05:57:36 | [Mutex] waiting for: [published:item:notifieditem-2045876e-956e-47ab-a043-731ede1d9d76:admin@test-domain.com]

2021-01-27 05:57:36 | [Mutex] received everything.

2021-01-27 05:57:36 | [Mutex] isItemNotified: published:item:notifieditem-2045876e-956e-47ab-a043-731ede1d9d76:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2021-01-27 05:57:37 |

2021-01-27 05:57:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:37 | ------------------------------------

2021-01-27 05:57:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a6328049-30cd-418e-bcc7-7cb3254610c4",
    "item-id": "item-2045876e-956e-47ab-a043-731ede1d9d76"
}

2021-01-27 05:57:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2045876e-956e-47ab-a043-731ede1d9d76"
}

2021-01-27 05:57:37 | [Mutex] received everything.

2021-01-27 05:57:37 | [Mutex] isItemNotified: retracted:item:notifieditem-2045876e-956e-47ab-a043-731ede1d9d76:admin@test-domain.com :: true

retrieveItemsFromNodes 0.035s
2021-01-27 05:57:36 |

2021-01-27 05:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:36 | ------------------------------------

2021-01-27 05:57:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a6328049-30cd-418e-bcc7-7cb3254610c4",
    "item-id": "item-2045876e-956e-47ab-a043-731ede1d9d76"
}

2021-01-27 05:57:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a6328049-30cd-418e-bcc7-7cb3254610c4",
    "item-id": "item-2045876e-956e-47ab-a043-731ede1d9d76",
    "item": [
        "<item id=\"item-2045876e-956e-47ab-a043-731ede1d9d76\"><test>item-2045876e-956e-47ab-a043-731ede1d9d76</test></item>"
    ]
}

2021-01-27 05:57:36 | [Mutex] notify: [retrieved:item:item-2045876e-956e-47ab-a043-731ede1d9d76:payload-matches:true:localhost]

2021-01-27 05:57:36 | [Mutex] received everything.

2021-01-27 05:57:36 | [Mutex] isItemNotified: retrieved:item:item-2045876e-956e-47ab-a043-731ede1d9d76:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.067s
2021-01-27 05:57:36 |

2021-01-27 05:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:36 | ------------------------------------

2021-01-27 05:57:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-27 05:57:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-01db706f-5d58-4120-97b7-cf9cd3b38edc",
        "test",
        "node-a6328049-30cd-418e-bcc7-7cb3254610c4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-01-27 05:57:36 |

2021-01-27 05:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:36 | ------------------------------------

2021-01-27 05:57:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a6328049-30cd-418e-bcc7-7cb3254610c4)"
}

2021-01-27 05:57:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-01-27 05:57:35 |

2021-01-27 05:57:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:35 | ------------------------------------

2021-01-27 05:57:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a6328049-30cd-418e-bcc7-7cb3254610c4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 05:57:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2021-01-27 05:57:37 |

2021-01-27 05:57:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 05:57:37 | ------------------------------------

2021-01-27 05:57:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a6328049-30cd-418e-bcc7-7cb3254610c4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 05:57:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}