Generated by TestNG with ReportNG at 03:48 PST on Friday 05 March 2021
root@43fec6d4badf / 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.193s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2021-03-05 04:02:44 |

2021-03-05 04:02:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:44 | ------------------------------------

2021-03-05 04:02:44 | [Mutex] waiting for: [configured:node:node-06dda280-7d31-4f56-af0e-fbb151055934:node-bf4472f9-d04b-4917-b303-b5c7c6b3177b]

2021-03-05 04:02:45 | [Mutex] received everything.

2021-03-05 04:02:45 | [Mutex] isItemNotified: configured:node:node-06dda280-7d31-4f56-af0e-fbb151055934:node-bf4472f9-d04b-4917-b303-b5c7c6b3177b :: true

2021-03-05 04:02:46 | [Mutex] waiting for: [received:nodes:fdc313ea-9a96-4dc4-86d7-941a629c7338:localhost]

2021-03-05 04:02:46 | [Mutex] received everything.

2021-03-05 04:02:46 | [Mutex] isItemNotified: received:node:fdc313ea-9a96-4dc4-86d7-941a629c7338:localhost:node-06dda280-7d31-4f56-af0e-fbb151055934:Node 06dda280-7d31-4f56-af0e-fbb151055934 :: true

2021-03-05 04:02:46 | [Mutex] waiting for: [received:nodes:7649fcfb-d6d1-4a05-a5ca-4c934aae3c8c:localhost]

2021-03-05 04:02:46 | [Mutex] waiting for: [received:nodes:7649fcfb-d6d1-4a05-a5ca-4c934aae3c8c:localhost]

2021-03-05 04:02:46 | [Mutex] received everything.

2021-03-05 04:02:46 | [Mutex] isItemNotified: received:node:7649fcfb-d6d1-4a05-a5ca-4c934aae3c8c:localhost:node-06dda280-7d31-4f56-af0e-fbb151055934:Node 06dda280-7d31-4f56-af0e-fbb151055934 :: false

createNodes 1.706s
2021-03-05 04:02:42 |

2021-03-05 04:02:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:42 | ------------------------------------

2021-03-05 04:02:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-06dda280-7d31-4f56-af0e-fbb151055934",
    "pubsub#title": "Node 06dda280-7d31-4f56-af0e-fbb151055934"
}

2021-03-05 04:02:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:02:43 | [Mutex] waiting for: [received:nodes:dab1cf12-bde7-4b6f-a4e7-9105a54dce27:localhost]

2021-03-05 04:02:43 | [Mutex] waiting for: [received:nodes:dab1cf12-bde7-4b6f-a4e7-9105a54dce27:localhost]

2021-03-05 04:02:43 | [Mutex] received everything.

2021-03-05 04:02:43 | [Mutex] isItemNotified: received:node:dab1cf12-bde7-4b6f-a4e7-9105a54dce27:localhost:node-06dda280-7d31-4f56-af0e-fbb151055934:Node 06dda280-7d31-4f56-af0e-fbb151055934 :: true

createSubnodes 1.030s
2021-03-05 04:02:43 |

2021-03-05 04:02:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:43 | ------------------------------------

2021-03-05 04:02:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bf4472f9-d04b-4917-b303-b5c7c6b3177b",
    "pubsub#title": "Node bf4472f9-d04b-4917-b303-b5c7c6b3177b"
}

2021-03-05 04:02:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:02:44 | [Mutex] waiting for: [received:nodes:2cabfbfc-b4a2-44db-84ec-a87dd08803cd:localhost]

2021-03-05 04:02:44 | [Mutex] received everything.

2021-03-05 04:02:44 | [Mutex] isItemNotified: received:node:2cabfbfc-b4a2-44db-84ec-a87dd08803cd:localhost:node-bf4472f9-d04b-4917-b303-b5c7c6b3177b:Node bf4472f9-d04b-4917-b303-b5c7c6b3177b :: true

deleteNodes 1.026s
2021-03-05 04:02:49 |

2021-03-05 04:02:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:49 | ------------------------------------

2021-03-05 04:02:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bf4472f9-d04b-4917-b303-b5c7c6b3177b"
}

2021-03-05 04:02:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:02:50 | [Mutex] waiting for: [received:nodes:d9cbb183-5405-4501-9d2b-1219a2f1d44b:localhost]

2021-03-05 04:02:50 | [Mutex] received everything.

2021-03-05 04:02:50 | [Mutex] isItemNotified: received:node:d9cbb183-5405-4501-9d2b-1219a2f1d44b:localhost:node-bf4472f9-d04b-4917-b303-b5c7c6b3177b:Node bf4472f9-d04b-4917-b303-b5c7c6b3177b :: false

