Generated by TestNG with ReportNG at 22:21 PDT on Thursday 14 April 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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.773s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.148s
2022-04-14 22:35:21 |

2022-04-14 22:35:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:21 | ------------------------------------

2022-04-14 22:35:21 | [Mutex] waiting for: [configured:node:node-726bc961-89a7-4170-bba2-43fbcf7a9f1d:node-ed76ebd1-e086-40ec-8f6c-1136c98bf0db]

2022-04-14 22:35:21 | [Mutex] received everything.

2022-04-14 22:35:21 | [Mutex] isItemNotified: configured:node:node-726bc961-89a7-4170-bba2-43fbcf7a9f1d:node-ed76ebd1-e086-40ec-8f6c-1136c98bf0db :: true

2022-04-14 22:35:22 | [Mutex] waiting for: [received:nodes:4ecc8467-1a8e-4cbf-9367-2c9d209870c5:localhost]

2022-04-14 22:35:22 | [Mutex] received everything.

2022-04-14 22:35:22 | [Mutex] isItemNotified: received:node:4ecc8467-1a8e-4cbf-9367-2c9d209870c5:localhost:node-726bc961-89a7-4170-bba2-43fbcf7a9f1d:Node 726bc961-89a7-4170-bba2-43fbcf7a9f1d :: true

2022-04-14 22:35:22 | [Mutex] waiting for: [received:nodes:80b3833f-1c1e-4a0f-bf5d-b21d0746c68e:localhost]

2022-04-14 22:35:22 | [Mutex] received everything.

2022-04-14 22:35:22 | [Mutex] isItemNotified: received:node:80b3833f-1c1e-4a0f-bf5d-b21d0746c68e:localhost:node-726bc961-89a7-4170-bba2-43fbcf7a9f1d:Node 726bc961-89a7-4170-bba2-43fbcf7a9f1d :: false

createNodes 1.606s
2022-04-14 22:35:18 |

2022-04-14 22:35:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:18 | ------------------------------------

2022-04-14 22:35:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-726bc961-89a7-4170-bba2-43fbcf7a9f1d",
    "pubsub#title": "Node 726bc961-89a7-4170-bba2-43fbcf7a9f1d"
}

2022-04-14 22:35:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-14 22:35:20 | [Mutex] waiting for: [received:nodes:78f496a7-7fbd-405c-ae52-cd19913ce038:localhost]

2022-04-14 22:35:20 | [Mutex] waiting for: [received:nodes:78f496a7-7fbd-405c-ae52-cd19913ce038:localhost]

2022-04-14 22:35:20 | [Mutex] waiting for: [received:nodes:78f496a7-7fbd-405c-ae52-cd19913ce038:localhost]

2022-04-14 22:35:20 | [Mutex] received everything.

2022-04-14 22:35:20 | [Mutex] isItemNotified: received:node:78f496a7-7fbd-405c-ae52-cd19913ce038:localhost:node-726bc961-89a7-4170-bba2-43fbcf7a9f1d:Node 726bc961-89a7-4170-bba2-43fbcf7a9f1d :: true

createSubnodes 1.022s
2022-04-14 22:35:20 |

2022-04-14 22:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:20 | ------------------------------------

2022-04-14 22:35:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ed76ebd1-e086-40ec-8f6c-1136c98bf0db",
    "pubsub#title": "Node ed76ebd1-e086-40ec-8f6c-1136c98bf0db"
}

2022-04-14 22:35:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-14 22:35:21 | [Mutex] waiting for: [received:nodes:4012f055-aad6-479d-affd-f8ef00e133e2:localhost]

2022-04-14 22:35:21 | [Mutex] received everything.

2022-04-14 22:35:21 | [Mutex] isItemNotified: received:node:4012f055-aad6-479d-affd-f8ef00e133e2:localhost:node-ed76ebd1-e086-40ec-8f6c-1136c98bf0db:Node ed76ebd1-e086-40ec-8f6c-1136c98bf0db :: true

deleteNodes 1.025s
2022-04-14 22:35:25 |

2022-04-14 22:35:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:25 | ------------------------------------

2022-04-14 22:35:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ed76ebd1-e086-40ec-8f6c-1136c98bf0db"
}

2022-04-14 22:35:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-14 22:35:26 | [Mutex] waiting for: [received:nodes:88c23d2d-069e-4d6f-a4d2-de5eaf495cd8:localhost]

2022-04-14 22:35:26 | [Mutex] waiting for: [received:nodes:88c23d2d-069e-4d6f-a4d2-de5eaf495cd8:localhost]

2022-04-14 22:35:26 | [Mutex] received everything.

2022-04-14 22:35:26 | [Mutex] isItemNotified: received:node:88c23d2d-069e-4d6f-a4d2-de5eaf495cd8:localhost:node-ed76ebd1-e086-40ec-8f6c-1136c98bf0db:Node ed76ebd1-e086-40ec-8f6c-1136c98bf0db :: false

deleteSubnodes 1.025s
2022-04-14 22:35:24 |

