Generated by TestNG with ReportNG at 22:19 PDT on Tuesday 06 September 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.629s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.083s
2022-09-06 22:33:56 |

2022-09-06 22:33:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:56 | ------------------------------------

2022-09-06 22:33:56 | [Mutex] waiting for: [configured:node:node-923f4692-9163-45ed-b328-bbb0783b4326:node-f60e55b3-e6bb-485f-afa4-d4e8357504eb]

2022-09-06 22:33:56 | [Mutex] received everything.

2022-09-06 22:33:56 | [Mutex] isItemNotified: configured:node:node-923f4692-9163-45ed-b328-bbb0783b4326:node-f60e55b3-e6bb-485f-afa4-d4e8357504eb :: true

2022-09-06 22:33:57 | [Mutex] waiting for: [received:nodes:07aa2391-c59e-4d38-8859-d8ee2e6db8a1:localhost]

2022-09-06 22:33:57 | [Mutex] received everything.

2022-09-06 22:33:57 | [Mutex] isItemNotified: received:node:07aa2391-c59e-4d38-8859-d8ee2e6db8a1:localhost:node-923f4692-9163-45ed-b328-bbb0783b4326:Node 923f4692-9163-45ed-b328-bbb0783b4326 :: true

2022-09-06 22:33:57 | [Mutex] waiting for: [received:nodes:eabcb306-075b-4d8e-a66a-adcc96bb1143:localhost]

2022-09-06 22:33:57 | [Mutex] received everything.

2022-09-06 22:33:57 | [Mutex] isItemNotified: received:node:eabcb306-075b-4d8e-a66a-adcc96bb1143:localhost:node-923f4692-9163-45ed-b328-bbb0783b4326:Node 923f4692-9163-45ed-b328-bbb0783b4326 :: false

createNodes 1.549s
2022-09-06 22:33:54 |

2022-09-06 22:33:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:54 | ------------------------------------

2022-09-06 22:33:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-923f4692-9163-45ed-b328-bbb0783b4326",
    "pubsub#title": "Node 923f4692-9163-45ed-b328-bbb0783b4326"
}

2022-09-06 22:33:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-06 22:33:55 | [Mutex] waiting for: [received:nodes:3a953d70-b6d5-462c-87a3-0e6caff407f8:localhost]

2022-09-06 22:33:55 | [Mutex] received everything.

2022-09-06 22:33:55 | [Mutex] isItemNotified: received:node:3a953d70-b6d5-462c-87a3-0e6caff407f8:localhost:node-923f4692-9163-45ed-b328-bbb0783b4326:Node 923f4692-9163-45ed-b328-bbb0783b4326 :: true

createSubnodes 1.024s
2022-09-06 22:33:55 |

2022-09-06 22:33:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:55 | ------------------------------------

2022-09-06 22:33:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f60e55b3-e6bb-485f-afa4-d4e8357504eb",
    "pubsub#title": "Node f60e55b3-e6bb-485f-afa4-d4e8357504eb"
}

2022-09-06 22:33:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-06 22:33:56 | [Mutex] waiting for: [received:nodes:7c3a2064-b75c-4192-beb1-f22ee38ee51f:localhost]

2022-09-06 22:33:56 | [Mutex] received everything.

2022-09-06 22:33:56 | [Mutex] isItemNotified: received:node:7c3a2064-b75c-4192-beb1-f22ee38ee51f:localhost:node-f60e55b3-e6bb-485f-afa4-d4e8357504eb:Node f60e55b3-e6bb-485f-afa4-d4e8357504eb :: true

deleteNodes 1.024s
2022-09-06 22:34:01 |

2022-09-06 22:34:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:34:01 | ------------------------------------

2022-09-06 22:34:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f60e55b3-e6bb-485f-afa4-d4e8357504eb"
}

2022-09-06 22:34:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-06 22:34:02 | [Mutex] waiting for: [received:nodes:63370362-9715-4de1-b9c2-ec709336346e:localhost]

2022-09-06 22:34:02 | [Mutex] waiting for: [received:nodes:63370362-9715-4de1-b9c2-ec709336346e:localhost]

2022-09-06 22:34:02 | [Mutex] received everything.

2022-09-06 22:34:02 | [Mutex] isItemNotified: received:node:63370362-9715-4de1-b9c2-ec709336346e:localhost:node-f60e55b3-e6bb-485f-afa4-d4e8357504eb:Node f60e55b3-e6bb-485f-afa4-d4e8357504eb :: false

deleteSubnodes 1.029s
2022-09-06 22:34:00 |

2022-09-06 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:34:00 | ------------------------------------

2022-09-06 22:34:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-923f4692-9163-45ed-b328-bbb0783b4326"
}

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

