Generated by TestNG with ReportNG at 00:10 PDT on Wednesday 02 September 2020
root@556a2edbe156 / 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.998s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2020-09-02 00:26:31 |

2020-09-02 00:26:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:31 | ------------------------------------

2020-09-02 00:26:31 | [Mutex] waiting for: [configured:node:node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074:node-4ae754f1-decd-47fa-9a7d-44be637166db]

2020-09-02 00:26:31 | [Mutex] received everything.

2020-09-02 00:26:31 | [Mutex] isItemNotified: configured:node:node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074:node-4ae754f1-decd-47fa-9a7d-44be637166db :: true

2020-09-02 00:26:32 | [Mutex] waiting for: [received:nodes:45e57ef5-7d96-4633-8f35-dde65acf4dca:localhost]

2020-09-02 00:26:32 | [Mutex] received everything.

2020-09-02 00:26:32 | [Mutex] isItemNotified: received:node:45e57ef5-7d96-4633-8f35-dde65acf4dca:localhost:node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074:Node 426a1b0a-ebb3-4fe1-ab32-2d2a341ba074 :: true

2020-09-02 00:26:32 | [Mutex] waiting for: [received:nodes:ca5c1334-6827-4674-8645-a72c8e39234e:localhost]

2020-09-02 00:26:32 | [Mutex] received everything.

2020-09-02 00:26:32 | [Mutex] isItemNotified: received:node:ca5c1334-6827-4674-8645-a72c8e39234e:localhost:node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074:Node 426a1b0a-ebb3-4fe1-ab32-2d2a341ba074 :: false

createNodes 1.692s
2020-09-02 00:26:28 |

2020-09-02 00:26:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:28 | ------------------------------------

2020-09-02 00:26:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074",
    "pubsub#title": "Node 426a1b0a-ebb3-4fe1-ab32-2d2a341ba074"
}

2020-09-02 00:26:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 00:26:30 | [Mutex] waiting for: [received:nodes:8978e305-f9bb-4ef9-97ad-cfb65c5a13e7:localhost]

2020-09-02 00:26:30 | [Mutex] received everything.

2020-09-02 00:26:30 | [Mutex] isItemNotified: received:node:8978e305-f9bb-4ef9-97ad-cfb65c5a13e7:localhost:node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074:Node 426a1b0a-ebb3-4fe1-ab32-2d2a341ba074 :: true

createSubnodes 1.026s
2020-09-02 00:26:30 |

2020-09-02 00:26:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:30 | ------------------------------------

2020-09-02 00:26:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4ae754f1-decd-47fa-9a7d-44be637166db",
    "pubsub#title": "Node 4ae754f1-decd-47fa-9a7d-44be637166db"
}

2020-09-02 00:26:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 00:26:31 | [Mutex] waiting for: [received:nodes:f09681bc-ff72-4716-bd44-cb95caa83d37:localhost]

2020-09-02 00:26:31 | [Mutex] received everything.

2020-09-02 00:26:31 | [Mutex] isItemNotified: received:node:f09681bc-ff72-4716-bd44-cb95caa83d37:localhost:node-4ae754f1-decd-47fa-9a7d-44be637166db:Node 4ae754f1-decd-47fa-9a7d-44be637166db :: true

deleteNodes 1.024s
2020-09-02 00:26:35 |

2020-09-02 00:26:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:35 | ------------------------------------

2020-09-02 00:26:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4ae754f1-decd-47fa-9a7d-44be637166db"
}

2020-09-02 00:26:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 00:26:36 | [Mutex] waiting for: [received:nodes:ce327a00-f23e-48d3-b6be-3bf597434a42:localhost]

2020-09-02 00:26:36 | [Mutex] received everything.

2020-09-02 00:26:36 | [Mutex] isItemNotified: received:node:ce327a00-f23e-48d3-b6be-3bf597434a42:localhost:node-4ae754f1-decd-47fa-9a7d-44be637166db:Node 4ae754f1-decd-47fa-9a7d-44be637166db :: false

deleteSubnodes 1.026s
2020-09-02 00:26:34 |

2020-09-02 00:26:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:34 | ------------------------------------

2020-09-02 00:26:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074"
}

