Generated by TestNG with ReportNG at 22:44 PDT on Monday 14 September 2020
root@0645b6a256ba / 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.907s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2020-09-14 22:59:05 |

2020-09-14 22:59:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:05 | ------------------------------------

2020-09-14 22:59:05 | [Mutex] waiting for: [configured:node:node-794c5524-8349-4764-a7ce-33cffb127851:node-c2f4c211-df32-436e-ae12-19d37b8781ce]

2020-09-14 22:59:05 | [Mutex] received everything.

2020-09-14 22:59:05 | [Mutex] isItemNotified: configured:node:node-794c5524-8349-4764-a7ce-33cffb127851:node-c2f4c211-df32-436e-ae12-19d37b8781ce :: true

2020-09-14 22:59:06 | [Mutex] waiting for: [received:nodes:26901e2c-a144-4bd8-9fa7-e4cced23f020:localhost]

2020-09-14 22:59:06 | [Mutex] received everything.

2020-09-14 22:59:06 | [Mutex] isItemNotified: received:node:26901e2c-a144-4bd8-9fa7-e4cced23f020:localhost:node-794c5524-8349-4764-a7ce-33cffb127851:Node 794c5524-8349-4764-a7ce-33cffb127851 :: true

2020-09-14 22:59:06 | [Mutex] waiting for: [received:nodes:571312b6-52a0-473c-9364-fb9e05d0e398:localhost]

2020-09-14 22:59:06 | [Mutex] waiting for: [received:nodes:571312b6-52a0-473c-9364-fb9e05d0e398:localhost]

2020-09-14 22:59:06 | [Mutex] received everything.

2020-09-14 22:59:06 | [Mutex] isItemNotified: received:node:571312b6-52a0-473c-9364-fb9e05d0e398:localhost:node-794c5524-8349-4764-a7ce-33cffb127851:Node 794c5524-8349-4764-a7ce-33cffb127851 :: false

createNodes 1.711s
2020-09-14 22:59:02 |

2020-09-14 22:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:02 | ------------------------------------

2020-09-14 22:59: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-794c5524-8349-4764-a7ce-33cffb127851",
    "pubsub#title": "Node 794c5524-8349-4764-a7ce-33cffb127851"
}

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

2020-09-14 22:59:04 | [Mutex] waiting for: [received:nodes:6908dd46-b3f6-44f9-8b5e-b425cf78531c:localhost]

2020-09-14 22:59:04 | [Mutex] received everything.

2020-09-14 22:59:04 | [Mutex] isItemNotified: received:node:6908dd46-b3f6-44f9-8b5e-b425cf78531c:localhost:node-794c5524-8349-4764-a7ce-33cffb127851:Node 794c5524-8349-4764-a7ce-33cffb127851 :: true

createSubnodes 1.023s
2020-09-14 22:59:04 |

2020-09-14 22:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:04 | ------------------------------------

2020-09-14 22:59: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-c2f4c211-df32-436e-ae12-19d37b8781ce",
    "pubsub#title": "Node c2f4c211-df32-436e-ae12-19d37b8781ce"
}

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

2020-09-14 22:59:05 | [Mutex] waiting for: [received:nodes:20d8abad-a657-4946-9ba1-a37378971c6d:localhost]

2020-09-14 22:59:05 | [Mutex] received everything.

2020-09-14 22:59:05 | [Mutex] isItemNotified: received:node:20d8abad-a657-4946-9ba1-a37378971c6d:localhost:node-c2f4c211-df32-436e-ae12-19d37b8781ce:Node c2f4c211-df32-436e-ae12-19d37b8781ce :: true

deleteNodes 1.019s
2020-09-14 22:59:10 |

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

2020-09-14 22:59:10 | ------------------------------------

2020-09-14 22:59:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c2f4c211-df32-436e-ae12-19d37b8781ce"
}

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

2020-09-14 22:59:11 | [Mutex] waiting for: [received:nodes:ae30ff94-cbc2-4e25-baac-c5bf92903ce7:localhost]

2020-09-14 22:59:11 | [Mutex] received everything.

2020-09-14 22:59:11 | [Mutex] isItemNotified: received:node:ae30ff94-cbc2-4e25-baac-c5bf92903ce7:localhost:node-c2f4c211-df32-436e-ae12-19d37b8781ce:Node c2f4c211-df32-436e-ae12-19d37b8781ce :: false

deleteSubnodes 1.035s
2020-09-14 22:59:09 |

2020-09-14 22:59:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:09 | ------------------------------------

2020-09-14 22:59:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-794c5524-8349-4764-a7ce-33cffb127851"
}

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

