Generated by TestNG with ReportNG at 22:23 PDT on Tuesday 24 May 2022
root@21fb2cc9076b / 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.775s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2022-05-24 22:37:39 |

2022-05-24 22:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:39 | ------------------------------------

2022-05-24 22:37:39 | [Mutex] waiting for: [configured:node:node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43:node-1cb96256-0ee7-4b72-b122-dcf85d5595ec]

2022-05-24 22:37:39 | [Mutex] received everything.

2022-05-24 22:37:39 | [Mutex] isItemNotified: configured:node:node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43:node-1cb96256-0ee7-4b72-b122-dcf85d5595ec :: true

2022-05-24 22:37:40 | [Mutex] waiting for: [received:nodes:85d5cfc6-6dad-4151-9c60-8bc1ab2ee2d2:localhost]

2022-05-24 22:37:40 | [Mutex] received everything.

2022-05-24 22:37:40 | [Mutex] isItemNotified: received:node:85d5cfc6-6dad-4151-9c60-8bc1ab2ee2d2:localhost:node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43:Node dc9d578a-7a6b-428a-8d98-a74ad25f3e43 :: true

2022-05-24 22:37:40 | [Mutex] waiting for: [received:nodes:767c733d-a7a4-413b-80c3-f18e6c3da4eb:localhost]

2022-05-24 22:37:40 | [Mutex] received everything.

2022-05-24 22:37:40 | [Mutex] isItemNotified: received:node:767c733d-a7a4-413b-80c3-f18e6c3da4eb:localhost:node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43:Node dc9d578a-7a6b-428a-8d98-a74ad25f3e43 :: false

createNodes 1.745s
2022-05-24 22:37:36 |

2022-05-24 22:37:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:36 | ------------------------------------

2022-05-24 22:37:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43",
    "pubsub#title": "Node dc9d578a-7a6b-428a-8d98-a74ad25f3e43"
}

2022-05-24 22:37:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 22:37:38 | [Mutex] waiting for: [received:nodes:88418f01-7c3a-4388-b886-f7501c7f32ca:localhost]

2022-05-24 22:37:38 | [Mutex] waiting for: [received:nodes:88418f01-7c3a-4388-b886-f7501c7f32ca:localhost]

2022-05-24 22:37:38 | [Mutex] received everything.

2022-05-24 22:37:38 | [Mutex] isItemNotified: received:node:88418f01-7c3a-4388-b886-f7501c7f32ca:localhost:node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43:Node dc9d578a-7a6b-428a-8d98-a74ad25f3e43 :: true

createSubnodes 1.021s
2022-05-24 22:37:38 |

2022-05-24 22:37:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:38 | ------------------------------------

2022-05-24 22:37:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1cb96256-0ee7-4b72-b122-dcf85d5595ec",
    "pubsub#title": "Node 1cb96256-0ee7-4b72-b122-dcf85d5595ec"
}

2022-05-24 22:37:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 22:37:39 | [Mutex] waiting for: [received:nodes:5765bea5-b78b-48a1-92d7-64f078b5f338:localhost]

2022-05-24 22:37:39 | [Mutex] received everything.

2022-05-24 22:37:39 | [Mutex] isItemNotified: received:node:5765bea5-b78b-48a1-92d7-64f078b5f338:localhost:node-1cb96256-0ee7-4b72-b122-dcf85d5595ec:Node 1cb96256-0ee7-4b72-b122-dcf85d5595ec :: true

deleteNodes 1.020s
2022-05-24 22:37:44 |

2022-05-24 22:37:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:44 | ------------------------------------

2022-05-24 22:37:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1cb96256-0ee7-4b72-b122-dcf85d5595ec"
}

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

2022-05-24 22:37:45 | [Mutex] waiting for: [received:nodes:c7a30d24-f60b-45f6-8711-cebbe353cb4d:localhost]

2022-05-24 22:37:45 | [Mutex] received everything.

2022-05-24 22:37:45 | [Mutex] isItemNotified: received:node:c7a30d24-f60b-45f6-8711-cebbe353cb4d:localhost:node-1cb96256-0ee7-4b72-b122-dcf85d5595ec:Node 1cb96256-0ee7-4b72-b122-dcf85d5595ec :: false

deleteSubnodes 1.024s
2022-05-24 22:37:43 |

