Generated by TestNG with ReportNG at 21:09 PST on Monday 01 March 2021
root@87f6aca6b6f2 / 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.205s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2021-03-01 21:30:31 |

2021-03-01 21:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:31 | ------------------------------------

2021-03-01 21:30:31 | [Mutex] waiting for: [configured:node:node-a8ee0292-7e37-4c1f-a823-e087f552c9bd:node-121292d2-613f-4b1b-a9be-4ed5af156bdc]

2021-03-01 21:30:31 | [Mutex] received everything.

2021-03-01 21:30:31 | [Mutex] isItemNotified: configured:node:node-a8ee0292-7e37-4c1f-a823-e087f552c9bd:node-121292d2-613f-4b1b-a9be-4ed5af156bdc :: true

2021-03-01 21:30:32 | [Mutex] waiting for: [received:nodes:de0b860a-11b9-44c4-b2e8-74359c41d7ab:localhost]

2021-03-01 21:30:32 | [Mutex] received everything.

2021-03-01 21:30:32 | [Mutex] isItemNotified: received:node:de0b860a-11b9-44c4-b2e8-74359c41d7ab:localhost:node-a8ee0292-7e37-4c1f-a823-e087f552c9bd:Node a8ee0292-7e37-4c1f-a823-e087f552c9bd :: true

2021-03-01 21:30:32 | [Mutex] waiting for: [received:nodes:f5073a3d-aefb-4889-8fe1-dfcac0de02bc:localhost]

2021-03-01 21:30:32 | [Mutex] received everything.

2021-03-01 21:30:32 | [Mutex] isItemNotified: received:node:f5073a3d-aefb-4889-8fe1-dfcac0de02bc:localhost:node-a8ee0292-7e37-4c1f-a823-e087f552c9bd:Node a8ee0292-7e37-4c1f-a823-e087f552c9bd :: false

createNodes 1.832s
2021-03-01 21:30:28 |

2021-03-01 21:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:28 | ------------------------------------

2021-03-01 21:30:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a8ee0292-7e37-4c1f-a823-e087f552c9bd",
    "pubsub#title": "Node a8ee0292-7e37-4c1f-a823-e087f552c9bd"
}

2021-03-01 21:30:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:30:30 | [Mutex] waiting for: [received:nodes:6689a4e6-4307-4c62-b7b4-af045aa57cce:localhost]

2021-03-01 21:30:30 | [Mutex] received everything.

2021-03-01 21:30:30 | [Mutex] isItemNotified: received:node:6689a4e6-4307-4c62-b7b4-af045aa57cce:localhost:node-a8ee0292-7e37-4c1f-a823-e087f552c9bd:Node a8ee0292-7e37-4c1f-a823-e087f552c9bd :: true

createSubnodes 1.022s
2021-03-01 21:30:30 |

2021-03-01 21:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:30 | ------------------------------------

2021-03-01 21:30:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-121292d2-613f-4b1b-a9be-4ed5af156bdc",
    "pubsub#title": "Node 121292d2-613f-4b1b-a9be-4ed5af156bdc"
}

2021-03-01 21:30:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:30:31 | [Mutex] waiting for: [received:nodes:32fc57a3-00b5-4f3a-b394-d61ad9cdfa18:localhost]

2021-03-01 21:30:31 | [Mutex] received everything.

2021-03-01 21:30:31 | [Mutex] isItemNotified: received:node:32fc57a3-00b5-4f3a-b394-d61ad9cdfa18:localhost:node-121292d2-613f-4b1b-a9be-4ed5af156bdc:Node 121292d2-613f-4b1b-a9be-4ed5af156bdc :: true

deleteNodes 1.033s
2021-03-01 21:30:35 |

2021-03-01 21:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:35 | ------------------------------------

2021-03-01 21:30:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-121292d2-613f-4b1b-a9be-4ed5af156bdc"
}

2021-03-01 21:30:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:30:36 | [Mutex] waiting for: [received:nodes:f34007be-8939-4579-a5b6-a027235d15cb:localhost]

2021-03-01 21:30:36 | [Mutex] waiting for: [received:nodes:f34007be-8939-4579-a5b6-a027235d15cb:localhost]

2021-03-01 21:30:36 | [Mutex] received everything.

2021-03-01 21:30:36 | [Mutex] isItemNotified: received:node:f34007be-8939-4579-a5b6-a027235d15cb:localhost:node-121292d2-613f-4b1b-a9be-4ed5af156bdc:Node 121292d2-613f-4b1b-a9be-4ed5af156bdc :: false

deleteSubnodes 1.027s
2021-03-01 21:30:34 |

2021-03-01 21:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:34 | ------------------------------------

2021-03-01 21:30:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a8ee0292-7e37-4c1f-a823-e087f552c9bd"
}

2021-03-01 21:30:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:30:35 | [Mutex] waiting for: [received:nodes:3e48bf48-b72a-459e-af26-4abd3bc5730c:localhost]

2021-03-01 21:30:35 | [Mutex] waiting for: [received:nodes:3e48bf48-b72a-459e-af26-4abd3bc5730c:localhost]

