Generated by TestNG with ReportNG at 21:15 PST on Thursday 22 December 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.621s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2022-12-22 21:30:52 |

2022-12-22 21:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:52 | ------------------------------------

2022-12-22 21:30:52 | [Mutex] waiting for: [configured:node:node-27e67c67-89b5-416e-a603-0d16bc1e1aa8:node-f71a0128-1ad3-472b-bfe5-af6524a8cda7]

2022-12-22 21:30:52 | [Mutex] received everything.

2022-12-22 21:30:52 | [Mutex] isItemNotified: configured:node:node-27e67c67-89b5-416e-a603-0d16bc1e1aa8:node-f71a0128-1ad3-472b-bfe5-af6524a8cda7 :: true

2022-12-22 21:30:53 | [Mutex] waiting for: [received:nodes:e04a4b26-231b-44c2-b3cd-8491f478d454:localhost]

2022-12-22 21:30:53 | [Mutex] received everything.

2022-12-22 21:30:53 | [Mutex] isItemNotified: received:node:e04a4b26-231b-44c2-b3cd-8491f478d454:localhost:node-27e67c67-89b5-416e-a603-0d16bc1e1aa8:Node 27e67c67-89b5-416e-a603-0d16bc1e1aa8 :: true

2022-12-22 21:30:53 | [Mutex] waiting for: [received:nodes:dad73196-6d14-4eaf-baa2-0fe5b376dbfb:localhost]

2022-12-22 21:30:53 | [Mutex] waiting for: [received:nodes:dad73196-6d14-4eaf-baa2-0fe5b376dbfb:localhost]

2022-12-22 21:30:53 | [Mutex] waiting for: [received:nodes:dad73196-6d14-4eaf-baa2-0fe5b376dbfb:localhost]

2022-12-22 21:30:53 | [Mutex] waiting for: [received:nodes:dad73196-6d14-4eaf-baa2-0fe5b376dbfb:localhost]

2022-12-22 21:30:53 | [Mutex] received everything.

2022-12-22 21:30:53 | [Mutex] isItemNotified: received:node:dad73196-6d14-4eaf-baa2-0fe5b376dbfb:localhost:node-27e67c67-89b5-416e-a603-0d16bc1e1aa8:Node 27e67c67-89b5-416e-a603-0d16bc1e1aa8 :: false

createNodes 1.553s
2022-12-22 21:30:49 |

2022-12-22 21:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:49 | ------------------------------------

2022-12-22 21:30:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-27e67c67-89b5-416e-a603-0d16bc1e1aa8",
    "pubsub#title": "Node 27e67c67-89b5-416e-a603-0d16bc1e1aa8"
}

2022-12-22 21:30:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-22 21:30:51 | [Mutex] waiting for: [received:nodes:72bdb951-8668-4fc5-a832-144d10b89df2:localhost]

2022-12-22 21:30:51 | [Mutex] waiting for: [received:nodes:72bdb951-8668-4fc5-a832-144d10b89df2:localhost]

2022-12-22 21:30:51 | [Mutex] waiting for: [received:nodes:72bdb951-8668-4fc5-a832-144d10b89df2:localhost]

2022-12-22 21:30:51 | [Mutex] waiting for: [received:nodes:72bdb951-8668-4fc5-a832-144d10b89df2:localhost]

2022-12-22 21:30:51 | [Mutex] received everything.

2022-12-22 21:30:51 | [Mutex] isItemNotified: received:node:72bdb951-8668-4fc5-a832-144d10b89df2:localhost:node-27e67c67-89b5-416e-a603-0d16bc1e1aa8:Node 27e67c67-89b5-416e-a603-0d16bc1e1aa8 :: true

createSubnodes 1.020s
2022-12-22 21:30:51 |

2022-12-22 21:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:51 | ------------------------------------

2022-12-22 21:30:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f71a0128-1ad3-472b-bfe5-af6524a8cda7",
    "pubsub#title": "Node f71a0128-1ad3-472b-bfe5-af6524a8cda7"
}

