Generated by TestNG with ReportNG at 22:31 PDT on Saturday 19 September 2020
root@9a694adb6f25 / 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.648s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.029s
2020-09-19 22:44:49 |

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

2020-09-19 22:44:49 | ------------------------------------

2020-09-19 22:44:49 | [Mutex] waiting for: [configured:node:node-adc313ac-6560-45b6-a725-9ae549cae167:node-0f780501-9034-4fe5-9b43-0e9b7f216cdf]

2020-09-19 22:44:49 | [Mutex] received everything.

2020-09-19 22:44:49 | [Mutex] isItemNotified: configured:node:node-adc313ac-6560-45b6-a725-9ae549cae167:node-0f780501-9034-4fe5-9b43-0e9b7f216cdf :: true

2020-09-19 22:44:50 | [Mutex] waiting for: [received:nodes:5ed8b5f8-d856-4a46-b4db-ca2f1e5d456b:localhost]

2020-09-19 22:44:50 | [Mutex] received everything.

2020-09-19 22:44:50 | [Mutex] isItemNotified: received:node:5ed8b5f8-d856-4a46-b4db-ca2f1e5d456b:localhost:node-adc313ac-6560-45b6-a725-9ae549cae167:Node adc313ac-6560-45b6-a725-9ae549cae167 :: true

2020-09-19 22:44:50 | [Mutex] waiting for: [received:nodes:3ecb6545-41e8-42c4-9cec-b8ab2a79304b:localhost]

2020-09-19 22:44:50 | [Mutex] received everything.

2020-09-19 22:44:50 | [Mutex] isItemNotified: received:node:3ecb6545-41e8-42c4-9cec-b8ab2a79304b:localhost:node-adc313ac-6560-45b6-a725-9ae549cae167:Node adc313ac-6560-45b6-a725-9ae549cae167 :: false

createNodes 1.552s
2020-09-19 22:44:46 |

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

2020-09-19 22:44:46 | ------------------------------------

2020-09-19 22:44:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-adc313ac-6560-45b6-a725-9ae549cae167",
    "pubsub#title": "Node adc313ac-6560-45b6-a725-9ae549cae167"
}

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

2020-09-19 22:44:48 | [Mutex] waiting for: [received:nodes:067f1b68-850d-4989-a0fd-8b4e1d99675d:localhost]

2020-09-19 22:44:48 | [Mutex] received everything.

2020-09-19 22:44:48 | [Mutex] isItemNotified: received:node:067f1b68-850d-4989-a0fd-8b4e1d99675d:localhost:node-adc313ac-6560-45b6-a725-9ae549cae167:Node adc313ac-6560-45b6-a725-9ae549cae167 :: true

createSubnodes 1.021s
2020-09-19 22:44:48 |

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

2020-09-19 22:44:48 | ------------------------------------

2020-09-19 22:44: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-0f780501-9034-4fe5-9b43-0e9b7f216cdf",
    "pubsub#title": "Node 0f780501-9034-4fe5-9b43-0e9b7f216cdf"
}

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

2020-09-19 22:44:49 | [Mutex] waiting for: [received:nodes:91ebacf6-f463-41f4-8e61-d08fb12da08d:localhost]

2020-09-19 22:44:49 | [Mutex] received everything.

2020-09-19 22:44:49 | [Mutex] isItemNotified: received:node:91ebacf6-f463-41f4-8e61-d08fb12da08d:localhost:node-0f780501-9034-4fe5-9b43-0e9b7f216cdf:Node 0f780501-9034-4fe5-9b43-0e9b7f216cdf :: true

deleteNodes 1.019s
2020-09-19 22:44:53 |

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

2020-09-19 22:44:53 | ------------------------------------

2020-09-19 22:44:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0f780501-9034-4fe5-9b43-0e9b7f216cdf"
}

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

2020-09-19 22:44:54 | [Mutex] waiting for: [received:nodes:79a85a3d-c8ed-4293-adc5-2ab88a707fd3:localhost]

2020-09-19 22:44:54 | [Mutex] waiting for: [received:nodes:79a85a3d-c8ed-4293-adc5-2ab88a707fd3:localhost]

2020-09-19 22:44:54 | [Mutex] received everything.

2020-09-19 22:44:54 | [Mutex] isItemNotified: received:node:79a85a3d-c8ed-4293-adc5-2ab88a707fd3:localhost:node-0f780501-9034-4fe5-9b43-0e9b7f216cdf:Node 0f780501-9034-4fe5-9b43-0e9b7f216cdf :: false

deleteSubnodes 1.024s
2020-09-19 22:44:52 |

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

2020-09-19 22:44:52 | ------------------------------------

