Generated by TestNG with ReportNG at 22:49 PDT on Thursday 06 May 2021
root@f29ef40080b5 / 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.767s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2021-05-06 23:06:07 |

2021-05-06 23:06:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:07 | ------------------------------------

2021-05-06 23:06:07 | [Mutex] waiting for: [configured:node:node-aadf35fd-e4f3-4926-8443-9542076dd312:node-2dda0dee-472a-4f94-9b4e-46bc771d47eb]

2021-05-06 23:06:07 | [Mutex] received everything.

2021-05-06 23:06:07 | [Mutex] isItemNotified: configured:node:node-aadf35fd-e4f3-4926-8443-9542076dd312:node-2dda0dee-472a-4f94-9b4e-46bc771d47eb :: true

2021-05-06 23:06:08 | [Mutex] waiting for: [received:nodes:4c14007d-9e2a-4000-bdd0-81ea667b3979:localhost]

2021-05-06 23:06:08 | [Mutex] waiting for: [received:nodes:4c14007d-9e2a-4000-bdd0-81ea667b3979:localhost]

2021-05-06 23:06:08 | [Mutex] received everything.

2021-05-06 23:06:08 | [Mutex] isItemNotified: received:node:4c14007d-9e2a-4000-bdd0-81ea667b3979:localhost:node-aadf35fd-e4f3-4926-8443-9542076dd312:Node aadf35fd-e4f3-4926-8443-9542076dd312 :: true

2021-05-06 23:06:08 | [Mutex] waiting for: [received:nodes:b9fe7b7a-724b-4549-969e-49410e8b2829:localhost]

2021-05-06 23:06:08 | [Mutex] waiting for: [received:nodes:b9fe7b7a-724b-4549-969e-49410e8b2829:localhost]

2021-05-06 23:06:08 | [Mutex] received everything.

2021-05-06 23:06:08 | [Mutex] isItemNotified: received:node:b9fe7b7a-724b-4549-969e-49410e8b2829:localhost:node-aadf35fd-e4f3-4926-8443-9542076dd312:Node aadf35fd-e4f3-4926-8443-9542076dd312 :: false

createNodes 1.507s
2021-05-06 23:06:04 |

2021-05-06 23:06:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:04 | ------------------------------------

2021-05-06 23:06:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-aadf35fd-e4f3-4926-8443-9542076dd312",
    "pubsub#title": "Node aadf35fd-e4f3-4926-8443-9542076dd312"
}

2021-05-06 23:06:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-06 23:06:06 | [Mutex] waiting for: [received:nodes:adce378e-af04-450e-afca-7d6d0aba02d3:localhost]

2021-05-06 23:06:06 | [Mutex] waiting for: [received:nodes:adce378e-af04-450e-afca-7d6d0aba02d3:localhost]

2021-05-06 23:06:06 | [Mutex] received everything.

2021-05-06 23:06:06 | [Mutex] isItemNotified: received:node:adce378e-af04-450e-afca-7d6d0aba02d3:localhost:node-aadf35fd-e4f3-4926-8443-9542076dd312:Node aadf35fd-e4f3-4926-8443-9542076dd312 :: true

createSubnodes 1.026s
2021-05-06 23:06:06 |

2021-05-06 23:06:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:06 | ------------------------------------

2021-05-06 23:06:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2dda0dee-472a-4f94-9b4e-46bc771d47eb",
    "pubsub#title": "Node 2dda0dee-472a-4f94-9b4e-46bc771d47eb"
}

2021-05-06 23:06:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-06 23:06:07 | [Mutex] waiting for: [received:nodes:62250e7a-1b90-4e91-8bc5-1703d3ea0b84:localhost]

2021-05-06 23:06:07 | [Mutex] received everything.

2021-05-06 23:06:07 | [Mutex] isItemNotified: received:node:62250e7a-1b90-4e91-8bc5-1703d3ea0b84:localhost:node-2dda0dee-472a-4f94-9b4e-46bc771d47eb:Node 2dda0dee-472a-4f94-9b4e-46bc771d47eb :: true

deleteNodes 1.018s
2021-05-06 23:06:11 |

2021-05-06 23:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:11 | ------------------------------------

2021-05-06 23:06:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2dda0dee-472a-4f94-9b4e-46bc771d47eb"
}

2021-05-06 23:06:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-06 23:06:12 | [Mutex] waiting for: [received:nodes:2c6c6d18-d81b-486c-8d84-1c89734dd2a3:localhost]

2021-05-06 23:06:12 | [Mutex] waiting for: [received:nodes:2c6c6d18-d81b-486c-8d84-1c89734dd2a3:localhost]

2021-05-06 23:06:12 | [Mutex] received everything.

2021-05-06 23:06:12 | [Mutex] isItemNotified: received:node:2c6c6d18-d81b-486c-8d84-1c89734dd2a3:localhost:node-2dda0dee-472a-4f94-9b4e-46bc771d47eb:Node 2dda0dee-472a-4f94-9b4e-46bc771d47eb :: false

