Generated by TestNG with ReportNG at 21:29 PST on Sunday 05 March 2023
root@7c41cec37518 / 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.624s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2023-03-05 21:43:50 |

2023-03-05 21:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:50 | ------------------------------------

2023-03-05 21:43:50 | [Mutex] waiting for: [configured:node:node-c81c23ee-962d-4939-9036-008a25e5cedc:node-48be8cca-f8d3-457a-9fbf-3f45869591c3]

2023-03-05 21:43:50 | [Mutex] received everything.

2023-03-05 21:43:50 | [Mutex] isItemNotified: configured:node:node-c81c23ee-962d-4939-9036-008a25e5cedc:node-48be8cca-f8d3-457a-9fbf-3f45869591c3 :: true

2023-03-05 21:43:51 | [Mutex] waiting for: [received:nodes:70529518-a0b3-4e08-b47e-26310d6b35b0:localhost]

2023-03-05 21:43:51 | [Mutex] received everything.

2023-03-05 21:43:51 | [Mutex] isItemNotified: received:node:70529518-a0b3-4e08-b47e-26310d6b35b0:localhost:node-c81c23ee-962d-4939-9036-008a25e5cedc:Node c81c23ee-962d-4939-9036-008a25e5cedc :: true

2023-03-05 21:43:51 | [Mutex] waiting for: [received:nodes:0b533632-0d97-41ff-9e38-06d27b10a751:localhost]

2023-03-05 21:43:51 | [Mutex] waiting for: [received:nodes:0b533632-0d97-41ff-9e38-06d27b10a751:localhost]

2023-03-05 21:43:51 | [Mutex] waiting for: [received:nodes:0b533632-0d97-41ff-9e38-06d27b10a751:localhost]

2023-03-05 21:43:51 | [Mutex] waiting for: [received:nodes:0b533632-0d97-41ff-9e38-06d27b10a751:localhost]

2023-03-05 21:43:51 | [Mutex] received everything.

2023-03-05 21:43:51 | [Mutex] isItemNotified: received:node:0b533632-0d97-41ff-9e38-06d27b10a751:localhost:node-c81c23ee-962d-4939-9036-008a25e5cedc:Node c81c23ee-962d-4939-9036-008a25e5cedc :: false

createNodes 1.600s
2023-03-05 21:43:47 |

2023-03-05 21:43:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:47 | ------------------------------------

2023-03-05 21:43:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c81c23ee-962d-4939-9036-008a25e5cedc",
    "pubsub#title": "Node c81c23ee-962d-4939-9036-008a25e5cedc"
}

2023-03-05 21:43:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-05 21:43:49 | [Mutex] waiting for: [received:nodes:2366f757-af04-4139-8b6f-11599db0ad85:localhost]

2023-03-05 21:43:49 | [Mutex] received everything.

2023-03-05 21:43:49 | [Mutex] isItemNotified: received:node:2366f757-af04-4139-8b6f-11599db0ad85:localhost:node-c81c23ee-962d-4939-9036-008a25e5cedc:Node c81c23ee-962d-4939-9036-008a25e5cedc :: true

createSubnodes 1.031s
2023-03-05 21:43:49 |

2023-03-05 21:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:49 | ------------------------------------

2023-03-05 21:43:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-48be8cca-f8d3-457a-9fbf-3f45869591c3",
    "pubsub#title": "Node 48be8cca-f8d3-457a-9fbf-3f45869591c3"
}

2023-03-05 21:43:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-05 21:43:50 | [Mutex] waiting for: [received:nodes:b8ddcfa2-408b-4dc1-a01a-7adc6b21b74e:localhost]

2023-03-05 21:43:50 | [Mutex] waiting for: [received:nodes:b8ddcfa2-408b-4dc1-a01a-7adc6b21b74e:localhost]

2023-03-05 21:43:50 | [Mutex] waiting for: [received:nodes:b8ddcfa2-408b-4dc1-a01a-7adc6b21b74e:localhost]

2023-03-05 21:43:50 | [Mutex] waiting for: [received:nodes:b8ddcfa2-408b-4dc1-a01a-7adc6b21b74e:localhost]

2023-03-05 21:43:50 | [Mutex] received everything.

2023-03-05 21:43:50 | [Mutex] isItemNotified: received:node:b8ddcfa2-408b-4dc1-a01a-7adc6b21b74e:localhost:node-48be8cca-f8d3-457a-9fbf-3f45869591c3:Node 48be8cca-f8d3-457a-9fbf-3f45869591c3 :: true

deleteNodes 1.024s
2023-03-05 21:43:54 |

2023-03-05 21:43:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:54 | ------------------------------------

2023-03-05 21:43:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-48be8cca-f8d3-457a-9fbf-3f45869591c3"
}

2023-03-05 21:43:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-05 21:43:55 | [Mutex] waiting for: [received:nodes:7ac161de-9ea9-42d3-afd7-13349b2740ce:localhost]

2023-03-05 21:43:55 | [Mutex] waiting for: [received:nodes:7ac161de-9ea9-42d3-afd7-13349b2740ce:localhost]

2023-03-05 21:43:55 | [Mutex] waiting for: [received:nodes:7ac161de-9ea9-42d3-afd7-13349b2740ce:localhost]

2023-03-05 21:43:55 | [Mutex] received everything.

