Generated by TestNG with ReportNG at 00:45 PDT on Friday 29 September 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.531s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.139s
2023-09-29 00:59:31 |

2023-09-29 00:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:31 | ------------------------------------

2023-09-29 00:59:31 | [Mutex] waiting for: [configured:node:node-155f69e8-618d-45e2-95b4-abbc0b7e58b4:node-e6d3a5cd-5dd3-44a2-bac1-8b62692390d9]

2023-09-29 00:59:31 | [Mutex] received everything.

2023-09-29 00:59:31 | [Mutex] isItemNotified: configured:node:node-155f69e8-618d-45e2-95b4-abbc0b7e58b4:node-e6d3a5cd-5dd3-44a2-bac1-8b62692390d9 :: true

2023-09-29 00:59:32 | [Mutex] waiting for: [received:nodes:e16f5627-7361-4432-8e69-1196480818cb:localhost]

2023-09-29 00:59:32 | [Mutex] received everything.

2023-09-29 00:59:32 | [Mutex] isItemNotified: received:node:e16f5627-7361-4432-8e69-1196480818cb:localhost:node-155f69e8-618d-45e2-95b4-abbc0b7e58b4:Node 155f69e8-618d-45e2-95b4-abbc0b7e58b4 :: true

2023-09-29 00:59:32 | [Mutex] waiting for: [received:nodes:4ef9a360-7fe4-44d9-9877-2d466e4c9783:localhost]

2023-09-29 00:59:32 | [Mutex] waiting for: [received:nodes:4ef9a360-7fe4-44d9-9877-2d466e4c9783:localhost]

2023-09-29 00:59:32 | [Mutex] waiting for: [received:nodes:4ef9a360-7fe4-44d9-9877-2d466e4c9783:localhost]

2023-09-29 00:59:32 | [Mutex] received everything.

2023-09-29 00:59:32 | [Mutex] isItemNotified: received:node:4ef9a360-7fe4-44d9-9877-2d466e4c9783:localhost:node-155f69e8-618d-45e2-95b4-abbc0b7e58b4:Node 155f69e8-618d-45e2-95b4-abbc0b7e58b4 :: false

createNodes 1.546s
2023-09-29 00:59:28 |

2023-09-29 00:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:28 | ------------------------------------

2023-09-29 00:59:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-155f69e8-618d-45e2-95b4-abbc0b7e58b4",
    "pubsub#title": "Node 155f69e8-618d-45e2-95b4-abbc0b7e58b4"
}

2023-09-29 00:59:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-09-29 00:59:30 | [Mutex] waiting for: [received:nodes:c39745c2-d185-4e3e-b219-f0848b342d10:localhost]

2023-09-29 00:59:30 | [Mutex] waiting for: [received:nodes:c39745c2-d185-4e3e-b219-f0848b342d10:localhost]

2023-09-29 00:59:30 | [Mutex] received everything.

2023-09-29 00:59:30 | [Mutex] isItemNotified: received:node:c39745c2-d185-4e3e-b219-f0848b342d10:localhost:node-155f69e8-618d-45e2-95b4-abbc0b7e58b4:Node 155f69e8-618d-45e2-95b4-abbc0b7e58b4 :: true

createSubnodes 1.018s
2023-09-29 00:59:30 |

2023-09-29 00:59:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:30 | ------------------------------------

2023-09-29 00:59:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e6d3a5cd-5dd3-44a2-bac1-8b62692390d9",
    "pubsub#title": "Node e6d3a5cd-5dd3-44a2-bac1-8b62692390d9"
}

2023-09-29 00:59:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-09-29 00:59:31 | [Mutex] waiting for: [received:nodes:e87d4983-aa49-4794-9a6b-17469ea4211a:localhost]

2023-09-29 00:59:31 | [Mutex] waiting for: [received:nodes:e87d4983-aa49-4794-9a6b-17469ea4211a:localhost]

2023-09-29 00:59:31 | [Mutex] waiting for: [received:nodes:e87d4983-aa49-4794-9a6b-17469ea4211a:localhost]

2023-09-29 00:59:31 | [Mutex] received everything.

2023-09-29 00:59:31 | [Mutex] isItemNotified: received:node:e87d4983-aa49-4794-9a6b-17469ea4211a:localhost:node-e6d3a5cd-5dd3-44a2-bac1-8b62692390d9:Node e6d3a5cd-5dd3-44a2-bac1-8b62692390d9 :: true

deleteNodes 1.017s
2023-09-29 00:59:36 |

2023-09-29 00:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:36 | ------------------------------------

2023-09-29 00:59:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e6d3a5cd-5dd3-44a2-bac1-8b62692390d9"
}

2023-09-29 00:59:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-09-29 00:59:37 | [Mutex] waiting for: [received:nodes:979dd9e6-f412-4333-962a-ecbe47b9df19:localhost]

2023-09-29 00:59:37 | [Mutex] waiting for: [received:nodes:979dd9e6-f412-4333-962a-ecbe47b9df19:localhost]

2023-09-29 00:59:37 | [Mutex] waiting for: [received:nodes:979dd9e6-f412-4333-962a-ecbe47b9df19:localhost]

2023-09-29 00:59:37 | [Mutex] received everything.

2023-09-29 00:59:37 | [Mutex] isItemNotified: received:node:979dd9e6-f412-4333-962a-ecbe47b9df19:localhost:node-e6d3a5cd-5dd3-44a2-bac1-8b62692390d9:Node e6d3a5cd-5dd3-44a2-bac1-8b62692390d9 :: false

