Generated by TestNG with ReportNG at 21:48 PST on Sunday 03 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 : 9.013s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2021-01-03 22:07:10 |

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

2021-01-03 22:07:10 | ------------------------------------

2021-01-03 22:07:10 | [Mutex] waiting for: [configured:node:node-90681d42-0767-4486-93cf-fda61a0e0f18:node-926f5a34-c922-4dd6-a002-c2f4cb7e6264]

2021-01-03 22:07:10 | [Mutex] received everything.

2021-01-03 22:07:10 | [Mutex] isItemNotified: configured:node:node-90681d42-0767-4486-93cf-fda61a0e0f18:node-926f5a34-c922-4dd6-a002-c2f4cb7e6264 :: true

2021-01-03 22:07:11 | [Mutex] waiting for: [received:nodes:5eac9b0e-2367-4b43-a4af-3def18436032:localhost]

2021-01-03 22:07:11 | [Mutex] received everything.

2021-01-03 22:07:11 | [Mutex] isItemNotified: received:node:5eac9b0e-2367-4b43-a4af-3def18436032:localhost:node-90681d42-0767-4486-93cf-fda61a0e0f18:Node 90681d42-0767-4486-93cf-fda61a0e0f18 :: true

2021-01-03 22:07:11 | [Mutex] waiting for: [received:nodes:46b852c9-9400-4311-97c3-a7e794489c8b:localhost]

2021-01-03 22:07:11 | [Mutex] received everything.

2021-01-03 22:07:11 | [Mutex] isItemNotified: received:node:46b852c9-9400-4311-97c3-a7e794489c8b:localhost:node-90681d42-0767-4486-93cf-fda61a0e0f18:Node 90681d42-0767-4486-93cf-fda61a0e0f18 :: false

createNodes 1.719s
2021-01-03 22:07:07 |

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

2021-01-03 22:07:07 | ------------------------------------

2021-01-03 22:07:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-90681d42-0767-4486-93cf-fda61a0e0f18",
    "pubsub#title": "Node 90681d42-0767-4486-93cf-fda61a0e0f18"
}

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

2021-01-03 22:07:09 | [Mutex] waiting for: [received:nodes:5acacc2b-d904-4c68-a3a4-dafae392dd72:localhost]

2021-01-03 22:07:09 | [Mutex] received everything.

2021-01-03 22:07:09 | [Mutex] isItemNotified: received:node:5acacc2b-d904-4c68-a3a4-dafae392dd72:localhost:node-90681d42-0767-4486-93cf-fda61a0e0f18:Node 90681d42-0767-4486-93cf-fda61a0e0f18 :: true

createSubnodes 1.024s
2021-01-03 22:07:09 |

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

2021-01-03 22:07:09 | ------------------------------------

2021-01-03 22:07:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-926f5a34-c922-4dd6-a002-c2f4cb7e6264",
    "pubsub#title": "Node 926f5a34-c922-4dd6-a002-c2f4cb7e6264"
}

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

2021-01-03 22:07:10 | [Mutex] waiting for: [received:nodes:31c71354-9020-4cb2-a170-5d63136aebf7:localhost]

2021-01-03 22:07:10 | [Mutex] waiting for: [received:nodes:31c71354-9020-4cb2-a170-5d63136aebf7:localhost]

2021-01-03 22:07:10 | [Mutex] received everything.

2021-01-03 22:07:10 | [Mutex] isItemNotified: received:node:31c71354-9020-4cb2-a170-5d63136aebf7:localhost:node-926f5a34-c922-4dd6-a002-c2f4cb7e6264:Node 926f5a34-c922-4dd6-a002-c2f4cb7e6264 :: true

deleteNodes 1.023s
2021-01-03 22:07:14 |

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

2021-01-03 22:07:14 | ------------------------------------

2021-01-03 22:07:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-926f5a34-c922-4dd6-a002-c2f4cb7e6264"
}

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

2021-01-03 22:07:15 | [Mutex] waiting for: [received:nodes:80a95642-7c2a-4769-8d1c-b347fa595324:localhost]

2021-01-03 22:07:15 | [Mutex] received everything.

2021-01-03 22:07:15 | [Mutex] isItemNotified: received:node:80a95642-7c2a-4769-8d1c-b347fa595324:localhost:node-926f5a34-c922-4dd6-a002-c2f4cb7e6264:Node 926f5a34-c922-4dd6-a002-c2f4cb7e6264 :: false

deleteSubnodes 1.047s
2021-01-03 22:07:13 |

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

2021-01-03 22:07:13 | ------------------------------------

2021-01-03 22:07:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-90681d42-0767-4486-93cf-fda61a0e0f18"
}

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

2021-01-03 22:07:14 | [Mutex] waiting for: [received:nodes:d9ae0a34-c372-4edf-a7ca-b7edaf481595:localhost]

