Generated by TestNG with ReportNG at 22:54 PDT on Monday 17 October 2022
root@f9c07ffec79b / 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.732s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-10-17 23:16:58 |

2022-10-17 23:16:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:16:58 | ------------------------------------

2022-10-17 23:16:58 | [Mutex] waiting for: [configured:node:node-e3a76378-35ff-48b0-93bd-b84733f7e074:node-44ac7301-c54f-445f-92ec-a9a5a90ee91e]

2022-10-17 23:16:58 | [Mutex] received everything.

2022-10-17 23:16:58 | [Mutex] isItemNotified: configured:node:node-e3a76378-35ff-48b0-93bd-b84733f7e074:node-44ac7301-c54f-445f-92ec-a9a5a90ee91e :: true

2022-10-17 23:16:59 | [Mutex] waiting for: [received:nodes:911128ad-3f5a-471e-87aa-5f334ddb4b16:localhost]

2022-10-17 23:16:59 | [Mutex] received everything.

2022-10-17 23:16:59 | [Mutex] isItemNotified: received:node:911128ad-3f5a-471e-87aa-5f334ddb4b16:localhost:node-e3a76378-35ff-48b0-93bd-b84733f7e074:Node e3a76378-35ff-48b0-93bd-b84733f7e074 :: true

2022-10-17 23:16:59 | [Mutex] waiting for: [received:nodes:a56a0c76-d03f-4574-bbf4-56fa618ea801:localhost]

2022-10-17 23:16:59 | [Mutex] received everything.

2022-10-17 23:16:59 | [Mutex] isItemNotified: received:node:a56a0c76-d03f-4574-bbf4-56fa618ea801:localhost:node-e3a76378-35ff-48b0-93bd-b84733f7e074:Node e3a76378-35ff-48b0-93bd-b84733f7e074 :: false

createNodes 1.682s
2022-10-17 23:16:55 |

2022-10-17 23:16:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:16:55 | ------------------------------------

2022-10-17 23:16:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e3a76378-35ff-48b0-93bd-b84733f7e074",
    "pubsub#title": "Node e3a76378-35ff-48b0-93bd-b84733f7e074"
}

2022-10-17 23:16:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-17 23:16:57 | [Mutex] waiting for: [received:nodes:bfbd760d-ef6e-4b46-9a9d-4229387c7762:localhost]

2022-10-17 23:16:57 | [Mutex] received everything.

2022-10-17 23:16:57 | [Mutex] isItemNotified: received:node:bfbd760d-ef6e-4b46-9a9d-4229387c7762:localhost:node-e3a76378-35ff-48b0-93bd-b84733f7e074:Node e3a76378-35ff-48b0-93bd-b84733f7e074 :: true

createSubnodes 1.018s
2022-10-17 23:16:57 |

2022-10-17 23:16:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:16:57 | ------------------------------------

2022-10-17 23:16:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-44ac7301-c54f-445f-92ec-a9a5a90ee91e",
    "pubsub#title": "Node 44ac7301-c54f-445f-92ec-a9a5a90ee91e"
}

2022-10-17 23:16:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-17 23:16:58 | [Mutex] waiting for: [received:nodes:3dccb14a-a401-41b6-9b10-afa3418b66f9:localhost]

2022-10-17 23:16:58 | [Mutex] waiting for: [received:nodes:3dccb14a-a401-41b6-9b10-afa3418b66f9:localhost]

2022-10-17 23:16:58 | [Mutex] waiting for: [received:nodes:3dccb14a-a401-41b6-9b10-afa3418b66f9:localhost]

2022-10-17 23:16:58 | [Mutex] received everything.

2022-10-17 23:16:58 | [Mutex] isItemNotified: received:node:3dccb14a-a401-41b6-9b10-afa3418b66f9:localhost:node-44ac7301-c54f-445f-92ec-a9a5a90ee91e:Node 44ac7301-c54f-445f-92ec-a9a5a90ee91e :: true

deleteNodes 1.024s
2022-10-17 23:17:02 |

2022-10-17 23:17:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:17:02 | ------------------------------------

2022-10-17 23:17:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-44ac7301-c54f-445f-92ec-a9a5a90ee91e"
}

2022-10-17 23:17:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-17 23:17:03 | [Mutex] waiting for: [received:nodes:4e63d162-97cb-4415-8e7e-672d397a5056:localhost]

2022-10-17 23:17:03 | [Mutex] waiting for: [received:nodes:4e63d162-97cb-4415-8e7e-672d397a5056:localhost]

2022-10-17 23:17:03 | [Mutex] waiting for: [received:nodes:4e63d162-97cb-4415-8e7e-672d397a5056:localhost]

2022-10-17 23:17:03 | [Mutex] received everything.

2022-10-17 23:17:03 | [Mutex] isItemNotified: received:node:4e63d162-97cb-4415-8e7e-672d397a5056:localhost:node-44ac7301-c54f-445f-92ec-a9a5a90ee91e:Node 44ac7301-c54f-445f-92ec-a9a5a90ee91e :: false

deleteSubnodes 1.024s
2022-10-17 23:17:01 |