2022-04-14 22:35:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:24 | ------------------------------------

2022-04-14 22:35:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-726bc961-89a7-4170-bba2-43fbcf7a9f1d"
}

2022-04-14 22:35:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-14 22:35:25 | [Mutex] waiting for: [received:nodes:ed1ac475-5761-4f76-a9a3-1cc88df95ab5:localhost]

2022-04-14 22:35:25 | [Mutex] received everything.

2022-04-14 22:35:25 | [Mutex] isItemNotified: received:node:ed1ac475-5761-4f76-a9a3-1cc88df95ab5:localhost:node-726bc961-89a7-4170-bba2-43fbcf7a9f1d:Node 726bc961-89a7-4170-bba2-43fbcf7a9f1d :: false

2022-04-14 22:35:25 | [Mutex] waiting for: [received:nodes:de78cb3f-54ca-41ab-9380-144067a8aa29:localhost]

2022-04-14 22:35:25 | [Mutex] received everything.

2022-04-14 22:35:25 | [Mutex] isItemNotified: received:node:de78cb3f-54ca-41ab-9380-144067a8aa29:localhost:node-726bc961-89a7-4170-bba2-43fbcf7a9f1d:Node 726bc961-89a7-4170-bba2-43fbcf7a9f1d :: false

publishItemsToNodes 0.040s
2022-04-14 22:35:23 |

2022-04-14 22:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:23 | ------------------------------------

2022-04-14 22:35:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-726bc961-89a7-4170-bba2-43fbcf7a9f1d",
    "entry": "<test>item-98c5030b-4348-4035-857c-511c4e3cd0ea</test>",
    "item-id": "item-98c5030b-4348-4035-857c-511c4e3cd0ea"
}

2022-04-14 22:35:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98c5030b-4348-4035-857c-511c4e3cd0ea"
}

2022-04-14 22:35:23 | [Mutex] waiting for: [published:item:notifieditem-98c5030b-4348-4035-857c-511c4e3cd0ea:admin@test-domain.com]

2022-04-14 22:35:23 | [Mutex] received everything.

2022-04-14 22:35:23 | [Mutex] isItemNotified: published:item:notifieditem-98c5030b-4348-4035-857c-511c4e3cd0ea:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-04-14 22:35:23 |

2022-04-14 22:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:23 | ------------------------------------

2022-04-14 22:35:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-726bc961-89a7-4170-bba2-43fbcf7a9f1d",
    "item-id": "item-98c5030b-4348-4035-857c-511c4e3cd0ea"
}

2022-04-14 22:35:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-98c5030b-4348-4035-857c-511c4e3cd0ea"
}

2022-04-14 22:35:23 | [Mutex] received everything.

2022-04-14 22:35:23 | [Mutex] isItemNotified: retracted:item:notifieditem-98c5030b-4348-4035-857c-511c4e3cd0ea:admin@test-domain.com :: true

retrieveItemsFromNodes 0.041s
2022-04-14 22:35:23 |

2022-04-14 22:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:23 | ------------------------------------

2022-04-14 22:35:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-726bc961-89a7-4170-bba2-43fbcf7a9f1d",
    "item-id": "item-98c5030b-4348-4035-857c-511c4e3cd0ea"
}

2022-04-14 22:35:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-726bc961-89a7-4170-bba2-43fbcf7a9f1d",
    "item-id": "item-98c5030b-4348-4035-857c-511c4e3cd0ea",
    "item": [
        "<item id=\"item-98c5030b-4348-4035-857c-511c4e3cd0ea\"><test>item-98c5030b-4348-4035-857c-511c4e3cd0ea</test></item>"
    ]
}

2022-04-14 22:35:23 | [Mutex] notify: [retrieved:item:item-98c5030b-4348-4035-857c-511c4e3cd0ea:payload-matches:true:localhost]

2022-04-14 22:35:23 | [Mutex] received everything.

2022-04-14 22:35:23 | [Mutex] isItemNotified: retrieved:item:item-98c5030b-4348-4035-857c-511c4e3cd0ea:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.064s
2022-04-14 22:35:23 |

2022-04-14 22:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:23 | ------------------------------------

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

2022-04-14 22:35:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ed76ebd1-e086-40ec-8f6c-1136c98bf0db",
        "node-726bc961-89a7-4170-bba2-43fbcf7a9f1d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-04-14 22:35:23 |

2022-04-14 22:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:23 | ------------------------------------

2022-04-14 22:35:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-726bc961-89a7-4170-bba2-43fbcf7a9f1d)"
}

2022-04-14 22:35:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-04-14 22:35:22 |

2022-04-14 22:35:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:22 | ------------------------------------

2022-04-14 22:35:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-726bc961-89a7-4170-bba2-43fbcf7a9f1d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-14 22:35:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-04-14 22:35:23 |

2022-04-14 22:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 22:35:23 | ------------------------------------

2022-04-14 22:35:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-726bc961-89a7-4170-bba2-43fbcf7a9f1d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-14 22:35:23 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}