Generated by TestNG with ReportNG at 22:32 PDT on Monday 14 September 2020
root@78ec7f12f637 / 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.102s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2020-09-14 22:50:17 |

2020-09-14 22:50:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:17 | ------------------------------------

2020-09-14 22:50:17 | [Mutex] waiting for: [configured:node:node-d89b132c-d6cb-4203-b591-ccee4dbc21d1:node-fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df]

2020-09-14 22:50:17 | [Mutex] received everything.

2020-09-14 22:50:17 | [Mutex] isItemNotified: configured:node:node-d89b132c-d6cb-4203-b591-ccee4dbc21d1:node-fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df :: true

2020-09-14 22:50:18 | [Mutex] waiting for: [received:nodes:50ac0cee-0e74-44c9-b07e-26e8df498e34:localhost]

2020-09-14 22:50:18 | [Mutex] received everything.

2020-09-14 22:50:18 | [Mutex] isItemNotified: received:node:50ac0cee-0e74-44c9-b07e-26e8df498e34:localhost:node-d89b132c-d6cb-4203-b591-ccee4dbc21d1:Node d89b132c-d6cb-4203-b591-ccee4dbc21d1 :: true

2020-09-14 22:50:18 | [Mutex] waiting for: [received:nodes:524cfa24-3420-4359-b115-5ee57fad0450:localhost]

2020-09-14 22:50:18 | [Mutex] received everything.

2020-09-14 22:50:18 | [Mutex] isItemNotified: received:node:524cfa24-3420-4359-b115-5ee57fad0450:localhost:node-d89b132c-d6cb-4203-b591-ccee4dbc21d1:Node d89b132c-d6cb-4203-b591-ccee4dbc21d1 :: false

createNodes 1.763s
2020-09-14 22:50:14 |

2020-09-14 22:50:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:14 | ------------------------------------

2020-09-14 22:50:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d89b132c-d6cb-4203-b591-ccee4dbc21d1",
    "pubsub#title": "Node d89b132c-d6cb-4203-b591-ccee4dbc21d1"
}

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

2020-09-14 22:50:16 | [Mutex] waiting for: [received:nodes:2fbc7a53-673e-4bb2-bd64-4617710e7de0:localhost]

2020-09-14 22:50:16 | [Mutex] waiting for: [received:nodes:2fbc7a53-673e-4bb2-bd64-4617710e7de0:localhost]

2020-09-14 22:50:16 | [Mutex] waiting for: [received:nodes:2fbc7a53-673e-4bb2-bd64-4617710e7de0:localhost]

2020-09-14 22:50:16 | [Mutex] received everything.

2020-09-14 22:50:16 | [Mutex] isItemNotified: received:node:2fbc7a53-673e-4bb2-bd64-4617710e7de0:localhost:node-d89b132c-d6cb-4203-b591-ccee4dbc21d1:Node d89b132c-d6cb-4203-b591-ccee4dbc21d1 :: true

createSubnodes 1.035s
2020-09-14 22:50:16 |

2020-09-14 22:50:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:16 | ------------------------------------

2020-09-14 22:50:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df",
    "pubsub#title": "Node fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df"
}

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

2020-09-14 22:50:17 | [Mutex] waiting for: [received:nodes:1b65b6fa-18ed-4957-b299-15c450f43c11:localhost]

2020-09-14 22:50:17 | [Mutex] waiting for: [received:nodes:1b65b6fa-18ed-4957-b299-15c450f43c11:localhost]

2020-09-14 22:50:17 | [Mutex] received everything.

2020-09-14 22:50:17 | [Mutex] isItemNotified: received:node:1b65b6fa-18ed-4957-b299-15c450f43c11:localhost:node-fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df:Node fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df :: true

deleteNodes 1.024s
2020-09-14 22:50:21 |

2020-09-14 22:50:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:21 | ------------------------------------

2020-09-14 22:50:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df"
}

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

2020-09-14 22:50:22 | [Mutex] waiting for: [received:nodes:6139496e-4112-4b40-96ab-215408e2f5bc:localhost]

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

2020-09-14 22:50:22 | [Mutex] isItemNotified: received:node:6139496e-4112-4b40-96ab-215408e2f5bc:localhost:node-fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df:Node fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df :: false

deleteSubnodes 1.028s
2020-09-14 22:50:20 |

2020-09-14 22:50:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:20 | ------------------------------------

2020-09-14 22:50:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d89b132c-d6cb-4203-b591-ccee4dbc21d1"
}

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

2020-09-14 22:50:21 | [Mutex] waiting for: [received:nodes:321bcf30-c525-4894-a933-7d77d32b8474:localhost]

2020-09-14 22:50:21 | [Mutex] waiting for: [received:nodes:321bcf30-c525-4894-a933-7d77d32b8474:localhost]

2020-09-14 22:50:21 | [Mutex] waiting for: [received:nodes:321bcf30-c525-4894-a933-7d77d32b8474:localhost]