2021-03-01 21:30:35 | [Mutex] waiting for: [received:nodes:3e48bf48-b72a-459e-af26-4abd3bc5730c:localhost]

2021-03-01 21:30:35 | [Mutex] received everything.

2021-03-01 21:30:35 | [Mutex] isItemNotified: received:node:3e48bf48-b72a-459e-af26-4abd3bc5730c:localhost:node-a8ee0292-7e37-4c1f-a823-e087f552c9bd:Node a8ee0292-7e37-4c1f-a823-e087f552c9bd :: false

2021-03-01 21:30:35 | [Mutex] waiting for: [received:nodes:8f8e68ae-71d4-40a9-97a6-8e6dce2e94e0:localhost]

2021-03-01 21:30:35 | [Mutex] received everything.

2021-03-01 21:30:35 | [Mutex] isItemNotified: received:node:8f8e68ae-71d4-40a9-97a6-8e6dce2e94e0:localhost:node-a8ee0292-7e37-4c1f-a823-e087f552c9bd:Node a8ee0292-7e37-4c1f-a823-e087f552c9bd :: false

publishItemsToNodes 0.060s
2021-03-01 21:30:33 |

2021-03-01 21:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:33 | ------------------------------------

2021-03-01 21:30:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a8ee0292-7e37-4c1f-a823-e087f552c9bd",
    "entry": "<test>item-f5497bb5-7f46-41ee-8ee5-29c9af983c43</test>",
    "item-id": "item-f5497bb5-7f46-41ee-8ee5-29c9af983c43"
}

2021-03-01 21:30:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f5497bb5-7f46-41ee-8ee5-29c9af983c43"
}

2021-03-01 21:30:33 | [Mutex] waiting for: [published:item:notifieditem-f5497bb5-7f46-41ee-8ee5-29c9af983c43:admin@test-domain.com]

2021-03-01 21:30:33 | [Mutex] received everything.

2021-03-01 21:30:33 | [Mutex] isItemNotified: published:item:notifieditem-f5497bb5-7f46-41ee-8ee5-29c9af983c43:admin@test-domain.com :: true

retractItemsFromNodes 0.078s
2021-03-01 21:30:33 |

2021-03-01 21:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:33 | ------------------------------------

2021-03-01 21:30:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a8ee0292-7e37-4c1f-a823-e087f552c9bd",
    "item-id": "item-f5497bb5-7f46-41ee-8ee5-29c9af983c43"
}

2021-03-01 21:30:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f5497bb5-7f46-41ee-8ee5-29c9af983c43"
}

2021-03-01 21:30:33 | [Mutex] waiting for: [retracted:item:notifieditem-f5497bb5-7f46-41ee-8ee5-29c9af983c43:admin@test-domain.com]

2021-03-01 21:30:33 | [Mutex] received everything.

2021-03-01 21:30:33 | [Mutex] isItemNotified: retracted:item:notifieditem-f5497bb5-7f46-41ee-8ee5-29c9af983c43:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2021-03-01 21:30:33 |

2021-03-01 21:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:33 | ------------------------------------

2021-03-01 21:30:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a8ee0292-7e37-4c1f-a823-e087f552c9bd",
    "item-id": "item-f5497bb5-7f46-41ee-8ee5-29c9af983c43"
}

2021-03-01 21:30:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a8ee0292-7e37-4c1f-a823-e087f552c9bd",
    "item-id": "item-f5497bb5-7f46-41ee-8ee5-29c9af983c43",
    "item": [
        "<item id=\"item-f5497bb5-7f46-41ee-8ee5-29c9af983c43\"><test>item-f5497bb5-7f46-41ee-8ee5-29c9af983c43</test></item>"
    ]
}

2021-03-01 21:30:33 | [Mutex] notify: [retrieved:item:item-f5497bb5-7f46-41ee-8ee5-29c9af983c43:payload-matches:true:localhost]

2021-03-01 21:30:33 | [Mutex] received everything.

2021-03-01 21:30:33 | [Mutex] isItemNotified: retrieved:item:item-f5497bb5-7f46-41ee-8ee5-29c9af983c43:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-03-01 21:30:33 |

2021-03-01 21:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:33 | ------------------------------------

2021-03-01 21:30:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-01 21:30:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-121292d2-613f-4b1b-a9be-4ed5af156bdc",
        "node-a8ee0292-7e37-4c1f-a823-e087f552c9bd",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-03-01 21:30:33 |

2021-03-01 21:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:33 | ------------------------------------

2021-03-01 21:30:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a8ee0292-7e37-4c1f-a823-e087f552c9bd)"
}

2021-03-01 21:30:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-03-01 21:30:32 |

2021-03-01 21:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:32 | ------------------------------------

2021-03-01 21:30:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a8ee0292-7e37-4c1f-a823-e087f552c9bd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-01 21:30:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.085s
2021-03-01 21:30:33 |

2021-03-01 21:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:30:33 | ------------------------------------

2021-03-01 21:30:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a8ee0292-7e37-4c1f-a823-e087f552c9bd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-01 21:30:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}