Generated by TestNG with ReportNG at 21:18 PST on Sunday 17 January 2021
root@43fec6d4badf / 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 : 9.444s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.137s
2021-01-17 21:35:02 |

2021-01-17 21:35:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:02 | ------------------------------------

2021-01-17 21:35:02 | [Mutex] waiting for: [configured:node:node-626bfc24-c819-4629-89a2-3fdcf4420596:node-657c45db-1ccd-437c-8b39-c39c8100fa15]

2021-01-17 21:35:02 | [Mutex] received everything.

2021-01-17 21:35:02 | [Mutex] isItemNotified: configured:node:node-626bfc24-c819-4629-89a2-3fdcf4420596:node-657c45db-1ccd-437c-8b39-c39c8100fa15 :: true

2021-01-17 21:35:03 | [Mutex] waiting for: [received:nodes:b937480c-7e5e-41fb-bac0-295da98dd95b:localhost]

2021-01-17 21:35:03 | [Mutex] received everything.

2021-01-17 21:35:03 | [Mutex] isItemNotified: received:node:b937480c-7e5e-41fb-bac0-295da98dd95b:localhost:node-626bfc24-c819-4629-89a2-3fdcf4420596:Node 626bfc24-c819-4629-89a2-3fdcf4420596 :: true

2021-01-17 21:35:03 | [Mutex] waiting for: [received:nodes:df6f80f5-fd45-4f94-9a69-6b4626668c24:localhost]

2021-01-17 21:35:03 | [Mutex] waiting for: [received:nodes:df6f80f5-fd45-4f94-9a69-6b4626668c24:localhost]

2021-01-17 21:35:03 | [Mutex] received everything.

2021-01-17 21:35:03 | [Mutex] isItemNotified: received:node:df6f80f5-fd45-4f94-9a69-6b4626668c24:localhost:node-626bfc24-c819-4629-89a2-3fdcf4420596:Node 626bfc24-c819-4629-89a2-3fdcf4420596 :: false

createNodes 1.892s
2021-01-17 21:34:59 |

2021-01-17 21:34:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:34:59 | ------------------------------------

2021-01-17 21:35:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-626bfc24-c819-4629-89a2-3fdcf4420596",
    "pubsub#title": "Node 626bfc24-c819-4629-89a2-3fdcf4420596"
}

2021-01-17 21:35:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-17 21:35:01 | [Mutex] waiting for: [received:nodes:d193b1b7-9233-4e10-92b3-36d1f3c3ab5f:localhost]

2021-01-17 21:35:01 | [Mutex] received everything.

2021-01-17 21:35:01 | [Mutex] isItemNotified: received:node:d193b1b7-9233-4e10-92b3-36d1f3c3ab5f:localhost:node-626bfc24-c819-4629-89a2-3fdcf4420596:Node 626bfc24-c819-4629-89a2-3fdcf4420596 :: true

createSubnodes 1.030s
2021-01-17 21:35:01 |

2021-01-17 21:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:01 | ------------------------------------

2021-01-17 21:35:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-657c45db-1ccd-437c-8b39-c39c8100fa15",
    "pubsub#title": "Node 657c45db-1ccd-437c-8b39-c39c8100fa15"
}

2021-01-17 21:35:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-17 21:35:02 | [Mutex] waiting for: [received:nodes:5795ec69-95f3-461f-99b9-f83f45c5e1c4:localhost]

2021-01-17 21:35:02 | [Mutex] received everything.

2021-01-17 21:35:02 | [Mutex] isItemNotified: received:node:5795ec69-95f3-461f-99b9-f83f45c5e1c4:localhost:node-657c45db-1ccd-437c-8b39-c39c8100fa15:Node 657c45db-1ccd-437c-8b39-c39c8100fa15 :: true

deleteNodes 1.026s
2021-01-17 21:35:07 |

2021-01-17 21:35:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:07 | ------------------------------------

2021-01-17 21:35:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-657c45db-1ccd-437c-8b39-c39c8100fa15"
}

2021-01-17 21:35:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-17 21:35:08 | [Mutex] waiting for: [received:nodes:84ee7fad-7d9c-4703-a7bf-ac055d69bdf7:localhost]

2021-01-17 21:35:08 | [Mutex] received everything.

2021-01-17 21:35:08 | [Mutex] isItemNotified: received:node:84ee7fad-7d9c-4703-a7bf-ac055d69bdf7:localhost:node-657c45db-1ccd-437c-8b39-c39c8100fa15:Node 657c45db-1ccd-437c-8b39-c39c8100fa15 :: false

deleteSubnodes 1.033s
2021-01-17 21:35:06 |

2021-01-17 21:35:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:06 | ------------------------------------

2021-01-17 21:35:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-626bfc24-c819-4629-89a2-3fdcf4420596"
}

