Generated by TestNG with ReportNG at 21:46 PST on Wednesday 02 March 2022
root@f29ef40080b5 / 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.964s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2022-03-02 22:02:19 |

2022-03-02 22:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:19 | ------------------------------------

2022-03-02 22:02:19 | [Mutex] waiting for: [configured:node:node-2717dc01-11bc-4645-bc22-50c926839ce0:node-69ebf3ab-6cbd-4376-a091-00c57ce82810]

2022-03-02 22:02:19 | [Mutex] received everything.

2022-03-02 22:02:19 | [Mutex] isItemNotified: configured:node:node-2717dc01-11bc-4645-bc22-50c926839ce0:node-69ebf3ab-6cbd-4376-a091-00c57ce82810 :: true

2022-03-02 22:02:20 | [Mutex] waiting for: [received:nodes:844ba7e7-b624-40fc-94ce-9b63dbac02b7:localhost]

2022-03-02 22:02:20 | [Mutex] received everything.

2022-03-02 22:02:20 | [Mutex] isItemNotified: received:node:844ba7e7-b624-40fc-94ce-9b63dbac02b7:localhost:node-2717dc01-11bc-4645-bc22-50c926839ce0:Node 2717dc01-11bc-4645-bc22-50c926839ce0 :: true

2022-03-02 22:02:20 | [Mutex] waiting for: [received:nodes:df374012-97a7-4221-80be-aaeb035ede3f:localhost]

2022-03-02 22:02:20 | [Mutex] waiting for: [received:nodes:df374012-97a7-4221-80be-aaeb035ede3f:localhost]

2022-03-02 22:02:20 | [Mutex] received everything.

2022-03-02 22:02:20 | [Mutex] isItemNotified: received:node:df374012-97a7-4221-80be-aaeb035ede3f:localhost:node-2717dc01-11bc-4645-bc22-50c926839ce0:Node 2717dc01-11bc-4645-bc22-50c926839ce0 :: false

createNodes 1.456s
2022-03-02 22:02:16 |

2022-03-02 22:02:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:16 | ------------------------------------

2022-03-02 22:02:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2717dc01-11bc-4645-bc22-50c926839ce0",
    "pubsub#title": "Node 2717dc01-11bc-4645-bc22-50c926839ce0"
}

2022-03-02 22:02:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-02 22:02:18 | [Mutex] waiting for: [received:nodes:79ef3b81-0668-4c7f-a70d-8b9ca607031d:localhost]

2022-03-02 22:02:18 | [Mutex] waiting for: [received:nodes:79ef3b81-0668-4c7f-a70d-8b9ca607031d:localhost]

2022-03-02 22:02:18 | [Mutex] received everything.

2022-03-02 22:02:18 | [Mutex] isItemNotified: received:node:79ef3b81-0668-4c7f-a70d-8b9ca607031d:localhost:node-2717dc01-11bc-4645-bc22-50c926839ce0:Node 2717dc01-11bc-4645-bc22-50c926839ce0 :: true

createSubnodes 1.025s
2022-03-02 22:02:18 |

2022-03-02 22:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:18 | ------------------------------------

2022-03-02 22:02:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-69ebf3ab-6cbd-4376-a091-00c57ce82810",
    "pubsub#title": "Node 69ebf3ab-6cbd-4376-a091-00c57ce82810"
}

2022-03-02 22:02:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-02 22:02:19 | [Mutex] waiting for: [received:nodes:c3cf5390-b54a-44cf-8ba1-003e9275f0e2:localhost]

2022-03-02 22:02:19 | [Mutex] waiting for: [received:nodes:c3cf5390-b54a-44cf-8ba1-003e9275f0e2:localhost]

2022-03-02 22:02:19 | [Mutex] received everything.

2022-03-02 22:02:19 | [Mutex] isItemNotified: received:node:c3cf5390-b54a-44cf-8ba1-003e9275f0e2:localhost:node-69ebf3ab-6cbd-4376-a091-00c57ce82810:Node 69ebf3ab-6cbd-4376-a091-00c57ce82810 :: true

deleteNodes 1.033s
2022-03-02 22:02:23 |

2022-03-02 22:02:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:23 | ------------------------------------

2022-03-02 22:02:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-69ebf3ab-6cbd-4376-a091-00c57ce82810"
}

2022-03-02 22:02:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-02 22:02:24 | [Mutex] waiting for: [received:nodes:7cda2ae9-ae04-4096-9a5f-ee1422ac4f8d:localhost]

2022-03-02 22:02:24 | [Mutex] received everything.

