Generated by TestNG with ReportNG at 00:12 PDT on Sunday 05 November 2023
root@8dfa9d99ff97 / Java 17.0.8 (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.605s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2023-11-05 00:27:13 |

2023-11-05 00:27:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:13 | ------------------------------------

2023-11-05 00:27:13 | [Mutex] waiting for: [configured:node:node-b3585de2-75b9-46c7-8286-11b1fc63ea6e:node-02d78050-f155-490e-a4f3-4ca58d8b4a22]

2023-11-05 00:27:13 | [Mutex] received everything.

2023-11-05 00:27:13 | [Mutex] isItemNotified: configured:node:node-b3585de2-75b9-46c7-8286-11b1fc63ea6e:node-02d78050-f155-490e-a4f3-4ca58d8b4a22 :: true

2023-11-05 00:27:14 | [Mutex] waiting for: [received:nodes:a3e91732-5378-4b38-89b2-55181a192c28:localhost]

2023-11-05 00:27:14 | [Mutex] received everything.

2023-11-05 00:27:14 | [Mutex] isItemNotified: received:node:a3e91732-5378-4b38-89b2-55181a192c28:localhost:node-b3585de2-75b9-46c7-8286-11b1fc63ea6e:Node b3585de2-75b9-46c7-8286-11b1fc63ea6e :: true

2023-11-05 00:27:14 | [Mutex] waiting for: [received:nodes:c4caf4c9-bd45-406e-87eb-a4fe2b760ebd:localhost]

2023-11-05 00:27:14 | [Mutex] waiting for: [received:nodes:c4caf4c9-bd45-406e-87eb-a4fe2b760ebd:localhost]

2023-11-05 00:27:14 | [Mutex] waiting for: [received:nodes:c4caf4c9-bd45-406e-87eb-a4fe2b760ebd:localhost]

2023-11-05 00:27:14 | [Mutex] waiting for: [received:nodes:c4caf4c9-bd45-406e-87eb-a4fe2b760ebd:localhost]

2023-11-05 00:27:14 | [Mutex] received everything.

2023-11-05 00:27:14 | [Mutex] isItemNotified: received:node:c4caf4c9-bd45-406e-87eb-a4fe2b760ebd:localhost:node-b3585de2-75b9-46c7-8286-11b1fc63ea6e:Node b3585de2-75b9-46c7-8286-11b1fc63ea6e :: false

createNodes 1.679s
2023-11-05 00:27:10 |

2023-11-05 00:27:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:10 | ------------------------------------

2023-11-05 00:27:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b3585de2-75b9-46c7-8286-11b1fc63ea6e",
    "pubsub#title": "Node b3585de2-75b9-46c7-8286-11b1fc63ea6e"
}

2023-11-05 00:27:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 00:27:12 | [Mutex] waiting for: [received:nodes:f05fa806-ad9e-44f1-9337-89bfae776779:localhost]

2023-11-05 00:27:12 | [Mutex] waiting for: [received:nodes:f05fa806-ad9e-44f1-9337-89bfae776779:localhost]

2023-11-05 00:27:12 | [Mutex] waiting for: [received:nodes:f05fa806-ad9e-44f1-9337-89bfae776779:localhost]

2023-11-05 00:27:12 | [Mutex] waiting for: [received:nodes:f05fa806-ad9e-44f1-9337-89bfae776779:localhost]

2023-11-05 00:27:12 | [Mutex] received everything.

2023-11-05 00:27:12 | [Mutex] isItemNotified: received:node:f05fa806-ad9e-44f1-9337-89bfae776779:localhost:node-b3585de2-75b9-46c7-8286-11b1fc63ea6e:Node b3585de2-75b9-46c7-8286-11b1fc63ea6e :: true

createSubnodes 1.019s
2023-11-05 00:27:12 |

2023-11-05 00:27:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:12 | ------------------------------------

2023-11-05 00:27:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-02d78050-f155-490e-a4f3-4ca58d8b4a22",
    "pubsub#title": "Node 02d78050-f155-490e-a4f3-4ca58d8b4a22"
}

2023-11-05 00:27:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 00:27:13 | [Mutex] waiting for: [received:nodes:a9fe1f48-f361-4825-b061-f5fb8e13661b:localhost]

2023-11-05 00:27:13 | [Mutex] waiting for: [received:nodes:a9fe1f48-f361-4825-b061-f5fb8e13661b:localhost]

2023-11-05 00:27:13 | [Mutex] waiting for: [received:nodes:a9fe1f48-f361-4825-b061-f5fb8e13661b:localhost]

2023-11-05 00:27:13 | [Mutex] waiting for: [received:nodes:a9fe1f48-f361-4825-b061-f5fb8e13661b:localhost]

2023-11-05 00:27:13 | [Mutex] waiting for: [received:nodes:a9fe1f48-f361-4825-b061-f5fb8e13661b:localhost]

2023-11-05 00:27:13 | [Mutex] received everything.

2023-11-05 00:27:13 | [Mutex] isItemNotified: received:node:a9fe1f48-f361-4825-b061-f5fb8e13661b:localhost:node-02d78050-f155-490e-a4f3-4ca58d8b4a22:Node 02d78050-f155-490e-a4f3-4ca58d8b4a22 :: true

deleteNodes 1.020s
2023-11-05 00:27:18 |

2023-11-05 00:27:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:18 | ------------------------------------

2023-11-05 00:27:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-02d78050-f155-490e-a4f3-4ca58d8b4a22"
}

2023-11-05 00:27:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 00:27:19 | [Mutex] waiting for: [received:nodes:bda26992-f854-445d-9e84-14e53789de85:localhost]

2023-11-05 00:27:19 | [Mutex] received everything.

