Generated by TestNG with ReportNG at 22:14 PDT on Sunday 11 October 2020
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.944s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2020-10-11 22:29:01 |

2020-10-11 22:29:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:01 | ------------------------------------

2020-10-11 22:29:01 | [Mutex] waiting for: [configured:node:node-257f70c1-4cf1-4393-b44b-99c3bc5e6313:node-13e88a19-b926-4309-86c4-c0ba064b5f0f]

2020-10-11 22:29:01 | [Mutex] received everything.

2020-10-11 22:29:01 | [Mutex] isItemNotified: configured:node:node-257f70c1-4cf1-4393-b44b-99c3bc5e6313:node-13e88a19-b926-4309-86c4-c0ba064b5f0f :: true

2020-10-11 22:29:02 | [Mutex] waiting for: [received:nodes:ca435c61-62bc-49a5-8626-407ee6bdac6a:localhost]

2020-10-11 22:29:02 | [Mutex] received everything.

2020-10-11 22:29:02 | [Mutex] isItemNotified: received:node:ca435c61-62bc-49a5-8626-407ee6bdac6a:localhost:node-257f70c1-4cf1-4393-b44b-99c3bc5e6313:Node 257f70c1-4cf1-4393-b44b-99c3bc5e6313 :: true

2020-10-11 22:29:02 | [Mutex] waiting for: [received:nodes:0ff10471-dc95-4fec-abae-32f89b57ec49:localhost]

2020-10-11 22:29:02 | [Mutex] waiting for: [received:nodes:0ff10471-dc95-4fec-abae-32f89b57ec49:localhost]

2020-10-11 22:29:02 | [Mutex] waiting for: [received:nodes:0ff10471-dc95-4fec-abae-32f89b57ec49:localhost]

2020-10-11 22:29:02 | [Mutex] received everything.

2020-10-11 22:29:02 | [Mutex] isItemNotified: received:node:0ff10471-dc95-4fec-abae-32f89b57ec49:localhost:node-257f70c1-4cf1-4393-b44b-99c3bc5e6313:Node 257f70c1-4cf1-4393-b44b-99c3bc5e6313 :: false

createNodes 1.551s
2020-10-11 22:28:59 |

2020-10-11 22:28:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:28:59 | ------------------------------------

2020-10-11 22:28:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-257f70c1-4cf1-4393-b44b-99c3bc5e6313",
    "pubsub#title": "Node 257f70c1-4cf1-4393-b44b-99c3bc5e6313"
}

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

2020-10-11 22:29:00 | [Mutex] waiting for: [received:nodes:8cc11230-9f69-4d9b-85d6-152d984c432a:localhost]

2020-10-11 22:29:00 | [Mutex] received everything.

2020-10-11 22:29:00 | [Mutex] isItemNotified: received:node:8cc11230-9f69-4d9b-85d6-152d984c432a:localhost:node-257f70c1-4cf1-4393-b44b-99c3bc5e6313:Node 257f70c1-4cf1-4393-b44b-99c3bc5e6313 :: true

createSubnodes 1.034s
2020-10-11 22:29:00 |

2020-10-11 22:29:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:00 | ------------------------------------

2020-10-11 22:29:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-13e88a19-b926-4309-86c4-c0ba064b5f0f",
    "pubsub#title": "Node 13e88a19-b926-4309-86c4-c0ba064b5f0f"
}

2020-10-11 22:29:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-11 22:29:01 | [Mutex] waiting for: [received:nodes:f1e0b42b-040d-45da-9c86-ab2e7ade8d10:localhost]

2020-10-11 22:29:01 | [Mutex] received everything.

2020-10-11 22:29:01 | [Mutex] isItemNotified: received:node:f1e0b42b-040d-45da-9c86-ab2e7ade8d10:localhost:node-13e88a19-b926-4309-86c4-c0ba064b5f0f:Node 13e88a19-b926-4309-86c4-c0ba064b5f0f :: true

deleteNodes 1.024s
2020-10-11 22:29:06 |

2020-10-11 22:29:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:06 | ------------------------------------

2020-10-11 22:29:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-13e88a19-b926-4309-86c4-c0ba064b5f0f"
}

2020-10-11 22:29:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-11 22:29:07 | [Mutex] waiting for: [received:nodes:9c6e0831-b056-4c11-bb8c-a3fd7e16571d:localhost]

2020-10-11 22:29:07 | [Mutex] received everything.

2020-10-11 22:29:07 | [Mutex] isItemNotified: received:node:9c6e0831-b056-4c11-bb8c-a3fd7e16571d:localhost:node-13e88a19-b926-4309-86c4-c0ba064b5f0f:Node 13e88a19-b926-4309-86c4-c0ba064b5f0f :: false