2022-03-02 22:02:24 | [Mutex] isItemNotified: received:node:7cda2ae9-ae04-4096-9a5f-ee1422ac4f8d:localhost:node-69ebf3ab-6cbd-4376-a091-00c57ce82810:Node 69ebf3ab-6cbd-4376-a091-00c57ce82810 :: false

deleteSubnodes 1.035s
2022-03-02 22:02:22 |

2022-03-02 22:02:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:22 | ------------------------------------

2022-03-02 22:02:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2717dc01-11bc-4645-bc22-50c926839ce0"
}

2022-03-02 22:02:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-02 22:02:23 | [Mutex] waiting for: [received:nodes:959176b8-1944-45c6-ba81-fab8dcddd279:localhost]

2022-03-02 22:02:23 | [Mutex] waiting for: [received:nodes:959176b8-1944-45c6-ba81-fab8dcddd279:localhost]

2022-03-02 22:02:23 | [Mutex] received everything.

2022-03-02 22:02:23 | [Mutex] isItemNotified: received:node:959176b8-1944-45c6-ba81-fab8dcddd279:localhost:node-2717dc01-11bc-4645-bc22-50c926839ce0:Node 2717dc01-11bc-4645-bc22-50c926839ce0 :: false

2022-03-02 22:02:23 | [Mutex] waiting for: [received:nodes:0104cade-1275-4f12-8a35-9b6d7674b406:localhost]

2022-03-02 22:02:23 | [Mutex] received everything.

2022-03-02 22:02:23 | [Mutex] isItemNotified: received:node:0104cade-1275-4f12-8a35-9b6d7674b406:localhost:node-2717dc01-11bc-4645-bc22-50c926839ce0:Node 2717dc01-11bc-4645-bc22-50c926839ce0 :: false

publishItemsToNodes 0.049s
2022-03-02 22:02:21 |

2022-03-02 22:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:21 | ------------------------------------

2022-03-02 22:02:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2717dc01-11bc-4645-bc22-50c926839ce0",
    "entry": "<test>item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa</test>",
    "item-id": "item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa"
}

2022-03-02 22:02:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa"
}

2022-03-02 22:02:21 | [Mutex] waiting for: [published:item:notifieditem-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa:admin@test-domain.com]

2022-03-02 22:02:21 | [Mutex] received everything.

2022-03-02 22:02:21 | [Mutex] isItemNotified: published:item:notifieditem-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa:admin@test-domain.com :: true

retractItemsFromNodes 0.171s
2022-03-02 22:02:21 |

2022-03-02 22:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:21 | ------------------------------------

2022-03-02 22:02:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2717dc01-11bc-4645-bc22-50c926839ce0",
    "item-id": "item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa"
}

2022-03-02 22:02:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa"
}

2022-03-02 22:02:21 | [Mutex] received everything.

2022-03-02 22:02:21 | [Mutex] isItemNotified: retracted:item:notifieditem-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2022-03-02 22:02:21 |

2022-03-02 22:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:21 | ------------------------------------

2022-03-02 22:02:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2717dc01-11bc-4645-bc22-50c926839ce0",
    "item-id": "item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa"
}

2022-03-02 22:02:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2717dc01-11bc-4645-bc22-50c926839ce0",
    "item-id": "item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa",
    "item": [
        "<item id=\"item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa\"><test>item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa</test></item>"
    ]
}

2022-03-02 22:02:21 | [Mutex] notify: [retrieved:item:item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa:payload-matches:true:localhost]

2022-03-02 22:02:21 | [Mutex] received everything.

2022-03-02 22:02:21 | [Mutex] isItemNotified: retrieved:item:item-6e539e05-61e6-4cb9-911e-4e1c7b3bbcaa:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2022-03-02 22:02:21 |

2022-03-02 22:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:21 | ------------------------------------

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

2022-03-02 22:02:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2717dc01-11bc-4645-bc22-50c926839ce0",
        "node-69ebf3ab-6cbd-4376-a091-00c57ce82810"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-03-02 22:02:21 |

2022-03-02 22:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:21 | ------------------------------------

2022-03-02 22:02:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2717dc01-11bc-4645-bc22-50c926839ce0)"
}

2022-03-02 22:02:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-03-02 22:02:20 |

2022-03-02 22:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:20 | ------------------------------------

2022-03-02 22:02:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2717dc01-11bc-4645-bc22-50c926839ce0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-03-02 22:02:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-03-02 22:02:21 |

2022-03-02 22:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-02 22:02:21 | ------------------------------------

2022-03-02 22:02:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2717dc01-11bc-4645-bc22-50c926839ce0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-03-02 22:02:21 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}