Generated by TestNG with ReportNG at 22:45 PDT on Saturday 26 September 2020
root@349fca04a89f / 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.932s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2020-09-26 23:00:25 |

2020-09-26 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:25 | ------------------------------------

2020-09-26 23:00:25 | [Mutex] waiting for: [configured:node:node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad:node-08e80a82-dd0f-4c03-b57b-3e5fb2885eaf]

2020-09-26 23:00:25 | [Mutex] received everything.

2020-09-26 23:00:25 | [Mutex] isItemNotified: configured:node:node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad:node-08e80a82-dd0f-4c03-b57b-3e5fb2885eaf :: true

2020-09-26 23:00:26 | [Mutex] waiting for: [received:nodes:34bdbf8a-38a9-4d1f-8b82-ca7a3a2a2039:localhost]

2020-09-26 23:00:26 | [Mutex] waiting for: [received:nodes:34bdbf8a-38a9-4d1f-8b82-ca7a3a2a2039:localhost]

2020-09-26 23:00:26 | [Mutex] received everything.

2020-09-26 23:00:26 | [Mutex] isItemNotified: received:node:34bdbf8a-38a9-4d1f-8b82-ca7a3a2a2039:localhost:node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad:Node 1c0b3f8e-aad1-4f43-bc42-3b534abc78ad :: true

2020-09-26 23:00:26 | [Mutex] waiting for: [received:nodes:27ad0a0e-6b16-4e53-a370-f5737419e8fd:localhost]

2020-09-26 23:00:26 | [Mutex] received everything.

2020-09-26 23:00:26 | [Mutex] isItemNotified: received:node:27ad0a0e-6b16-4e53-a370-f5737419e8fd:localhost:node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad:Node 1c0b3f8e-aad1-4f43-bc42-3b534abc78ad :: false

createNodes 1.647s
2020-09-26 23:00:23 |

2020-09-26 23:00:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:23 | ------------------------------------

2020-09-26 23:00: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-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad",
    "pubsub#title": "Node 1c0b3f8e-aad1-4f43-bc42-3b534abc78ad"
}

2020-09-26 23:00:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-26 23:00:24 | [Mutex] waiting for: [received:nodes:5527930b-ba52-4d90-8aea-0fc3dac4b4f3:localhost]

2020-09-26 23:00:24 | [Mutex] received everything.

2020-09-26 23:00:24 | [Mutex] isItemNotified: received:node:5527930b-ba52-4d90-8aea-0fc3dac4b4f3:localhost:node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad:Node 1c0b3f8e-aad1-4f43-bc42-3b534abc78ad :: true

createSubnodes 1.035s
2020-09-26 23:00:24 |

2020-09-26 23:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:24 | ------------------------------------

2020-09-26 23:00: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-08e80a82-dd0f-4c03-b57b-3e5fb2885eaf",
    "pubsub#title": "Node 08e80a82-dd0f-4c03-b57b-3e5fb2885eaf"
}

2020-09-26 23:00:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-26 23:00:25 | [Mutex] waiting for: [received:nodes:e7437d3b-5e82-4973-936f-803ecbc8e64a:localhost]

2020-09-26 23:00:25 | [Mutex] waiting for: [received:nodes:e7437d3b-5e82-4973-936f-803ecbc8e64a:localhost]

2020-09-26 23:00:25 | [Mutex] waiting for: [received:nodes:e7437d3b-5e82-4973-936f-803ecbc8e64a:localhost]

2020-09-26 23:00:25 | [Mutex] waiting for: [received:nodes:e7437d3b-5e82-4973-936f-803ecbc8e64a:localhost]

2020-09-26 23:00:25 | [Mutex] received everything.

2020-09-26 23:00:25 | [Mutex] isItemNotified: received:node:e7437d3b-5e82-4973-936f-803ecbc8e64a:localhost:node-08e80a82-dd0f-4c03-b57b-3e5fb2885eaf:Node 08e80a82-dd0f-4c03-b57b-3e5fb2885eaf :: true

deleteNodes 1.022s
2020-09-26 23:00:30 |

2020-09-26 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:30 | ------------------------------------

2020-09-26 23:00:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-08e80a82-dd0f-4c03-b57b-3e5fb2885eaf"
}

