Generated by TestNG with ReportNG at 22:17 PDT on Tuesday 05 July 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.666s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2022-07-05 22:32:05 |

2022-07-05 22:32:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:05 | ------------------------------------

2022-07-05 22:32:05 | [Mutex] waiting for: [configured:node:node-dd887f54-9ca8-40b4-8b46-5e6b02586650:node-6189e269-8458-4ff9-87f7-e28df079ba8b]

2022-07-05 22:32:05 | [Mutex] received everything.

2022-07-05 22:32:05 | [Mutex] isItemNotified: configured:node:node-dd887f54-9ca8-40b4-8b46-5e6b02586650:node-6189e269-8458-4ff9-87f7-e28df079ba8b :: true

2022-07-05 22:32:06 | [Mutex] waiting for: [received:nodes:1680adc1-ff22-4ac1-b947-48a11b3fe342:localhost]

2022-07-05 22:32:06 | [Mutex] received everything.

2022-07-05 22:32:06 | [Mutex] isItemNotified: received:node:1680adc1-ff22-4ac1-b947-48a11b3fe342:localhost:node-dd887f54-9ca8-40b4-8b46-5e6b02586650:Node dd887f54-9ca8-40b4-8b46-5e6b02586650 :: true

2022-07-05 22:32:06 | [Mutex] waiting for: [received:nodes:0d99c1cc-3cc6-457a-b221-23d25037d09a:localhost]

2022-07-05 22:32:06 | [Mutex] received everything.

2022-07-05 22:32:06 | [Mutex] isItemNotified: received:node:0d99c1cc-3cc6-457a-b221-23d25037d09a:localhost:node-dd887f54-9ca8-40b4-8b46-5e6b02586650:Node dd887f54-9ca8-40b4-8b46-5e6b02586650 :: false

createNodes 1.558s
2022-07-05 22:32:02 |

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

2022-07-05 22:32:02 | ------------------------------------

2022-07-05 22:32:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-dd887f54-9ca8-40b4-8b46-5e6b02586650",
    "pubsub#title": "Node dd887f54-9ca8-40b4-8b46-5e6b02586650"
}

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

2022-07-05 22:32:04 | [Mutex] waiting for: [received:nodes:be38e470-c92b-4e9a-aa1b-111dbfd18b89:localhost]

2022-07-05 22:32:04 | [Mutex] received everything.

2022-07-05 22:32:04 | [Mutex] isItemNotified: received:node:be38e470-c92b-4e9a-aa1b-111dbfd18b89:localhost:node-dd887f54-9ca8-40b4-8b46-5e6b02586650:Node dd887f54-9ca8-40b4-8b46-5e6b02586650 :: true

createSubnodes 1.074s
2022-07-05 22:32:04 |

2022-07-05 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:04 | ------------------------------------

2022-07-05 22:32:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6189e269-8458-4ff9-87f7-e28df079ba8b",
    "pubsub#title": "Node 6189e269-8458-4ff9-87f7-e28df079ba8b"
}

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

2022-07-05 22:32:05 | [Mutex] waiting for: [received:nodes:6d26a188-1083-4679-b408-6289cebcb977:localhost]

2022-07-05 22:32:05 | [Mutex] waiting for: [received:nodes:6d26a188-1083-4679-b408-6289cebcb977:localhost]

2022-07-05 22:32:05 | [Mutex] received everything.

2022-07-05 22:32:05 | [Mutex] isItemNotified: received:node:6d26a188-1083-4679-b408-6289cebcb977:localhost:node-6189e269-8458-4ff9-87f7-e28df079ba8b:Node 6189e269-8458-4ff9-87f7-e28df079ba8b :: true

deleteNodes 1.023s
2022-07-05 22:32:09 |

2022-07-05 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:09 | ------------------------------------

2022-07-05 22:32:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6189e269-8458-4ff9-87f7-e28df079ba8b"
}

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

2022-07-05 22:32:10 | [Mutex] waiting for: [received:nodes:009f9cb7-8af4-4b7a-8d92-0bd28dd59f94:localhost]

2022-07-05 22:32:10 | [Mutex] waiting for: [received:nodes:009f9cb7-8af4-4b7a-8d92-0bd28dd59f94:localhost]

2022-07-05 22:32:10 | [Mutex] waiting for: [received:nodes:009f9cb7-8af4-4b7a-8d92-0bd28dd59f94:localhost]

2022-07-05 22:32:10 | [Mutex] received everything.

2022-07-05 22:32:10 | [Mutex] isItemNotified: received:node:009f9cb7-8af4-4b7a-8d92-0bd28dd59f94:localhost:node-6189e269-8458-4ff9-87f7-e28df079ba8b:Node 6189e269-8458-4ff9-87f7-e28df079ba8b :: false

deleteSubnodes 1.028s
2022-07-05 22:32:08 |

2022-07-05 22:32:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:08 | ------------------------------------

2022-07-05 22:32:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dd887f54-9ca8-40b4-8b46-5e6b02586650"
}

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

2022-07-05 22:32:09 | [Mutex] waiting for: [received:nodes:b90b06b2-87de-4a32-b76c-ecdec5360291:localhost]

