Generated by TestNG with ReportNG at 22:14 PDT on Saturday 18 March 2023
root@f9c07ffec79b / 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.574s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-03-18 22:29:29 |

2023-03-18 22:29:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:29 | ------------------------------------

2023-03-18 22:29:29 | [Mutex] waiting for: [configured:node:node-3a783866-54d0-4ecd-93d0-7c7481d63087:node-a6ba2f5a-352a-4e8a-ad81-231066d02b4b]

2023-03-18 22:29:29 | [Mutex] received everything.

2023-03-18 22:29:29 | [Mutex] isItemNotified: configured:node:node-3a783866-54d0-4ecd-93d0-7c7481d63087:node-a6ba2f5a-352a-4e8a-ad81-231066d02b4b :: true

2023-03-18 22:29:30 | [Mutex] waiting for: [received:nodes:526854bb-1e26-4fab-978f-1e5ec2bd13ce:localhost]

2023-03-18 22:29:30 | [Mutex] received everything.

2023-03-18 22:29:30 | [Mutex] isItemNotified: received:node:526854bb-1e26-4fab-978f-1e5ec2bd13ce:localhost:node-3a783866-54d0-4ecd-93d0-7c7481d63087:Node 3a783866-54d0-4ecd-93d0-7c7481d63087 :: true

2023-03-18 22:29:30 | [Mutex] waiting for: [received:nodes:c74134c3-2ded-4611-be6a-b489f51f75a4:localhost]

2023-03-18 22:29:30 | [Mutex] waiting for: [received:nodes:c74134c3-2ded-4611-be6a-b489f51f75a4:localhost]

2023-03-18 22:29:30 | [Mutex] waiting for: [received:nodes:c74134c3-2ded-4611-be6a-b489f51f75a4:localhost]

2023-03-18 22:29:30 | [Mutex] received everything.

2023-03-18 22:29:30 | [Mutex] isItemNotified: received:node:c74134c3-2ded-4611-be6a-b489f51f75a4:localhost:node-3a783866-54d0-4ecd-93d0-7c7481d63087:Node 3a783866-54d0-4ecd-93d0-7c7481d63087 :: false

createNodes 1.523s
2023-03-18 22:29:27 |

2023-03-18 22:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:27 | ------------------------------------

2023-03-18 22:29:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3a783866-54d0-4ecd-93d0-7c7481d63087",
    "pubsub#title": "Node 3a783866-54d0-4ecd-93d0-7c7481d63087"
}

2023-03-18 22:29:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-18 22:29:28 | [Mutex] waiting for: [received:nodes:f0334b36-1191-4fd0-9b5b-73a18c5f54cb:localhost]

2023-03-18 22:29:28 | [Mutex] waiting for: [received:nodes:f0334b36-1191-4fd0-9b5b-73a18c5f54cb:localhost]

2023-03-18 22:29:28 | [Mutex] waiting for: [received:nodes:f0334b36-1191-4fd0-9b5b-73a18c5f54cb:localhost]

2023-03-18 22:29:28 | [Mutex] waiting for: [received:nodes:f0334b36-1191-4fd0-9b5b-73a18c5f54cb:localhost]

2023-03-18 22:29:28 | [Mutex] received everything.

2023-03-18 22:29:28 | [Mutex] isItemNotified: received:node:f0334b36-1191-4fd0-9b5b-73a18c5f54cb:localhost:node-3a783866-54d0-4ecd-93d0-7c7481d63087:Node 3a783866-54d0-4ecd-93d0-7c7481d63087 :: true

createSubnodes 1.032s
2023-03-18 22:29:28 |

2023-03-18 22:29:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:28 | ------------------------------------

2023-03-18 22:29:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a6ba2f5a-352a-4e8a-ad81-231066d02b4b",
    "pubsub#title": "Node a6ba2f5a-352a-4e8a-ad81-231066d02b4b"
}

2023-03-18 22:29:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-18 22:29:29 | [Mutex] waiting for: [received:nodes:2ba9690e-b278-44fd-aba7-9b443cad2456:localhost]

2023-03-18 22:29:29 | [Mutex] received everything.

2023-03-18 22:29:29 | [Mutex] isItemNotified: received:node:2ba9690e-b278-44fd-aba7-9b443cad2456:localhost:node-a6ba2f5a-352a-4e8a-ad81-231066d02b4b:Node a6ba2f5a-352a-4e8a-ad81-231066d02b4b :: true

deleteNodes 1.019s
2023-03-18 22:29:34 |

2023-03-18 22:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:34 | ------------------------------------

2023-03-18 22:29:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a6ba2f5a-352a-4e8a-ad81-231066d02b4b"
}

2023-03-18 22:29:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-18 22:29:35 | [Mutex] waiting for: [received:nodes:37978203-2057-4fa3-88d2-96389c96b3e0:localhost]

2023-03-18 22:29:35 | [Mutex] waiting for: [received:nodes:37978203-2057-4fa3-88d2-96389c96b3e0:localhost]

2023-03-18 22:29:35 | [Mutex] waiting for: [received:nodes:37978203-2057-4fa3-88d2-96389c96b3e0:localhost]

2023-03-18 22:29:35 | [Mutex] received everything.

