Generated by TestNG with ReportNG at 21:51 PST on Thursday 28 January 2021
root@eaa73862192b / 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.996s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2021-01-28 22:08:01 |

2021-01-28 22:08:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:01 | ------------------------------------

2021-01-28 22:08:01 | [Mutex] waiting for: [configured:node:node-be9dc71b-e8a3-4377-95ea-ea4966539160:node-650943c5-270a-429c-9d57-2acdabff3254]

2021-01-28 22:08:01 | [Mutex] received everything.

2021-01-28 22:08:01 | [Mutex] isItemNotified: configured:node:node-be9dc71b-e8a3-4377-95ea-ea4966539160:node-650943c5-270a-429c-9d57-2acdabff3254 :: true

2021-01-28 22:08:02 | [Mutex] waiting for: [received:nodes:75e7e844-d217-4341-8415-458393dd7b51:localhost]

2021-01-28 22:08:02 | [Mutex] waiting for: [received:nodes:75e7e844-d217-4341-8415-458393dd7b51:localhost]

2021-01-28 22:08:02 | [Mutex] received everything.

2021-01-28 22:08:02 | [Mutex] isItemNotified: received:node:75e7e844-d217-4341-8415-458393dd7b51:localhost:node-be9dc71b-e8a3-4377-95ea-ea4966539160:Node be9dc71b-e8a3-4377-95ea-ea4966539160 :: true

2021-01-28 22:08:02 | [Mutex] waiting for: [received:nodes:e012c44e-6d51-413d-8154-998d913cd2b1:localhost]

2021-01-28 22:08:02 | [Mutex] waiting for: [received:nodes:e012c44e-6d51-413d-8154-998d913cd2b1:localhost]

2021-01-28 22:08:02 | [Mutex] received everything.

2021-01-28 22:08:02 | [Mutex] isItemNotified: received:node:e012c44e-6d51-413d-8154-998d913cd2b1:localhost:node-be9dc71b-e8a3-4377-95ea-ea4966539160:Node be9dc71b-e8a3-4377-95ea-ea4966539160 :: false

createNodes 1.587s
2021-01-28 22:07:59 |

2021-01-28 22:07:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:07:59 | ------------------------------------

2021-01-28 22:07:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-be9dc71b-e8a3-4377-95ea-ea4966539160",
    "pubsub#title": "Node be9dc71b-e8a3-4377-95ea-ea4966539160"
}

2021-01-28 22:07:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-28 22:08:00 | [Mutex] waiting for: [received:nodes:f8d1a117-c65b-4f7c-b7eb-312f9a298a4a:localhost]

2021-01-28 22:08:00 | [Mutex] waiting for: [received:nodes:f8d1a117-c65b-4f7c-b7eb-312f9a298a4a:localhost]

2021-01-28 22:08:00 | [Mutex] received everything.

2021-01-28 22:08:00 | [Mutex] isItemNotified: received:node:f8d1a117-c65b-4f7c-b7eb-312f9a298a4a:localhost:node-be9dc71b-e8a3-4377-95ea-ea4966539160:Node be9dc71b-e8a3-4377-95ea-ea4966539160 :: true

createSubnodes 1.060s
2021-01-28 22:08:00 |

2021-01-28 22:08:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:00 | ------------------------------------

2021-01-28 22:08:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-650943c5-270a-429c-9d57-2acdabff3254",
    "pubsub#title": "Node 650943c5-270a-429c-9d57-2acdabff3254"
}

2021-01-28 22:08:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-28 22:08:01 | [Mutex] waiting for: [received:nodes:9e3ccafe-21bd-47c4-bebd-9db3bfeac4df:localhost]

2021-01-28 22:08:01 | [Mutex] received everything.

2021-01-28 22:08:01 | [Mutex] isItemNotified: received:node:9e3ccafe-21bd-47c4-bebd-9db3bfeac4df:localhost:node-650943c5-270a-429c-9d57-2acdabff3254:Node 650943c5-270a-429c-9d57-2acdabff3254 :: true

deleteNodes 1.031s
2021-01-28 22:08:06 |

2021-01-28 22:08:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:06 | ------------------------------------

2021-01-28 22:08:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-650943c5-270a-429c-9d57-2acdabff3254"
}

2021-01-28 22:08:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-28 22:08:07 | [Mutex] waiting for: [received:nodes:8b3860b0-dd18-4780-9c3b-33bfb488fc03:localhost]

2021-01-28 22:08:07 | [Mutex] waiting for: [received:nodes:8b3860b0-dd18-4780-9c3b-33bfb488fc03:localhost]

2021-01-28 22:08:07 | [Mutex] received everything.

2021-01-28 22:08:07 | [Mutex] isItemNotified: received:node:8b3860b0-dd18-4780-9c3b-33bfb488fc03:localhost:node-650943c5-270a-429c-9d57-2acdabff3254:Node 650943c5-270a-429c-9d57-2acdabff3254 :: false