2022-12-22 21:30:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-22 21:30:52 | [Mutex] waiting for: [received:nodes:8a815b2c-2fcc-47cc-9ccb-6912d3a8df2e:localhost]

2022-12-22 21:30:52 | [Mutex] waiting for: [received:nodes:8a815b2c-2fcc-47cc-9ccb-6912d3a8df2e:localhost]

2022-12-22 21:30:52 | [Mutex] waiting for: [received:nodes:8a815b2c-2fcc-47cc-9ccb-6912d3a8df2e:localhost]

2022-12-22 21:30:52 | [Mutex] waiting for: [received:nodes:8a815b2c-2fcc-47cc-9ccb-6912d3a8df2e:localhost]

2022-12-22 21:30:52 | [Mutex] waiting for: [received:nodes:8a815b2c-2fcc-47cc-9ccb-6912d3a8df2e:localhost]

2022-12-22 21:30:52 | [Mutex] received everything.

2022-12-22 21:30:52 | [Mutex] isItemNotified: received:node:8a815b2c-2fcc-47cc-9ccb-6912d3a8df2e:localhost:node-f71a0128-1ad3-472b-bfe5-af6524a8cda7:Node f71a0128-1ad3-472b-bfe5-af6524a8cda7 :: true

deleteNodes 1.033s
2022-12-22 21:30:57 |

2022-12-22 21:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:57 | ------------------------------------

2022-12-22 21:30:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f71a0128-1ad3-472b-bfe5-af6524a8cda7"
}

2022-12-22 21:30:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-22 21:30:58 | [Mutex] waiting for: [received:nodes:fe01d321-7f44-4abd-8443-cee207c1a2ac:localhost]

2022-12-22 21:30:58 | [Mutex] waiting for: [received:nodes:fe01d321-7f44-4abd-8443-cee207c1a2ac:localhost]

2022-12-22 21:30:58 | [Mutex] waiting for: [received:nodes:fe01d321-7f44-4abd-8443-cee207c1a2ac:localhost]

2022-12-22 21:30:58 | [Mutex] received everything.

2022-12-22 21:30:58 | [Mutex] isItemNotified: received:node:fe01d321-7f44-4abd-8443-cee207c1a2ac:localhost:node-f71a0128-1ad3-472b-bfe5-af6524a8cda7:Node f71a0128-1ad3-472b-bfe5-af6524a8cda7 :: false

deleteSubnodes 1.026s
2022-12-22 21:30:56 |

2022-12-22 21:30:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:56 | ------------------------------------

2022-12-22 21:30:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-27e67c67-89b5-416e-a603-0d16bc1e1aa8"
}

2022-12-22 21:30:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-22 21:30:57 | [Mutex] waiting for: [received:nodes:115693aa-bbf8-46eb-91b5-0e57d2448a4c:localhost]

2022-12-22 21:30:57 | [Mutex] waiting for: [received:nodes:115693aa-bbf8-46eb-91b5-0e57d2448a4c:localhost]

2022-12-22 21:30:57 | [Mutex] waiting for: [received:nodes:115693aa-bbf8-46eb-91b5-0e57d2448a4c:localhost]

2022-12-22 21:30:57 | [Mutex] waiting for: [received:nodes:115693aa-bbf8-46eb-91b5-0e57d2448a4c:localhost]

2022-12-22 21:30:57 | [Mutex] received everything.

2022-12-22 21:30:57 | [Mutex] isItemNotified: received:node:115693aa-bbf8-46eb-91b5-0e57d2448a4c:localhost:node-27e67c67-89b5-416e-a603-0d16bc1e1aa8:Node 27e67c67-89b5-416e-a603-0d16bc1e1aa8 :: false

2022-12-22 21:30:57 | [Mutex] waiting for: [received:nodes:1611eb30-5351-43e6-84f6-45e981190915:localhost]

2022-12-22 21:30:57 | [Mutex] received everything.

