Generated by TestNG with ReportNG at 21:14 PST on Thursday 21 January 2021
root@43fec6d4badf / 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.460s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2021-01-21 21:30:05 |

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

2021-01-21 21:30:05 | ------------------------------------

2021-01-21 21:30:05 | [Mutex] waiting for: [configured:node:node-f7b36c3f-677a-481f-9485-884859626964:node-88ece33d-ef5c-4ad0-865a-91042e5dcb63]

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

2021-01-21 21:30:05 | [Mutex] isItemNotified: configured:node:node-f7b36c3f-677a-481f-9485-884859626964:node-88ece33d-ef5c-4ad0-865a-91042e5dcb63 :: true

2021-01-21 21:30:06 | [Mutex] waiting for: [received:nodes:758dda4b-626e-460a-b108-81fbdceff3c0:localhost]

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

2021-01-21 21:30:06 | [Mutex] isItemNotified: received:node:758dda4b-626e-460a-b108-81fbdceff3c0:localhost:node-f7b36c3f-677a-481f-9485-884859626964:Node f7b36c3f-677a-481f-9485-884859626964 :: true

2021-01-21 21:30:06 | [Mutex] waiting for: [received:nodes:5dc9d086-741f-446c-b563-98bf1156ee52:localhost]

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

2021-01-21 21:30:06 | [Mutex] isItemNotified: received:node:5dc9d086-741f-446c-b563-98bf1156ee52:localhost:node-f7b36c3f-677a-481f-9485-884859626964:Node f7b36c3f-677a-481f-9485-884859626964 :: false

createNodes 1.821s
2021-01-21 21:30:02 |

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

2021-01-21 21:30:02 | ------------------------------------

2021-01-21 21:30:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f7b36c3f-677a-481f-9485-884859626964",
    "pubsub#title": "Node f7b36c3f-677a-481f-9485-884859626964"
}

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

2021-01-21 21:30:04 | [Mutex] waiting for: [received:nodes:24e2cf19-ed97-44ce-b54d-bd2a8ecfa960:localhost]

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

2021-01-21 21:30:04 | [Mutex] isItemNotified: received:node:24e2cf19-ed97-44ce-b54d-bd2a8ecfa960:localhost:node-f7b36c3f-677a-481f-9485-884859626964:Node f7b36c3f-677a-481f-9485-884859626964 :: true

createSubnodes 1.024s
2021-01-21 21:30:04 |

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

2021-01-21 21:30:04 | ------------------------------------

2021-01-21 21:30:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-88ece33d-ef5c-4ad0-865a-91042e5dcb63",
    "pubsub#title": "Node 88ece33d-ef5c-4ad0-865a-91042e5dcb63"
}

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

2021-01-21 21:30:05 | [Mutex] waiting for: [received:nodes:9bd7d4ee-e207-4619-b26f-a3f102ec6fa2:localhost]

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

2021-01-21 21:30:05 | [Mutex] isItemNotified: received:node:9bd7d4ee-e207-4619-b26f-a3f102ec6fa2:localhost:node-88ece33d-ef5c-4ad0-865a-91042e5dcb63:Node 88ece33d-ef5c-4ad0-865a-91042e5dcb63 :: true

deleteNodes 1.055s
2021-01-21 21:30:10 |

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

2021-01-21 21:30:10 | ------------------------------------

2021-01-21 21:30:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-88ece33d-ef5c-4ad0-865a-91042e5dcb63"
}

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

2021-01-21 21:30:11 | [Mutex] waiting for: [received:nodes:b2ed30e1-3ff0-4625-bc26-7198e31ff525:localhost]

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

2021-01-21 21:30:11 | [Mutex] isItemNotified: received:node:b2ed30e1-3ff0-4625-bc26-7198e31ff525:localhost:node-88ece33d-ef5c-4ad0-865a-91042e5dcb63:Node 88ece33d-ef5c-4ad0-865a-91042e5dcb63 :: false

deleteSubnodes 1.031s
2021-01-21 21:30:09 |

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

2021-01-21 21:30:09 | ------------------------------------

2021-01-21 21:30:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f7b36c3f-677a-481f-9485-884859626964"
}

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

2021-01-21 21:30:10 | [Mutex] waiting for: [received:nodes:d96e2fc4-a9b1-4645-916f-32d882f4c4bc:localhost]

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

