Generated by TestNG with ReportNG at 22:21 PDT on Friday 02 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 : 9.245s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2020-10-02 22:38:04 |

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

2020-10-02 22:38:04 | ------------------------------------

2020-10-02 22:38:04 | [Mutex] waiting for: [configured:node:node-7475b749-0dc0-4352-b179-b4c0b174a47a:node-e1705929-ebcb-47ef-adc4-80786670412e]

2020-10-02 22:38:04 | [Mutex] received everything.

2020-10-02 22:38:04 | [Mutex] isItemNotified: configured:node:node-7475b749-0dc0-4352-b179-b4c0b174a47a:node-e1705929-ebcb-47ef-adc4-80786670412e :: true

2020-10-02 22:38:05 | [Mutex] waiting for: [received:nodes:78f2424d-590e-4574-9ef2-ef61372ca7c1:localhost]

2020-10-02 22:38:05 | [Mutex] received everything.

2020-10-02 22:38:05 | [Mutex] isItemNotified: received:node:78f2424d-590e-4574-9ef2-ef61372ca7c1:localhost:node-7475b749-0dc0-4352-b179-b4c0b174a47a:Node 7475b749-0dc0-4352-b179-b4c0b174a47a :: true

2020-10-02 22:38:05 | [Mutex] waiting for: [received:nodes:7e2873f9-1bfd-4c70-aa9d-fdc579055752:localhost]

2020-10-02 22:38:05 | [Mutex] received everything.

2020-10-02 22:38:05 | [Mutex] isItemNotified: received:node:7e2873f9-1bfd-4c70-aa9d-fdc579055752:localhost:node-7475b749-0dc0-4352-b179-b4c0b174a47a:Node 7475b749-0dc0-4352-b179-b4c0b174a47a :: false

createNodes 1.808s
2020-10-02 22:38:01 |

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

2020-10-02 22:38:01 | ------------------------------------

2020-10-02 22:38:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7475b749-0dc0-4352-b179-b4c0b174a47a",
    "pubsub#title": "Node 7475b749-0dc0-4352-b179-b4c0b174a47a"
}

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

2020-10-02 22:38:02 | [Mutex] waiting for: [received:nodes:7b6c83de-1f33-4cab-9898-f1d52e18d7ed:localhost]

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

2020-10-02 22:38:02 | [Mutex] isItemNotified: received:node:7b6c83de-1f33-4cab-9898-f1d52e18d7ed:localhost:node-7475b749-0dc0-4352-b179-b4c0b174a47a:Node 7475b749-0dc0-4352-b179-b4c0b174a47a :: true

createSubnodes 1.028s
2020-10-02 22:38:02 |

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

2020-10-02 22:38:02 | ------------------------------------

2020-10-02 22:38:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e1705929-ebcb-47ef-adc4-80786670412e",
    "pubsub#title": "Node e1705929-ebcb-47ef-adc4-80786670412e"
}

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

2020-10-02 22:38:03 | [Mutex] waiting for: [received:nodes:951bc623-9245-44d0-bd15-e78292b9c911:localhost]

2020-10-02 22:38:04 | [Mutex] received everything.

2020-10-02 22:38:04 | [Mutex] isItemNotified: received:node:951bc623-9245-44d0-bd15-e78292b9c911:localhost:node-e1705929-ebcb-47ef-adc4-80786670412e:Node e1705929-ebcb-47ef-adc4-80786670412e :: true

deleteNodes 1.027s
2020-10-02 22:38:08 |

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

2020-10-02 22:38:08 | ------------------------------------

2020-10-02 22:38:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e1705929-ebcb-47ef-adc4-80786670412e"
}

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

2020-10-02 22:38:09 | [Mutex] waiting for: [received:nodes:fcc7eb76-d75e-4c6f-b2f6-c2c2686546ed:localhost]

2020-10-02 22:38:09 | [Mutex] received everything.

2020-10-02 22:38:09 | [Mutex] isItemNotified: received:node:fcc7eb76-d75e-4c6f-b2f6-c2c2686546ed:localhost:node-e1705929-ebcb-47ef-adc4-80786670412e:Node e1705929-ebcb-47ef-adc4-80786670412e :: false

deleteSubnodes 1.022s
2020-10-02 22:38:07 |

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

2020-10-02 22:38:07 | ------------------------------------

2020-10-02 22:38:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7475b749-0dc0-4352-b179-b4c0b174a47a"
}

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

2020-10-02 22:38:08 | [Mutex] waiting for: [received:nodes:83d92526-0f44-4fe1-82ff-4c66fa1cfc1d:localhost]

2020-10-02 22:38:08 | [Mutex] received everything.

