Generated by TestNG with ReportNG at 22:17 PDT on Friday 09 October 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 : 9.443s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.127s
2020-10-09 22:32:44 |

2020-10-09 22:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:44 | ------------------------------------

2020-10-09 22:32:44 | [Mutex] waiting for: [configured:node:node-0abc283f-6fbe-4beb-ab07-716953fcc287:node-092b83d4-ec9c-4edd-bcd6-6df52fb61f59]

2020-10-09 22:32:44 | [Mutex] received everything.

2020-10-09 22:32:44 | [Mutex] isItemNotified: configured:node:node-0abc283f-6fbe-4beb-ab07-716953fcc287:node-092b83d4-ec9c-4edd-bcd6-6df52fb61f59 :: true

2020-10-09 22:32:45 | [Mutex] waiting for: [received:nodes:a69aa87b-f33d-4371-a2e4-f3e5f710adc2:localhost]

2020-10-09 22:32:45 | [Mutex] received everything.

2020-10-09 22:32:45 | [Mutex] isItemNotified: received:node:a69aa87b-f33d-4371-a2e4-f3e5f710adc2:localhost:node-0abc283f-6fbe-4beb-ab07-716953fcc287:Node 0abc283f-6fbe-4beb-ab07-716953fcc287 :: true

2020-10-09 22:32:45 | [Mutex] waiting for: [received:nodes:4c3428b4-8b63-4d57-a498-733ab2c78873:localhost]

2020-10-09 22:32:45 | [Mutex] waiting for: [received:nodes:4c3428b4-8b63-4d57-a498-733ab2c78873:localhost]

2020-10-09 22:32:45 | [Mutex] received everything.

2020-10-09 22:32:45 | [Mutex] isItemNotified: received:node:4c3428b4-8b63-4d57-a498-733ab2c78873:localhost:node-0abc283f-6fbe-4beb-ab07-716953fcc287:Node 0abc283f-6fbe-4beb-ab07-716953fcc287 :: false

createNodes 2.021s
2020-10-09 22:32:41 |

2020-10-09 22:32:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:41 | ------------------------------------

2020-10-09 22:32: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-0abc283f-6fbe-4beb-ab07-716953fcc287",
    "pubsub#title": "Node 0abc283f-6fbe-4beb-ab07-716953fcc287"
}

2020-10-09 22:32:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-09 22:32:43 | [Mutex] waiting for: [received:nodes:15808b3c-9397-4fc3-944c-da825b435161:localhost]

2020-10-09 22:32:43 | [Mutex] waiting for: [received:nodes:15808b3c-9397-4fc3-944c-da825b435161:localhost]

2020-10-09 22:32:43 | [Mutex] received everything.

2020-10-09 22:32:43 | [Mutex] isItemNotified: received:node:15808b3c-9397-4fc3-944c-da825b435161:localhost:node-0abc283f-6fbe-4beb-ab07-716953fcc287:Node 0abc283f-6fbe-4beb-ab07-716953fcc287 :: true

createSubnodes 1.029s
2020-10-09 22:32:43 |

2020-10-09 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:43 | ------------------------------------

2020-10-09 22:32: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-092b83d4-ec9c-4edd-bcd6-6df52fb61f59",
    "pubsub#title": "Node 092b83d4-ec9c-4edd-bcd6-6df52fb61f59"
}

2020-10-09 22:32:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-09 22:32:44 | [Mutex] waiting for: [received:nodes:1ca54cd6-451c-41ca-9bdc-35ff62b3e25f:localhost]

2020-10-09 22:32:44 | [Mutex] received everything.

2020-10-09 22:32:44 | [Mutex] isItemNotified: received:node:1ca54cd6-451c-41ca-9bdc-35ff62b3e25f:localhost:node-092b83d4-ec9c-4edd-bcd6-6df52fb61f59:Node 092b83d4-ec9c-4edd-bcd6-6df52fb61f59 :: true

deleteNodes 1.029s
2020-10-09 22:32:48 |

2020-10-09 22:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:48 | ------------------------------------

2020-10-09 22:32:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-092b83d4-ec9c-4edd-bcd6-6df52fb61f59"
}

2020-10-09 22:32:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-09 22:32:50 | [Mutex] waiting for: [received:nodes:297fe5f1-28f4-4499-a37e-d0c73fe2ee00:localhost]

2020-10-09 22:32:50 | [Mutex] waiting for: [received:nodes:297fe5f1-28f4-4499-a37e-d0c73fe2ee00:localhost]

2020-10-09 22:32:50 | [Mutex] received everything.

2020-10-09 22:32:50 | [Mutex] isItemNotified: received:node:297fe5f1-28f4-4499-a37e-d0c73fe2ee00:localhost:node-092b83d4-ec9c-4edd-bcd6-6df52fb61f59:Node 092b83d4-ec9c-4edd-bcd6-6df52fb61f59 :: false

deleteSubnodes 1.037s
2020-10-09 22:32:47 |

