Generated by TestNG with ReportNG at 22:47 PDT on Tuesday 01 September 2020
root@556a2edbe156 / 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.843s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2020-09-01 23:03:05 |

2020-09-01 23:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:05 | ------------------------------------

2020-09-01 23:03:05 | [Mutex] waiting for: [configured:node:node-4ec7f514-0229-4e32-b351-9aa4f05906db:node-6f0ff94e-88d6-44ae-b432-fcabfb8de32b]

2020-09-01 23:03:05 | [Mutex] received everything.

2020-09-01 23:03:05 | [Mutex] isItemNotified: configured:node:node-4ec7f514-0229-4e32-b351-9aa4f05906db:node-6f0ff94e-88d6-44ae-b432-fcabfb8de32b :: true

2020-09-01 23:03:06 | [Mutex] waiting for: [received:nodes:a6ceb006-0910-4f48-9343-6f0014a1c98f:localhost]

2020-09-01 23:03:06 | [Mutex] received everything.

2020-09-01 23:03:06 | [Mutex] isItemNotified: received:node:a6ceb006-0910-4f48-9343-6f0014a1c98f:localhost:node-4ec7f514-0229-4e32-b351-9aa4f05906db:Node 4ec7f514-0229-4e32-b351-9aa4f05906db :: true

2020-09-01 23:03:06 | [Mutex] waiting for: [received:nodes:88a227a1-95aa-4dac-bdfa-c9025dcabf3f:localhost]

2020-09-01 23:03:06 | [Mutex] received everything.

2020-09-01 23:03:06 | [Mutex] isItemNotified: received:node:88a227a1-95aa-4dac-bdfa-c9025dcabf3f:localhost:node-4ec7f514-0229-4e32-b351-9aa4f05906db:Node 4ec7f514-0229-4e32-b351-9aa4f05906db :: false

createNodes 1.485s
2020-09-01 23:03:02 |

2020-09-01 23:03:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:02 | ------------------------------------

2020-09-01 23:03:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4ec7f514-0229-4e32-b351-9aa4f05906db",
    "pubsub#title": "Node 4ec7f514-0229-4e32-b351-9aa4f05906db"
}

2020-09-01 23:03:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 23:03:04 | [Mutex] waiting for: [received:nodes:b9d83bc3-b17e-4c44-9ca9-b767f90e1b83:localhost]

2020-09-01 23:03:04 | [Mutex] waiting for: [received:nodes:b9d83bc3-b17e-4c44-9ca9-b767f90e1b83:localhost]

2020-09-01 23:03:04 | [Mutex] received everything.

2020-09-01 23:03:04 | [Mutex] isItemNotified: received:node:b9d83bc3-b17e-4c44-9ca9-b767f90e1b83:localhost:node-4ec7f514-0229-4e32-b351-9aa4f05906db:Node 4ec7f514-0229-4e32-b351-9aa4f05906db :: true

createSubnodes 1.034s
2020-09-01 23:03:04 |

2020-09-01 23:03:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:04 | ------------------------------------

2020-09-01 23:03:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6f0ff94e-88d6-44ae-b432-fcabfb8de32b",
    "pubsub#title": "Node 6f0ff94e-88d6-44ae-b432-fcabfb8de32b"
}

2020-09-01 23:03:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 23:03:05 | [Mutex] waiting for: [received:nodes:1261923d-11cf-4098-8995-3f3257cfb1d2:localhost]

2020-09-01 23:03:05 | [Mutex] received everything.

2020-09-01 23:03:05 | [Mutex] isItemNotified: received:node:1261923d-11cf-4098-8995-3f3257cfb1d2:localhost:node-6f0ff94e-88d6-44ae-b432-fcabfb8de32b:Node 6f0ff94e-88d6-44ae-b432-fcabfb8de32b :: true

deleteNodes 1.025s
2020-09-01 23:03:09 |

2020-09-01 23:03:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:09 | ------------------------------------

2020-09-01 23:03:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6f0ff94e-88d6-44ae-b432-fcabfb8de32b"
}

2020-09-01 23:03:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 23:03:10 | [Mutex] waiting for: [received:nodes:4f8998d3-1b7d-4a15-a81b-077b409c5227:localhost]

2020-09-01 23:03:10 | [Mutex] received everything.

2020-09-01 23:03:10 | [Mutex] isItemNotified: received:node:4f8998d3-1b7d-4a15-a81b-077b409c5227:localhost:node-6f0ff94e-88d6-44ae-b432-fcabfb8de32b:Node 6f0ff94e-88d6-44ae-b432-fcabfb8de32b :: false

deleteSubnodes 1.044s
2020-09-01 23:03:08 |

2020-09-01 23:03:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:08 | ------------------------------------