2021-01-03 22:07:14 | [Mutex] received everything.

2021-01-03 22:07:14 | [Mutex] isItemNotified: received:node:d9ae0a34-c372-4edf-a7ca-b7edaf481595:localhost:node-90681d42-0767-4486-93cf-fda61a0e0f18:Node 90681d42-0767-4486-93cf-fda61a0e0f18 :: false

2021-01-03 22:07:14 | [Mutex] waiting for: [received:nodes:65286433-b3ac-4950-b3e5-889713cf70a8:localhost]

2021-01-03 22:07:14 | [Mutex] received everything.

2021-01-03 22:07:14 | [Mutex] isItemNotified: received:node:65286433-b3ac-4950-b3e5-889713cf70a8:localhost:node-90681d42-0767-4486-93cf-fda61a0e0f18:Node 90681d42-0767-4486-93cf-fda61a0e0f18 :: false

publishItemsToNodes 0.044s
2021-01-03 22:07:12 |

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

2021-01-03 22:07:12 | ------------------------------------

2021-01-03 22:07:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-90681d42-0767-4486-93cf-fda61a0e0f18",
    "entry": "<test>item-d5f72167-de52-4c81-961e-1f1bb8f95e8d</test>",
    "item-id": "item-d5f72167-de52-4c81-961e-1f1bb8f95e8d"
}

2021-01-03 22:07:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d5f72167-de52-4c81-961e-1f1bb8f95e8d"
}

2021-01-03 22:07:12 | [Mutex] waiting for: [published:item:notifieditem-d5f72167-de52-4c81-961e-1f1bb8f95e8d:admin@test-domain.com]

2021-01-03 22:07:12 | [Mutex] received everything.

2021-01-03 22:07:12 | [Mutex] isItemNotified: published:item:notifieditem-d5f72167-de52-4c81-961e-1f1bb8f95e8d:admin@test-domain.com :: true

retractItemsFromNodes 0.084s
2021-01-03 22:07:12 |

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

2021-01-03 22:07:12 | ------------------------------------

2021-01-03 22:07:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-90681d42-0767-4486-93cf-fda61a0e0f18",
    "item-id": "item-d5f72167-de52-4c81-961e-1f1bb8f95e8d"
}

2021-01-03 22:07:12 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d5f72167-de52-4c81-961e-1f1bb8f95e8d"
}

2021-01-03 22:07:12 | [Mutex] received everything.

2021-01-03 22:07:12 | [Mutex] isItemNotified: retracted:item:notifieditem-d5f72167-de52-4c81-961e-1f1bb8f95e8d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2021-01-03 22:07:12 |

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

2021-01-03 22:07:12 | ------------------------------------

2021-01-03 22:07:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-90681d42-0767-4486-93cf-fda61a0e0f18",
    "item-id": "item-d5f72167-de52-4c81-961e-1f1bb8f95e8d"
}

2021-01-03 22:07:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-90681d42-0767-4486-93cf-fda61a0e0f18",
    "item-id": "item-d5f72167-de52-4c81-961e-1f1bb8f95e8d",
    "item": [
        "<item id=\"item-d5f72167-de52-4c81-961e-1f1bb8f95e8d\"><test>item-d5f72167-de52-4c81-961e-1f1bb8f95e8d</test></item>"
    ]
}

2021-01-03 22:07:12 | [Mutex] notify: [retrieved:item:item-d5f72167-de52-4c81-961e-1f1bb8f95e8d:payload-matches:true:localhost]

2021-01-03 22:07:12 | [Mutex] received everything.

2021-01-03 22:07:12 | [Mutex] isItemNotified: retrieved:item:item-d5f72167-de52-4c81-961e-1f1bb8f95e8d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-03 22:07:12 |

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

2021-01-03 22:07:12 | ------------------------------------

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

2021-01-03 22:07:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-926f5a34-c922-4dd6-a002-c2f4cb7e6264",
        "node-90681d42-0767-4486-93cf-fda61a0e0f18"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-01-03 22:07:12 |

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

2021-01-03 22:07:12 | ------------------------------------

2021-01-03 22:07:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-90681d42-0767-4486-93cf-fda61a0e0f18)"
}

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

subscribeNodes 1.014s
2021-01-03 22:07:11 |

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

2021-01-03 22:07:11 | ------------------------------------

2021-01-03 22:07:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-90681d42-0767-4486-93cf-fda61a0e0f18",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.068s
2021-01-03 22:07:12 |

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

2021-01-03 22:07:12 | ------------------------------------

2021-01-03 22:07:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-90681d42-0767-4486-93cf-fda61a0e0f18",
    "jids": [
        "admin@test-domain.com"
    ]
}

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