2023-03-18 22:29:35 | [Mutex] isItemNotified: received:node:37978203-2057-4fa3-88d2-96389c96b3e0:localhost:node-a6ba2f5a-352a-4e8a-ad81-231066d02b4b:Node a6ba2f5a-352a-4e8a-ad81-231066d02b4b :: false

deleteSubnodes 1.025s
2023-03-18 22:29:33 |

2023-03-18 22:29:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:33 | ------------------------------------

2023-03-18 22:29:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3a783866-54d0-4ecd-93d0-7c7481d63087"
}

2023-03-18 22:29:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-18 22:29:34 | [Mutex] waiting for: [received:nodes:34620b2a-8f32-47f8-8eba-6747768bb1c5:localhost]

2023-03-18 22:29:34 | [Mutex] waiting for: [received:nodes:34620b2a-8f32-47f8-8eba-6747768bb1c5:localhost]

2023-03-18 22:29:34 | [Mutex] waiting for: [received:nodes:34620b2a-8f32-47f8-8eba-6747768bb1c5:localhost]

2023-03-18 22:29:34 | [Mutex] received everything.

2023-03-18 22:29:34 | [Mutex] isItemNotified: received:node:34620b2a-8f32-47f8-8eba-6747768bb1c5:localhost:node-3a783866-54d0-4ecd-93d0-7c7481d63087:Node 3a783866-54d0-4ecd-93d0-7c7481d63087 :: false

2023-03-18 22:29:34 | [Mutex] waiting for: [received:nodes:97dba027-bcba-4d62-aa00-8268edcb6079:localhost]

2023-03-18 22:29:34 | [Mutex] received everything.

2023-03-18 22:29:34 | [Mutex] isItemNotified: received:node:97dba027-bcba-4d62-aa00-8268edcb6079:localhost:node-3a783866-54d0-4ecd-93d0-7c7481d63087:Node 3a783866-54d0-4ecd-93d0-7c7481d63087 :: false

publishItemsToNodes 0.026s
2023-03-18 22:29:31 |

2023-03-18 22:29:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:31 | ------------------------------------

2023-03-18 22:29:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3a783866-54d0-4ecd-93d0-7c7481d63087",
    "entry": "<test>item-242fd873-56dc-4496-973a-0fdf070f404b</test>",
    "item-id": "item-242fd873-56dc-4496-973a-0fdf070f404b"
}

2023-03-18 22:29:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-242fd873-56dc-4496-973a-0fdf070f404b"
}

2023-03-18 22:29:31 | [Mutex] waiting for: [published:item:notifieditem-242fd873-56dc-4496-973a-0fdf070f404b:admin@test-domain.com]

2023-03-18 22:29:31 | [Mutex] received everything.

2023-03-18 22:29:31 | [Mutex] isItemNotified: published:item:notifieditem-242fd873-56dc-4496-973a-0fdf070f404b:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2023-03-18 22:29:32 |

2023-03-18 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:32 | ------------------------------------

2023-03-18 22:29:32 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3a783866-54d0-4ecd-93d0-7c7481d63087",
    "item-id": "item-242fd873-56dc-4496-973a-0fdf070f404b"
}

2023-03-18 22:29:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-242fd873-56dc-4496-973a-0fdf070f404b"
}

2023-03-18 22:29:32 | [Mutex] received everything.

2023-03-18 22:29:32 | [Mutex] isItemNotified: retracted:item:notifieditem-242fd873-56dc-4496-973a-0fdf070f404b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.086s
2023-03-18 22:29:31 |

2023-03-18 22:29:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:31 | ------------------------------------

2023-03-18 22:29:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3a783866-54d0-4ecd-93d0-7c7481d63087",
    "item-id": "item-242fd873-56dc-4496-973a-0fdf070f404b"
}

2023-03-18 22:29:32 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3a783866-54d0-4ecd-93d0-7c7481d63087",
    "item-id": "item-242fd873-56dc-4496-973a-0fdf070f404b",
    "item": [
        "<item id=\"item-242fd873-56dc-4496-973a-0fdf070f404b\"><test>item-242fd873-56dc-4496-973a-0fdf070f404b</test></item>"
    ]
}

2023-03-18 22:29:32 | [Mutex] notify: [retrieved:item:item-242fd873-56dc-4496-973a-0fdf070f404b:payload-matches:true:localhost]

2023-03-18 22:29:32 | [Mutex] received everything.

2023-03-18 22:29:32 | [Mutex] isItemNotified: retrieved:item:item-242fd873-56dc-4496-973a-0fdf070f404b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-03-18 22:29:32 |

2023-03-18 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:32 | ------------------------------------

2023-03-18 22:29:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-18 22:29:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3a783866-54d0-4ecd-93d0-7c7481d63087",
        "test",
        "node-a6ba2f5a-352a-4e8a-ad81-231066d02b4b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-03-18 22:29:32 |

2023-03-18 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:32 | ------------------------------------

2023-03-18 22:29:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3a783866-54d0-4ecd-93d0-7c7481d63087)"
}

2023-03-18 22:29:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2023-03-18 22:29:30 |

2023-03-18 22:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:30 | ------------------------------------

2023-03-18 22:29:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3a783866-54d0-4ecd-93d0-7c7481d63087",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-18 22:29:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2023-03-18 22:29:32 |

2023-03-18 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-18 22:29:32 | ------------------------------------

2023-03-18 22:29:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3a783866-54d0-4ecd-93d0-7c7481d63087",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-18 22:29:32 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}