Generated by TestNG with ReportNG at 22:14 PDT on Monday 21 June 2021
root@785cf647a4ab / 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.987s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2021-06-21 22:30:46 |

2021-06-21 22:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:46 | ------------------------------------

2021-06-21 22:30:46 | [Mutex] waiting for: [configured:node:node-790062b5-c146-44e9-b8d2-309c0a8f5362:node-a0764e95-1b57-4f32-8e5d-a8c63e5c98e0]

2021-06-21 22:30:46 | [Mutex] received everything.

2021-06-21 22:30:46 | [Mutex] isItemNotified: configured:node:node-790062b5-c146-44e9-b8d2-309c0a8f5362:node-a0764e95-1b57-4f32-8e5d-a8c63e5c98e0 :: true

2021-06-21 22:30:47 | [Mutex] waiting for: [received:nodes:3f2e3609-1faf-4bbf-92a1-f09536766634:localhost]

2021-06-21 22:30:47 | [Mutex] received everything.

2021-06-21 22:30:47 | [Mutex] isItemNotified: received:node:3f2e3609-1faf-4bbf-92a1-f09536766634:localhost:node-790062b5-c146-44e9-b8d2-309c0a8f5362:Node 790062b5-c146-44e9-b8d2-309c0a8f5362 :: true

2021-06-21 22:30:47 | [Mutex] waiting for: [received:nodes:a224e3f2-c6f6-4a49-b7d2-971c478a6cbb:localhost]

2021-06-21 22:30:47 | [Mutex] received everything.

2021-06-21 22:30:47 | [Mutex] isItemNotified: received:node:a224e3f2-c6f6-4a49-b7d2-971c478a6cbb:localhost:node-790062b5-c146-44e9-b8d2-309c0a8f5362:Node 790062b5-c146-44e9-b8d2-309c0a8f5362 :: false

createNodes 1.642s
2021-06-21 22:30:43 |

2021-06-21 22:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:43 | ------------------------------------

2021-06-21 22:30:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-790062b5-c146-44e9-b8d2-309c0a8f5362",
    "pubsub#title": "Node 790062b5-c146-44e9-b8d2-309c0a8f5362"
}

2021-06-21 22:30:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:30:45 | [Mutex] waiting for: [received:nodes:b1048e29-8689-49d4-bbc2-e166ffc1a353:localhost]

2021-06-21 22:30:45 | [Mutex] waiting for: [received:nodes:b1048e29-8689-49d4-bbc2-e166ffc1a353:localhost]

2021-06-21 22:30:45 | [Mutex] received everything.

2021-06-21 22:30:45 | [Mutex] isItemNotified: received:node:b1048e29-8689-49d4-bbc2-e166ffc1a353:localhost:node-790062b5-c146-44e9-b8d2-309c0a8f5362:Node 790062b5-c146-44e9-b8d2-309c0a8f5362 :: true

createSubnodes 1.027s
2021-06-21 22:30:45 |

2021-06-21 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:45 | ------------------------------------

2021-06-21 22:30:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a0764e95-1b57-4f32-8e5d-a8c63e5c98e0",
    "pubsub#title": "Node a0764e95-1b57-4f32-8e5d-a8c63e5c98e0"
}

2021-06-21 22:30:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:30:46 | [Mutex] waiting for: [received:nodes:37339d0d-24d3-41fe-8176-9bc43e3208cc:localhost]

2021-06-21 22:30:46 | [Mutex] received everything.

2021-06-21 22:30:46 | [Mutex] isItemNotified: received:node:37339d0d-24d3-41fe-8176-9bc43e3208cc:localhost:node-a0764e95-1b57-4f32-8e5d-a8c63e5c98e0:Node a0764e95-1b57-4f32-8e5d-a8c63e5c98e0 :: true

deleteNodes 1.023s
2021-06-21 22:30:51 |

2021-06-21 22:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:51 | ------------------------------------

2021-06-21 22:30:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a0764e95-1b57-4f32-8e5d-a8c63e5c98e0"
}

2021-06-21 22:30:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:30:52 | [Mutex] waiting for: [received:nodes:38a6c117-c6e4-4121-bf32-95097692a01d:localhost]

2021-06-21 22:30:52 | [Mutex] received everything.

2021-06-21 22:30:52 | [Mutex] isItemNotified: received:node:38a6c117-c6e4-4121-bf32-95097692a01d:localhost:node-a0764e95-1b57-4f32-8e5d-a8c63e5c98e0:Node a0764e95-1b57-4f32-8e5d-a8c63e5c98e0 :: false

deleteSubnodes 1.030s
2021-06-21 22:30:49 |

2021-06-21 22:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:49 | ------------------------------------

2021-06-21 22:30:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-790062b5-c146-44e9-b8d2-309c0a8f5362"
}