deleteSubnodes 1.030s
2021-03-05 04:02:48 |

2021-03-05 04:02:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:48 | ------------------------------------

2021-03-05 04:02:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-06dda280-7d31-4f56-af0e-fbb151055934"
}

2021-03-05 04:02:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:02:49 | [Mutex] waiting for: [received:nodes:032e8b0e-554f-493f-b75e-14c622992fae:localhost]

2021-03-05 04:02:49 | [Mutex] waiting for: [received:nodes:032e8b0e-554f-493f-b75e-14c622992fae:localhost]

2021-03-05 04:02:49 | [Mutex] waiting for: [received:nodes:032e8b0e-554f-493f-b75e-14c622992fae:localhost]

2021-03-05 04:02:49 | [Mutex] waiting for: [received:nodes:032e8b0e-554f-493f-b75e-14c622992fae:localhost]

2021-03-05 04:02:49 | [Mutex] received everything.

2021-03-05 04:02:49 | [Mutex] isItemNotified: received:node:032e8b0e-554f-493f-b75e-14c622992fae:localhost:node-06dda280-7d31-4f56-af0e-fbb151055934:Node 06dda280-7d31-4f56-af0e-fbb151055934 :: false

2021-03-05 04:02:49 | [Mutex] waiting for: [received:nodes:bb0c3332-bb7e-4e9b-bac4-e5a2c3d2009e:localhost]

2021-03-05 04:02:49 | [Mutex] received everything.

2021-03-05 04:02:49 | [Mutex] isItemNotified: received:node:bb0c3332-bb7e-4e9b-bac4-e5a2c3d2009e:localhost:node-06dda280-7d31-4f56-af0e-fbb151055934:Node 06dda280-7d31-4f56-af0e-fbb151055934 :: false

publishItemsToNodes 0.059s
2021-03-05 04:02:47 |

2021-03-05 04:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:47 | ------------------------------------

2021-03-05 04:02:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-06dda280-7d31-4f56-af0e-fbb151055934",
    "entry": "<test>item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c</test>",
    "item-id": "item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c"
}

2021-03-05 04:02:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c"
}

2021-03-05 04:02:47 | [Mutex] waiting for: [published:item:notifieditem-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c:admin@test-domain.com]

2021-03-05 04:02:47 | [Mutex] received everything.

2021-03-05 04:02:47 | [Mutex] isItemNotified: published:item:notifieditem-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c:admin@test-domain.com :: true

retractItemsFromNodes 0.084s
2021-03-05 04:02:47 |

2021-03-05 04:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:47 | ------------------------------------

2021-03-05 04:02:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-06dda280-7d31-4f56-af0e-fbb151055934",
    "item-id": "item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c"
}

2021-03-05 04:02:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c"
}

2021-03-05 04:02:47 | [Mutex] received everything.

2021-03-05 04:02:47 | [Mutex] isItemNotified: retracted:item:notifieditem-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2021-03-05 04:02:47 |

2021-03-05 04:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:47 | ------------------------------------

2021-03-05 04:02:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-06dda280-7d31-4f56-af0e-fbb151055934",
    "item-id": "item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c"
}

2021-03-05 04:02:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-06dda280-7d31-4f56-af0e-fbb151055934",
    "item-id": "item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c",
    "item": [
        "<item id=\"item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c\"><test>item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c</test></item>"
    ]
}

2021-03-05 04:02:47 | [Mutex] notify: [retrieved:item:item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c:payload-matches:true:localhost]

2021-03-05 04:02:47 | [Mutex] received everything.

2021-03-05 04:02:47 | [Mutex] isItemNotified: retrieved:item:item-bfd03573-e9de-4d79-abbe-6d6e5cdbff0c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2021-03-05 04:02:47 |

2021-03-05 04:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:47 | ------------------------------------

2021-03-05 04:02:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-05 04:02:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-06dda280-7d31-4f56-af0e-fbb151055934",
        "test",
        "node-bf4472f9-d04b-4917-b303-b5c7c6b3177b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-03-05 04:02:47 |

2021-03-05 04:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:47 | ------------------------------------

2021-03-05 04:02:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-06dda280-7d31-4f56-af0e-fbb151055934)"
}

2021-03-05 04:02:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2021-03-05 04:02:46 |

2021-03-05 04:02:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:46 | ------------------------------------

2021-03-05 04:02:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-06dda280-7d31-4f56-af0e-fbb151055934",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-05 04:02:46 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2021-03-05 04:02:47 |

2021-03-05 04:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:02:47 | ------------------------------------

2021-03-05 04:02:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-06dda280-7d31-4f56-af0e-fbb151055934",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-05 04:02:47 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}