2021-01-17 21:35:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-17 21:35:07 | [Mutex] waiting for: [received:nodes:70832789-553a-47b8-93ce-3a73776e9824:localhost]

2021-01-17 21:35:07 | [Mutex] waiting for: [received:nodes:70832789-553a-47b8-93ce-3a73776e9824:localhost]

2021-01-17 21:35:07 | [Mutex] received everything.

2021-01-17 21:35:07 | [Mutex] isItemNotified: received:node:70832789-553a-47b8-93ce-3a73776e9824:localhost:node-626bfc24-c819-4629-89a2-3fdcf4420596:Node 626bfc24-c819-4629-89a2-3fdcf4420596 :: false

2021-01-17 21:35:07 | [Mutex] waiting for: [received:nodes:70f299ac-1110-4963-80a4-f84761a3c541:localhost]

2021-01-17 21:35:07 | [Mutex] received everything.

2021-01-17 21:35:07 | [Mutex] isItemNotified: received:node:70f299ac-1110-4963-80a4-f84761a3c541:localhost:node-626bfc24-c819-4629-89a2-3fdcf4420596:Node 626bfc24-c819-4629-89a2-3fdcf4420596 :: false

publishItemsToNodes 0.065s
2021-01-17 21:35:04 |

2021-01-17 21:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:04 | ------------------------------------

2021-01-17 21:35:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-626bfc24-c819-4629-89a2-3fdcf4420596",
    "entry": "<test>item-e48e8254-f397-4a71-946e-1b03625cf658</test>",
    "item-id": "item-e48e8254-f397-4a71-946e-1b03625cf658"
}

2021-01-17 21:35:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e48e8254-f397-4a71-946e-1b03625cf658"
}

2021-01-17 21:35:04 | [Mutex] received everything.

2021-01-17 21:35:04 | [Mutex] isItemNotified: published:item:notifieditem-e48e8254-f397-4a71-946e-1b03625cf658:admin@test-domain.com :: true

retractItemsFromNodes 0.073s
2021-01-17 21:35:05 |

2021-01-17 21:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:05 | ------------------------------------

2021-01-17 21:35:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-626bfc24-c819-4629-89a2-3fdcf4420596",
    "item-id": "item-e48e8254-f397-4a71-946e-1b03625cf658"
}

2021-01-17 21:35:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e48e8254-f397-4a71-946e-1b03625cf658"
}

2021-01-17 21:35:05 | [Mutex] waiting for: [retracted:item:notifieditem-e48e8254-f397-4a71-946e-1b03625cf658:admin@test-domain.com]

2021-01-17 21:35:05 | [Mutex] received everything.

2021-01-17 21:35:05 | [Mutex] isItemNotified: retracted:item:notifieditem-e48e8254-f397-4a71-946e-1b03625cf658:admin@test-domain.com :: true

retrieveItemsFromNodes 0.110s
2021-01-17 21:35:04 |

2021-01-17 21:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:04 | ------------------------------------

2021-01-17 21:35:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-626bfc24-c819-4629-89a2-3fdcf4420596",
    "item-id": "item-e48e8254-f397-4a71-946e-1b03625cf658"
}

2021-01-17 21:35:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-626bfc24-c819-4629-89a2-3fdcf4420596",
    "item-id": "item-e48e8254-f397-4a71-946e-1b03625cf658",
    "item": [
        "<item id=\"item-e48e8254-f397-4a71-946e-1b03625cf658\"><test>item-e48e8254-f397-4a71-946e-1b03625cf658</test></item>"
    ]
}

2021-01-17 21:35:05 | [Mutex] notify: [retrieved:item:item-e48e8254-f397-4a71-946e-1b03625cf658:payload-matches:true:localhost]

2021-01-17 21:35:05 | [Mutex] received everything.

2021-01-17 21:35:05 | [Mutex] isItemNotified: retrieved:item:item-e48e8254-f397-4a71-946e-1b03625cf658:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-17 21:35:05 |

2021-01-17 21:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:05 | ------------------------------------

2021-01-17 21:35:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-17 21:35:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-657c45db-1ccd-437c-8b39-c39c8100fa15",
        "node-626bfc24-c819-4629-89a2-3fdcf4420596"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-01-17 21:35:05 |

2021-01-17 21:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:05 | ------------------------------------

2021-01-17 21:35:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-626bfc24-c819-4629-89a2-3fdcf4420596)"
}

2021-01-17 21:35:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-01-17 21:35:03 |

2021-01-17 21:35:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:03 | ------------------------------------

2021-01-17 21:35:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-626bfc24-c819-4629-89a2-3fdcf4420596",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-17 21:35:03 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.117s
2021-01-17 21:35:05 |

2021-01-17 21:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-17 21:35:05 | ------------------------------------

2021-01-17 21:35:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-626bfc24-c819-4629-89a2-3fdcf4420596",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-17 21:35:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}