Generated by TestNG with ReportNG at 11:26 PDT on Thursday 27 August 2020
root@ac2fa7a1e1ad / 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.165s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.143s
2020-08-27 11:42:18 |

2020-08-27 11:42:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:18 | ------------------------------------

2020-08-27 11:42:18 | [Mutex] waiting for: [configured:node:node-ac63bf93-f24f-4248-984d-c0e87bde1e74:node-6fc34f2b-b89b-47e0-98ee-a7c478895fa9]

2020-08-27 11:42:18 | [Mutex] received everything.

2020-08-27 11:42:18 | [Mutex] isItemNotified: configured:node:node-ac63bf93-f24f-4248-984d-c0e87bde1e74:node-6fc34f2b-b89b-47e0-98ee-a7c478895fa9 :: true

2020-08-27 11:42:19 | [Mutex] waiting for: [received:nodes:6bb86cff-28e4-41ae-8bad-47bb3812bc78:localhost]

2020-08-27 11:42:19 | [Mutex] received everything.

2020-08-27 11:42:19 | [Mutex] isItemNotified: received:node:6bb86cff-28e4-41ae-8bad-47bb3812bc78:localhost:node-ac63bf93-f24f-4248-984d-c0e87bde1e74:Node ac63bf93-f24f-4248-984d-c0e87bde1e74 :: true

2020-08-27 11:42:19 | [Mutex] waiting for: [received:nodes:9f812d2d-1011-4e20-ba25-4179edd67d11:localhost]

2020-08-27 11:42:19 | [Mutex] received everything.

2020-08-27 11:42:19 | [Mutex] isItemNotified: received:node:9f812d2d-1011-4e20-ba25-4179edd67d11:localhost:node-ac63bf93-f24f-4248-984d-c0e87bde1e74:Node ac63bf93-f24f-4248-984d-c0e87bde1e74 :: false

createNodes 1.765s
2020-08-27 11:42:15 |

2020-08-27 11:42:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:15 | ------------------------------------

2020-08-27 11:42:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ac63bf93-f24f-4248-984d-c0e87bde1e74",
    "pubsub#title": "Node ac63bf93-f24f-4248-984d-c0e87bde1e74"
}

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

2020-08-27 11:42:17 | [Mutex] waiting for: [received:nodes:ed63e7f8-25ec-4963-ab9a-00aa9880ad1f:localhost]

2020-08-27 11:42:17 | [Mutex] waiting for: [received:nodes:ed63e7f8-25ec-4963-ab9a-00aa9880ad1f:localhost]

2020-08-27 11:42:17 | [Mutex] received everything.

2020-08-27 11:42:17 | [Mutex] isItemNotified: received:node:ed63e7f8-25ec-4963-ab9a-00aa9880ad1f:localhost:node-ac63bf93-f24f-4248-984d-c0e87bde1e74:Node ac63bf93-f24f-4248-984d-c0e87bde1e74 :: true

createSubnodes 1.025s
2020-08-27 11:42:17 |

2020-08-27 11:42:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:17 | ------------------------------------

2020-08-27 11:42:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6fc34f2b-b89b-47e0-98ee-a7c478895fa9",
    "pubsub#title": "Node 6fc34f2b-b89b-47e0-98ee-a7c478895fa9"
}

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

2020-08-27 11:42:18 | [Mutex] waiting for: [received:nodes:94389c97-e32a-438e-b371-dfa4e96bc724:localhost]

2020-08-27 11:42:18 | [Mutex] received everything.

2020-08-27 11:42:18 | [Mutex] isItemNotified: received:node:94389c97-e32a-438e-b371-dfa4e96bc724:localhost:node-6fc34f2b-b89b-47e0-98ee-a7c478895fa9:Node 6fc34f2b-b89b-47e0-98ee-a7c478895fa9 :: true

deleteNodes 1.021s
2020-08-27 11:42:23 |

2020-08-27 11:42:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:23 | ------------------------------------

2020-08-27 11:42:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6fc34f2b-b89b-47e0-98ee-a7c478895fa9"
}

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

2020-08-27 11:42:24 | [Mutex] waiting for: [received:nodes:d409b9c4-00fd-40b5-b301-291ead9f3111:localhost]

2020-08-27 11:42:24 | [Mutex] received everything.

2020-08-27 11:42:24 | [Mutex] isItemNotified: received:node:d409b9c4-00fd-40b5-b301-291ead9f3111:localhost:node-6fc34f2b-b89b-47e0-98ee-a7c478895fa9:Node 6fc34f2b-b89b-47e0-98ee-a7c478895fa9 :: false

deleteSubnodes 1.030s
2020-08-27 11:42:22 |

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

2020-08-27 11:42:22 | ------------------------------------

2020-08-27 11:42:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ac63bf93-f24f-4248-984d-c0e87bde1e74"
}

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

2020-08-27 11:42:23 | [Mutex] waiting for: [received:nodes:38dee0a2-e028-4571-a881-bec70126d6d1:localhost]

