Generated by TestNG with ReportNG at 22:20 PDT on Friday 11 September 2020
root@d0fa1cb7f0f2 / 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.901s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2020-09-11 22:34:44 |

2020-09-11 22:34:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:44 | ------------------------------------

2020-09-11 22:34:44 | [Mutex] waiting for: [configured:node:node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3:node-4db491b5-aa04-4dd8-8992-33e121169781]

2020-09-11 22:34:45 | [Mutex] received everything.

2020-09-11 22:34:45 | [Mutex] isItemNotified: configured:node:node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3:node-4db491b5-aa04-4dd8-8992-33e121169781 :: true

2020-09-11 22:34:46 | [Mutex] waiting for: [received:nodes:715d1c3a-c7ed-4cbf-b41d-81865ee7b7fe:localhost]

2020-09-11 22:34:46 | [Mutex] received everything.

2020-09-11 22:34:46 | [Mutex] isItemNotified: received:node:715d1c3a-c7ed-4cbf-b41d-81865ee7b7fe:localhost:node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3:Node ed947fb5-8490-4ca5-b8ce-d88a93454ff3 :: true

2020-09-11 22:34:46 | [Mutex] waiting for: [received:nodes:d6777879-f672-4d33-9d56-71b1d17018ee:localhost]

2020-09-11 22:34:46 | [Mutex] waiting for: [received:nodes:d6777879-f672-4d33-9d56-71b1d17018ee:localhost]

2020-09-11 22:34:46 | [Mutex] waiting for: [received:nodes:d6777879-f672-4d33-9d56-71b1d17018ee:localhost]

2020-09-11 22:34:46 | [Mutex] received everything.

2020-09-11 22:34:46 | [Mutex] isItemNotified: received:node:d6777879-f672-4d33-9d56-71b1d17018ee:localhost:node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3:Node ed947fb5-8490-4ca5-b8ce-d88a93454ff3 :: false

createNodes 1.686s
2020-09-11 22:34:42 |

2020-09-11 22:34:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:42 | ------------------------------------

2020-09-11 22:34:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3",
    "pubsub#title": "Node ed947fb5-8490-4ca5-b8ce-d88a93454ff3"
}

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

2020-09-11 22:34:43 | [Mutex] waiting for: [received:nodes:9dd3695a-9556-46b5-b394-33649026f280:localhost]

2020-09-11 22:34:43 | [Mutex] received everything.

2020-09-11 22:34:43 | [Mutex] isItemNotified: received:node:9dd3695a-9556-46b5-b394-33649026f280:localhost:node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3:Node ed947fb5-8490-4ca5-b8ce-d88a93454ff3 :: true

createSubnodes 1.024s
2020-09-11 22:34:43 |

2020-09-11 22:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:43 | ------------------------------------

2020-09-11 22:34:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4db491b5-aa04-4dd8-8992-33e121169781",
    "pubsub#title": "Node 4db491b5-aa04-4dd8-8992-33e121169781"
}

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

2020-09-11 22:34:44 | [Mutex] waiting for: [received:nodes:d44be11f-8d8d-48e5-aaab-b3920240fb7f:localhost]

2020-09-11 22:34:44 | [Mutex] received everything.

2020-09-11 22:34:44 | [Mutex] isItemNotified: received:node:d44be11f-8d8d-48e5-aaab-b3920240fb7f:localhost:node-4db491b5-aa04-4dd8-8992-33e121169781:Node 4db491b5-aa04-4dd8-8992-33e121169781 :: true

deleteNodes 1.018s
2020-09-11 22:34:49 |

2020-09-11 22:34:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:49 | ------------------------------------

2020-09-11 22:34:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4db491b5-aa04-4dd8-8992-33e121169781"
}

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

2020-09-11 22:34:50 | [Mutex] waiting for: [received:nodes:a83ea78c-7c47-4897-8ca4-ecc1ba0664c4:localhost]