2020-09-02 00:26:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-02 00:26:35 | [Mutex] waiting for: [received:nodes:5417b10e-dbcf-46b9-928e-71033845fca9:localhost]

2020-09-02 00:26:35 | [Mutex] received everything.

2020-09-02 00:26:35 | [Mutex] isItemNotified: received:node:5417b10e-dbcf-46b9-928e-71033845fca9:localhost:node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074:Node 426a1b0a-ebb3-4fe1-ab32-2d2a341ba074 :: false

2020-09-02 00:26:35 | [Mutex] waiting for: [received:nodes:9ff21196-1337-4c8a-9e10-dd2df22ac760:localhost]

2020-09-02 00:26:35 | [Mutex] received everything.

2020-09-02 00:26:35 | [Mutex] isItemNotified: received:node:9ff21196-1337-4c8a-9e10-dd2df22ac760:localhost:node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074:Node 426a1b0a-ebb3-4fe1-ab32-2d2a341ba074 :: false

publishItemsToNodes 0.033s
2020-09-02 00:26:33 |

2020-09-02 00:26:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:33 | ------------------------------------

2020-09-02 00:26:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074",
    "entry": "<test>item-ad11c567-958b-4d60-8e1f-82698576af8a</test>",
    "item-id": "item-ad11c567-958b-4d60-8e1f-82698576af8a"
}

2020-09-02 00:26:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ad11c567-958b-4d60-8e1f-82698576af8a"
}

2020-09-02 00:26:33 | [Mutex] waiting for: [published:item:notifieditem-ad11c567-958b-4d60-8e1f-82698576af8a:admin@test-domain.com]

2020-09-02 00:26:33 | [Mutex] received everything.

2020-09-02 00:26:33 | [Mutex] isItemNotified: published:item:notifieditem-ad11c567-958b-4d60-8e1f-82698576af8a:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-09-02 00:26:33 |

2020-09-02 00:26:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:33 | ------------------------------------

2020-09-02 00:26:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074",
    "item-id": "item-ad11c567-958b-4d60-8e1f-82698576af8a"
}

2020-09-02 00:26:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ad11c567-958b-4d60-8e1f-82698576af8a"
}

2020-09-02 00:26:33 | [Mutex] received everything.

2020-09-02 00:26:33 | [Mutex] isItemNotified: retracted:item:notifieditem-ad11c567-958b-4d60-8e1f-82698576af8a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2020-09-02 00:26:33 |

2020-09-02 00:26:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:33 | ------------------------------------

2020-09-02 00:26:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074",
    "item-id": "item-ad11c567-958b-4d60-8e1f-82698576af8a"
}

2020-09-02 00:26:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074",
    "item-id": "item-ad11c567-958b-4d60-8e1f-82698576af8a",
    "item": [
        "<item id=\"item-ad11c567-958b-4d60-8e1f-82698576af8a\"><test>item-ad11c567-958b-4d60-8e1f-82698576af8a</test></item>"
    ]
}

2020-09-02 00:26:33 | [Mutex] notify: [retrieved:item:item-ad11c567-958b-4d60-8e1f-82698576af8a:payload-matches:true:localhost]

2020-09-02 00:26:33 | [Mutex] received everything.

2020-09-02 00:26:33 | [Mutex] isItemNotified: retrieved:item:item-ad11c567-958b-4d60-8e1f-82698576af8a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-02 00:26:33 |

2020-09-02 00:26:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:33 | ------------------------------------

2020-09-02 00:26:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-02 00:26:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074",
        "node-4ae754f1-decd-47fa-9a7d-44be637166db"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-02 00:26:33 |

2020-09-02 00:26:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:33 | ------------------------------------

2020-09-02 00:26:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074)"
}

2020-09-02 00:26:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-09-02 00:26:32 |

2020-09-02 00:26:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:32 | ------------------------------------

2020-09-02 00:26:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-02 00:26:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2020-09-02 00:26:33 |

2020-09-02 00:26:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-02 00:26:33 | ------------------------------------

2020-09-02 00:26:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-426a1b0a-ebb3-4fe1-ab32-2d2a341ba074",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-02 00:26:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}