deleteSubnodes 1.031s
2020-10-11 22:29:05 |

2020-10-11 22:29:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:05 | ------------------------------------

2020-10-11 22:29:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-257f70c1-4cf1-4393-b44b-99c3bc5e6313"
}

2020-10-11 22:29:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-11 22:29:06 | [Mutex] waiting for: [received:nodes:bb4791dc-d601-4095-9212-45e1011a12fd:localhost]

2020-10-11 22:29:06 | [Mutex] received everything.

2020-10-11 22:29:06 | [Mutex] isItemNotified: received:node:bb4791dc-d601-4095-9212-45e1011a12fd:localhost:node-257f70c1-4cf1-4393-b44b-99c3bc5e6313:Node 257f70c1-4cf1-4393-b44b-99c3bc5e6313 :: false

2020-10-11 22:29:06 | [Mutex] waiting for: [received:nodes:248e1bcf-2fc9-4805-8aa9-66edb46fd5d4:localhost]

2020-10-11 22:29:06 | [Mutex] received everything.

2020-10-11 22:29:06 | [Mutex] isItemNotified: received:node:248e1bcf-2fc9-4805-8aa9-66edb46fd5d4:localhost:node-257f70c1-4cf1-4393-b44b-99c3bc5e6313:Node 257f70c1-4cf1-4393-b44b-99c3bc5e6313 :: false

publishItemsToNodes 0.059s
2020-10-11 22:29:03 |

2020-10-11 22:29:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:03 | ------------------------------------

2020-10-11 22:29:03 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-257f70c1-4cf1-4393-b44b-99c3bc5e6313",
    "entry": "<test>item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b</test>",
    "item-id": "item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b"
}

2020-10-11 22:29:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b"
}

2020-10-11 22:29:04 | [Mutex] waiting for: [published:item:notifieditem-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b:admin@test-domain.com]

2020-10-11 22:29:04 | [Mutex] received everything.

2020-10-11 22:29:04 | [Mutex] isItemNotified: published:item:notifieditem-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b:admin@test-domain.com :: true

retractItemsFromNodes 0.120s
2020-10-11 22:29:04 |

2020-10-11 22:29:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:04 | ------------------------------------

2020-10-11 22:29:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-257f70c1-4cf1-4393-b44b-99c3bc5e6313",
    "item-id": "item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b"
}

2020-10-11 22:29:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b"
}

2020-10-11 22:29:04 | [Mutex] waiting for: [retracted:item:notifieditem-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b:admin@test-domain.com]

2020-10-11 22:29:04 | [Mutex] received everything.

2020-10-11 22:29:04 | [Mutex] isItemNotified: retracted:item:notifieditem-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.050s
2020-10-11 22:29:04 |

2020-10-11 22:29:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:04 | ------------------------------------

2020-10-11 22:29:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-257f70c1-4cf1-4393-b44b-99c3bc5e6313",
    "item-id": "item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b"
}

2020-10-11 22:29:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-257f70c1-4cf1-4393-b44b-99c3bc5e6313",
    "item-id": "item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b",
    "item": [
        "<item id=\"item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b\"><test>item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b</test></item>"
    ]
}

2020-10-11 22:29:04 | [Mutex] notify: [retrieved:item:item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b:payload-matches:true:localhost]

2020-10-11 22:29:04 | [Mutex] received everything.

2020-10-11 22:29:04 | [Mutex] isItemNotified: retrieved:item:item-c6f6f109-67f4-4f1b-b7c9-d10ded1efc1b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-10-11 22:29:04 |

2020-10-11 22:29:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:04 | ------------------------------------

2020-10-11 22:29:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-11 22:29:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-257f70c1-4cf1-4393-b44b-99c3bc5e6313",
        "node-13e88a19-b926-4309-86c4-c0ba064b5f0f",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-10-11 22:29:04 |

2020-10-11 22:29:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:04 | ------------------------------------

2020-10-11 22:29:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-257f70c1-4cf1-4393-b44b-99c3bc5e6313)"
}

2020-10-11 22:29:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-10-11 22:29:02 |

2020-10-11 22:29:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:02 | ------------------------------------

2020-10-11 22:29:02 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-257f70c1-4cf1-4393-b44b-99c3bc5e6313",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.014s
2020-10-11 22:29:04 |

2020-10-11 22:29:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-11 22:29:04 | ------------------------------------

2020-10-11 22:29:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-257f70c1-4cf1-4393-b44b-99c3bc5e6313",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-11 22:29:04 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}