Generated by TestNG with ReportNG at 21:26 PST on Monday 08 March 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.858s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2021-03-08 21:41:35 |

2021-03-08 21:41:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:35 | ------------------------------------

2021-03-08 21:41:35 | [Mutex] waiting for: [configured:node:node-79f79750-30e5-442d-af60-5f887f938506:node-8233e7bf-a8ca-49f6-8c33-9c464e982e97]

2021-03-08 21:41:35 | [Mutex] received everything.

2021-03-08 21:41:35 | [Mutex] isItemNotified: configured:node:node-79f79750-30e5-442d-af60-5f887f938506:node-8233e7bf-a8ca-49f6-8c33-9c464e982e97 :: true

2021-03-08 21:41:36 | [Mutex] waiting for: [received:nodes:21042961-f070-4a2a-a38b-0c2da8baa030:localhost]

2021-03-08 21:41:36 | [Mutex] received everything.

2021-03-08 21:41:36 | [Mutex] isItemNotified: received:node:21042961-f070-4a2a-a38b-0c2da8baa030:localhost:node-79f79750-30e5-442d-af60-5f887f938506:Node 79f79750-30e5-442d-af60-5f887f938506 :: true

2021-03-08 21:41:36 | [Mutex] waiting for: [received:nodes:f210931f-b359-43f7-b2fc-11bf63731413:localhost]

2021-03-08 21:41:36 | [Mutex] received everything.

2021-03-08 21:41:36 | [Mutex] isItemNotified: received:node:f210931f-b359-43f7-b2fc-11bf63731413:localhost:node-79f79750-30e5-442d-af60-5f887f938506:Node 79f79750-30e5-442d-af60-5f887f938506 :: false

createNodes 1.660s
2021-03-08 21:41:32 |

2021-03-08 21:41:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:32 | ------------------------------------

2021-03-08 21:41:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-79f79750-30e5-442d-af60-5f887f938506",
    "pubsub#title": "Node 79f79750-30e5-442d-af60-5f887f938506"
}

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

2021-03-08 21:41:34 | [Mutex] waiting for: [received:nodes:4bc9f18f-8c8e-4659-8d19-f2c3953fd984:localhost]

2021-03-08 21:41:34 | [Mutex] received everything.

2021-03-08 21:41:34 | [Mutex] isItemNotified: received:node:4bc9f18f-8c8e-4659-8d19-f2c3953fd984:localhost:node-79f79750-30e5-442d-af60-5f887f938506:Node 79f79750-30e5-442d-af60-5f887f938506 :: true

createSubnodes 1.022s
2021-03-08 21:41:34 |

2021-03-08 21:41:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:34 | ------------------------------------

2021-03-08 21:41:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8233e7bf-a8ca-49f6-8c33-9c464e982e97",
    "pubsub#title": "Node 8233e7bf-a8ca-49f6-8c33-9c464e982e97"
}

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

2021-03-08 21:41:35 | [Mutex] waiting for: [received:nodes:5945ef08-bc3c-49ad-8300-e798a41ccf91:localhost]

2021-03-08 21:41:35 | [Mutex] received everything.

2021-03-08 21:41:35 | [Mutex] isItemNotified: received:node:5945ef08-bc3c-49ad-8300-e798a41ccf91:localhost:node-8233e7bf-a8ca-49f6-8c33-9c464e982e97:Node 8233e7bf-a8ca-49f6-8c33-9c464e982e97 :: true

deleteNodes 1.020s
2021-03-08 21:41:39 |

2021-03-08 21:41:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:39 | ------------------------------------

2021-03-08 21:41:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8233e7bf-a8ca-49f6-8c33-9c464e982e97"
}

2021-03-08 21:41:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-08 21:41:40 | [Mutex] waiting for: [received:nodes:df746773-88ba-4718-8858-1069f410ba9d:localhost]

2021-03-08 21:41:40 | [Mutex] received everything.

2021-03-08 21:41:40 | [Mutex] isItemNotified: received:node:df746773-88ba-4718-8858-1069f410ba9d:localhost:node-8233e7bf-a8ca-49f6-8c33-9c464e982e97:Node 8233e7bf-a8ca-49f6-8c33-9c464e982e97 :: false

deleteSubnodes 1.025s
2021-03-08 21:41:38 |

2021-03-08 21:41:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:38 | ------------------------------------

2021-03-08 21:41:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-79f79750-30e5-442d-af60-5f887f938506"
}

2021-03-08 21:41:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-08 21:41:39 | [Mutex] waiting for: [received:nodes:d45f48e0-8a5a-4613-aaba-f4ea609c3134:localhost]

2021-03-08 21:41:39 | [Mutex] waiting for: [received:nodes:d45f48e0-8a5a-4613-aaba-f4ea609c3134:localhost]