deleteSubnodes 1.026s
2021-05-06 23:06:10 |

2021-05-06 23:06:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:10 | ------------------------------------

2021-05-06 23:06:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-aadf35fd-e4f3-4926-8443-9542076dd312"
}

2021-05-06 23:06:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-06 23:06:11 | [Mutex] waiting for: [received:nodes:5e8eac85-bc69-4836-9a2a-238f142f9edd:localhost]

2021-05-06 23:06:11 | [Mutex] waiting for: [received:nodes:5e8eac85-bc69-4836-9a2a-238f142f9edd:localhost]

2021-05-06 23:06:11 | [Mutex] received everything.

2021-05-06 23:06:11 | [Mutex] isItemNotified: received:node:5e8eac85-bc69-4836-9a2a-238f142f9edd:localhost:node-aadf35fd-e4f3-4926-8443-9542076dd312:Node aadf35fd-e4f3-4926-8443-9542076dd312 :: false

2021-05-06 23:06:11 | [Mutex] waiting for: [received:nodes:9a098594-e606-4a5f-9bf4-855a8a81cadd:localhost]

2021-05-06 23:06:11 | [Mutex] received everything.

2021-05-06 23:06:11 | [Mutex] isItemNotified: received:node:9a098594-e606-4a5f-9bf4-855a8a81cadd:localhost:node-aadf35fd-e4f3-4926-8443-9542076dd312:Node aadf35fd-e4f3-4926-8443-9542076dd312 :: false

publishItemsToNodes 0.047s
2021-05-06 23:06:09 |

2021-05-06 23:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:09 | ------------------------------------

2021-05-06 23:06:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-aadf35fd-e4f3-4926-8443-9542076dd312",
    "entry": "<test>item-0d7e7866-c203-4b08-b747-b3fca67cc2c6</test>",
    "item-id": "item-0d7e7866-c203-4b08-b747-b3fca67cc2c6"
}

2021-05-06 23:06:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0d7e7866-c203-4b08-b747-b3fca67cc2c6"
}

2021-05-06 23:06:09 | [Mutex] received everything.

2021-05-06 23:06:09 | [Mutex] isItemNotified: published:item:notifieditem-0d7e7866-c203-4b08-b747-b3fca67cc2c6:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2021-05-06 23:06:09 |

2021-05-06 23:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:09 | ------------------------------------

2021-05-06 23:06:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-aadf35fd-e4f3-4926-8443-9542076dd312",
    "item-id": "item-0d7e7866-c203-4b08-b747-b3fca67cc2c6"
}

2021-05-06 23:06:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0d7e7866-c203-4b08-b747-b3fca67cc2c6"
}

2021-05-06 23:06:09 | [Mutex] received everything.

2021-05-06 23:06:09 | [Mutex] isItemNotified: retracted:item:notifieditem-0d7e7866-c203-4b08-b747-b3fca67cc2c6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2021-05-06 23:06:09 |

2021-05-06 23:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:09 | ------------------------------------

2021-05-06 23:06:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-aadf35fd-e4f3-4926-8443-9542076dd312",
    "item-id": "item-0d7e7866-c203-4b08-b747-b3fca67cc2c6"
}

2021-05-06 23:06:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-aadf35fd-e4f3-4926-8443-9542076dd312",
    "item-id": "item-0d7e7866-c203-4b08-b747-b3fca67cc2c6",
    "item": [
        "<item id=\"item-0d7e7866-c203-4b08-b747-b3fca67cc2c6\"><test>item-0d7e7866-c203-4b08-b747-b3fca67cc2c6</test></item>"
    ]
}

2021-05-06 23:06:09 | [Mutex] notify: [retrieved:item:item-0d7e7866-c203-4b08-b747-b3fca67cc2c6:payload-matches:true:localhost]

2021-05-06 23:06:09 | [Mutex] received everything.

2021-05-06 23:06:09 | [Mutex] isItemNotified: retrieved:item:item-0d7e7866-c203-4b08-b747-b3fca67cc2c6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-05-06 23:06:09 |

2021-05-06 23:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:09 | ------------------------------------

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

2021-05-06 23:06:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-aadf35fd-e4f3-4926-8443-9542076dd312",
        "test",
        "node-2dda0dee-472a-4f94-9b4e-46bc771d47eb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-05-06 23:06:09 |

2021-05-06 23:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:09 | ------------------------------------

2021-05-06 23:06:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-aadf35fd-e4f3-4926-8443-9542076dd312)"
}

2021-05-06 23:06:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-05-06 23:06:08 |

2021-05-06 23:06:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:08 | ------------------------------------

2021-05-06 23:06:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-aadf35fd-e4f3-4926-8443-9542076dd312",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-06 23:06:08 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2021-05-06 23:06:09 |

2021-05-06 23:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:06:09 | ------------------------------------

2021-05-06 23:06:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-aadf35fd-e4f3-4926-8443-9542076dd312",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-06 23:06:09 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}