Generated by TestNG with ReportNG at 21:49 PST on Monday 30 November 2020
root@87f6aca6b6f2 / 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.894s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2020-11-30 22:04:20 |

2020-11-30 22:04:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:20 | ------------------------------------

2020-11-30 22:04:20 | [Mutex] waiting for: [configured:node:node-6213c1c1-5682-4955-adec-8a59b287469b:node-01afeb49-955d-4f97-b3ea-9f96b3335828]

2020-11-30 22:04:20 | [Mutex] received everything.

2020-11-30 22:04:20 | [Mutex] isItemNotified: configured:node:node-6213c1c1-5682-4955-adec-8a59b287469b:node-01afeb49-955d-4f97-b3ea-9f96b3335828 :: true

2020-11-30 22:04:21 | [Mutex] waiting for: [received:nodes:0d292333-2f80-4bf5-ae5c-506aadef4925:localhost]

2020-11-30 22:04:21 | [Mutex] received everything.

2020-11-30 22:04:21 | [Mutex] isItemNotified: received:node:0d292333-2f80-4bf5-ae5c-506aadef4925:localhost:node-6213c1c1-5682-4955-adec-8a59b287469b:Node 6213c1c1-5682-4955-adec-8a59b287469b :: true

2020-11-30 22:04:21 | [Mutex] waiting for: [received:nodes:b3069ea1-1322-4728-a06f-9cca24e28d42:localhost]

2020-11-30 22:04:21 | [Mutex] received everything.

2020-11-30 22:04:21 | [Mutex] isItemNotified: received:node:b3069ea1-1322-4728-a06f-9cca24e28d42:localhost:node-6213c1c1-5682-4955-adec-8a59b287469b:Node 6213c1c1-5682-4955-adec-8a59b287469b :: false

createNodes 1.651s
2020-11-30 22:04:17 |

2020-11-30 22:04:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:17 | ------------------------------------

2020-11-30 22:04:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6213c1c1-5682-4955-adec-8a59b287469b",
    "pubsub#title": "Node 6213c1c1-5682-4955-adec-8a59b287469b"
}

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

2020-11-30 22:04:18 | [Mutex] waiting for: [received:nodes:9c372015-580f-4aa8-957f-8abcc5ae2950:localhost]

2020-11-30 22:04:18 | [Mutex] waiting for: [received:nodes:9c372015-580f-4aa8-957f-8abcc5ae2950:localhost]

2020-11-30 22:04:18 | [Mutex] waiting for: [received:nodes:9c372015-580f-4aa8-957f-8abcc5ae2950:localhost]

2020-11-30 22:04:18 | [Mutex] received everything.

2020-11-30 22:04:18 | [Mutex] isItemNotified: received:node:9c372015-580f-4aa8-957f-8abcc5ae2950:localhost:node-6213c1c1-5682-4955-adec-8a59b287469b:Node 6213c1c1-5682-4955-adec-8a59b287469b :: true

createSubnodes 1.054s
2020-11-30 22:04:18 |

2020-11-30 22:04:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:18 | ------------------------------------

2020-11-30 22:04:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-01afeb49-955d-4f97-b3ea-9f96b3335828",
    "pubsub#title": "Node 01afeb49-955d-4f97-b3ea-9f96b3335828"
}

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

2020-11-30 22:04:20 | [Mutex] waiting for: [received:nodes:625aa7a2-7f2b-4531-a870-f843b3713a92:localhost]

2020-11-30 22:04:20 | [Mutex] received everything.

2020-11-30 22:04:20 | [Mutex] isItemNotified: received:node:625aa7a2-7f2b-4531-a870-f843b3713a92:localhost:node-01afeb49-955d-4f97-b3ea-9f96b3335828:Node 01afeb49-955d-4f97-b3ea-9f96b3335828 :: true

deleteNodes 1.030s
2020-11-30 22:04:24 |

2020-11-30 22:04:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:24 | ------------------------------------

2020-11-30 22:04:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-01afeb49-955d-4f97-b3ea-9f96b3335828"
}

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

2020-11-30 22:04:25 | [Mutex] waiting for: [received:nodes:cb53707b-eff4-4fce-a7cc-9babca9bc29c:localhost]

2020-11-30 22:04:25 | [Mutex] received everything.