deleteSubnodes 1.028s
2023-09-29 00:59:35 |

2023-09-29 00:59:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:35 | ------------------------------------

2023-09-29 00:59:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-155f69e8-618d-45e2-95b4-abbc0b7e58b4"
}

2023-09-29 00:59:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-09-29 00:59:36 | [Mutex] waiting for: [received:nodes:ac2b8178-03e0-471d-b3b1-350194607a9f:localhost]

2023-09-29 00:59:36 | [Mutex] received everything.

2023-09-29 00:59:36 | [Mutex] isItemNotified: received:node:ac2b8178-03e0-471d-b3b1-350194607a9f:localhost:node-155f69e8-618d-45e2-95b4-abbc0b7e58b4:Node 155f69e8-618d-45e2-95b4-abbc0b7e58b4 :: false

2023-09-29 00:59:36 | [Mutex] waiting for: [received:nodes:3fb690c3-6c3a-41c4-a29b-c1b422af5229:localhost]

2023-09-29 00:59:36 | [Mutex] received everything.

2023-09-29 00:59:36 | [Mutex] isItemNotified: received:node:3fb690c3-6c3a-41c4-a29b-c1b422af5229:localhost:node-155f69e8-618d-45e2-95b4-abbc0b7e58b4:Node 155f69e8-618d-45e2-95b4-abbc0b7e58b4 :: false

publishItemsToNodes 0.038s
2023-09-29 00:59:33 |

2023-09-29 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:33 | ------------------------------------

2023-09-29 00:59:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-155f69e8-618d-45e2-95b4-abbc0b7e58b4",
    "entry": "<test>item-061d17e6-36ce-4bb8-9ab3-df5b60012504</test>",
    "item-id": "item-061d17e6-36ce-4bb8-9ab3-df5b60012504"
}

2023-09-29 00:59:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-061d17e6-36ce-4bb8-9ab3-df5b60012504"
}

2023-09-29 00:59:33 | [Mutex] waiting for: [published:item:notifieditem-061d17e6-36ce-4bb8-9ab3-df5b60012504:admin@test-domain.com]

2023-09-29 00:59:33 | [Mutex] received everything.

2023-09-29 00:59:33 | [Mutex] isItemNotified: published:item:notifieditem-061d17e6-36ce-4bb8-9ab3-df5b60012504:admin@test-domain.com :: true

retractItemsFromNodes 0.082s
2023-09-29 00:59:33 |

2023-09-29 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:33 | ------------------------------------

2023-09-29 00:59:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-155f69e8-618d-45e2-95b4-abbc0b7e58b4",
    "item-id": "item-061d17e6-36ce-4bb8-9ab3-df5b60012504"
}

2023-09-29 00:59:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-061d17e6-36ce-4bb8-9ab3-df5b60012504"
}

2023-09-29 00:59:33 | [Mutex] waiting for: [retracted:item:notifieditem-061d17e6-36ce-4bb8-9ab3-df5b60012504:admin@test-domain.com]

2023-09-29 00:59:33 | [Mutex] received everything.

2023-09-29 00:59:33 | [Mutex] isItemNotified: retracted:item:notifieditem-061d17e6-36ce-4bb8-9ab3-df5b60012504:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2023-09-29 00:59:33 |

2023-09-29 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:33 | ------------------------------------

2023-09-29 00:59:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-155f69e8-618d-45e2-95b4-abbc0b7e58b4",
    "item-id": "item-061d17e6-36ce-4bb8-9ab3-df5b60012504"
}

2023-09-29 00:59:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-155f69e8-618d-45e2-95b4-abbc0b7e58b4",
    "item-id": "item-061d17e6-36ce-4bb8-9ab3-df5b60012504",
    "item": [
        "<item id=\"item-061d17e6-36ce-4bb8-9ab3-df5b60012504\"><test>item-061d17e6-36ce-4bb8-9ab3-df5b60012504</test></item>"
    ]
}

2023-09-29 00:59:33 | [Mutex] notify: [retrieved:item:item-061d17e6-36ce-4bb8-9ab3-df5b60012504:payload-matches:true:localhost]

2023-09-29 00:59:33 | [Mutex] received everything.

2023-09-29 00:59:33 | [Mutex] isItemNotified: retrieved:item:item-061d17e6-36ce-4bb8-9ab3-df5b60012504:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.060s
2023-09-29 00:59:33 |

2023-09-29 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:33 | ------------------------------------

2023-09-29 00:59:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-09-29 00:59:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e6d3a5cd-5dd3-44a2-bac1-8b62692390d9",
        "node-155f69e8-618d-45e2-95b4-abbc0b7e58b4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-09-29 00:59:33 |

2023-09-29 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:33 | ------------------------------------

2023-09-29 00:59:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-155f69e8-618d-45e2-95b4-abbc0b7e58b4)"
}

2023-09-29 00:59:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2023-09-29 00:59:32 |

2023-09-29 00:59:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:32 | ------------------------------------

2023-09-29 00:59:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-155f69e8-618d-45e2-95b4-abbc0b7e58b4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-09-29 00:59:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.048s
2023-09-29 00:59:33 |

2023-09-29 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-09-29 00:59:33 | ------------------------------------

2023-09-29 00:59:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-155f69e8-618d-45e2-95b4-abbc0b7e58b4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-09-29 00:59:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}