2022-07-05 22:32:09 | [Mutex] waiting for: [received:nodes:b90b06b2-87de-4a32-b76c-ecdec5360291:localhost]

2022-07-05 22:32:09 | [Mutex] waiting for: [received:nodes:b90b06b2-87de-4a32-b76c-ecdec5360291:localhost]

2022-07-05 22:32:09 | [Mutex] waiting for: [received:nodes:b90b06b2-87de-4a32-b76c-ecdec5360291:localhost]

2022-07-05 22:32:09 | [Mutex] received everything.

2022-07-05 22:32:09 | [Mutex] isItemNotified: received:node:b90b06b2-87de-4a32-b76c-ecdec5360291:localhost:node-dd887f54-9ca8-40b4-8b46-5e6b02586650:Node dd887f54-9ca8-40b4-8b46-5e6b02586650 :: false

2022-07-05 22:32:09 | [Mutex] waiting for: [received:nodes:2a3c4049-ab14-4ec7-acc8-1abc7f04f3fe:localhost]

2022-07-05 22:32:09 | [Mutex] received everything.

2022-07-05 22:32:09 | [Mutex] isItemNotified: received:node:2a3c4049-ab14-4ec7-acc8-1abc7f04f3fe:localhost:node-dd887f54-9ca8-40b4-8b46-5e6b02586650:Node dd887f54-9ca8-40b4-8b46-5e6b02586650 :: false

publishItemsToNodes 0.044s
2022-07-05 22:32:07 |

2022-07-05 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:07 | ------------------------------------

2022-07-05 22:32:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dd887f54-9ca8-40b4-8b46-5e6b02586650",
    "entry": "<test>item-85b181aa-7d25-46f7-8c61-8e6ec9df922a</test>",
    "item-id": "item-85b181aa-7d25-46f7-8c61-8e6ec9df922a"
}

2022-07-05 22:32:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85b181aa-7d25-46f7-8c61-8e6ec9df922a"
}

2022-07-05 22:32:07 | [Mutex] received everything.

2022-07-05 22:32:07 | [Mutex] isItemNotified: published:item:notifieditem-85b181aa-7d25-46f7-8c61-8e6ec9df922a:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2022-07-05 22:32:07 |

2022-07-05 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:07 | ------------------------------------

2022-07-05 22:32:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dd887f54-9ca8-40b4-8b46-5e6b02586650",
    "item-id": "item-85b181aa-7d25-46f7-8c61-8e6ec9df922a"
}

2022-07-05 22:32:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85b181aa-7d25-46f7-8c61-8e6ec9df922a"
}

2022-07-05 22:32:07 | [Mutex] waiting for: [retracted:item:notifieditem-85b181aa-7d25-46f7-8c61-8e6ec9df922a:admin@test-domain.com]

2022-07-05 22:32:07 | [Mutex] received everything.

2022-07-05 22:32:07 | [Mutex] isItemNotified: retracted:item:notifieditem-85b181aa-7d25-46f7-8c61-8e6ec9df922a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2022-07-05 22:32:07 |

2022-07-05 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:07 | ------------------------------------

2022-07-05 22:32:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dd887f54-9ca8-40b4-8b46-5e6b02586650",
    "item-id": "item-85b181aa-7d25-46f7-8c61-8e6ec9df922a"
}

2022-07-05 22:32:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dd887f54-9ca8-40b4-8b46-5e6b02586650",
    "item-id": "item-85b181aa-7d25-46f7-8c61-8e6ec9df922a",
    "item": [
        "<item id=\"item-85b181aa-7d25-46f7-8c61-8e6ec9df922a\"><test>item-85b181aa-7d25-46f7-8c61-8e6ec9df922a</test></item>"
    ]
}

2022-07-05 22:32:07 | [Mutex] notify: [retrieved:item:item-85b181aa-7d25-46f7-8c61-8e6ec9df922a:payload-matches:true:localhost]

2022-07-05 22:32:07 | [Mutex] received everything.

2022-07-05 22:32:07 | [Mutex] isItemNotified: retrieved:item:item-85b181aa-7d25-46f7-8c61-8e6ec9df922a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2022-07-05 22:32:07 |

2022-07-05 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:07 | ------------------------------------

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

2022-07-05 22:32:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6189e269-8458-4ff9-87f7-e28df079ba8b",
        "test",
        "node-dd887f54-9ca8-40b4-8b46-5e6b02586650"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-05 22:32:07 |

2022-07-05 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:07 | ------------------------------------

2022-07-05 22:32:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dd887f54-9ca8-40b4-8b46-5e6b02586650)"
}

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

subscribeNodes 1.012s
2022-07-05 22:32:06 |

2022-07-05 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:06 | ------------------------------------

2022-07-05 22:32:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dd887f54-9ca8-40b4-8b46-5e6b02586650",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.064s
2022-07-05 22:32:07 |

2022-07-05 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-05 22:32:07 | ------------------------------------

2022-07-05 22:32:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dd887f54-9ca8-40b4-8b46-5e6b02586650",
    "jids": [
        "admin@test-domain.com"
    ]
}

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