2020-09-01 23:03:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4ec7f514-0229-4e32-b351-9aa4f05906db"
}

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

2020-09-01 23:03:09 | [Mutex] waiting for: [received:nodes:4b50ce53-c12e-49a1-acc6-68c3c5cb5ef3:localhost]

2020-09-01 23:03:09 | [Mutex] received everything.

2020-09-01 23:03:09 | [Mutex] isItemNotified: received:node:4b50ce53-c12e-49a1-acc6-68c3c5cb5ef3:localhost:node-4ec7f514-0229-4e32-b351-9aa4f05906db:Node 4ec7f514-0229-4e32-b351-9aa4f05906db :: false

2020-09-01 23:03:09 | [Mutex] waiting for: [received:nodes:d19ca94c-8215-4a46-b252-9578e021c843:localhost]

2020-09-01 23:03:09 | [Mutex] received everything.

2020-09-01 23:03:09 | [Mutex] isItemNotified: received:node:d19ca94c-8215-4a46-b252-9578e021c843:localhost:node-4ec7f514-0229-4e32-b351-9aa4f05906db:Node 4ec7f514-0229-4e32-b351-9aa4f05906db :: false

publishItemsToNodes 0.079s
2020-09-01 23:03:07 |

2020-09-01 23:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:07 | ------------------------------------

2020-09-01 23:03:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4ec7f514-0229-4e32-b351-9aa4f05906db",
    "entry": "<test>item-6f24e9ff-bb47-4f07-995c-aef04ad19816</test>",
    "item-id": "item-6f24e9ff-bb47-4f07-995c-aef04ad19816"
}

2020-09-01 23:03:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6f24e9ff-bb47-4f07-995c-aef04ad19816"
}

2020-09-01 23:03:07 | [Mutex] received everything.

2020-09-01 23:03:07 | [Mutex] isItemNotified: published:item:notifieditem-6f24e9ff-bb47-4f07-995c-aef04ad19816:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2020-09-01 23:03:07 |

2020-09-01 23:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:07 | ------------------------------------

2020-09-01 23:03:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4ec7f514-0229-4e32-b351-9aa4f05906db",
    "item-id": "item-6f24e9ff-bb47-4f07-995c-aef04ad19816"
}

2020-09-01 23:03:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6f24e9ff-bb47-4f07-995c-aef04ad19816"
}

2020-09-01 23:03:07 | [Mutex] waiting for: [retracted:item:notifieditem-6f24e9ff-bb47-4f07-995c-aef04ad19816:admin@test-domain.com]

2020-09-01 23:03:07 | [Mutex] received everything.

2020-09-01 23:03:07 | [Mutex] isItemNotified: retracted:item:notifieditem-6f24e9ff-bb47-4f07-995c-aef04ad19816:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2020-09-01 23:03:07 |

2020-09-01 23:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:07 | ------------------------------------

2020-09-01 23:03:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4ec7f514-0229-4e32-b351-9aa4f05906db",
    "item-id": "item-6f24e9ff-bb47-4f07-995c-aef04ad19816"
}

2020-09-01 23:03:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4ec7f514-0229-4e32-b351-9aa4f05906db",
    "item-id": "item-6f24e9ff-bb47-4f07-995c-aef04ad19816",
    "item": [
        "<item id=\"item-6f24e9ff-bb47-4f07-995c-aef04ad19816\"><test>item-6f24e9ff-bb47-4f07-995c-aef04ad19816</test></item>"
    ]
}

2020-09-01 23:03:07 | [Mutex] notify: [retrieved:item:item-6f24e9ff-bb47-4f07-995c-aef04ad19816:payload-matches:true:localhost]

2020-09-01 23:03:07 | [Mutex] received everything.

2020-09-01 23:03:07 | [Mutex] isItemNotified: retrieved:item:item-6f24e9ff-bb47-4f07-995c-aef04ad19816:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-09-01 23:03:07 |

2020-09-01 23:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:07 | ------------------------------------

2020-09-01 23:03:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-01 23:03:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6f0ff94e-88d6-44ae-b432-fcabfb8de32b",
        "node-4ec7f514-0229-4e32-b351-9aa4f05906db"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-01 23:03:07 |

2020-09-01 23:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:07 | ------------------------------------

2020-09-01 23:03:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4ec7f514-0229-4e32-b351-9aa4f05906db)"
}

2020-09-01 23:03:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2020-09-01 23:03:06 |

2020-09-01 23:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:06 | ------------------------------------

2020-09-01 23:03:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4ec7f514-0229-4e32-b351-9aa4f05906db",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.078s
2020-09-01 23:03:07 |

2020-09-01 23:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 23:03:07 | ------------------------------------

2020-09-01 23:03:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4ec7f514-0229-4e32-b351-9aa4f05906db",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-01 23:03:07 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}