2020-11-30 22:04:25 | [Mutex] isItemNotified: received:node:cb53707b-eff4-4fce-a7cc-9babca9bc29c:localhost:node-01afeb49-955d-4f97-b3ea-9f96b3335828:Node 01afeb49-955d-4f97-b3ea-9f96b3335828 :: false

deleteSubnodes 1.027s
2020-11-30 22:04:23 |

2020-11-30 22:04:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:23 | ------------------------------------

2020-11-30 22:04:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6213c1c1-5682-4955-adec-8a59b287469b"
}

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

2020-11-30 22:04:24 | [Mutex] waiting for: [received:nodes:e3b3e292-4a43-4b0f-a4b5-e9344db73cf2:localhost]

2020-11-30 22:04:24 | [Mutex] received everything.

2020-11-30 22:04:24 | [Mutex] isItemNotified: received:node:e3b3e292-4a43-4b0f-a4b5-e9344db73cf2:localhost:node-6213c1c1-5682-4955-adec-8a59b287469b:Node 6213c1c1-5682-4955-adec-8a59b287469b :: false

2020-11-30 22:04:24 | [Mutex] waiting for: [received:nodes:6b6dc9bb-7795-49f5-acec-ff00345e4e2b:localhost]

2020-11-30 22:04:24 | [Mutex] received everything.

2020-11-30 22:04:24 | [Mutex] isItemNotified: received:node:6b6dc9bb-7795-49f5-acec-ff00345e4e2b:localhost:node-6213c1c1-5682-4955-adec-8a59b287469b:Node 6213c1c1-5682-4955-adec-8a59b287469b :: false

publishItemsToNodes 0.039s
2020-11-30 22:04:22 |

2020-11-30 22:04:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:22 | ------------------------------------

2020-11-30 22:04:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6213c1c1-5682-4955-adec-8a59b287469b",
    "entry": "<test>item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7</test>",
    "item-id": "item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7"
}

2020-11-30 22:04:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7"
}

2020-11-30 22:04:22 | [Mutex] waiting for: [published:item:notifieditem-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7:admin@test-domain.com]

2020-11-30 22:04:22 | [Mutex] received everything.

2020-11-30 22:04:22 | [Mutex] isItemNotified: published:item:notifieditem-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-11-30 22:04:22 |

2020-11-30 22:04:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:22 | ------------------------------------

2020-11-30 22:04:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6213c1c1-5682-4955-adec-8a59b287469b",
    "item-id": "item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7"
}

2020-11-30 22:04:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7"
}

2020-11-30 22:04:22 | [Mutex] received everything.

2020-11-30 22:04:22 | [Mutex] isItemNotified: retracted:item:notifieditem-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2020-11-30 22:04:22 |

2020-11-30 22:04:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:22 | ------------------------------------

2020-11-30 22:04:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6213c1c1-5682-4955-adec-8a59b287469b",
    "item-id": "item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7"
}

2020-11-30 22:04:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6213c1c1-5682-4955-adec-8a59b287469b",
    "item-id": "item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7",
    "item": [
        "<item id=\"item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7\"><test>item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7</test></item>"
    ]
}

2020-11-30 22:04:22 | [Mutex] notify: [retrieved:item:item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7:payload-matches:true:localhost]

2020-11-30 22:04:22 | [Mutex] received everything.

2020-11-30 22:04:22 | [Mutex] isItemNotified: retrieved:item:item-4c10123e-2ddf-4e20-9e95-4b56e4cf0ff7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-11-30 22:04:22 |

2020-11-30 22:04:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:22 | ------------------------------------

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

2020-11-30 22:04:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-01afeb49-955d-4f97-b3ea-9f96b3335828",
        "node-6213c1c1-5682-4955-adec-8a59b287469b",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-11-30 22:04:22 |

2020-11-30 22:04:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:22 | ------------------------------------

2020-11-30 22:04:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6213c1c1-5682-4955-adec-8a59b287469b)"
}

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

subscribeNodes 1.017s
2020-11-30 22:04:21 |

2020-11-30 22:04:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:21 | ------------------------------------

2020-11-30 22:04:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6213c1c1-5682-4955-adec-8a59b287469b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-11-30 22:04:22 |

2020-11-30 22:04:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 22:04:22 | ------------------------------------

2020-11-30 22:04:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6213c1c1-5682-4955-adec-8a59b287469b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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