2022-10-17 23:17:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:17:01 | ------------------------------------

2022-10-17 23:17:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e3a76378-35ff-48b0-93bd-b84733f7e074"
}

2022-10-17 23:17:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-17 23:17:02 | [Mutex] waiting for: [received:nodes:d76f0656-2ef5-4de9-a404-95660579077f:localhost]

2022-10-17 23:17:02 | [Mutex] waiting for: [received:nodes:d76f0656-2ef5-4de9-a404-95660579077f:localhost]

2022-10-17 23:17:02 | [Mutex] received everything.

2022-10-17 23:17:02 | [Mutex] isItemNotified: received:node:d76f0656-2ef5-4de9-a404-95660579077f:localhost:node-e3a76378-35ff-48b0-93bd-b84733f7e074:Node e3a76378-35ff-48b0-93bd-b84733f7e074 :: false

2022-10-17 23:17:02 | [Mutex] waiting for: [received:nodes:ee0930fc-6e14-4d39-afe5-0aeb616c8d8b:localhost]

2022-10-17 23:17:02 | [Mutex] received everything.

2022-10-17 23:17:02 | [Mutex] isItemNotified: received:node:ee0930fc-6e14-4d39-afe5-0aeb616c8d8b:localhost:node-e3a76378-35ff-48b0-93bd-b84733f7e074:Node e3a76378-35ff-48b0-93bd-b84733f7e074 :: false

publishItemsToNodes 0.055s
2022-10-17 23:17:00 |

2022-10-17 23:17:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:17:00 | ------------------------------------

2022-10-17 23:17:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e3a76378-35ff-48b0-93bd-b84733f7e074",
    "entry": "<test>item-57292829-67f0-4c7a-b592-c34d836dcbcb</test>",
    "item-id": "item-57292829-67f0-4c7a-b592-c34d836dcbcb"
}

2022-10-17 23:17:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-57292829-67f0-4c7a-b592-c34d836dcbcb"
}

2022-10-17 23:17:00 | [Mutex] waiting for: [published:item:notifieditem-57292829-67f0-4c7a-b592-c34d836dcbcb:admin@test-domain.com]

2022-10-17 23:17:00 | [Mutex] received everything.

2022-10-17 23:17:00 | [Mutex] isItemNotified: published:item:notifieditem-57292829-67f0-4c7a-b592-c34d836dcbcb:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-10-17 23:17:00 |

2022-10-17 23:17:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:17:00 | ------------------------------------

2022-10-17 23:17:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e3a76378-35ff-48b0-93bd-b84733f7e074",
    "item-id": "item-57292829-67f0-4c7a-b592-c34d836dcbcb"
}

2022-10-17 23:17:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-57292829-67f0-4c7a-b592-c34d836dcbcb"
}

2022-10-17 23:17:00 | [Mutex] received everything.

2022-10-17 23:17:00 | [Mutex] isItemNotified: retracted:item:notifieditem-57292829-67f0-4c7a-b592-c34d836dcbcb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2022-10-17 23:17:00 |

2022-10-17 23:17:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:17:00 | ------------------------------------

2022-10-17 23:17:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e3a76378-35ff-48b0-93bd-b84733f7e074",
    "item-id": "item-57292829-67f0-4c7a-b592-c34d836dcbcb"
}

2022-10-17 23:17:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e3a76378-35ff-48b0-93bd-b84733f7e074",
    "item-id": "item-57292829-67f0-4c7a-b592-c34d836dcbcb",
    "item": [
        "<item id=\"item-57292829-67f0-4c7a-b592-c34d836dcbcb\"><test>item-57292829-67f0-4c7a-b592-c34d836dcbcb</test></item>"
    ]
}

2022-10-17 23:17:00 | [Mutex] notify: [retrieved:item:item-57292829-67f0-4c7a-b592-c34d836dcbcb:payload-matches:true:localhost]

2022-10-17 23:17:00 | [Mutex] received everything.

2022-10-17 23:17:00 | [Mutex] isItemNotified: retrieved:item:item-57292829-67f0-4c7a-b592-c34d836dcbcb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-10-17 23:17:00 |

2022-10-17 23:17:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:17:00 | ------------------------------------

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

2022-10-17 23:17:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-44ac7301-c54f-445f-92ec-a9a5a90ee91e",
        "node-e3a76378-35ff-48b0-93bd-b84733f7e074"
    ]
}

retrieveUserSubscriptionsWithRegex 0.046s
2022-10-17 23:17:00 |

2022-10-17 23:17:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:17:00 | ------------------------------------

2022-10-17 23:17:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e3a76378-35ff-48b0-93bd-b84733f7e074)"
}

2022-10-17 23:17:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.007s
2022-10-17 23:16:59 |

2022-10-17 23:16:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:16:59 | ------------------------------------

2022-10-17 23:16:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e3a76378-35ff-48b0-93bd-b84733f7e074",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-17 23:16:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2022-10-17 23:17:00 |

2022-10-17 23:17:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 23:17:00 | ------------------------------------

2022-10-17 23:17:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e3a76378-35ff-48b0-93bd-b84733f7e074",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-17 23:17:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}