2020-10-02 22:38:08 | [Mutex] isItemNotified: received:node:83d92526-0f44-4fe1-82ff-4c66fa1cfc1d:localhost:node-7475b749-0dc0-4352-b179-b4c0b174a47a:Node 7475b749-0dc0-4352-b179-b4c0b174a47a :: false

2020-10-02 22:38:08 | [Mutex] waiting for: [received:nodes:4a2db387-8e4d-4330-b7ac-7fa719d8e0f6:localhost]

2020-10-02 22:38:08 | [Mutex] received everything.

2020-10-02 22:38:08 | [Mutex] isItemNotified: received:node:4a2db387-8e4d-4330-b7ac-7fa719d8e0f6:localhost:node-7475b749-0dc0-4352-b179-b4c0b174a47a:Node 7475b749-0dc0-4352-b179-b4c0b174a47a :: false

publishItemsToNodes 0.038s
2020-10-02 22:38:06 |

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

2020-10-02 22:38:06 | ------------------------------------

2020-10-02 22:38:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7475b749-0dc0-4352-b179-b4c0b174a47a",
    "entry": "<test>item-7685ad54-a9f2-4c15-aec4-32d6087d10a2</test>",
    "item-id": "item-7685ad54-a9f2-4c15-aec4-32d6087d10a2"
}

2020-10-02 22:38:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7685ad54-a9f2-4c15-aec4-32d6087d10a2"
}

2020-10-02 22:38:06 | [Mutex] waiting for: [published:item:notifieditem-7685ad54-a9f2-4c15-aec4-32d6087d10a2:admin@test-domain.com]

2020-10-02 22:38:06 | [Mutex] received everything.

2020-10-02 22:38:06 | [Mutex] isItemNotified: published:item:notifieditem-7685ad54-a9f2-4c15-aec4-32d6087d10a2:admin@test-domain.com :: true

retractItemsFromNodes 0.104s
2020-10-02 22:38:06 |

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

2020-10-02 22:38:06 | ------------------------------------

2020-10-02 22:38:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7475b749-0dc0-4352-b179-b4c0b174a47a",
    "item-id": "item-7685ad54-a9f2-4c15-aec4-32d6087d10a2"
}

2020-10-02 22:38:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7685ad54-a9f2-4c15-aec4-32d6087d10a2"
}

2020-10-02 22:38:06 | [Mutex] received everything.

2020-10-02 22:38:06 | [Mutex] isItemNotified: retracted:item:notifieditem-7685ad54-a9f2-4c15-aec4-32d6087d10a2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2020-10-02 22:38:06 |

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

2020-10-02 22:38:06 | ------------------------------------

2020-10-02 22:38:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7475b749-0dc0-4352-b179-b4c0b174a47a",
    "item-id": "item-7685ad54-a9f2-4c15-aec4-32d6087d10a2"
}

2020-10-02 22:38:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7475b749-0dc0-4352-b179-b4c0b174a47a",
    "item-id": "item-7685ad54-a9f2-4c15-aec4-32d6087d10a2",
    "item": [
        "<item id=\"item-7685ad54-a9f2-4c15-aec4-32d6087d10a2\"><test>item-7685ad54-a9f2-4c15-aec4-32d6087d10a2</test></item>"
    ]
}

2020-10-02 22:38:06 | [Mutex] notify: [retrieved:item:item-7685ad54-a9f2-4c15-aec4-32d6087d10a2:payload-matches:true:localhost]

2020-10-02 22:38:06 | [Mutex] received everything.

2020-10-02 22:38:06 | [Mutex] isItemNotified: retrieved:item:item-7685ad54-a9f2-4c15-aec4-32d6087d10a2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-10-02 22:38:06 |

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

2020-10-02 22:38:06 | ------------------------------------

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

2020-10-02 22:38:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7475b749-0dc0-4352-b179-b4c0b174a47a",
        "node-e1705929-ebcb-47ef-adc4-80786670412e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-02 22:38:06 |

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

2020-10-02 22:38:06 | ------------------------------------

2020-10-02 22:38:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7475b749-0dc0-4352-b179-b4c0b174a47a)"
}

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

subscribeNodes 1.009s
2020-10-02 22:38:05 |

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

2020-10-02 22:38:05 | ------------------------------------

2020-10-02 22:38:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7475b749-0dc0-4352-b179-b4c0b174a47a",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.064s
2020-10-02 22:38:06 |

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

2020-10-02 22:38:06 | ------------------------------------

2020-10-02 22:38:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7475b749-0dc0-4352-b179-b4c0b174a47a",
    "jids": [
        "admin@test-domain.com"
    ]
}

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