Generated by TestNG with ReportNG at 06:24 PDT on Friday 14 May 2021
root@b2c2a8eba6e6 / 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.958s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2021-05-14 06:38:40 |

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

2021-05-14 06:38:40 | ------------------------------------

2021-05-14 06:38:40 | [Mutex] waiting for: [configured:node:node-c340f702-2aa0-4892-a6eb-0a0bacefa680:node-227d4f00-4b6e-40de-9cf2-bcc950bd8a1a]

2021-05-14 06:38:40 | [Mutex] received everything.

2021-05-14 06:38:40 | [Mutex] isItemNotified: configured:node:node-c340f702-2aa0-4892-a6eb-0a0bacefa680:node-227d4f00-4b6e-40de-9cf2-bcc950bd8a1a :: true

2021-05-14 06:38:41 | [Mutex] waiting for: [received:nodes:82de84d6-919c-4336-919b-83f4c3932f33:localhost]

2021-05-14 06:38:41 | [Mutex] received everything.

2021-05-14 06:38:41 | [Mutex] isItemNotified: received:node:82de84d6-919c-4336-919b-83f4c3932f33:localhost:node-c340f702-2aa0-4892-a6eb-0a0bacefa680:Node c340f702-2aa0-4892-a6eb-0a0bacefa680 :: true

2021-05-14 06:38:41 | [Mutex] waiting for: [received:nodes:c3d0ff93-4acc-4123-808a-0f4c12ac5acc:localhost]

2021-05-14 06:38:41 | [Mutex] received everything.

2021-05-14 06:38:41 | [Mutex] isItemNotified: received:node:c3d0ff93-4acc-4123-808a-0f4c12ac5acc:localhost:node-c340f702-2aa0-4892-a6eb-0a0bacefa680:Node c340f702-2aa0-4892-a6eb-0a0bacefa680 :: false

createNodes 1.591s
2021-05-14 06:38:37 |

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

2021-05-14 06:38:37 | ------------------------------------

2021-05-14 06:38:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c340f702-2aa0-4892-a6eb-0a0bacefa680",
    "pubsub#title": "Node c340f702-2aa0-4892-a6eb-0a0bacefa680"
}

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

2021-05-14 06:38:39 | [Mutex] waiting for: [received:nodes:ffd59038-8ced-450c-9eda-51091b45b0b3:localhost]

2021-05-14 06:38:39 | [Mutex] received everything.

2021-05-14 06:38:39 | [Mutex] isItemNotified: received:node:ffd59038-8ced-450c-9eda-51091b45b0b3:localhost:node-c340f702-2aa0-4892-a6eb-0a0bacefa680:Node c340f702-2aa0-4892-a6eb-0a0bacefa680 :: true

createSubnodes 1.027s
2021-05-14 06:38:39 |

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

2021-05-14 06:38:39 | ------------------------------------

2021-05-14 06:38:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-227d4f00-4b6e-40de-9cf2-bcc950bd8a1a",
    "pubsub#title": "Node 227d4f00-4b6e-40de-9cf2-bcc950bd8a1a"
}

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

2021-05-14 06:38:40 | [Mutex] waiting for: [received:nodes:9123a378-8278-4868-b234-0bbf3655b019:localhost]

2021-05-14 06:38:40 | [Mutex] received everything.

2021-05-14 06:38:40 | [Mutex] isItemNotified: received:node:9123a378-8278-4868-b234-0bbf3655b019:localhost:node-227d4f00-4b6e-40de-9cf2-bcc950bd8a1a:Node 227d4f00-4b6e-40de-9cf2-bcc950bd8a1a :: true

deleteNodes 1.024s
2021-05-14 06:38:44 |

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

2021-05-14 06:38:44 | ------------------------------------

2021-05-14 06:38:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-227d4f00-4b6e-40de-9cf2-bcc950bd8a1a"
}

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

2021-05-14 06:38:45 | [Mutex] waiting for: [received:nodes:2a889e4f-d55f-4178-8a76-bf8343932da9:localhost]

2021-05-14 06:38:45 | [Mutex] received everything.

2021-05-14 06:38:45 | [Mutex] isItemNotified: received:node:2a889e4f-d55f-4178-8a76-bf8343932da9:localhost:node-227d4f00-4b6e-40de-9cf2-bcc950bd8a1a:Node 227d4f00-4b6e-40de-9cf2-bcc950bd8a1a :: false

deleteSubnodes 1.026s
2021-05-14 06:38:43 |

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

2021-05-14 06:38:43 | ------------------------------------

2021-05-14 06:38:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c340f702-2aa0-4892-a6eb-0a0bacefa680"
}

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