2020-09-14 22:50:21 | [Mutex] waiting for: [received:nodes:321bcf30-c525-4894-a933-7d77d32b8474:localhost]

2020-09-14 22:50:21 | [Mutex] received everything.

2020-09-14 22:50:21 | [Mutex] isItemNotified: received:node:321bcf30-c525-4894-a933-7d77d32b8474:localhost:node-d89b132c-d6cb-4203-b591-ccee4dbc21d1:Node d89b132c-d6cb-4203-b591-ccee4dbc21d1 :: false

2020-09-14 22:50:21 | [Mutex] waiting for: [received:nodes:a5223d75-abd0-4ccf-b65b-5928d4b7a87e:localhost]

2020-09-14 22:50:21 | [Mutex] received everything.

2020-09-14 22:50:21 | [Mutex] isItemNotified: received:node:a5223d75-abd0-4ccf-b65b-5928d4b7a87e:localhost:node-d89b132c-d6cb-4203-b591-ccee4dbc21d1:Node d89b132c-d6cb-4203-b591-ccee4dbc21d1 :: false

publishItemsToNodes 0.045s
2020-09-14 22:50:19 |

2020-09-14 22:50:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:19 | ------------------------------------

2020-09-14 22:50:19 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d89b132c-d6cb-4203-b591-ccee4dbc21d1",
    "entry": "<test>item-ca12fd33-cdfe-427a-84f9-648924241feb</test>",
    "item-id": "item-ca12fd33-cdfe-427a-84f9-648924241feb"
}

2020-09-14 22:50:19 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca12fd33-cdfe-427a-84f9-648924241feb"
}

2020-09-14 22:50:19 | [Mutex] waiting for: [published:item:notifieditem-ca12fd33-cdfe-427a-84f9-648924241feb:admin@test-domain.com]

2020-09-14 22:50:19 | [Mutex] received everything.

2020-09-14 22:50:19 | [Mutex] isItemNotified: published:item:notifieditem-ca12fd33-cdfe-427a-84f9-648924241feb:admin@test-domain.com :: true

retractItemsFromNodes 0.120s
2020-09-14 22:50:19 |

2020-09-14 22:50:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:19 | ------------------------------------

2020-09-14 22:50:19 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d89b132c-d6cb-4203-b591-ccee4dbc21d1",
    "item-id": "item-ca12fd33-cdfe-427a-84f9-648924241feb"
}

2020-09-14 22:50:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca12fd33-cdfe-427a-84f9-648924241feb"
}

2020-09-14 22:50:19 | [Mutex] waiting for: [retracted:item:notifieditem-ca12fd33-cdfe-427a-84f9-648924241feb:admin@test-domain.com]

2020-09-14 22:50:19 | [Mutex] received everything.

2020-09-14 22:50:19 | [Mutex] isItemNotified: retracted:item:notifieditem-ca12fd33-cdfe-427a-84f9-648924241feb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2020-09-14 22:50:19 |

2020-09-14 22:50:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:19 | ------------------------------------

2020-09-14 22:50:19 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d89b132c-d6cb-4203-b591-ccee4dbc21d1",
    "item-id": "item-ca12fd33-cdfe-427a-84f9-648924241feb"
}

2020-09-14 22:50:19 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d89b132c-d6cb-4203-b591-ccee4dbc21d1",
    "item-id": "item-ca12fd33-cdfe-427a-84f9-648924241feb",
    "item": [
        "<item id=\"item-ca12fd33-cdfe-427a-84f9-648924241feb\"><test>item-ca12fd33-cdfe-427a-84f9-648924241feb</test></item>"
    ]
}

2020-09-14 22:50:19 | [Mutex] notify: [retrieved:item:item-ca12fd33-cdfe-427a-84f9-648924241feb:payload-matches:true:localhost]

2020-09-14 22:50:19 | [Mutex] received everything.

2020-09-14 22:50:19 | [Mutex] isItemNotified: retrieved:item:item-ca12fd33-cdfe-427a-84f9-648924241feb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-14 22:50:19 |

2020-09-14 22:50:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:19 | ------------------------------------

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

2020-09-14 22:50:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d89b132c-d6cb-4203-b591-ccee4dbc21d1",
        "node-fed842f7-a6b1-4a1f-9cd0-c83c8fbb51df",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-14 22:50:19 |

2020-09-14 22:50:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:19 | ------------------------------------

2020-09-14 22:50:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d89b132c-d6cb-4203-b591-ccee4dbc21d1)"
}

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

subscribeNodes 1.010s
2020-09-14 22:50:18 |

2020-09-14 22:50:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:18 | ------------------------------------

2020-09-14 22:50:18 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d89b132c-d6cb-4203-b591-ccee4dbc21d1",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.019s
2020-09-14 22:50:19 |

2020-09-14 22:50:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:50:19 | ------------------------------------

2020-09-14 22:50:19 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d89b132c-d6cb-4203-b591-ccee4dbc21d1",
    "jids": [
        "admin@test-domain.com"
    ]
}

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