2021-06-21 22:30:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:30:50 | [Mutex] waiting for: [received:nodes:c4cccdd7-e2c0-435e-9de5-36bcfe45c1d7:localhost]

2021-06-21 22:30:50 | [Mutex] waiting for: [received:nodes:c4cccdd7-e2c0-435e-9de5-36bcfe45c1d7:localhost]

2021-06-21 22:30:50 | [Mutex] received everything.

2021-06-21 22:30:50 | [Mutex] isItemNotified: received:node:c4cccdd7-e2c0-435e-9de5-36bcfe45c1d7:localhost:node-790062b5-c146-44e9-b8d2-309c0a8f5362:Node 790062b5-c146-44e9-b8d2-309c0a8f5362 :: false

2021-06-21 22:30:51 | [Mutex] waiting for: [received:nodes:a1158bd3-c55d-4d61-88a6-dfda326e1cd1:localhost]

2021-06-21 22:30:51 | [Mutex] received everything.

2021-06-21 22:30:51 | [Mutex] isItemNotified: received:node:a1158bd3-c55d-4d61-88a6-dfda326e1cd1:localhost:node-790062b5-c146-44e9-b8d2-309c0a8f5362:Node 790062b5-c146-44e9-b8d2-309c0a8f5362 :: false

publishItemsToNodes 0.065s
2021-06-21 22:30:48 |

2021-06-21 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:48 | ------------------------------------

2021-06-21 22:30:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-790062b5-c146-44e9-b8d2-309c0a8f5362",
    "entry": "<test>item-19d391ec-129e-42d0-8b00-e66f11d64184</test>",
    "item-id": "item-19d391ec-129e-42d0-8b00-e66f11d64184"
}

2021-06-21 22:30:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-19d391ec-129e-42d0-8b00-e66f11d64184"
}

2021-06-21 22:30:48 | [Mutex] waiting for: [published:item:notifieditem-19d391ec-129e-42d0-8b00-e66f11d64184:admin@test-domain.com]

2021-06-21 22:30:48 | [Mutex] received everything.

2021-06-21 22:30:48 | [Mutex] isItemNotified: published:item:notifieditem-19d391ec-129e-42d0-8b00-e66f11d64184:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-06-21 22:30:48 |

2021-06-21 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:48 | ------------------------------------

2021-06-21 22:30:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-790062b5-c146-44e9-b8d2-309c0a8f5362",
    "item-id": "item-19d391ec-129e-42d0-8b00-e66f11d64184"
}

2021-06-21 22:30:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-19d391ec-129e-42d0-8b00-e66f11d64184"
}

2021-06-21 22:30:48 | [Mutex] received everything.

2021-06-21 22:30:48 | [Mutex] isItemNotified: retracted:item:notifieditem-19d391ec-129e-42d0-8b00-e66f11d64184:admin@test-domain.com :: true

retrieveItemsFromNodes 0.025s
2021-06-21 22:30:48 |

2021-06-21 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:48 | ------------------------------------

2021-06-21 22:30:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-790062b5-c146-44e9-b8d2-309c0a8f5362",
    "item-id": "item-19d391ec-129e-42d0-8b00-e66f11d64184"
}

2021-06-21 22:30:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-790062b5-c146-44e9-b8d2-309c0a8f5362",
    "item-id": "item-19d391ec-129e-42d0-8b00-e66f11d64184",
    "item": [
        "<item id=\"item-19d391ec-129e-42d0-8b00-e66f11d64184\"><test>item-19d391ec-129e-42d0-8b00-e66f11d64184</test></item>"
    ]
}

2021-06-21 22:30:48 | [Mutex] notify: [retrieved:item:item-19d391ec-129e-42d0-8b00-e66f11d64184:payload-matches:true:localhost]

2021-06-21 22:30:48 | [Mutex] received everything.

2021-06-21 22:30:48 | [Mutex] isItemNotified: retrieved:item:item-19d391ec-129e-42d0-8b00-e66f11d64184:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.077s
2021-06-21 22:30:48 |

2021-06-21 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:48 | ------------------------------------

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

2021-06-21 22:30:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-790062b5-c146-44e9-b8d2-309c0a8f5362",
        "node-a0764e95-1b57-4f32-8e5d-a8c63e5c98e0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-06-21 22:30:48 |

2021-06-21 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:48 | ------------------------------------

2021-06-21 22:30:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-790062b5-c146-44e9-b8d2-309c0a8f5362)"
}

2021-06-21 22:30:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-06-21 22:30:47 |

2021-06-21 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:47 | ------------------------------------

2021-06-21 22:30:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-790062b5-c146-44e9-b8d2-309c0a8f5362",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.087s
2021-06-21 22:30:48 |

2021-06-21 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:30:48 | ------------------------------------

2021-06-21 22:30:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-790062b5-c146-44e9-b8d2-309c0a8f5362",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-21 22:30:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}