2023-03-05 21:43:55 | [Mutex] isItemNotified: received:node:7ac161de-9ea9-42d3-afd7-13349b2740ce:localhost:node-48be8cca-f8d3-457a-9fbf-3f45869591c3:Node 48be8cca-f8d3-457a-9fbf-3f45869591c3 :: false

deleteSubnodes 1.028s
2023-03-05 21:43:53 |

2023-03-05 21:43:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:53 | ------------------------------------

2023-03-05 21:43:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c81c23ee-962d-4939-9036-008a25e5cedc"
}

2023-03-05 21:43:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-05 21:43:54 | [Mutex] waiting for: [received:nodes:a6b55b8d-cddf-4b8e-b1bd-c0eec2381244:localhost]

2023-03-05 21:43:54 | [Mutex] received everything.

2023-03-05 21:43:54 | [Mutex] isItemNotified: received:node:a6b55b8d-cddf-4b8e-b1bd-c0eec2381244:localhost:node-c81c23ee-962d-4939-9036-008a25e5cedc:Node c81c23ee-962d-4939-9036-008a25e5cedc :: false

2023-03-05 21:43:54 | [Mutex] waiting for: [received:nodes:59785dfe-e4c6-4bc8-b2c2-43318225a5df:localhost]

2023-03-05 21:43:54 | [Mutex] received everything.

2023-03-05 21:43:54 | [Mutex] isItemNotified: received:node:59785dfe-e4c6-4bc8-b2c2-43318225a5df:localhost:node-c81c23ee-962d-4939-9036-008a25e5cedc:Node c81c23ee-962d-4939-9036-008a25e5cedc :: false

publishItemsToNodes 0.109s
2023-03-05 21:43:52 |

2023-03-05 21:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:52 | ------------------------------------

2023-03-05 21:43:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c81c23ee-962d-4939-9036-008a25e5cedc",
    "entry": "<test>item-91a339cb-fcb9-4af1-aa94-f6c67441877d</test>",
    "item-id": "item-91a339cb-fcb9-4af1-aa94-f6c67441877d"
}

2023-03-05 21:43:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-91a339cb-fcb9-4af1-aa94-f6c67441877d"
}

2023-03-05 21:43:52 | [Mutex] waiting for: [published:item:notifieditem-91a339cb-fcb9-4af1-aa94-f6c67441877d:admin@test-domain.com]

2023-03-05 21:43:52 | [Mutex] received everything.

2023-03-05 21:43:52 | [Mutex] isItemNotified: published:item:notifieditem-91a339cb-fcb9-4af1-aa94-f6c67441877d:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2023-03-05 21:43:52 |

2023-03-05 21:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:52 | ------------------------------------

2023-03-05 21:43:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c81c23ee-962d-4939-9036-008a25e5cedc",
    "item-id": "item-91a339cb-fcb9-4af1-aa94-f6c67441877d"
}

2023-03-05 21:43:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-91a339cb-fcb9-4af1-aa94-f6c67441877d"
}

2023-03-05 21:43:52 | [Mutex] waiting for: [retracted:item:notifieditem-91a339cb-fcb9-4af1-aa94-f6c67441877d:admin@test-domain.com]

2023-03-05 21:43:52 | [Mutex] received everything.

2023-03-05 21:43:52 | [Mutex] isItemNotified: retracted:item:notifieditem-91a339cb-fcb9-4af1-aa94-f6c67441877d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2023-03-05 21:43:52 |

2023-03-05 21:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:52 | ------------------------------------

2023-03-05 21:43:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c81c23ee-962d-4939-9036-008a25e5cedc",
    "item-id": "item-91a339cb-fcb9-4af1-aa94-f6c67441877d"
}

2023-03-05 21:43:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c81c23ee-962d-4939-9036-008a25e5cedc",
    "item-id": "item-91a339cb-fcb9-4af1-aa94-f6c67441877d",
    "item": [
        "<item id=\"item-91a339cb-fcb9-4af1-aa94-f6c67441877d\"><test>item-91a339cb-fcb9-4af1-aa94-f6c67441877d</test></item>"
    ]
}

2023-03-05 21:43:52 | [Mutex] notify: [retrieved:item:item-91a339cb-fcb9-4af1-aa94-f6c67441877d:payload-matches:true:localhost]

2023-03-05 21:43:52 | [Mutex] received everything.

2023-03-05 21:43:52 | [Mutex] isItemNotified: retrieved:item:item-91a339cb-fcb9-4af1-aa94-f6c67441877d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2023-03-05 21:43:52 |

2023-03-05 21:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:52 | ------------------------------------

2023-03-05 21:43:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-05 21:43:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c81c23ee-962d-4939-9036-008a25e5cedc",
        "test",
        "node-48be8cca-f8d3-457a-9fbf-3f45869591c3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-03-05 21:43:52 |

2023-03-05 21:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:52 | ------------------------------------

2023-03-05 21:43:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c81c23ee-962d-4939-9036-008a25e5cedc)"
}

2023-03-05 21:43:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-03-05 21:43:51 |

2023-03-05 21:43:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:51 | ------------------------------------

2023-03-05 21:43:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c81c23ee-962d-4939-9036-008a25e5cedc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-05 21:43:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.057s
2023-03-05 21:43:52 |

2023-03-05 21:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:43:52 | ------------------------------------

2023-03-05 21:43:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c81c23ee-962d-4939-9036-008a25e5cedc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-05 21:43:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}