Generated by TestNG with ReportNG at 21:49 PST on Sunday 13 February 2022
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 9.006s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.125s
2022-02-13 22:03:58 |

2022-02-13 22:03:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:03:58 | ------------------------------------

2022-02-13 22:03:58 | [Mutex] waiting for: [configured:node:node-16b8b1aa-c185-4682-99a1-aae8b6af53ba:node-ee7cb479-6f0d-4a1e-bec0-4eb6332bce86]

2022-02-13 22:03:58 | [Mutex] received everything.

2022-02-13 22:03:58 | [Mutex] isItemNotified: configured:node:node-16b8b1aa-c185-4682-99a1-aae8b6af53ba:node-ee7cb479-6f0d-4a1e-bec0-4eb6332bce86 :: true

2022-02-13 22:03:59 | [Mutex] waiting for: [received:nodes:ef740930-9d5d-4e3d-9264-8ee7ca38c95f:localhost]

2022-02-13 22:03:59 | [Mutex] received everything.

2022-02-13 22:03:59 | [Mutex] isItemNotified: received:node:ef740930-9d5d-4e3d-9264-8ee7ca38c95f:localhost:node-16b8b1aa-c185-4682-99a1-aae8b6af53ba:Node 16b8b1aa-c185-4682-99a1-aae8b6af53ba :: true

2022-02-13 22:03:59 | [Mutex] waiting for: [received:nodes:830b6342-f0fb-42c3-a359-74e97db8cf1e:localhost]

2022-02-13 22:03:59 | [Mutex] waiting for: [received:nodes:830b6342-f0fb-42c3-a359-74e97db8cf1e:localhost]

2022-02-13 22:03:59 | [Mutex] waiting for: [received:nodes:830b6342-f0fb-42c3-a359-74e97db8cf1e:localhost]

2022-02-13 22:03:59 | [Mutex] received everything.

2022-02-13 22:03:59 | [Mutex] isItemNotified: received:node:830b6342-f0fb-42c3-a359-74e97db8cf1e:localhost:node-16b8b1aa-c185-4682-99a1-aae8b6af53ba:Node 16b8b1aa-c185-4682-99a1-aae8b6af53ba :: false

createNodes 1.716s
2022-02-13 22:03:56 |

2022-02-13 22:03:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:03:56 | ------------------------------------

2022-02-13 22:03:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-16b8b1aa-c185-4682-99a1-aae8b6af53ba",
    "pubsub#title": "Node 16b8b1aa-c185-4682-99a1-aae8b6af53ba"
}

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

2022-02-13 22:03:57 | [Mutex] waiting for: [received:nodes:0372bdc2-d3ed-42f1-94e5-ef000f24ab50:localhost]

2022-02-13 22:03:57 | [Mutex] received everything.

2022-02-13 22:03:57 | [Mutex] isItemNotified: received:node:0372bdc2-d3ed-42f1-94e5-ef000f24ab50:localhost:node-16b8b1aa-c185-4682-99a1-aae8b6af53ba:Node 16b8b1aa-c185-4682-99a1-aae8b6af53ba :: true

createSubnodes 1.020s
2022-02-13 22:03:57 |

2022-02-13 22:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:03:57 | ------------------------------------

2022-02-13 22:03: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-ee7cb479-6f0d-4a1e-bec0-4eb6332bce86",
    "pubsub#title": "Node ee7cb479-6f0d-4a1e-bec0-4eb6332bce86"
}

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

2022-02-13 22:03:58 | [Mutex] waiting for: [received:nodes:5933da25-5003-497d-a0e8-b42963650a1f:localhost]

2022-02-13 22:03:58 | [Mutex] received everything.

2022-02-13 22:03:58 | [Mutex] isItemNotified: received:node:5933da25-5003-497d-a0e8-b42963650a1f:localhost:node-ee7cb479-6f0d-4a1e-bec0-4eb6332bce86:Node ee7cb479-6f0d-4a1e-bec0-4eb6332bce86 :: true

deleteNodes 1.019s
2022-02-13 22:04:03 |

2022-02-13 22:04:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:04:03 | ------------------------------------

2022-02-13 22:04:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ee7cb479-6f0d-4a1e-bec0-4eb6332bce86"
}

2022-02-13 22:04:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-13 22:04:04 | [Mutex] waiting for: [received:nodes:6ee986cf-0b3f-4572-9d40-dcc76263c85c:localhost]

2022-02-13 22:04:04 | [Mutex] received everything.

2022-02-13 22:04:04 | [Mutex] isItemNotified: received:node:6ee986cf-0b3f-4572-9d40-dcc76263c85c:localhost:node-ee7cb479-6f0d-4a1e-bec0-4eb6332bce86:Node ee7cb479-6f0d-4a1e-bec0-4eb6332bce86 :: false

deleteSubnodes 1.025s
2022-02-13 22:04:02 |

2022-02-13 22:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:04:02 | ------------------------------------

2022-02-13 22:04:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-16b8b1aa-c185-4682-99a1-aae8b6af53ba"
}

