Generated by TestNG with ReportNG at 22:50 PDT on Wednesday 27 April 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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 : 8.811s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2022-04-27 23:06:02 |

2022-04-27 23:06:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:02 | ------------------------------------

2022-04-27 23:06:02 | [Mutex] waiting for: [configured:node:node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40:node-343e8b6b-92b8-4167-82c6-b16fbff911de]

2022-04-27 23:06:03 | [Mutex] received everything.

2022-04-27 23:06:03 | [Mutex] isItemNotified: configured:node:node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40:node-343e8b6b-92b8-4167-82c6-b16fbff911de :: true

2022-04-27 23:06:04 | [Mutex] waiting for: [received:nodes:de205eed-bb5a-4b6f-aeb5-7d079b7871c2:localhost]

2022-04-27 23:06:04 | [Mutex] received everything.

2022-04-27 23:06:04 | [Mutex] isItemNotified: received:node:de205eed-bb5a-4b6f-aeb5-7d079b7871c2:localhost:node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40:Node 12c3c2a0-5a64-4b8e-99fc-e6797c7bed40 :: true

2022-04-27 23:06:04 | [Mutex] waiting for: [received:nodes:debeb771-f77c-4a25-90aa-85bb18a69959:localhost]

2022-04-27 23:06:04 | [Mutex] received everything.

2022-04-27 23:06:04 | [Mutex] isItemNotified: received:node:debeb771-f77c-4a25-90aa-85bb18a69959:localhost:node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40:Node 12c3c2a0-5a64-4b8e-99fc-e6797c7bed40 :: false

createNodes 1.569s
2022-04-27 23:06:00 |

2022-04-27 23:06:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:00 | ------------------------------------

2022-04-27 23:06:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40",
    "pubsub#title": "Node 12c3c2a0-5a64-4b8e-99fc-e6797c7bed40"
}

2022-04-27 23:06:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 23:06:01 | [Mutex] waiting for: [received:nodes:25113016-ddde-4178-aacd-076b2ff56c25:localhost]

2022-04-27 23:06:01 | [Mutex] received everything.

2022-04-27 23:06:01 | [Mutex] isItemNotified: received:node:25113016-ddde-4178-aacd-076b2ff56c25:localhost:node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40:Node 12c3c2a0-5a64-4b8e-99fc-e6797c7bed40 :: true

createSubnodes 1.023s
2022-04-27 23:06:01 |

2022-04-27 23:06:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:01 | ------------------------------------

2022-04-27 23:06:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-343e8b6b-92b8-4167-82c6-b16fbff911de",
    "pubsub#title": "Node 343e8b6b-92b8-4167-82c6-b16fbff911de"
}

2022-04-27 23:06:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 23:06:02 | [Mutex] waiting for: [received:nodes:079e3664-10cc-4ec8-b165-5f77ded68e0e:localhost]

2022-04-27 23:06:02 | [Mutex] received everything.

2022-04-27 23:06:02 | [Mutex] isItemNotified: received:node:079e3664-10cc-4ec8-b165-5f77ded68e0e:localhost:node-343e8b6b-92b8-4167-82c6-b16fbff911de:Node 343e8b6b-92b8-4167-82c6-b16fbff911de :: true

deleteNodes 1.023s
2022-04-27 23:06:07 |

2022-04-27 23:06:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:07 | ------------------------------------

2022-04-27 23:06:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-343e8b6b-92b8-4167-82c6-b16fbff911de"
}

2022-04-27 23:06:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 23:06:08 | [Mutex] waiting for: [received:nodes:a78c625c-b420-437e-9948-37ae17acdde4:localhost]

2022-04-27 23:06:08 | [Mutex] received everything.

2022-04-27 23:06:08 | [Mutex] isItemNotified: received:node:a78c625c-b420-437e-9948-37ae17acdde4:localhost:node-343e8b6b-92b8-4167-82c6-b16fbff911de:Node 343e8b6b-92b8-4167-82c6-b16fbff911de :: false

deleteSubnodes 1.027s
2022-04-27 23:06:06 |

2022-04-27 23:06:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:06 | ------------------------------------

2022-04-27 23:06:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40"
}

2022-04-27 23:06:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 23:06:07 | [Mutex] waiting for: [received:nodes:976585f5-e21c-497e-bc2f-b32f7b6a8ebb:localhost]