deleteSubnodes 1.031s
2021-01-28 22:08:05 |

2021-01-28 22:08:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:05 | ------------------------------------

2021-01-28 22:08:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-be9dc71b-e8a3-4377-95ea-ea4966539160"
}

2021-01-28 22:08:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-28 22:08:06 | [Mutex] waiting for: [received:nodes:730e053c-58a6-4fa2-acce-090b6ac1403d:localhost]

2021-01-28 22:08:06 | [Mutex] received everything.

2021-01-28 22:08:06 | [Mutex] isItemNotified: received:node:730e053c-58a6-4fa2-acce-090b6ac1403d:localhost:node-be9dc71b-e8a3-4377-95ea-ea4966539160:Node be9dc71b-e8a3-4377-95ea-ea4966539160 :: false

2021-01-28 22:08:06 | [Mutex] waiting for: [received:nodes:9ac6a44a-a3c9-4820-9c8e-58f7dab281dd:localhost]

2021-01-28 22:08:06 | [Mutex] received everything.

2021-01-28 22:08:06 | [Mutex] isItemNotified: received:node:9ac6a44a-a3c9-4820-9c8e-58f7dab281dd:localhost:node-be9dc71b-e8a3-4377-95ea-ea4966539160:Node be9dc71b-e8a3-4377-95ea-ea4966539160 :: false

publishItemsToNodes 0.037s
2021-01-28 22:08:03 |

2021-01-28 22:08:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:03 | ------------------------------------

2021-01-28 22:08:03 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-be9dc71b-e8a3-4377-95ea-ea4966539160",
    "entry": "<test>item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b</test>",
    "item-id": "item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b"
}

2021-01-28 22:08:03 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b"
}

2021-01-28 22:08:03 | [Mutex] waiting for: [published:item:notifieditem-4f71c1f0-8235-4cec-b0f0-8e9068d9454b:admin@test-domain.com]

2021-01-28 22:08:03 | [Mutex] received everything.

2021-01-28 22:08:03 | [Mutex] isItemNotified: published:item:notifieditem-4f71c1f0-8235-4cec-b0f0-8e9068d9454b:admin@test-domain.com :: true

retractItemsFromNodes 0.081s
2021-01-28 22:08:04 |

2021-01-28 22:08:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:04 | ------------------------------------

2021-01-28 22:08:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-be9dc71b-e8a3-4377-95ea-ea4966539160",
    "item-id": "item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b"
}

2021-01-28 22:08:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b"
}

2021-01-28 22:08:04 | [Mutex] waiting for: [retracted:item:notifieditem-4f71c1f0-8235-4cec-b0f0-8e9068d9454b:admin@test-domain.com]

2021-01-28 22:08:04 | [Mutex] received everything.

2021-01-28 22:08:04 | [Mutex] isItemNotified: retracted:item:notifieditem-4f71c1f0-8235-4cec-b0f0-8e9068d9454b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2021-01-28 22:08:03 |

2021-01-28 22:08:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:03 | ------------------------------------

2021-01-28 22:08:03 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-be9dc71b-e8a3-4377-95ea-ea4966539160",
    "item-id": "item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b"
}

2021-01-28 22:08:03 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-be9dc71b-e8a3-4377-95ea-ea4966539160",
    "item-id": "item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b",
    "item": [
        "<item id=\"item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b\"><test>item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b</test></item>"
    ]
}

2021-01-28 22:08:03 | [Mutex] notify: [retrieved:item:item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b:payload-matches:true:localhost]

2021-01-28 22:08:03 | [Mutex] received everything.

2021-01-28 22:08:03 | [Mutex] isItemNotified: retrieved:item:item-4f71c1f0-8235-4cec-b0f0-8e9068d9454b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-28 22:08:03 |

2021-01-28 22:08:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:03 | ------------------------------------

2021-01-28 22:08:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-28 22:08:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-650943c5-270a-429c-9d57-2acdabff3254",
        "node-be9dc71b-e8a3-4377-95ea-ea4966539160"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-28 22:08:04 |

2021-01-28 22:08:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:04 | ------------------------------------

2021-01-28 22:08:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-be9dc71b-e8a3-4377-95ea-ea4966539160)"
}

2021-01-28 22:08:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-01-28 22:08:02 |

2021-01-28 22:08:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:02 | ------------------------------------

2021-01-28 22:08:02 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-be9dc71b-e8a3-4377-95ea-ea4966539160",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-28 22:08:02 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.081s
2021-01-28 22:08:04 |

2021-01-28 22:08:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-28 22:08:04 | ------------------------------------

2021-01-28 22:08:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-be9dc71b-e8a3-4377-95ea-ea4966539160",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-28 22:08:04 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}