2020-09-14 22:59:10 | [Mutex] waiting for: [received:nodes:8c7c9e90-c616-4bd9-938a-a730313e492e:localhost]

2020-09-14 22:59:10 | [Mutex] received everything.

2020-09-14 22:59:10 | [Mutex] isItemNotified: received:node:8c7c9e90-c616-4bd9-938a-a730313e492e:localhost:node-794c5524-8349-4764-a7ce-33cffb127851:Node 794c5524-8349-4764-a7ce-33cffb127851 :: false

2020-09-14 22:59:10 | [Mutex] waiting for: [received:nodes:70cc54d8-14fe-4ebc-8e4d-1d00a027dd1c:localhost]

2020-09-14 22:59:10 | [Mutex] received everything.

2020-09-14 22:59:10 | [Mutex] isItemNotified: received:node:70cc54d8-14fe-4ebc-8e4d-1d00a027dd1c:localhost:node-794c5524-8349-4764-a7ce-33cffb127851:Node 794c5524-8349-4764-a7ce-33cffb127851 :: false

publishItemsToNodes 0.057s
2020-09-14 22:59:07 |

2020-09-14 22:59:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:07 | ------------------------------------

2020-09-14 22:59:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-794c5524-8349-4764-a7ce-33cffb127851",
    "entry": "<test>item-959d2d4d-2356-454b-bf42-5dd579c863e1</test>",
    "item-id": "item-959d2d4d-2356-454b-bf42-5dd579c863e1"
}

2020-09-14 22:59:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-959d2d4d-2356-454b-bf42-5dd579c863e1"
}

2020-09-14 22:59:07 | [Mutex] waiting for: [published:item:notifieditem-959d2d4d-2356-454b-bf42-5dd579c863e1:admin@test-domain.com]

2020-09-14 22:59:07 | [Mutex] received everything.

2020-09-14 22:59:07 | [Mutex] isItemNotified: published:item:notifieditem-959d2d4d-2356-454b-bf42-5dd579c863e1:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-09-14 22:59:07 |

2020-09-14 22:59:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:07 | ------------------------------------

2020-09-14 22:59:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-794c5524-8349-4764-a7ce-33cffb127851",
    "item-id": "item-959d2d4d-2356-454b-bf42-5dd579c863e1"
}

2020-09-14 22:59:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-959d2d4d-2356-454b-bf42-5dd579c863e1"
}

2020-09-14 22:59:07 | [Mutex] received everything.

2020-09-14 22:59:07 | [Mutex] isItemNotified: retracted:item:notifieditem-959d2d4d-2356-454b-bf42-5dd579c863e1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.031s
2020-09-14 22:59:07 |

2020-09-14 22:59:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:07 | ------------------------------------

2020-09-14 22:59:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-794c5524-8349-4764-a7ce-33cffb127851",
    "item-id": "item-959d2d4d-2356-454b-bf42-5dd579c863e1"
}

2020-09-14 22:59:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-794c5524-8349-4764-a7ce-33cffb127851",
    "item-id": "item-959d2d4d-2356-454b-bf42-5dd579c863e1",
    "item": [
        "<item id=\"item-959d2d4d-2356-454b-bf42-5dd579c863e1\"><test>item-959d2d4d-2356-454b-bf42-5dd579c863e1</test></item>"
    ]
}

2020-09-14 22:59:07 | [Mutex] notify: [retrieved:item:item-959d2d4d-2356-454b-bf42-5dd579c863e1:payload-matches:true:localhost]

2020-09-14 22:59:07 | [Mutex] received everything.

2020-09-14 22:59:07 | [Mutex] isItemNotified: retrieved:item:item-959d2d4d-2356-454b-bf42-5dd579c863e1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-14 22:59:07 |

2020-09-14 22:59:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:07 | ------------------------------------

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

2020-09-14 22:59:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c2f4c211-df32-436e-ae12-19d37b8781ce",
        "node-794c5524-8349-4764-a7ce-33cffb127851"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-14 22:59:07 |

2020-09-14 22:59:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:07 | ------------------------------------

2020-09-14 22:59:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-794c5524-8349-4764-a7ce-33cffb127851)"
}

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

subscribeNodes 1.012s
2020-09-14 22:59:06 |

2020-09-14 22:59:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:06 | ------------------------------------

2020-09-14 22:59:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-794c5524-8349-4764-a7ce-33cffb127851",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2020-09-14 22:59:07 |

2020-09-14 22:59:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-14 22:59:07 | ------------------------------------

2020-09-14 22:59:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-794c5524-8349-4764-a7ce-33cffb127851",
    "jids": [
        "admin@test-domain.com"
    ]
}

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