Generated by TestNG with ReportNG at 23:49 PDT on Wednesday 23 September 2020
root@d2a27fcc5bc3 / 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.926s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.151s
2020-09-24 00:06:15 |

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

2020-09-24 00:06:15 | ------------------------------------

2020-09-24 00:06:15 | [Mutex] waiting for: [configured:node:node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd:node-b3972822-0407-4b11-94f1-83c810834b59]

2020-09-24 00:06:15 | [Mutex] received everything.

2020-09-24 00:06:15 | [Mutex] isItemNotified: configured:node:node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd:node-b3972822-0407-4b11-94f1-83c810834b59 :: true

2020-09-24 00:06:16 | [Mutex] waiting for: [received:nodes:f4ecadff-4f76-4c5e-97ce-c7ea746ff63b:localhost]

2020-09-24 00:06:16 | [Mutex] received everything.

2020-09-24 00:06:16 | [Mutex] isItemNotified: received:node:f4ecadff-4f76-4c5e-97ce-c7ea746ff63b:localhost:node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd:Node acfbe1a2-3ba7-4414-b93e-8b9912a211dd :: true

2020-09-24 00:06:16 | [Mutex] waiting for: [received:nodes:95cd7f72-00d5-4553-99f4-51fd632b25d0:localhost]

2020-09-24 00:06:16 | [Mutex] received everything.

2020-09-24 00:06:16 | [Mutex] isItemNotified: received:node:95cd7f72-00d5-4553-99f4-51fd632b25d0:localhost:node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd:Node acfbe1a2-3ba7-4414-b93e-8b9912a211dd :: false

createNodes 1.647s
2020-09-24 00:06:13 |

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

2020-09-24 00:06:13 | ------------------------------------

2020-09-24 00:06:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd",
    "pubsub#title": "Node acfbe1a2-3ba7-4414-b93e-8b9912a211dd"
}

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

2020-09-24 00:06:14 | [Mutex] waiting for: [received:nodes:65eaf22f-2ac2-45d9-8687-a8d57023ef77:localhost]

2020-09-24 00:06:14 | [Mutex] received everything.

2020-09-24 00:06:14 | [Mutex] isItemNotified: received:node:65eaf22f-2ac2-45d9-8687-a8d57023ef77:localhost:node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd:Node acfbe1a2-3ba7-4414-b93e-8b9912a211dd :: true

createSubnodes 1.024s
2020-09-24 00:06:14 |

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

2020-09-24 00:06:14 | ------------------------------------

2020-09-24 00:06:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b3972822-0407-4b11-94f1-83c810834b59",
    "pubsub#title": "Node b3972822-0407-4b11-94f1-83c810834b59"
}

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

2020-09-24 00:06:15 | [Mutex] waiting for: [received:nodes:aae41bb3-4be8-4cc2-a4c2-e4415f009f3b:localhost]

2020-09-24 00:06:15 | [Mutex] received everything.

2020-09-24 00:06:15 | [Mutex] isItemNotified: received:node:aae41bb3-4be8-4cc2-a4c2-e4415f009f3b:localhost:node-b3972822-0407-4b11-94f1-83c810834b59:Node b3972822-0407-4b11-94f1-83c810834b59 :: true

deleteNodes 1.022s
2020-09-24 00:06:20 |

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

2020-09-24 00:06:20 | ------------------------------------

2020-09-24 00:06:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b3972822-0407-4b11-94f1-83c810834b59"
}

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

2020-09-24 00:06:21 | [Mutex] waiting for: [received:nodes:60c08327-b21d-47a5-8105-eaaaf2acf597:localhost]

2020-09-24 00:06:21 | [Mutex] waiting for: [received:nodes:60c08327-b21d-47a5-8105-eaaaf2acf597:localhost]

2020-09-24 00:06:21 | [Mutex] received everything.

2020-09-24 00:06:21 | [Mutex] isItemNotified: received:node:60c08327-b21d-47a5-8105-eaaaf2acf597:localhost:node-b3972822-0407-4b11-94f1-83c810834b59:Node b3972822-0407-4b11-94f1-83c810834b59 :: false

deleteSubnodes 1.023s
2020-09-24 00:06:19 |

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