2021-05-14 06:38:44 | [Mutex] waiting for: [received:nodes:5a0a3a9f-ee7e-440f-9d0d-634989af8895:localhost]

2021-05-14 06:38:44 | [Mutex] received everything.

2021-05-14 06:38:44 | [Mutex] isItemNotified: received:node:5a0a3a9f-ee7e-440f-9d0d-634989af8895:localhost:node-c340f702-2aa0-4892-a6eb-0a0bacefa680:Node c340f702-2aa0-4892-a6eb-0a0bacefa680 :: false

2021-05-14 06:38:44 | [Mutex] waiting for: [received:nodes:cc4e9640-722f-4208-aa1f-a147c1b1bd0a:localhost]

2021-05-14 06:38:44 | [Mutex] received everything.

2021-05-14 06:38:44 | [Mutex] isItemNotified: received:node:cc4e9640-722f-4208-aa1f-a147c1b1bd0a:localhost:node-c340f702-2aa0-4892-a6eb-0a0bacefa680:Node c340f702-2aa0-4892-a6eb-0a0bacefa680 :: false

publishItemsToNodes 0.055s
2021-05-14 06:38:42 |

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

2021-05-14 06:38:42 | ------------------------------------

2021-05-14 06:38:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c340f702-2aa0-4892-a6eb-0a0bacefa680",
    "entry": "<test>item-f28bdac1-94a7-4254-894b-1560c7709eae</test>",
    "item-id": "item-f28bdac1-94a7-4254-894b-1560c7709eae"
}

2021-05-14 06:38:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f28bdac1-94a7-4254-894b-1560c7709eae"
}

2021-05-14 06:38:42 | [Mutex] waiting for: [published:item:notifieditem-f28bdac1-94a7-4254-894b-1560c7709eae:admin@test-domain.com]

2021-05-14 06:38:42 | [Mutex] received everything.

2021-05-14 06:38:42 | [Mutex] isItemNotified: published:item:notifieditem-f28bdac1-94a7-4254-894b-1560c7709eae:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-05-14 06:38:42 |

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

2021-05-14 06:38:42 | ------------------------------------

2021-05-14 06:38:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c340f702-2aa0-4892-a6eb-0a0bacefa680",
    "item-id": "item-f28bdac1-94a7-4254-894b-1560c7709eae"
}

2021-05-14 06:38:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f28bdac1-94a7-4254-894b-1560c7709eae"
}

2021-05-14 06:38:42 | [Mutex] received everything.

2021-05-14 06:38:42 | [Mutex] isItemNotified: retracted:item:notifieditem-f28bdac1-94a7-4254-894b-1560c7709eae:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2021-05-14 06:38:42 |

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

2021-05-14 06:38:42 | ------------------------------------

2021-05-14 06:38:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c340f702-2aa0-4892-a6eb-0a0bacefa680",
    "item-id": "item-f28bdac1-94a7-4254-894b-1560c7709eae"
}

2021-05-14 06:38:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c340f702-2aa0-4892-a6eb-0a0bacefa680",
    "item-id": "item-f28bdac1-94a7-4254-894b-1560c7709eae",
    "item": [
        "<item id=\"item-f28bdac1-94a7-4254-894b-1560c7709eae\"><test>item-f28bdac1-94a7-4254-894b-1560c7709eae</test></item>"
    ]
}

2021-05-14 06:38:42 | [Mutex] notify: [retrieved:item:item-f28bdac1-94a7-4254-894b-1560c7709eae:payload-matches:true:localhost]

2021-05-14 06:38:42 | [Mutex] received everything.

2021-05-14 06:38:42 | [Mutex] isItemNotified: retrieved:item:item-f28bdac1-94a7-4254-894b-1560c7709eae:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2021-05-14 06:38:42 |

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

2021-05-14 06:38:42 | ------------------------------------

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

2021-05-14 06:38:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-227d4f00-4b6e-40de-9cf2-bcc950bd8a1a",
        "node-c340f702-2aa0-4892-a6eb-0a0bacefa680"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-14 06:38:42 |

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

2021-05-14 06:38:42 | ------------------------------------

2021-05-14 06:38:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c340f702-2aa0-4892-a6eb-0a0bacefa680)"
}

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

subscribeNodes 1.012s
2021-05-14 06:38:41 |

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

2021-05-14 06:38:41 | ------------------------------------

2021-05-14 06:38:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c340f702-2aa0-4892-a6eb-0a0bacefa680",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2021-05-14 06:38:42 |

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

2021-05-14 06:38:42 | ------------------------------------

2021-05-14 06:38:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c340f702-2aa0-4892-a6eb-0a0bacefa680",
    "jids": [
        "admin@test-domain.com"
    ]
}

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