Generated by TestNG with ReportNG at 22:31 PDT on Thursday 27 August 2020
root@271fa3ef907b / 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.056s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2020-08-27 22:48:25 |

2020-08-27 22:48:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:25 | ------------------------------------

2020-08-27 22:48:25 | [Mutex] waiting for: [configured:node:node-bcd34e4d-4933-4a60-9658-284b9f95f80c:node-8afeb796-2b93-48fe-b425-535d8bd72362]

2020-08-27 22:48:25 | [Mutex] received everything.

2020-08-27 22:48:25 | [Mutex] isItemNotified: configured:node:node-bcd34e4d-4933-4a60-9658-284b9f95f80c:node-8afeb796-2b93-48fe-b425-535d8bd72362 :: true

2020-08-27 22:48:26 | [Mutex] waiting for: [received:nodes:fbc0fb7d-3e7d-40bc-a59b-dc946430c5f2:localhost]

2020-08-27 22:48:26 | [Mutex] received everything.

2020-08-27 22:48:26 | [Mutex] isItemNotified: received:node:fbc0fb7d-3e7d-40bc-a59b-dc946430c5f2:localhost:node-bcd34e4d-4933-4a60-9658-284b9f95f80c:Node bcd34e4d-4933-4a60-9658-284b9f95f80c :: true

2020-08-27 22:48:26 | [Mutex] waiting for: [received:nodes:aaf217d2-4348-46b2-92c5-a0166f71fd4a:localhost]

2020-08-27 22:48:26 | [Mutex] received everything.

2020-08-27 22:48:26 | [Mutex] isItemNotified: received:node:aaf217d2-4348-46b2-92c5-a0166f71fd4a:localhost:node-bcd34e4d-4933-4a60-9658-284b9f95f80c:Node bcd34e4d-4933-4a60-9658-284b9f95f80c :: false

createNodes 1.721s
2020-08-27 22:48:22 |

2020-08-27 22:48:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:22 | ------------------------------------

2020-08-27 22:48:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bcd34e4d-4933-4a60-9658-284b9f95f80c",
    "pubsub#title": "Node bcd34e4d-4933-4a60-9658-284b9f95f80c"
}

2020-08-27 22:48:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 22:48:24 | [Mutex] waiting for: [received:nodes:3735ecbb-aac7-4b70-acdb-b6f58c0b3f94:localhost]

2020-08-27 22:48:24 | [Mutex] waiting for: [received:nodes:3735ecbb-aac7-4b70-acdb-b6f58c0b3f94:localhost]

2020-08-27 22:48:24 | [Mutex] waiting for: [received:nodes:3735ecbb-aac7-4b70-acdb-b6f58c0b3f94:localhost]

2020-08-27 22:48:24 | [Mutex] received everything.

2020-08-27 22:48:24 | [Mutex] isItemNotified: received:node:3735ecbb-aac7-4b70-acdb-b6f58c0b3f94:localhost:node-bcd34e4d-4933-4a60-9658-284b9f95f80c:Node bcd34e4d-4933-4a60-9658-284b9f95f80c :: true

createSubnodes 1.027s
2020-08-27 22:48:24 |

2020-08-27 22:48:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:24 | ------------------------------------

2020-08-27 22:48:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8afeb796-2b93-48fe-b425-535d8bd72362",
    "pubsub#title": "Node 8afeb796-2b93-48fe-b425-535d8bd72362"
}

2020-08-27 22:48:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-27 22:48:25 | [Mutex] waiting for: [received:nodes:541574f5-5f1c-4c37-8283-96760175c730:localhost]

2020-08-27 22:48:25 | [Mutex] received everything.

2020-08-27 22:48:25 | [Mutex] isItemNotified: received:node:541574f5-5f1c-4c37-8283-96760175c730:localhost:node-8afeb796-2b93-48fe-b425-535d8bd72362:Node 8afeb796-2b93-48fe-b425-535d8bd72362 :: true

deleteNodes 1.024s
2020-08-27 22:48:30 |

2020-08-27 22:48:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:30 | ------------------------------------

2020-08-27 22:48:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8afeb796-2b93-48fe-b425-535d8bd72362"
}

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

2020-08-27 22:48:31 | [Mutex] waiting for: [received:nodes:35c09d18-828d-42c0-8d93-5fe5a950b665:localhost]

2020-08-27 22:48:31 | [Mutex] received everything.

2020-08-27 22:48:31 | [Mutex] isItemNotified: received:node:35c09d18-828d-42c0-8d93-5fe5a950b665:localhost:node-8afeb796-2b93-48fe-b425-535d8bd72362:Node 8afeb796-2b93-48fe-b425-535d8bd72362 :: false