2022-12-22 21:30:57 | [Mutex] isItemNotified: received:node:1611eb30-5351-43e6-84f6-45e981190915:localhost:node-27e67c67-89b5-416e-a603-0d16bc1e1aa8:Node 27e67c67-89b5-416e-a603-0d16bc1e1aa8 :: false

publishItemsToNodes 0.051s
2022-12-22 21:30:54 |

2022-12-22 21:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:54 | ------------------------------------

2022-12-22 21:30:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-27e67c67-89b5-416e-a603-0d16bc1e1aa8",
    "entry": "<test>item-4f44ab14-c765-4dec-8e20-2bb2c52fef00</test>",
    "item-id": "item-4f44ab14-c765-4dec-8e20-2bb2c52fef00"
}

2022-12-22 21:30:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f44ab14-c765-4dec-8e20-2bb2c52fef00"
}

2022-12-22 21:30:54 | [Mutex] waiting for: [published:item:notifieditem-4f44ab14-c765-4dec-8e20-2bb2c52fef00:admin@test-domain.com]

2022-12-22 21:30:54 | [Mutex] received everything.

2022-12-22 21:30:54 | [Mutex] isItemNotified: published:item:notifieditem-4f44ab14-c765-4dec-8e20-2bb2c52fef00:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-12-22 21:30:54 |

2022-12-22 21:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:54 | ------------------------------------

2022-12-22 21:30:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-27e67c67-89b5-416e-a603-0d16bc1e1aa8",
    "item-id": "item-4f44ab14-c765-4dec-8e20-2bb2c52fef00"
}

2022-12-22 21:30:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f44ab14-c765-4dec-8e20-2bb2c52fef00"
}

2022-12-22 21:30:54 | [Mutex] received everything.

2022-12-22 21:30:54 | [Mutex] isItemNotified: retracted:item:notifieditem-4f44ab14-c765-4dec-8e20-2bb2c52fef00:admin@test-domain.com :: true

retrieveItemsFromNodes 0.080s
2022-12-22 21:30:54 |

2022-12-22 21:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:54 | ------------------------------------

2022-12-22 21:30:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-27e67c67-89b5-416e-a603-0d16bc1e1aa8",
    "item-id": "item-4f44ab14-c765-4dec-8e20-2bb2c52fef00"
}

2022-12-22 21:30:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-27e67c67-89b5-416e-a603-0d16bc1e1aa8",
    "item-id": "item-4f44ab14-c765-4dec-8e20-2bb2c52fef00",
    "item": [
        "<item id=\"item-4f44ab14-c765-4dec-8e20-2bb2c52fef00\"><test>item-4f44ab14-c765-4dec-8e20-2bb2c52fef00</test></item>"
    ]
}

2022-12-22 21:30:54 | [Mutex] notify: [retrieved:item:item-4f44ab14-c765-4dec-8e20-2bb2c52fef00:payload-matches:true:localhost]

2022-12-22 21:30:54 | [Mutex] received everything.

2022-12-22 21:30:54 | [Mutex] isItemNotified: retrieved:item:item-4f44ab14-c765-4dec-8e20-2bb2c52fef00:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-12-22 21:30:54 |

2022-12-22 21:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:54 | ------------------------------------

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

2022-12-22 21:30:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f71a0128-1ad3-472b-bfe5-af6524a8cda7",
        "node-27e67c67-89b5-416e-a603-0d16bc1e1aa8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-12-22 21:30:54 |

2022-12-22 21:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:54 | ------------------------------------

2022-12-22 21:30:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-27e67c67-89b5-416e-a603-0d16bc1e1aa8)"
}

2022-12-22 21:30:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-12-22 21:30:53 |

2022-12-22 21:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:53 | ------------------------------------

2022-12-22 21:30:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-27e67c67-89b5-416e-a603-0d16bc1e1aa8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-22 21:30:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.080s
2022-12-22 21:30:54 |

2022-12-22 21:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-22 21:30:54 | ------------------------------------

2022-12-22 21:30:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-27e67c67-89b5-416e-a603-0d16bc1e1aa8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-22 21:30:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}