Generated by TestNG with ReportNG at 22:26 PDT on Wednesday 21 October 2020
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.389s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2020-10-21 22:43:49 |

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

2020-10-21 22:43:49 | ------------------------------------

2020-10-21 22:43:49 | [Mutex] waiting for: [configured:node:node-bdbd722c-8b53-4a8a-9caa-b95f34144955:node-5cbec843-0636-40c9-9c35-6cfd84f99044]

2020-10-21 22:43:49 | [Mutex] received everything.

2020-10-21 22:43:49 | [Mutex] isItemNotified: configured:node:node-bdbd722c-8b53-4a8a-9caa-b95f34144955:node-5cbec843-0636-40c9-9c35-6cfd84f99044 :: true

2020-10-21 22:43:50 | [Mutex] waiting for: [received:nodes:adb6ea27-dbdd-4f99-be88-c3796aa55b94:localhost]

2020-10-21 22:43:50 | [Mutex] received everything.

2020-10-21 22:43:50 | [Mutex] isItemNotified: received:node:adb6ea27-dbdd-4f99-be88-c3796aa55b94:localhost:node-bdbd722c-8b53-4a8a-9caa-b95f34144955:Node bdbd722c-8b53-4a8a-9caa-b95f34144955 :: true

2020-10-21 22:43:50 | [Mutex] waiting for: [received:nodes:8ff9cb38-1408-4e0e-981d-253c380bfdfe:localhost]

2020-10-21 22:43:50 | [Mutex] waiting for: [received:nodes:8ff9cb38-1408-4e0e-981d-253c380bfdfe:localhost]

2020-10-21 22:43:50 | [Mutex] received everything.

2020-10-21 22:43:50 | [Mutex] isItemNotified: received:node:8ff9cb38-1408-4e0e-981d-253c380bfdfe:localhost:node-bdbd722c-8b53-4a8a-9caa-b95f34144955:Node bdbd722c-8b53-4a8a-9caa-b95f34144955 :: false

createNodes 1.731s
2020-10-21 22:43:46 |

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

2020-10-21 22:43:46 | ------------------------------------

2020-10-21 22:43:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bdbd722c-8b53-4a8a-9caa-b95f34144955",
    "pubsub#title": "Node bdbd722c-8b53-4a8a-9caa-b95f34144955"
}

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

2020-10-21 22:43:48 | [Mutex] waiting for: [received:nodes:db370987-8504-494c-b933-5b00f940c26b:localhost]

2020-10-21 22:43:48 | [Mutex] received everything.

2020-10-21 22:43:48 | [Mutex] isItemNotified: received:node:db370987-8504-494c-b933-5b00f940c26b:localhost:node-bdbd722c-8b53-4a8a-9caa-b95f34144955:Node bdbd722c-8b53-4a8a-9caa-b95f34144955 :: true

createSubnodes 1.028s
2020-10-21 22:43:48 |

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

2020-10-21 22:43:48 | ------------------------------------

2020-10-21 22:43:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5cbec843-0636-40c9-9c35-6cfd84f99044",
    "pubsub#title": "Node 5cbec843-0636-40c9-9c35-6cfd84f99044"
}

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

2020-10-21 22:43:49 | [Mutex] waiting for: [received:nodes:87672e33-f5f2-43f6-884a-e78de2a83961:localhost]

2020-10-21 22:43:49 | [Mutex] received everything.

2020-10-21 22:43:49 | [Mutex] isItemNotified: received:node:87672e33-f5f2-43f6-884a-e78de2a83961:localhost:node-5cbec843-0636-40c9-9c35-6cfd84f99044:Node 5cbec843-0636-40c9-9c35-6cfd84f99044 :: true

deleteNodes 1.036s
2020-10-21 22:43:53 |

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

2020-10-21 22:43:53 | ------------------------------------

2020-10-21 22:43:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5cbec843-0636-40c9-9c35-6cfd84f99044"
}

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

2020-10-21 22:43:54 | [Mutex] waiting for: [received:nodes:0374ee9f-bd01-42e6-a622-355186e10b3a:localhost]

2020-10-21 22:43:54 | [Mutex] waiting for: [received:nodes:0374ee9f-bd01-42e6-a622-355186e10b3a:localhost]

2020-10-21 22:43:54 | [Mutex] received everything.

2020-10-21 22:43:54 | [Mutex] isItemNotified: received:node:0374ee9f-bd01-42e6-a622-355186e10b3a:localhost:node-5cbec843-0636-40c9-9c35-6cfd84f99044:Node 5cbec843-0636-40c9-9c35-6cfd84f99044 :: false

deleteSubnodes 1.029s
2020-10-21 22:43:52 |

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