deleteSubnodes 1.029s
2020-08-27 22:48:29 |

2020-08-27 22:48:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:29 | ------------------------------------

2020-08-27 22:48:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bcd34e4d-4933-4a60-9658-284b9f95f80c"
}

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

2020-08-27 22:48:30 | [Mutex] waiting for: [received:nodes:d1d8e0ef-73db-47ee-96ac-7b1ff5d2bb13:localhost]

2020-08-27 22:48:30 | [Mutex] waiting for: [received:nodes:d1d8e0ef-73db-47ee-96ac-7b1ff5d2bb13:localhost]

2020-08-27 22:48:30 | [Mutex] waiting for: [received:nodes:d1d8e0ef-73db-47ee-96ac-7b1ff5d2bb13:localhost]

2020-08-27 22:48:30 | [Mutex] received everything.

2020-08-27 22:48:30 | [Mutex] isItemNotified: received:node:d1d8e0ef-73db-47ee-96ac-7b1ff5d2bb13:localhost:node-bcd34e4d-4933-4a60-9658-284b9f95f80c:Node bcd34e4d-4933-4a60-9658-284b9f95f80c :: false

2020-08-27 22:48:30 | [Mutex] waiting for: [received:nodes:e119591b-ff1f-4f20-ae2d-d115f52d33d0:localhost]

2020-08-27 22:48:30 | [Mutex] received everything.

2020-08-27 22:48:30 | [Mutex] isItemNotified: received:node:e119591b-ff1f-4f20-ae2d-d115f52d33d0:localhost:node-bcd34e4d-4933-4a60-9658-284b9f95f80c:Node bcd34e4d-4933-4a60-9658-284b9f95f80c :: false

publishItemsToNodes 0.040s
2020-08-27 22:48:27 |

2020-08-27 22:48:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:27 | ------------------------------------

2020-08-27 22:48:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bcd34e4d-4933-4a60-9658-284b9f95f80c",
    "entry": "<test>item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae</test>",
    "item-id": "item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae"
}

2020-08-27 22:48:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae"
}

2020-08-27 22:48:27 | [Mutex] waiting for: [published:item:notifieditem-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae:admin@test-domain.com]

2020-08-27 22:48:27 | [Mutex] received everything.

2020-08-27 22:48:27 | [Mutex] isItemNotified: published:item:notifieditem-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-08-27 22:48:28 |

2020-08-27 22:48:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:28 | ------------------------------------

2020-08-27 22:48:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bcd34e4d-4933-4a60-9658-284b9f95f80c",
    "item-id": "item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae"
}

2020-08-27 22:48:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae"
}

2020-08-27 22:48:28 | [Mutex] received everything.

2020-08-27 22:48:28 | [Mutex] isItemNotified: retracted:item:notifieditem-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2020-08-27 22:48:27 |

2020-08-27 22:48:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:27 | ------------------------------------

2020-08-27 22:48:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bcd34e4d-4933-4a60-9658-284b9f95f80c",
    "item-id": "item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae"
}

2020-08-27 22:48:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bcd34e4d-4933-4a60-9658-284b9f95f80c",
    "item-id": "item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae",
    "item": [
        "<item id=\"item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae\"><test>item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae</test></item>"
    ]
}

2020-08-27 22:48:27 | [Mutex] notify: [retrieved:item:item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae:payload-matches:true:localhost]

2020-08-27 22:48:27 | [Mutex] received everything.

2020-08-27 22:48:27 | [Mutex] isItemNotified: retrieved:item:item-03a7bfd8-9f08-4c6e-ba32-061c9d0b08ae:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.067s
2020-08-27 22:48:27 |

2020-08-27 22:48:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:27 | ------------------------------------

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

2020-08-27 22:48:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-8afeb796-2b93-48fe-b425-535d8bd72362",
        "test",
        "node-bcd34e4d-4933-4a60-9658-284b9f95f80c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-08-27 22:48:27 |

2020-08-27 22:48:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:27 | ------------------------------------

2020-08-27 22:48:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bcd34e4d-4933-4a60-9658-284b9f95f80c)"
}

2020-08-27 22:48:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-08-27 22:48:26 |

2020-08-27 22:48:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:26 | ------------------------------------

2020-08-27 22:48:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bcd34e4d-4933-4a60-9658-284b9f95f80c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 22:48:26 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2020-08-27 22:48:28 |

2020-08-27 22:48:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 22:48:28 | ------------------------------------

2020-08-27 22:48:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bcd34e4d-4933-4a60-9658-284b9f95f80c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-27 22:48:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}