2022-05-24 22:37:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:43 | ------------------------------------

2022-05-24 22:37:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43"
}

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

2022-05-24 22:37:44 | [Mutex] waiting for: [received:nodes:cc41bcc4-8487-4dbf-8273-33abdd25a011:localhost]

2022-05-24 22:37:44 | [Mutex] received everything.

2022-05-24 22:37:44 | [Mutex] isItemNotified: received:node:cc41bcc4-8487-4dbf-8273-33abdd25a011:localhost:node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43:Node dc9d578a-7a6b-428a-8d98-a74ad25f3e43 :: false

2022-05-24 22:37:44 | [Mutex] waiting for: [received:nodes:cdbe0456-bb53-42dd-975b-b0d411f2070b:localhost]

2022-05-24 22:37:44 | [Mutex] received everything.

2022-05-24 22:37:44 | [Mutex] isItemNotified: received:node:cdbe0456-bb53-42dd-975b-b0d411f2070b:localhost:node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43:Node dc9d578a-7a6b-428a-8d98-a74ad25f3e43 :: false

publishItemsToNodes 0.026s
2022-05-24 22:37:41 |

2022-05-24 22:37:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:41 | ------------------------------------

2022-05-24 22:37:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43",
    "entry": "<test>item-7f0769d4-f8c5-4321-bacf-3520ecbb3565</test>",
    "item-id": "item-7f0769d4-f8c5-4321-bacf-3520ecbb3565"
}

2022-05-24 22:37:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7f0769d4-f8c5-4321-bacf-3520ecbb3565"
}

2022-05-24 22:37:41 | [Mutex] waiting for: [published:item:notifieditem-7f0769d4-f8c5-4321-bacf-3520ecbb3565:admin@test-domain.com]

2022-05-24 22:37:41 | [Mutex] received everything.

2022-05-24 22:37:41 | [Mutex] isItemNotified: published:item:notifieditem-7f0769d4-f8c5-4321-bacf-3520ecbb3565:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-05-24 22:37:41 |

2022-05-24 22:37:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:41 | ------------------------------------

2022-05-24 22:37:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43",
    "item-id": "item-7f0769d4-f8c5-4321-bacf-3520ecbb3565"
}

2022-05-24 22:37:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7f0769d4-f8c5-4321-bacf-3520ecbb3565"
}

2022-05-24 22:37:42 | [Mutex] received everything.

2022-05-24 22:37:42 | [Mutex] isItemNotified: retracted:item:notifieditem-7f0769d4-f8c5-4321-bacf-3520ecbb3565:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2022-05-24 22:37:41 |

2022-05-24 22:37:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:41 | ------------------------------------

2022-05-24 22:37:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43",
    "item-id": "item-7f0769d4-f8c5-4321-bacf-3520ecbb3565"
}

2022-05-24 22:37:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43",
    "item-id": "item-7f0769d4-f8c5-4321-bacf-3520ecbb3565",
    "item": [
        "<item id=\"item-7f0769d4-f8c5-4321-bacf-3520ecbb3565\"><test>item-7f0769d4-f8c5-4321-bacf-3520ecbb3565</test></item>"
    ]
}

2022-05-24 22:37:41 | [Mutex] notify: [retrieved:item:item-7f0769d4-f8c5-4321-bacf-3520ecbb3565:payload-matches:true:localhost]

2022-05-24 22:37:41 | [Mutex] received everything.

2022-05-24 22:37:41 | [Mutex] isItemNotified: retrieved:item:item-7f0769d4-f8c5-4321-bacf-3520ecbb3565:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-05-24 22:37:41 |

2022-05-24 22:37:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:41 | ------------------------------------

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

2022-05-24 22:37:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43",
        "node-1cb96256-0ee7-4b72-b122-dcf85d5595ec"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-05-24 22:37:41 |

2022-05-24 22:37:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:41 | ------------------------------------

2022-05-24 22:37:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43)"
}

2022-05-24 22:37:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-05-24 22:37:40 |

2022-05-24 22:37:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:40 | ------------------------------------

2022-05-24 22:37:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-24 22:37:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-05-24 22:37:42 |

2022-05-24 22:37:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 22:37:42 | ------------------------------------

2022-05-24 22:37:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dc9d578a-7a6b-428a-8d98-a74ad25f3e43",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-24 22:37:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}