2022-09-06 22:34:01 | [Mutex] waiting for: [received:nodes:e8b9a1ba-c207-4e7d-8ebf-c2e508928b26:localhost]

2022-09-06 22:34:01 | [Mutex] received everything.

2022-09-06 22:34:01 | [Mutex] isItemNotified: received:node:e8b9a1ba-c207-4e7d-8ebf-c2e508928b26:localhost:node-923f4692-9163-45ed-b328-bbb0783b4326:Node 923f4692-9163-45ed-b328-bbb0783b4326 :: false

2022-09-06 22:34:01 | [Mutex] waiting for: [received:nodes:db204756-8fd9-4261-b900-d0e38e811111:localhost]

2022-09-06 22:34:01 | [Mutex] received everything.

2022-09-06 22:34:01 | [Mutex] isItemNotified: received:node:db204756-8fd9-4261-b900-d0e38e811111:localhost:node-923f4692-9163-45ed-b328-bbb0783b4326:Node 923f4692-9163-45ed-b328-bbb0783b4326 :: false

publishItemsToNodes 0.057s
2022-09-06 22:33:58 |

2022-09-06 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:58 | ------------------------------------

2022-09-06 22:33:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-923f4692-9163-45ed-b328-bbb0783b4326",
    "entry": "<test>item-1ee8612b-d702-42d9-9831-69e22a6815f3</test>",
    "item-id": "item-1ee8612b-d702-42d9-9831-69e22a6815f3"
}

2022-09-06 22:33:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1ee8612b-d702-42d9-9831-69e22a6815f3"
}

2022-09-06 22:33:58 | [Mutex] waiting for: [published:item:notifieditem-1ee8612b-d702-42d9-9831-69e22a6815f3:admin@test-domain.com]

2022-09-06 22:33:58 | [Mutex] received everything.

2022-09-06 22:33:58 | [Mutex] isItemNotified: published:item:notifieditem-1ee8612b-d702-42d9-9831-69e22a6815f3:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2022-09-06 22:33:58 |

2022-09-06 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:58 | ------------------------------------

2022-09-06 22:33:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-923f4692-9163-45ed-b328-bbb0783b4326",
    "item-id": "item-1ee8612b-d702-42d9-9831-69e22a6815f3"
}

2022-09-06 22:33:59 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1ee8612b-d702-42d9-9831-69e22a6815f3"
}

2022-09-06 22:33:59 | [Mutex] waiting for: [retracted:item:notifieditem-1ee8612b-d702-42d9-9831-69e22a6815f3:admin@test-domain.com]

2022-09-06 22:33:59 | [Mutex] received everything.

2022-09-06 22:33:59 | [Mutex] isItemNotified: retracted:item:notifieditem-1ee8612b-d702-42d9-9831-69e22a6815f3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2022-09-06 22:33:58 |

2022-09-06 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:58 | ------------------------------------

2022-09-06 22:33:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-923f4692-9163-45ed-b328-bbb0783b4326",
    "item-id": "item-1ee8612b-d702-42d9-9831-69e22a6815f3"
}

2022-09-06 22:33:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-923f4692-9163-45ed-b328-bbb0783b4326",
    "item-id": "item-1ee8612b-d702-42d9-9831-69e22a6815f3",
    "item": [
        "<item id=\"item-1ee8612b-d702-42d9-9831-69e22a6815f3\"><test>item-1ee8612b-d702-42d9-9831-69e22a6815f3</test></item>"
    ]
}

2022-09-06 22:33:58 | [Mutex] notify: [retrieved:item:item-1ee8612b-d702-42d9-9831-69e22a6815f3:payload-matches:true:localhost]

2022-09-06 22:33:58 | [Mutex] received everything.

2022-09-06 22:33:58 | [Mutex] isItemNotified: retrieved:item:item-1ee8612b-d702-42d9-9831-69e22a6815f3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.077s
2022-09-06 22:33:58 |

2022-09-06 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:58 | ------------------------------------

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

2022-09-06 22:33:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f60e55b3-e6bb-485f-afa4-d4e8357504eb",
        "node-923f4692-9163-45ed-b328-bbb0783b4326"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-09-06 22:33:58 |

2022-09-06 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:58 | ------------------------------------

2022-09-06 22:33:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-923f4692-9163-45ed-b328-bbb0783b4326)"
}

2022-09-06 22:33:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-09-06 22:33:57 |

2022-09-06 22:33:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:57 | ------------------------------------

2022-09-06 22:33:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-923f4692-9163-45ed-b328-bbb0783b4326",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-06 22:33:57 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2022-09-06 22:33:59 |

2022-09-06 22:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-06 22:33:59 | ------------------------------------

2022-09-06 22:33:59 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-923f4692-9163-45ed-b328-bbb0783b4326",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-06 22:33:59 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}