2020-09-11 22:34:50 | [Mutex] received everything.

2020-09-11 22:34:50 | [Mutex] isItemNotified: received:node:a83ea78c-7c47-4897-8ca4-ecc1ba0664c4:localhost:node-4db491b5-aa04-4dd8-8992-33e121169781:Node 4db491b5-aa04-4dd8-8992-33e121169781 :: false

deleteSubnodes 1.031s
2020-09-11 22:34:48 |

2020-09-11 22:34:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:48 | ------------------------------------

2020-09-11 22:34:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3"
}

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

2020-09-11 22:34:49 | [Mutex] waiting for: [received:nodes:4d4c1d4c-9858-4b71-a97b-0a6bb68303a6:localhost]

2020-09-11 22:34:49 | [Mutex] received everything.

2020-09-11 22:34:49 | [Mutex] isItemNotified: received:node:4d4c1d4c-9858-4b71-a97b-0a6bb68303a6:localhost:node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3:Node ed947fb5-8490-4ca5-b8ce-d88a93454ff3 :: false

2020-09-11 22:34:49 | [Mutex] waiting for: [received:nodes:8d79459f-0ca5-4d9e-8414-eb66a7ffa88f:localhost]

2020-09-11 22:34:49 | [Mutex] received everything.

2020-09-11 22:34:49 | [Mutex] isItemNotified: received:node:8d79459f-0ca5-4d9e-8414-eb66a7ffa88f:localhost:node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3:Node ed947fb5-8490-4ca5-b8ce-d88a93454ff3 :: false

publishItemsToNodes 0.051s
2020-09-11 22:34:47 |

2020-09-11 22:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:47 | ------------------------------------

2020-09-11 22:34:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3",
    "entry": "<test>item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2</test>",
    "item-id": "item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2"
}

2020-09-11 22:34:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2"
}

2020-09-11 22:34:47 | [Mutex] waiting for: [published:item:notifieditem-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2:admin@test-domain.com]

2020-09-11 22:34:47 | [Mutex] received everything.

2020-09-11 22:34:47 | [Mutex] isItemNotified: published:item:notifieditem-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-11 22:34:47 |

2020-09-11 22:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:47 | ------------------------------------

2020-09-11 22:34:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3",
    "item-id": "item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2"
}

2020-09-11 22:34:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2"
}

2020-09-11 22:34:47 | [Mutex] received everything.

2020-09-11 22:34:47 | [Mutex] isItemNotified: retracted:item:notifieditem-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.026s
2020-09-11 22:34:47 |

2020-09-11 22:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:47 | ------------------------------------

2020-09-11 22:34:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3",
    "item-id": "item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2"
}

2020-09-11 22:34:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3",
    "item-id": "item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2",
    "item": [
        "<item id=\"item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2\"><test>item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2</test></item>"
    ]
}

2020-09-11 22:34:47 | [Mutex] notify: [retrieved:item:item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2:payload-matches:true:localhost]

2020-09-11 22:34:47 | [Mutex] received everything.

2020-09-11 22:34:47 | [Mutex] isItemNotified: retrieved:item:item-67c71b03-83ea-4ee1-8090-34fd8d6e3fa2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2020-09-11 22:34:47 |

2020-09-11 22:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:47 | ------------------------------------

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

2020-09-11 22:34:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3",
        "test",
        "node-4db491b5-aa04-4dd8-8992-33e121169781"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-11 22:34:47 |

2020-09-11 22:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:47 | ------------------------------------

2020-09-11 22:34:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3)"
}

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

subscribeNodes 1.009s
2020-09-11 22:34:46 |

2020-09-11 22:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:46 | ------------------------------------

2020-09-11 22:34:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2020-09-11 22:34:47 |

2020-09-11 22:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-11 22:34:47 | ------------------------------------

2020-09-11 22:34:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ed947fb5-8490-4ca5-b8ce-d88a93454ff3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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