2022-02-13 22:04:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-13 22:04:03 | [Mutex] waiting for: [received:nodes:c4fd42b8-ad57-40b4-a947-d6fe285d3ba2:localhost]

2022-02-13 22:04:03 | [Mutex] received everything.

2022-02-13 22:04:03 | [Mutex] isItemNotified: received:node:c4fd42b8-ad57-40b4-a947-d6fe285d3ba2:localhost:node-16b8b1aa-c185-4682-99a1-aae8b6af53ba:Node 16b8b1aa-c185-4682-99a1-aae8b6af53ba :: false

2022-02-13 22:04:03 | [Mutex] waiting for: [received:nodes:db5b9053-af83-4c01-96f9-a4250349b4b9:localhost]

2022-02-13 22:04:03 | [Mutex] received everything.

2022-02-13 22:04:03 | [Mutex] isItemNotified: received:node:db5b9053-af83-4c01-96f9-a4250349b4b9:localhost:node-16b8b1aa-c185-4682-99a1-aae8b6af53ba:Node 16b8b1aa-c185-4682-99a1-aae8b6af53ba :: false

publishItemsToNodes 0.057s
2022-02-13 22:04:00 |

2022-02-13 22:04:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:04:00 | ------------------------------------

2022-02-13 22:04:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-16b8b1aa-c185-4682-99a1-aae8b6af53ba",
    "entry": "<test>item-a578575c-7240-4477-97f3-5ab9772cd152</test>",
    "item-id": "item-a578575c-7240-4477-97f3-5ab9772cd152"
}

2022-02-13 22:04:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a578575c-7240-4477-97f3-5ab9772cd152"
}

2022-02-13 22:04:01 | [Mutex] waiting for: [published:item:notifieditem-a578575c-7240-4477-97f3-5ab9772cd152:admin@test-domain.com]

2022-02-13 22:04:01 | [Mutex] received everything.

2022-02-13 22:04:01 | [Mutex] isItemNotified: published:item:notifieditem-a578575c-7240-4477-97f3-5ab9772cd152:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2022-02-13 22:04:01 |

2022-02-13 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:04:01 | ------------------------------------

2022-02-13 22:04:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-16b8b1aa-c185-4682-99a1-aae8b6af53ba",
    "item-id": "item-a578575c-7240-4477-97f3-5ab9772cd152"
}

2022-02-13 22:04:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a578575c-7240-4477-97f3-5ab9772cd152"
}

2022-02-13 22:04:01 | [Mutex] waiting for: [retracted:item:notifieditem-a578575c-7240-4477-97f3-5ab9772cd152:admin@test-domain.com]

2022-02-13 22:04:01 | [Mutex] received everything.

2022-02-13 22:04:01 | [Mutex] isItemNotified: retracted:item:notifieditem-a578575c-7240-4477-97f3-5ab9772cd152:admin@test-domain.com :: true

retrieveItemsFromNodes 0.044s
2022-02-13 22:04:01 |

2022-02-13 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:04:01 | ------------------------------------

2022-02-13 22:04:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-16b8b1aa-c185-4682-99a1-aae8b6af53ba",
    "item-id": "item-a578575c-7240-4477-97f3-5ab9772cd152"
}

2022-02-13 22:04:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-16b8b1aa-c185-4682-99a1-aae8b6af53ba",
    "item-id": "item-a578575c-7240-4477-97f3-5ab9772cd152",
    "item": [
        "<item id=\"item-a578575c-7240-4477-97f3-5ab9772cd152\"><test>item-a578575c-7240-4477-97f3-5ab9772cd152</test></item>"
    ]
}

2022-02-13 22:04:01 | [Mutex] notify: [retrieved:item:item-a578575c-7240-4477-97f3-5ab9772cd152:payload-matches:true:localhost]

2022-02-13 22:04:01 | [Mutex] received everything.

2022-02-13 22:04:01 | [Mutex] isItemNotified: retrieved:item:item-a578575c-7240-4477-97f3-5ab9772cd152:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-02-13 22:04:01 |

2022-02-13 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:04:01 | ------------------------------------

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

2022-02-13 22:04:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-16b8b1aa-c185-4682-99a1-aae8b6af53ba",
        "node-ee7cb479-6f0d-4a1e-bec0-4eb6332bce86",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-13 22:04:01 |

2022-02-13 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:04:01 | ------------------------------------

2022-02-13 22:04:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-16b8b1aa-c185-4682-99a1-aae8b6af53ba)"
}

2022-02-13 22:04:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-02-13 22:03:59 |

2022-02-13 22:03:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:03:59 | ------------------------------------

2022-02-13 22:03:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-16b8b1aa-c185-4682-99a1-aae8b6af53ba",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-13 22:03:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2022-02-13 22:04:01 |

2022-02-13 22:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-13 22:04:01 | ------------------------------------

2022-02-13 22:04:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-16b8b1aa-c185-4682-99a1-aae8b6af53ba",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-13 22:04:01 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}