2020-08-27 11:42:23 | [Mutex] received everything.

2020-08-27 11:42:23 | [Mutex] isItemNotified: received:node:38dee0a2-e028-4571-a881-bec70126d6d1:localhost:node-ac63bf93-f24f-4248-984d-c0e87bde1e74:Node ac63bf93-f24f-4248-984d-c0e87bde1e74 :: false

2020-08-27 11:42:23 | [Mutex] waiting for: [received:nodes:6c49ebbc-61b7-48a4-8c0e-cce22fca98d9:localhost]

2020-08-27 11:42:23 | [Mutex] received everything.

2020-08-27 11:42:23 | [Mutex] isItemNotified: received:node:6c49ebbc-61b7-48a4-8c0e-cce22fca98d9:localhost:node-ac63bf93-f24f-4248-984d-c0e87bde1e74:Node ac63bf93-f24f-4248-984d-c0e87bde1e74 :: false

publishItemsToNodes 0.037s
2020-08-27 11:42:20 |

2020-08-27 11:42:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:20 | ------------------------------------

2020-08-27 11:42:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ac63bf93-f24f-4248-984d-c0e87bde1e74",
    "entry": "<test>item-1f074032-fe73-43f6-b1e6-8c5ea9745707</test>",
    "item-id": "item-1f074032-fe73-43f6-b1e6-8c5ea9745707"
}

2020-08-27 11:42:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1f074032-fe73-43f6-b1e6-8c5ea9745707"
}

2020-08-27 11:42:20 | [Mutex] waiting for: [published:item:notifieditem-1f074032-fe73-43f6-b1e6-8c5ea9745707:admin@test-domain.com]

2020-08-27 11:42:20 | [Mutex] received everything.

2020-08-27 11:42:20 | [Mutex] isItemNotified: published:item:notifieditem-1f074032-fe73-43f6-b1e6-8c5ea9745707:admin@test-domain.com :: true

retractItemsFromNodes 0.077s
2020-08-27 11:42:21 |

2020-08-27 11:42:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:21 | ------------------------------------

2020-08-27 11:42:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ac63bf93-f24f-4248-984d-c0e87bde1e74",
    "item-id": "item-1f074032-fe73-43f6-b1e6-8c5ea9745707"
}

2020-08-27 11:42:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1f074032-fe73-43f6-b1e6-8c5ea9745707"
}

2020-08-27 11:42:21 | [Mutex] waiting for: [retracted:item:notifieditem-1f074032-fe73-43f6-b1e6-8c5ea9745707:admin@test-domain.com]

2020-08-27 11:42:21 | [Mutex] received everything.

2020-08-27 11:42:21 | [Mutex] isItemNotified: retracted:item:notifieditem-1f074032-fe73-43f6-b1e6-8c5ea9745707:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2020-08-27 11:42:20 |

2020-08-27 11:42:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:20 | ------------------------------------

2020-08-27 11:42:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ac63bf93-f24f-4248-984d-c0e87bde1e74",
    "item-id": "item-1f074032-fe73-43f6-b1e6-8c5ea9745707"
}

2020-08-27 11:42:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ac63bf93-f24f-4248-984d-c0e87bde1e74",
    "item-id": "item-1f074032-fe73-43f6-b1e6-8c5ea9745707",
    "item": [
        "<item id=\"item-1f074032-fe73-43f6-b1e6-8c5ea9745707\"><test>item-1f074032-fe73-43f6-b1e6-8c5ea9745707</test></item>"
    ]
}

2020-08-27 11:42:20 | [Mutex] notify: [retrieved:item:item-1f074032-fe73-43f6-b1e6-8c5ea9745707:payload-matches:true:localhost]

2020-08-27 11:42:20 | [Mutex] received everything.

2020-08-27 11:42:20 | [Mutex] isItemNotified: retrieved:item:item-1f074032-fe73-43f6-b1e6-8c5ea9745707:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-08-27 11:42:20 |

2020-08-27 11:42:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:20 | ------------------------------------

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

2020-08-27 11:42:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6fc34f2b-b89b-47e0-98ee-a7c478895fa9",
        "test",
        "node-ac63bf93-f24f-4248-984d-c0e87bde1e74"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-08-27 11:42:20 |

2020-08-27 11:42:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:20 | ------------------------------------

2020-08-27 11:42:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ac63bf93-f24f-4248-984d-c0e87bde1e74)"
}

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

subscribeNodes 1.014s
2020-08-27 11:42:19 |

2020-08-27 11:42:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:19 | ------------------------------------

2020-08-27 11:42:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ac63bf93-f24f-4248-984d-c0e87bde1e74",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.074s
2020-08-27 11:42:21 |

2020-08-27 11:42:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-27 11:42:21 | ------------------------------------

2020-08-27 11:42:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ac63bf93-f24f-4248-984d-c0e87bde1e74",
    "jids": [
        "admin@test-domain.com"
    ]
}

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