Generated by TestNG with ReportNG at 22:32 PDT on Friday 02 October 2020
root@87f6aca6b6f2 / 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.945s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2020-10-02 22:47:16 |

2020-10-02 22:47:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:16 | ------------------------------------

2020-10-02 22:47:16 | [Mutex] waiting for: [configured:node:node-5b6df1fa-8445-48f9-882c-6d387a703e38:node-e4b462eb-d58e-4f41-95b2-dff6521b14f3]

2020-10-02 22:47:16 | [Mutex] received everything.

2020-10-02 22:47:16 | [Mutex] isItemNotified: configured:node:node-5b6df1fa-8445-48f9-882c-6d387a703e38:node-e4b462eb-d58e-4f41-95b2-dff6521b14f3 :: true

2020-10-02 22:47:17 | [Mutex] waiting for: [received:nodes:356dddfa-8428-458d-89e3-27a7bf750a78:localhost]

2020-10-02 22:47:17 | [Mutex] waiting for: [received:nodes:356dddfa-8428-458d-89e3-27a7bf750a78:localhost]

2020-10-02 22:47:17 | [Mutex] received everything.

2020-10-02 22:47:17 | [Mutex] isItemNotified: received:node:356dddfa-8428-458d-89e3-27a7bf750a78:localhost:node-5b6df1fa-8445-48f9-882c-6d387a703e38:Node 5b6df1fa-8445-48f9-882c-6d387a703e38 :: true

2020-10-02 22:47:17 | [Mutex] waiting for: [received:nodes:901eadbe-2866-44b9-8492-6d340a2195da:localhost]

2020-10-02 22:47:17 | [Mutex] waiting for: [received:nodes:901eadbe-2866-44b9-8492-6d340a2195da:localhost]

2020-10-02 22:47:17 | [Mutex] received everything.

2020-10-02 22:47:17 | [Mutex] isItemNotified: received:node:901eadbe-2866-44b9-8492-6d340a2195da:localhost:node-5b6df1fa-8445-48f9-882c-6d387a703e38:Node 5b6df1fa-8445-48f9-882c-6d387a703e38 :: false

createNodes 1.719s
2020-10-02 22:47:13 |

2020-10-02 22:47:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:13 | ------------------------------------

2020-10-02 22:47:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5b6df1fa-8445-48f9-882c-6d387a703e38",
    "pubsub#title": "Node 5b6df1fa-8445-48f9-882c-6d387a703e38"
}

2020-10-02 22:47:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-02 22:47:15 | [Mutex] waiting for: [received:nodes:12bc927d-1321-4ccf-a479-0fa09e3b49f6:localhost]

2020-10-02 22:47:15 | [Mutex] waiting for: [received:nodes:12bc927d-1321-4ccf-a479-0fa09e3b49f6:localhost]

2020-10-02 22:47:15 | [Mutex] received everything.

2020-10-02 22:47:15 | [Mutex] isItemNotified: received:node:12bc927d-1321-4ccf-a479-0fa09e3b49f6:localhost:node-5b6df1fa-8445-48f9-882c-6d387a703e38:Node 5b6df1fa-8445-48f9-882c-6d387a703e38 :: true

createSubnodes 1.040s
2020-10-02 22:47:15 |

2020-10-02 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:15 | ------------------------------------

2020-10-02 22:47:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e4b462eb-d58e-4f41-95b2-dff6521b14f3",
    "pubsub#title": "Node e4b462eb-d58e-4f41-95b2-dff6521b14f3"
}

2020-10-02 22:47:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-02 22:47:16 | [Mutex] waiting for: [received:nodes:d92785e5-c821-49b1-9e93-12a75975bc01:localhost]

2020-10-02 22:47:16 | [Mutex] received everything.

2020-10-02 22:47:16 | [Mutex] isItemNotified: received:node:d92785e5-c821-49b1-9e93-12a75975bc01:localhost:node-e4b462eb-d58e-4f41-95b2-dff6521b14f3:Node e4b462eb-d58e-4f41-95b2-dff6521b14f3 :: true

deleteNodes 1.017s
2020-10-02 22:47:20 |

2020-10-02 22:47:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:20 | ------------------------------------

2020-10-02 22:47:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e4b462eb-d58e-4f41-95b2-dff6521b14f3"
}

2020-10-02 22:47:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-02 22:47:21 | [Mutex] waiting for: [received:nodes:1a473b2a-b792-4698-928a-dc09c9e25274:localhost]

2020-10-02 22:47:21 | [Mutex] received everything.

2020-10-02 22:47:21 | [Mutex] isItemNotified: received:node:1a473b2a-b792-4698-928a-dc09c9e25274:localhost:node-e4b462eb-d58e-4f41-95b2-dff6521b14f3:Node e4b462eb-d58e-4f41-95b2-dff6521b14f3 :: false

deleteSubnodes 1.025s
2020-10-02 22:47:19 |