2020-10-09 22:32:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:47 | ------------------------------------

2020-10-09 22:32:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0abc283f-6fbe-4beb-ab07-716953fcc287"
}

2020-10-09 22:32:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-09 22:32:48 | [Mutex] waiting for: [received:nodes:f7c6569f-10b4-4e5f-a6ce-a23c41f9da6b:localhost]

2020-10-09 22:32:48 | [Mutex] waiting for: [received:nodes:f7c6569f-10b4-4e5f-a6ce-a23c41f9da6b:localhost]

2020-10-09 22:32:48 | [Mutex] received everything.

2020-10-09 22:32:48 | [Mutex] isItemNotified: received:node:f7c6569f-10b4-4e5f-a6ce-a23c41f9da6b:localhost:node-0abc283f-6fbe-4beb-ab07-716953fcc287:Node 0abc283f-6fbe-4beb-ab07-716953fcc287 :: false

2020-10-09 22:32:48 | [Mutex] waiting for: [received:nodes:b2281a1d-3eb6-4cae-a69d-0da46e11a9d6:localhost]

2020-10-09 22:32:48 | [Mutex] received everything.

2020-10-09 22:32:48 | [Mutex] isItemNotified: received:node:b2281a1d-3eb6-4cae-a69d-0da46e11a9d6:localhost:node-0abc283f-6fbe-4beb-ab07-716953fcc287:Node 0abc283f-6fbe-4beb-ab07-716953fcc287 :: false

publishItemsToNodes 0.065s
2020-10-09 22:32:46 |

2020-10-09 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:46 | ------------------------------------

2020-10-09 22:32:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0abc283f-6fbe-4beb-ab07-716953fcc287",
    "entry": "<test>item-cb4190b6-b48f-413c-bd21-31ed5ca66920</test>",
    "item-id": "item-cb4190b6-b48f-413c-bd21-31ed5ca66920"
}

2020-10-09 22:32:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cb4190b6-b48f-413c-bd21-31ed5ca66920"
}

2020-10-09 22:32:46 | [Mutex] received everything.

2020-10-09 22:32:46 | [Mutex] isItemNotified: published:item:notifieditem-cb4190b6-b48f-413c-bd21-31ed5ca66920:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-10-09 22:32:46 |

2020-10-09 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:46 | ------------------------------------

2020-10-09 22:32:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0abc283f-6fbe-4beb-ab07-716953fcc287",
    "item-id": "item-cb4190b6-b48f-413c-bd21-31ed5ca66920"
}

2020-10-09 22:32:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cb4190b6-b48f-413c-bd21-31ed5ca66920"
}

2020-10-09 22:32:46 | [Mutex] received everything.

2020-10-09 22:32:46 | [Mutex] isItemNotified: retracted:item:notifieditem-cb4190b6-b48f-413c-bd21-31ed5ca66920:admin@test-domain.com :: true

retrieveItemsFromNodes 0.098s
2020-10-09 22:32:46 |

2020-10-09 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:46 | ------------------------------------

2020-10-09 22:32:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0abc283f-6fbe-4beb-ab07-716953fcc287",
    "item-id": "item-cb4190b6-b48f-413c-bd21-31ed5ca66920"
}

2020-10-09 22:32:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0abc283f-6fbe-4beb-ab07-716953fcc287",
    "item-id": "item-cb4190b6-b48f-413c-bd21-31ed5ca66920",
    "item": [
        "<item id=\"item-cb4190b6-b48f-413c-bd21-31ed5ca66920\"><test>item-cb4190b6-b48f-413c-bd21-31ed5ca66920</test></item>"
    ]
}

2020-10-09 22:32:46 | [Mutex] notify: [retrieved:item:item-cb4190b6-b48f-413c-bd21-31ed5ca66920:payload-matches:true:localhost]

2020-10-09 22:32:46 | [Mutex] received everything.

2020-10-09 22:32:46 | [Mutex] isItemNotified: retrieved:item:item-cb4190b6-b48f-413c-bd21-31ed5ca66920:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2020-10-09 22:32:46 |

2020-10-09 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:46 | ------------------------------------

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

2020-10-09 22:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-092b83d4-ec9c-4edd-bcd6-6df52fb61f59",
        "test",
        "node-0abc283f-6fbe-4beb-ab07-716953fcc287"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-09 22:32:46 |

2020-10-09 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:46 | ------------------------------------

2020-10-09 22:32:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0abc283f-6fbe-4beb-ab07-716953fcc287)"
}

2020-10-09 22:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2020-10-09 22:32:45 |

2020-10-09 22:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:45 | ------------------------------------

2020-10-09 22:32:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0abc283f-6fbe-4beb-ab07-716953fcc287",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-09 22:32:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2020-10-09 22:32:46 |

2020-10-09 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-09 22:32:46 | ------------------------------------

2020-10-09 22:32:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0abc283f-6fbe-4beb-ab07-716953fcc287",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-09 22:32:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}