2020-09-24 00:06:19 | ------------------------------------

2020-09-24 00:06:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd"
}

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

2020-09-24 00:06:20 | [Mutex] waiting for: [received:nodes:930b0ab6-a6e9-47b2-9d42-ef79395f9899:localhost]

2020-09-24 00:06:20 | [Mutex] received everything.

2020-09-24 00:06:20 | [Mutex] isItemNotified: received:node:930b0ab6-a6e9-47b2-9d42-ef79395f9899:localhost:node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd:Node acfbe1a2-3ba7-4414-b93e-8b9912a211dd :: false

2020-09-24 00:06:20 | [Mutex] waiting for: [received:nodes:fdd98579-f5bf-4174-ae67-473b3978b52e:localhost]

2020-09-24 00:06:20 | [Mutex] received everything.

2020-09-24 00:06:20 | [Mutex] isItemNotified: received:node:fdd98579-f5bf-4174-ae67-473b3978b52e:localhost:node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd:Node acfbe1a2-3ba7-4414-b93e-8b9912a211dd :: false

publishItemsToNodes 0.022s
2020-09-24 00:06:17 |

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

2020-09-24 00:06:17 | ------------------------------------

2020-09-24 00:06:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd",
    "entry": "<test>item-2ca94c77-07f2-4307-9073-558e64cf535d</test>",
    "item-id": "item-2ca94c77-07f2-4307-9073-558e64cf535d"
}

2020-09-24 00:06:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2ca94c77-07f2-4307-9073-558e64cf535d"
}

2020-09-24 00:06:17 | [Mutex] waiting for: [published:item:notifieditem-2ca94c77-07f2-4307-9073-558e64cf535d:admin@test-domain.com]

2020-09-24 00:06:17 | [Mutex] received everything.

2020-09-24 00:06:17 | [Mutex] isItemNotified: published:item:notifieditem-2ca94c77-07f2-4307-9073-558e64cf535d:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-24 00:06:18 |

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

2020-09-24 00:06:18 | ------------------------------------

2020-09-24 00:06:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd",
    "item-id": "item-2ca94c77-07f2-4307-9073-558e64cf535d"
}

2020-09-24 00:06:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2ca94c77-07f2-4307-9073-558e64cf535d"
}

2020-09-24 00:06:18 | [Mutex] received everything.

2020-09-24 00:06:18 | [Mutex] isItemNotified: retracted:item:notifieditem-2ca94c77-07f2-4307-9073-558e64cf535d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2020-09-24 00:06:17 |

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

2020-09-24 00:06:17 | ------------------------------------

2020-09-24 00:06:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd",
    "item-id": "item-2ca94c77-07f2-4307-9073-558e64cf535d"
}

2020-09-24 00:06:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd",
    "item-id": "item-2ca94c77-07f2-4307-9073-558e64cf535d",
    "item": [
        "<item id=\"item-2ca94c77-07f2-4307-9073-558e64cf535d\"><test>item-2ca94c77-07f2-4307-9073-558e64cf535d</test></item>"
    ]
}

2020-09-24 00:06:18 | [Mutex] notify: [retrieved:item:item-2ca94c77-07f2-4307-9073-558e64cf535d:payload-matches:true:localhost]

2020-09-24 00:06:18 | [Mutex] received everything.

2020-09-24 00:06:18 | [Mutex] isItemNotified: retrieved:item:item-2ca94c77-07f2-4307-9073-558e64cf535d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-24 00:06:18 |

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

2020-09-24 00:06:18 | ------------------------------------

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

2020-09-24 00:06:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b3972822-0407-4b11-94f1-83c810834b59",
        "test",
        "node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-24 00:06:18 |

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

2020-09-24 00:06:18 | ------------------------------------

2020-09-24 00:06:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd)"
}

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

subscribeNodes 1.016s
2020-09-24 00:06:16 |

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

2020-09-24 00:06:16 | ------------------------------------

2020-09-24 00:06:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2020-09-24 00:06:18 |

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

2020-09-24 00:06:18 | ------------------------------------

2020-09-24 00:06:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-acfbe1a2-3ba7-4414-b93e-8b9912a211dd",
    "jids": [
        "admin@test-domain.com"
    ]
}

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