2020-09-26 23:00:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-26 23:00:31 | [Mutex] waiting for: [received:nodes:bb5a8a93-368f-43ae-b8c1-92b31e5e7890:localhost]

2020-09-26 23:00:31 | [Mutex] received everything.

2020-09-26 23:00:31 | [Mutex] isItemNotified: received:node:bb5a8a93-368f-43ae-b8c1-92b31e5e7890:localhost:node-08e80a82-dd0f-4c03-b57b-3e5fb2885eaf:Node 08e80a82-dd0f-4c03-b57b-3e5fb2885eaf :: false

deleteSubnodes 1.028s
2020-09-26 23:00:29 |

2020-09-26 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:29 | ------------------------------------

2020-09-26 23:00:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad"
}

2020-09-26 23:00:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-26 23:00:30 | [Mutex] waiting for: [received:nodes:0e8ed86e-2232-46e4-bf3e-0c16161a0389:localhost]

2020-09-26 23:00:30 | [Mutex] received everything.

2020-09-26 23:00:30 | [Mutex] isItemNotified: received:node:0e8ed86e-2232-46e4-bf3e-0c16161a0389:localhost:node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad:Node 1c0b3f8e-aad1-4f43-bc42-3b534abc78ad :: false

2020-09-26 23:00:30 | [Mutex] waiting for: [received:nodes:9f3a7dc7-38cb-49a4-825a-0fb50c14f865:localhost]

2020-09-26 23:00:30 | [Mutex] received everything.

2020-09-26 23:00:30 | [Mutex] isItemNotified: received:node:9f3a7dc7-38cb-49a4-825a-0fb50c14f865:localhost:node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad:Node 1c0b3f8e-aad1-4f43-bc42-3b534abc78ad :: false

publishItemsToNodes 0.057s
2020-09-26 23:00:27 |

2020-09-26 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:27 | ------------------------------------

2020-09-26 23:00:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad",
    "entry": "<test>item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9</test>",
    "item-id": "item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9"
}

2020-09-26 23:00:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9"
}

2020-09-26 23:00:27 | [Mutex] waiting for: [published:item:notifieditem-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9:admin@test-domain.com]

2020-09-26 23:00:27 | [Mutex] received everything.

2020-09-26 23:00:27 | [Mutex] isItemNotified: published:item:notifieditem-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2020-09-26 23:00:28 |

2020-09-26 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:28 | ------------------------------------

2020-09-26 23:00:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad",
    "item-id": "item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9"
}

2020-09-26 23:00:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9"
}

2020-09-26 23:00:28 | [Mutex] received everything.

2020-09-26 23:00:28 | [Mutex] isItemNotified: retracted:item:notifieditem-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.085s
2020-09-26 23:00:27 |

2020-09-26 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:27 | ------------------------------------

2020-09-26 23:00:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad",
    "item-id": "item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9"
}

2020-09-26 23:00:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad",
    "item-id": "item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9",
    "item": [
        "<item id=\"item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9\"><test>item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9</test></item>"
    ]
}

2020-09-26 23:00:28 | [Mutex] notify: [retrieved:item:item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9:payload-matches:true:localhost]

2020-09-26 23:00:28 | [Mutex] received everything.

2020-09-26 23:00:28 | [Mutex] isItemNotified: retrieved:item:item-c774457a-e5fd-4e64-a3a6-72f59cfd9ad9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-09-26 23:00:28 |

2020-09-26 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:28 | ------------------------------------

2020-09-26 23:00:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-26 23:00:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-08e80a82-dd0f-4c03-b57b-3e5fb2885eaf",
        "node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-26 23:00:28 |

2020-09-26 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:28 | ------------------------------------

2020-09-26 23:00:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad)"
}

2020-09-26 23:00:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-09-26 23:00:26 |

2020-09-26 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:26 | ------------------------------------

2020-09-26 23:00:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-26 23:00:26 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2020-09-26 23:00:28 |

2020-09-26 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 23:00:28 | ------------------------------------

2020-09-26 23:00:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1c0b3f8e-aad1-4f43-bc42-3b534abc78ad",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-26 23:00:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}