2021-03-08 21:41:39 | [Mutex] received everything.

2021-03-08 21:41:39 | [Mutex] isItemNotified: received:node:d45f48e0-8a5a-4613-aaba-f4ea609c3134:localhost:node-79f79750-30e5-442d-af60-5f887f938506:Node 79f79750-30e5-442d-af60-5f887f938506 :: false

2021-03-08 21:41:39 | [Mutex] waiting for: [received:nodes:da4a3622-46f1-4e0f-a00c-68d3f535dcaa:localhost]

2021-03-08 21:41:39 | [Mutex] received everything.

2021-03-08 21:41:39 | [Mutex] isItemNotified: received:node:da4a3622-46f1-4e0f-a00c-68d3f535dcaa:localhost:node-79f79750-30e5-442d-af60-5f887f938506:Node 79f79750-30e5-442d-af60-5f887f938506 :: false

publishItemsToNodes 0.055s
2021-03-08 21:41:37 |

2021-03-08 21:41:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:37 | ------------------------------------

2021-03-08 21:41:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-79f79750-30e5-442d-af60-5f887f938506",
    "entry": "<test>item-4bd9f396-8036-4cb3-ad51-115049c46bae</test>",
    "item-id": "item-4bd9f396-8036-4cb3-ad51-115049c46bae"
}

2021-03-08 21:41:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4bd9f396-8036-4cb3-ad51-115049c46bae"
}

2021-03-08 21:41:37 | [Mutex] waiting for: [published:item:notifieditem-4bd9f396-8036-4cb3-ad51-115049c46bae:admin@test-domain.com]

2021-03-08 21:41:37 | [Mutex] received everything.

2021-03-08 21:41:37 | [Mutex] isItemNotified: published:item:notifieditem-4bd9f396-8036-4cb3-ad51-115049c46bae:admin@test-domain.com :: true

retractItemsFromNodes 0.066s
2021-03-08 21:41:37 |

2021-03-08 21:41:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:37 | ------------------------------------

2021-03-08 21:41:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-79f79750-30e5-442d-af60-5f887f938506",
    "item-id": "item-4bd9f396-8036-4cb3-ad51-115049c46bae"
}

2021-03-08 21:41:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4bd9f396-8036-4cb3-ad51-115049c46bae"
}

2021-03-08 21:41:37 | [Mutex] waiting for: [retracted:item:notifieditem-4bd9f396-8036-4cb3-ad51-115049c46bae:admin@test-domain.com]

2021-03-08 21:41:37 | [Mutex] received everything.

2021-03-08 21:41:37 | [Mutex] isItemNotified: retracted:item:notifieditem-4bd9f396-8036-4cb3-ad51-115049c46bae:admin@test-domain.com :: true

retrieveItemsFromNodes 0.044s
2021-03-08 21:41:37 |

2021-03-08 21:41:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:37 | ------------------------------------

2021-03-08 21:41:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-79f79750-30e5-442d-af60-5f887f938506",
    "item-id": "item-4bd9f396-8036-4cb3-ad51-115049c46bae"
}

2021-03-08 21:41:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-79f79750-30e5-442d-af60-5f887f938506",
    "item-id": "item-4bd9f396-8036-4cb3-ad51-115049c46bae",
    "item": [
        "<item id=\"item-4bd9f396-8036-4cb3-ad51-115049c46bae\"><test>item-4bd9f396-8036-4cb3-ad51-115049c46bae</test></item>"
    ]
}

2021-03-08 21:41:37 | [Mutex] notify: [retrieved:item:item-4bd9f396-8036-4cb3-ad51-115049c46bae:payload-matches:true:localhost]

2021-03-08 21:41:37 | [Mutex] received everything.

2021-03-08 21:41:37 | [Mutex] isItemNotified: retrieved:item:item-4bd9f396-8036-4cb3-ad51-115049c46bae:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.062s
2021-03-08 21:41:37 |

2021-03-08 21:41:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:37 | ------------------------------------

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

2021-03-08 21:41:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-8233e7bf-a8ca-49f6-8c33-9c464e982e97",
        "test",
        "node-79f79750-30e5-442d-af60-5f887f938506"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-03-08 21:41:37 |

2021-03-08 21:41:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:37 | ------------------------------------

2021-03-08 21:41:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-79f79750-30e5-442d-af60-5f887f938506)"
}

2021-03-08 21:41:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-03-08 21:41:36 |

2021-03-08 21:41:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:36 | ------------------------------------

2021-03-08 21:41:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-79f79750-30e5-442d-af60-5f887f938506",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-08 21:41:36 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.085s
2021-03-08 21:41:37 |

2021-03-08 21:41:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:41:37 | ------------------------------------

2021-03-08 21:41:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-79f79750-30e5-442d-af60-5f887f938506",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-08 21:41:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}