2020-10-02 22:47:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:19 | ------------------------------------

2020-10-02 22:47:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5b6df1fa-8445-48f9-882c-6d387a703e38"
}

2020-10-02 22:47:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-02 22:47:20 | [Mutex] waiting for: [received:nodes:9f78ff30-0928-40d7-a390-ba5203f2f073:localhost]

2020-10-02 22:47:20 | [Mutex] received everything.

2020-10-02 22:47:20 | [Mutex] isItemNotified: received:node:9f78ff30-0928-40d7-a390-ba5203f2f073:localhost:node-5b6df1fa-8445-48f9-882c-6d387a703e38:Node 5b6df1fa-8445-48f9-882c-6d387a703e38 :: false

2020-10-02 22:47:20 | [Mutex] waiting for: [received:nodes:049e08e3-7132-4acd-9383-d4db12d67f24:localhost]

2020-10-02 22:47:20 | [Mutex] received everything.

2020-10-02 22:47:20 | [Mutex] isItemNotified: received:node:049e08e3-7132-4acd-9383-d4db12d67f24:localhost:node-5b6df1fa-8445-48f9-882c-6d387a703e38:Node 5b6df1fa-8445-48f9-882c-6d387a703e38 :: false

publishItemsToNodes 0.050s
2020-10-02 22:47:18 |

2020-10-02 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:18 | ------------------------------------

2020-10-02 22:47:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5b6df1fa-8445-48f9-882c-6d387a703e38",
    "entry": "<test>item-d5e5a71f-0c15-42ca-933a-cebd99382b14</test>",
    "item-id": "item-d5e5a71f-0c15-42ca-933a-cebd99382b14"
}

2020-10-02 22:47:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d5e5a71f-0c15-42ca-933a-cebd99382b14"
}

2020-10-02 22:47:18 | [Mutex] waiting for: [published:item:notifieditem-d5e5a71f-0c15-42ca-933a-cebd99382b14:admin@test-domain.com]

2020-10-02 22:47:18 | [Mutex] received everything.

2020-10-02 22:47:18 | [Mutex] isItemNotified: published:item:notifieditem-d5e5a71f-0c15-42ca-933a-cebd99382b14:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2020-10-02 22:47:18 |

2020-10-02 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:18 | ------------------------------------

2020-10-02 22:47:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5b6df1fa-8445-48f9-882c-6d387a703e38",
    "item-id": "item-d5e5a71f-0c15-42ca-933a-cebd99382b14"
}

2020-10-02 22:47:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d5e5a71f-0c15-42ca-933a-cebd99382b14"
}

2020-10-02 22:47:18 | [Mutex] received everything.

2020-10-02 22:47:18 | [Mutex] isItemNotified: retracted:item:notifieditem-d5e5a71f-0c15-42ca-933a-cebd99382b14:admin@test-domain.com :: true

retrieveItemsFromNodes 0.051s
2020-10-02 22:47:18 |

2020-10-02 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:18 | ------------------------------------

2020-10-02 22:47:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5b6df1fa-8445-48f9-882c-6d387a703e38",
    "item-id": "item-d5e5a71f-0c15-42ca-933a-cebd99382b14"
}

2020-10-02 22:47:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5b6df1fa-8445-48f9-882c-6d387a703e38",
    "item-id": "item-d5e5a71f-0c15-42ca-933a-cebd99382b14",
    "item": [
        "<item id=\"item-d5e5a71f-0c15-42ca-933a-cebd99382b14\"><test>item-d5e5a71f-0c15-42ca-933a-cebd99382b14</test></item>"
    ]
}

2020-10-02 22:47:18 | [Mutex] notify: [retrieved:item:item-d5e5a71f-0c15-42ca-933a-cebd99382b14:payload-matches:true:localhost]

2020-10-02 22:47:18 | [Mutex] received everything.

2020-10-02 22:47:18 | [Mutex] isItemNotified: retrieved:item:item-d5e5a71f-0c15-42ca-933a-cebd99382b14:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-10-02 22:47:18 |

2020-10-02 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:18 | ------------------------------------

2020-10-02 22:47:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-02 22:47:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5b6df1fa-8445-48f9-882c-6d387a703e38",
        "node-e4b462eb-d58e-4f41-95b2-dff6521b14f3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-10-02 22:47:18 |

2020-10-02 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:18 | ------------------------------------

2020-10-02 22:47:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5b6df1fa-8445-48f9-882c-6d387a703e38)"
}

2020-10-02 22:47:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-10-02 22:47:17 |

2020-10-02 22:47:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:17 | ------------------------------------

2020-10-02 22:47:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5b6df1fa-8445-48f9-882c-6d387a703e38",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-02 22:47:17 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-10-02 22:47:18 |

2020-10-02 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:47:18 | ------------------------------------

2020-10-02 22:47:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5b6df1fa-8445-48f9-882c-6d387a703e38",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-02 22:47:18 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}