2022-04-27 23:06:07 | [Mutex] received everything.

2022-04-27 23:06:07 | [Mutex] isItemNotified: received:node:976585f5-e21c-497e-bc2f-b32f7b6a8ebb:localhost:node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40:Node 12c3c2a0-5a64-4b8e-99fc-e6797c7bed40 :: false

2022-04-27 23:06:07 | [Mutex] waiting for: [received:nodes:24797252-db39-40cb-a522-a99a67dd348a:localhost]

2022-04-27 23:06:07 | [Mutex] received everything.

2022-04-27 23:06:07 | [Mutex] isItemNotified: received:node:24797252-db39-40cb-a522-a99a67dd348a:localhost:node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40:Node 12c3c2a0-5a64-4b8e-99fc-e6797c7bed40 :: false

publishItemsToNodes 0.082s
2022-04-27 23:06:05 |

2022-04-27 23:06:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:05 | ------------------------------------

2022-04-27 23:06:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40",
    "entry": "<test>item-6160f784-86ff-46cc-80d6-e14b1fb26d42</test>",
    "item-id": "item-6160f784-86ff-46cc-80d6-e14b1fb26d42"
}

2022-04-27 23:06:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6160f784-86ff-46cc-80d6-e14b1fb26d42"
}

2022-04-27 23:06:05 | [Mutex] waiting for: [published:item:notifieditem-6160f784-86ff-46cc-80d6-e14b1fb26d42:admin@test-domain.com]

2022-04-27 23:06:05 | [Mutex] received everything.

2022-04-27 23:06:05 | [Mutex] isItemNotified: published:item:notifieditem-6160f784-86ff-46cc-80d6-e14b1fb26d42:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-04-27 23:06:05 |

2022-04-27 23:06:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:05 | ------------------------------------

2022-04-27 23:06:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40",
    "item-id": "item-6160f784-86ff-46cc-80d6-e14b1fb26d42"
}

2022-04-27 23:06:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6160f784-86ff-46cc-80d6-e14b1fb26d42"
}

2022-04-27 23:06:05 | [Mutex] waiting for: [retracted:item:notifieditem-6160f784-86ff-46cc-80d6-e14b1fb26d42:admin@test-domain.com]

2022-04-27 23:06:05 | [Mutex] received everything.

2022-04-27 23:06:05 | [Mutex] isItemNotified: retracted:item:notifieditem-6160f784-86ff-46cc-80d6-e14b1fb26d42:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2022-04-27 23:06:05 |

2022-04-27 23:06:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:05 | ------------------------------------

2022-04-27 23:06:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40",
    "item-id": "item-6160f784-86ff-46cc-80d6-e14b1fb26d42"
}

2022-04-27 23:06:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40",
    "item-id": "item-6160f784-86ff-46cc-80d6-e14b1fb26d42",
    "item": [
        "<item id=\"item-6160f784-86ff-46cc-80d6-e14b1fb26d42\"><test>item-6160f784-86ff-46cc-80d6-e14b1fb26d42</test></item>"
    ]
}

2022-04-27 23:06:05 | [Mutex] notify: [retrieved:item:item-6160f784-86ff-46cc-80d6-e14b1fb26d42:payload-matches:true:localhost]

2022-04-27 23:06:05 | [Mutex] received everything.

2022-04-27 23:06:05 | [Mutex] isItemNotified: retrieved:item:item-6160f784-86ff-46cc-80d6-e14b1fb26d42:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2022-04-27 23:06:05 |

2022-04-27 23:06:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:05 | ------------------------------------

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

2022-04-27 23:06:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40",
        "node-343e8b6b-92b8-4167-82c6-b16fbff911de"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-04-27 23:06:05 |

2022-04-27 23:06:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:05 | ------------------------------------

2022-04-27 23:06:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40)"
}

2022-04-27 23:06:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-04-27 23:06:04 |

2022-04-27 23:06:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:04 | ------------------------------------

2022-04-27 23:06:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-27 23:06:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-04-27 23:06:05 |

2022-04-27 23:06:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 23:06:05 | ------------------------------------

2022-04-27 23:06:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-12c3c2a0-5a64-4b8e-99fc-e6797c7bed40",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-27 23:06:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}