2020-09-19 22:44:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-adc313ac-6560-45b6-a725-9ae549cae167"
}

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

2020-09-19 22:44:53 | [Mutex] waiting for: [received:nodes:7a5585e0-7d6c-4516-b4d3-49f26945bbad:localhost]

2020-09-19 22:44:53 | [Mutex] waiting for: [received:nodes:7a5585e0-7d6c-4516-b4d3-49f26945bbad:localhost]

2020-09-19 22:44:53 | [Mutex] waiting for: [received:nodes:7a5585e0-7d6c-4516-b4d3-49f26945bbad:localhost]

2020-09-19 22:44:53 | [Mutex] received everything.

2020-09-19 22:44:53 | [Mutex] isItemNotified: received:node:7a5585e0-7d6c-4516-b4d3-49f26945bbad:localhost:node-adc313ac-6560-45b6-a725-9ae549cae167:Node adc313ac-6560-45b6-a725-9ae549cae167 :: false

2020-09-19 22:44:53 | [Mutex] waiting for: [received:nodes:3900b98d-5931-44c7-b707-bc39e4acc7da:localhost]

2020-09-19 22:44:53 | [Mutex] received everything.

2020-09-19 22:44:53 | [Mutex] isItemNotified: received:node:3900b98d-5931-44c7-b707-bc39e4acc7da:localhost:node-adc313ac-6560-45b6-a725-9ae549cae167:Node adc313ac-6560-45b6-a725-9ae549cae167 :: false

publishItemsToNodes 0.044s
2020-09-19 22:44:51 |

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

2020-09-19 22:44:51 | ------------------------------------

2020-09-19 22:44:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-adc313ac-6560-45b6-a725-9ae549cae167",
    "entry": "<test>item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8</test>",
    "item-id": "item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8"
}

2020-09-19 22:44:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8"
}

2020-09-19 22:44:51 | [Mutex] waiting for: [published:item:notifieditem-c0e29823-45e1-4b73-a6e0-9b2847ea92a8:admin@test-domain.com]

2020-09-19 22:44:51 | [Mutex] received everything.

2020-09-19 22:44:51 | [Mutex] isItemNotified: published:item:notifieditem-c0e29823-45e1-4b73-a6e0-9b2847ea92a8:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2020-09-19 22:44:51 |

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

2020-09-19 22:44:51 | ------------------------------------

2020-09-19 22:44:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-adc313ac-6560-45b6-a725-9ae549cae167",
    "item-id": "item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8"
}

2020-09-19 22:44:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8"
}

2020-09-19 22:44:51 | [Mutex] received everything.

2020-09-19 22:44:51 | [Mutex] isItemNotified: retracted:item:notifieditem-c0e29823-45e1-4b73-a6e0-9b2847ea92a8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2020-09-19 22:44:51 |

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

2020-09-19 22:44:51 | ------------------------------------

2020-09-19 22:44:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-adc313ac-6560-45b6-a725-9ae549cae167",
    "item-id": "item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8"
}

2020-09-19 22:44:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-adc313ac-6560-45b6-a725-9ae549cae167",
    "item-id": "item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8",
    "item": [
        "<item id=\"item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8\"><test>item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8</test></item>"
    ]
}

2020-09-19 22:44:51 | [Mutex] notify: [retrieved:item:item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8:payload-matches:true:localhost]

2020-09-19 22:44:51 | [Mutex] received everything.

2020-09-19 22:44:51 | [Mutex] isItemNotified: retrieved:item:item-c0e29823-45e1-4b73-a6e0-9b2847ea92a8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-19 22:44:51 |

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

2020-09-19 22:44:51 | ------------------------------------

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

2020-09-19 22:44:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-adc313ac-6560-45b6-a725-9ae549cae167",
        "test",
        "node-0f780501-9034-4fe5-9b43-0e9b7f216cdf"
    ]
}

retrieveUserSubscriptionsWithRegex 0.059s
2020-09-19 22:44:51 |

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

2020-09-19 22:44:51 | ------------------------------------

2020-09-19 22:44:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-adc313ac-6560-45b6-a725-9ae549cae167)"
}

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

subscribeNodes 1.009s
2020-09-19 22:44:50 |

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

2020-09-19 22:44:50 | ------------------------------------

2020-09-19 22:44:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-adc313ac-6560-45b6-a725-9ae549cae167",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.060s
2020-09-19 22:44:51 |

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

2020-09-19 22:44:51 | ------------------------------------

2020-09-19 22:44:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-adc313ac-6560-45b6-a725-9ae549cae167",
    "jids": [
        "admin@test-domain.com"
    ]
}

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