2021-01-21 21:30:10 | [Mutex] isItemNotified: received:node:d96e2fc4-a9b1-4645-916f-32d882f4c4bc:localhost:node-f7b36c3f-677a-481f-9485-884859626964:Node f7b36c3f-677a-481f-9485-884859626964 :: false

2021-01-21 21:30:10 | [Mutex] waiting for: [received:nodes:2f462ce2-a283-4d2a-ac39-d6175c43a177:localhost]

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

2021-01-21 21:30:10 | [Mutex] isItemNotified: received:node:2f462ce2-a283-4d2a-ac39-d6175c43a177:localhost:node-f7b36c3f-677a-481f-9485-884859626964:Node f7b36c3f-677a-481f-9485-884859626964 :: false

publishItemsToNodes 0.039s
2021-01-21 21:30:07 |

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

2021-01-21 21:30:07 | ------------------------------------

2021-01-21 21:30:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f7b36c3f-677a-481f-9485-884859626964",
    "entry": "<test>item-0ce09ba8-1631-4513-9a55-03c582c24f31</test>",
    "item-id": "item-0ce09ba8-1631-4513-9a55-03c582c24f31"
}

2021-01-21 21:30:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0ce09ba8-1631-4513-9a55-03c582c24f31"
}

2021-01-21 21:30:07 | [Mutex] waiting for: [published:item:notifieditem-0ce09ba8-1631-4513-9a55-03c582c24f31:admin@test-domain.com]

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

2021-01-21 21:30:07 | [Mutex] isItemNotified: published:item:notifieditem-0ce09ba8-1631-4513-9a55-03c582c24f31:admin@test-domain.com :: true

retractItemsFromNodes 0.079s
2021-01-21 21:30:08 |

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

2021-01-21 21:30:08 | ------------------------------------

2021-01-21 21:30:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f7b36c3f-677a-481f-9485-884859626964",
    "item-id": "item-0ce09ba8-1631-4513-9a55-03c582c24f31"
}

2021-01-21 21:30:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0ce09ba8-1631-4513-9a55-03c582c24f31"
}

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

2021-01-21 21:30:08 | [Mutex] isItemNotified: retracted:item:notifieditem-0ce09ba8-1631-4513-9a55-03c582c24f31:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2021-01-21 21:30:07 |

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

2021-01-21 21:30:07 | ------------------------------------

2021-01-21 21:30:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f7b36c3f-677a-481f-9485-884859626964",
    "item-id": "item-0ce09ba8-1631-4513-9a55-03c582c24f31"
}

2021-01-21 21:30:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f7b36c3f-677a-481f-9485-884859626964",
    "item-id": "item-0ce09ba8-1631-4513-9a55-03c582c24f31",
    "item": [
        "<item id=\"item-0ce09ba8-1631-4513-9a55-03c582c24f31\"><test>item-0ce09ba8-1631-4513-9a55-03c582c24f31</test></item>"
    ]
}

2021-01-21 21:30:07 | [Mutex] notify: [retrieved:item:item-0ce09ba8-1631-4513-9a55-03c582c24f31:payload-matches:true:localhost]

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

2021-01-21 21:30:07 | [Mutex] isItemNotified: retrieved:item:item-0ce09ba8-1631-4513-9a55-03c582c24f31:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-01-21 21:30:07 |

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

2021-01-21 21:30:07 | ------------------------------------

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

2021-01-21 21:30:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f7b36c3f-677a-481f-9485-884859626964",
        "node-88ece33d-ef5c-4ad0-865a-91042e5dcb63"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-01-21 21:30:08 |

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

2021-01-21 21:30:08 | ------------------------------------

2021-01-21 21:30:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f7b36c3f-677a-481f-9485-884859626964)"
}

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

subscribeNodes 1.023s
2021-01-21 21:30:06 |

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

2021-01-21 21:30:06 | ------------------------------------

2021-01-21 21:30:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f7b36c3f-677a-481f-9485-884859626964",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.091s
2021-01-21 21:30:08 |

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

2021-01-21 21:30:08 | ------------------------------------

2021-01-21 21:30:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f7b36c3f-677a-481f-9485-884859626964",
    "jids": [
        "admin@test-domain.com"
    ]
}

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