2020-10-21 22:43:52 | ------------------------------------

2020-10-21 22:43:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bdbd722c-8b53-4a8a-9caa-b95f34144955"
}

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

2020-10-21 22:43:53 | [Mutex] waiting for: [received:nodes:33de8d9f-49cc-4633-881e-8334eac22526:localhost]

2020-10-21 22:43:53 | [Mutex] received everything.

2020-10-21 22:43:53 | [Mutex] isItemNotified: received:node:33de8d9f-49cc-4633-881e-8334eac22526:localhost:node-bdbd722c-8b53-4a8a-9caa-b95f34144955:Node bdbd722c-8b53-4a8a-9caa-b95f34144955 :: false

2020-10-21 22:43:53 | [Mutex] waiting for: [received:nodes:f6bfc74b-2f24-406f-bfbb-c79890e7cf4e:localhost]

2020-10-21 22:43:53 | [Mutex] received everything.

2020-10-21 22:43:53 | [Mutex] isItemNotified: received:node:f6bfc74b-2f24-406f-bfbb-c79890e7cf4e:localhost:node-bdbd722c-8b53-4a8a-9caa-b95f34144955:Node bdbd722c-8b53-4a8a-9caa-b95f34144955 :: false

publishItemsToNodes 0.105s
2020-10-21 22:43:51 |

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

2020-10-21 22:43:51 | ------------------------------------

2020-10-21 22:43:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bdbd722c-8b53-4a8a-9caa-b95f34144955",
    "entry": "<test>item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc</test>",
    "item-id": "item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc"
}

2020-10-21 22:43:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc"
}

2020-10-21 22:43:51 | [Mutex] waiting for: [published:item:notifieditem-d8bcae50-392e-4d9f-b53b-d45b789d8dcc:admin@test-domain.com]

2020-10-21 22:43:51 | [Mutex] received everything.

2020-10-21 22:43:51 | [Mutex] isItemNotified: published:item:notifieditem-d8bcae50-392e-4d9f-b53b-d45b789d8dcc:admin@test-domain.com :: true

retractItemsFromNodes 0.073s
2020-10-21 22:43:51 |

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

2020-10-21 22:43:51 | ------------------------------------

2020-10-21 22:43:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bdbd722c-8b53-4a8a-9caa-b95f34144955",
    "item-id": "item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc"
}

2020-10-21 22:43:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc"
}

2020-10-21 22:43:51 | [Mutex] waiting for: [retracted:item:notifieditem-d8bcae50-392e-4d9f-b53b-d45b789d8dcc:admin@test-domain.com]

2020-10-21 22:43:51 | [Mutex] received everything.

2020-10-21 22:43:51 | [Mutex] isItemNotified: retracted:item:notifieditem-d8bcae50-392e-4d9f-b53b-d45b789d8dcc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2020-10-21 22:43:51 |

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

2020-10-21 22:43:51 | ------------------------------------

2020-10-21 22:43:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bdbd722c-8b53-4a8a-9caa-b95f34144955",
    "item-id": "item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc"
}

2020-10-21 22:43:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bdbd722c-8b53-4a8a-9caa-b95f34144955",
    "item-id": "item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc",
    "item": [
        "<item id=\"item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc\"><test>item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc</test></item>"
    ]
}

2020-10-21 22:43:51 | [Mutex] notify: [retrieved:item:item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc:payload-matches:true:localhost]

2020-10-21 22:43:51 | [Mutex] received everything.

2020-10-21 22:43:51 | [Mutex] isItemNotified: retrieved:item:item-d8bcae50-392e-4d9f-b53b-d45b789d8dcc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2020-10-21 22:43:51 |

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

2020-10-21 22:43:51 | ------------------------------------

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

2020-10-21 22:43:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5cbec843-0636-40c9-9c35-6cfd84f99044",
        "test",
        "node-bdbd722c-8b53-4a8a-9caa-b95f34144955"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-10-21 22:43:51 |

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

2020-10-21 22:43:51 | ------------------------------------

2020-10-21 22:43:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bdbd722c-8b53-4a8a-9caa-b95f34144955)"
}

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

subscribeNodes 1.012s
2020-10-21 22:43:50 |

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

2020-10-21 22:43:50 | ------------------------------------

2020-10-21 22:43:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bdbd722c-8b53-4a8a-9caa-b95f34144955",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.058s
2020-10-21 22:43:51 |

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

2020-10-21 22:43:51 | ------------------------------------

2020-10-21 22:43:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bdbd722c-8b53-4a8a-9caa-b95f34144955",
    "jids": [
        "admin@test-domain.com"
    ]
}

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