2023-11-05 00:27:19 | [Mutex] isItemNotified: received:node:bda26992-f854-445d-9e84-14e53789de85:localhost:node-02d78050-f155-490e-a4f3-4ca58d8b4a22:Node 02d78050-f155-490e-a4f3-4ca58d8b4a22 :: false

deleteSubnodes 1.022s
2023-11-05 00:27:17 |

2023-11-05 00:27:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:17 | ------------------------------------

2023-11-05 00:27:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b3585de2-75b9-46c7-8286-11b1fc63ea6e"
}

2023-11-05 00:27:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 00:27:18 | [Mutex] waiting for: [received:nodes:a4c4ace5-042d-47a3-b6cd-994ed68742b1:localhost]

2023-11-05 00:27:18 | [Mutex] waiting for: [received:nodes:a4c4ace5-042d-47a3-b6cd-994ed68742b1:localhost]

2023-11-05 00:27:18 | [Mutex] waiting for: [received:nodes:a4c4ace5-042d-47a3-b6cd-994ed68742b1:localhost]

2023-11-05 00:27:18 | [Mutex] waiting for: [received:nodes:a4c4ace5-042d-47a3-b6cd-994ed68742b1:localhost]

2023-11-05 00:27:18 | [Mutex] received everything.

2023-11-05 00:27:18 | [Mutex] isItemNotified: received:node:a4c4ace5-042d-47a3-b6cd-994ed68742b1:localhost:node-b3585de2-75b9-46c7-8286-11b1fc63ea6e:Node b3585de2-75b9-46c7-8286-11b1fc63ea6e :: false

2023-11-05 00:27:18 | [Mutex] waiting for: [received:nodes:67b311aa-c5d1-477f-8338-c9c5b9349af8:localhost]

2023-11-05 00:27:18 | [Mutex] received everything.

2023-11-05 00:27:18 | [Mutex] isItemNotified: received:node:67b311aa-c5d1-477f-8338-c9c5b9349af8:localhost:node-b3585de2-75b9-46c7-8286-11b1fc63ea6e:Node b3585de2-75b9-46c7-8286-11b1fc63ea6e :: false

publishItemsToNodes 0.026s
2023-11-05 00:27:15 |

2023-11-05 00:27:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:15 | ------------------------------------

2023-11-05 00:27:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b3585de2-75b9-46c7-8286-11b1fc63ea6e",
    "entry": "<test>item-296858f9-e15a-489c-8d6c-4d0e80964acb</test>",
    "item-id": "item-296858f9-e15a-489c-8d6c-4d0e80964acb"
}

2023-11-05 00:27:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-296858f9-e15a-489c-8d6c-4d0e80964acb"
}

2023-11-05 00:27:15 | [Mutex] waiting for: [published:item:notifieditem-296858f9-e15a-489c-8d6c-4d0e80964acb:admin@test-domain.com]

2023-11-05 00:27:15 | [Mutex] received everything.

2023-11-05 00:27:15 | [Mutex] isItemNotified: published:item:notifieditem-296858f9-e15a-489c-8d6c-4d0e80964acb:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-11-05 00:27:15 |

2023-11-05 00:27:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:15 | ------------------------------------

2023-11-05 00:27:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b3585de2-75b9-46c7-8286-11b1fc63ea6e",
    "item-id": "item-296858f9-e15a-489c-8d6c-4d0e80964acb"
}

2023-11-05 00:27:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-296858f9-e15a-489c-8d6c-4d0e80964acb"
}

2023-11-05 00:27:15 | [Mutex] received everything.

2023-11-05 00:27:15 | [Mutex] isItemNotified: retracted:item:notifieditem-296858f9-e15a-489c-8d6c-4d0e80964acb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2023-11-05 00:27:15 |

2023-11-05 00:27:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:15 | ------------------------------------

2023-11-05 00:27:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b3585de2-75b9-46c7-8286-11b1fc63ea6e",
    "item-id": "item-296858f9-e15a-489c-8d6c-4d0e80964acb"
}

2023-11-05 00:27:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b3585de2-75b9-46c7-8286-11b1fc63ea6e",
    "item-id": "item-296858f9-e15a-489c-8d6c-4d0e80964acb",
    "item": [
        "<item id=\"item-296858f9-e15a-489c-8d6c-4d0e80964acb\"><test>item-296858f9-e15a-489c-8d6c-4d0e80964acb</test></item>"
    ]
}

2023-11-05 00:27:15 | [Mutex] notify: [retrieved:item:item-296858f9-e15a-489c-8d6c-4d0e80964acb:payload-matches:true:localhost]

2023-11-05 00:27:15 | [Mutex] received everything.

2023-11-05 00:27:15 | [Mutex] isItemNotified: retrieved:item:item-296858f9-e15a-489c-8d6c-4d0e80964acb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-11-05 00:27:15 |

2023-11-05 00:27:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:15 | ------------------------------------

2023-11-05 00:27:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-11-05 00:27:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-02d78050-f155-490e-a4f3-4ca58d8b4a22",
        "test",
        "node-b3585de2-75b9-46c7-8286-11b1fc63ea6e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-11-05 00:27:15 |

2023-11-05 00:27:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:15 | ------------------------------------

2023-11-05 00:27:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b3585de2-75b9-46c7-8286-11b1fc63ea6e)"
}

2023-11-05 00:27:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-11-05 00:27:14 |

2023-11-05 00:27:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:14 | ------------------------------------

2023-11-05 00:27:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b3585de2-75b9-46c7-8286-11b1fc63ea6e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-05 00:27:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2023-11-05 00:27:15 |

2023-11-05 00:27:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 00:27:15 | ------------------------------------

2023-11-05 00:27:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b3585de2-75b9-46c7-8286-11b1fc63ea6e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-05 00:27:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}