Generated by TestNG with ReportNG at 12:36 PDT on Monday 10 July 2023
root@8f5c98824654 / Java 17.0.6 (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.611s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2023-07-10 12:51:24 |

2023-07-10 12:51:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:24 | ------------------------------------

2023-07-10 12:51:24 | [Mutex] waiting for: [configured:node:node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2:node-70df3a1b-7428-411e-b7c6-52029892a486]

2023-07-10 12:51:24 | [Mutex] received everything.

2023-07-10 12:51:24 | [Mutex] isItemNotified: configured:node:node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2:node-70df3a1b-7428-411e-b7c6-52029892a486 :: true

2023-07-10 12:51:25 | [Mutex] waiting for: [received:nodes:f706f333-3136-4174-8eaf-dc85ce2ef5e7:localhost]

2023-07-10 12:51:25 | [Mutex] received everything.

2023-07-10 12:51:25 | [Mutex] isItemNotified: received:node:f706f333-3136-4174-8eaf-dc85ce2ef5e7:localhost:node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2:Node 7c1553ce-26bf-48e4-adbd-e1adba68f4b2 :: true

2023-07-10 12:51:25 | [Mutex] waiting for: [received:nodes:05c29e5a-fa2b-45a4-b0a2-c8bf64716ae4:localhost]

2023-07-10 12:51:25 | [Mutex] waiting for: [received:nodes:05c29e5a-fa2b-45a4-b0a2-c8bf64716ae4:localhost]

2023-07-10 12:51:25 | [Mutex] waiting for: [received:nodes:05c29e5a-fa2b-45a4-b0a2-c8bf64716ae4:localhost]

2023-07-10 12:51:25 | [Mutex] waiting for: [received:nodes:05c29e5a-fa2b-45a4-b0a2-c8bf64716ae4:localhost]

2023-07-10 12:51:25 | [Mutex] received everything.

2023-07-10 12:51:25 | [Mutex] isItemNotified: received:node:05c29e5a-fa2b-45a4-b0a2-c8bf64716ae4:localhost:node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2:Node 7c1553ce-26bf-48e4-adbd-e1adba68f4b2 :: false

createNodes 1.626s
2023-07-10 12:51:22 |

2023-07-10 12:51:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:22 | ------------------------------------

2023-07-10 12:51:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2",
    "pubsub#title": "Node 7c1553ce-26bf-48e4-adbd-e1adba68f4b2"
}

2023-07-10 12:51:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 12:51:23 | [Mutex] waiting for: [received:nodes:f8d05a0b-9d46-46b0-adae-77c746203183:localhost]

2023-07-10 12:51:23 | [Mutex] waiting for: [received:nodes:f8d05a0b-9d46-46b0-adae-77c746203183:localhost]

2023-07-10 12:51:23 | [Mutex] waiting for: [received:nodes:f8d05a0b-9d46-46b0-adae-77c746203183:localhost]

2023-07-10 12:51:23 | [Mutex] waiting for: [received:nodes:f8d05a0b-9d46-46b0-adae-77c746203183:localhost]

2023-07-10 12:51:23 | [Mutex] received everything.

2023-07-10 12:51:23 | [Mutex] isItemNotified: received:node:f8d05a0b-9d46-46b0-adae-77c746203183:localhost:node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2:Node 7c1553ce-26bf-48e4-adbd-e1adba68f4b2 :: true

createSubnodes 1.021s
2023-07-10 12:51:23 |

2023-07-10 12:51:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:23 | ------------------------------------

2023-07-10 12:51:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-70df3a1b-7428-411e-b7c6-52029892a486",
    "pubsub#title": "Node 70df3a1b-7428-411e-b7c6-52029892a486"
}

2023-07-10 12:51:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 12:51:24 | [Mutex] waiting for: [received:nodes:2bc2b5ab-d18d-4d2d-89d3-42fe73dc36a8:localhost]

2023-07-10 12:51:24 | [Mutex] waiting for: [received:nodes:2bc2b5ab-d18d-4d2d-89d3-42fe73dc36a8:localhost]

2023-07-10 12:51:24 | [Mutex] waiting for: [received:nodes:2bc2b5ab-d18d-4d2d-89d3-42fe73dc36a8:localhost]

2023-07-10 12:51:24 | [Mutex] waiting for: [received:nodes:2bc2b5ab-d18d-4d2d-89d3-42fe73dc36a8:localhost]

2023-07-10 12:51:24 | [Mutex] waiting for: [received:nodes:2bc2b5ab-d18d-4d2d-89d3-42fe73dc36a8:localhost]

2023-07-10 12:51:24 | [Mutex] received everything.

2023-07-10 12:51:24 | [Mutex] isItemNotified: received:node:2bc2b5ab-d18d-4d2d-89d3-42fe73dc36a8:localhost:node-70df3a1b-7428-411e-b7c6-52029892a486:Node 70df3a1b-7428-411e-b7c6-52029892a486 :: true

deleteNodes 1.019s
2023-07-10 12:51:29 |

2023-07-10 12:51:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:29 | ------------------------------------

2023-07-10 12:51:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-70df3a1b-7428-411e-b7c6-52029892a486"
}

2023-07-10 12:51:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 12:51:30 | [Mutex] waiting for: [received:nodes:98b35abd-e42e-4b8f-b7ce-a53031256b38:localhost]

2023-07-10 12:51:30 | [Mutex] waiting for: [received:nodes:98b35abd-e42e-4b8f-b7ce-a53031256b38:localhost]

2023-07-10 12:51:30 | [Mutex] waiting for: [received:nodes:98b35abd-e42e-4b8f-b7ce-a53031256b38:localhost]

2023-07-10 12:51:30 | [Mutex] received everything.

2023-07-10 12:51:30 | [Mutex] isItemNotified: received:node:98b35abd-e42e-4b8f-b7ce-a53031256b38:localhost:node-70df3a1b-7428-411e-b7c6-52029892a486:Node 70df3a1b-7428-411e-b7c6-52029892a486 :: false

deleteSubnodes 1.050s
2023-07-10 12:51:28 |

2023-07-10 12:51:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:28 | ------------------------------------

2023-07-10 12:51:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2"
}

2023-07-10 12:51:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-10 12:51:29 | [Mutex] waiting for: [received:nodes:deef708c-5735-478d-a8ac-7842809f0fc5:localhost]

2023-07-10 12:51:29 | [Mutex] waiting for: [received:nodes:deef708c-5735-478d-a8ac-7842809f0fc5:localhost]

2023-07-10 12:51:29 | [Mutex] waiting for: [received:nodes:deef708c-5735-478d-a8ac-7842809f0fc5:localhost]

2023-07-10 12:51:29 | [Mutex] received everything.

2023-07-10 12:51:29 | [Mutex] isItemNotified: received:node:deef708c-5735-478d-a8ac-7842809f0fc5:localhost:node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2:Node 7c1553ce-26bf-48e4-adbd-e1adba68f4b2 :: false

2023-07-10 12:51:29 | [Mutex] waiting for: [received:nodes:384cc889-9f0e-4423-98a6-8a1405f11a9d:localhost]

2023-07-10 12:51:29 | [Mutex] received everything.

2023-07-10 12:51:29 | [Mutex] isItemNotified: received:node:384cc889-9f0e-4423-98a6-8a1405f11a9d:localhost:node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2:Node 7c1553ce-26bf-48e4-adbd-e1adba68f4b2 :: false

publishItemsToNodes 0.046s
2023-07-10 12:51:26 |

2023-07-10 12:51:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:26 | ------------------------------------

2023-07-10 12:51:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2",
    "entry": "<test>item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b</test>",
    "item-id": "item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b"
}

2023-07-10 12:51:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b"
}

2023-07-10 12:51:26 | [Mutex] waiting for: [published:item:notifieditem-65d8098d-2a58-4cea-86e3-f4dd1b0f603b:admin@test-domain.com]

2023-07-10 12:51:26 | [Mutex] received everything.

2023-07-10 12:51:26 | [Mutex] isItemNotified: published:item:notifieditem-65d8098d-2a58-4cea-86e3-f4dd1b0f603b:admin@test-domain.com :: true

retractItemsFromNodes 0.084s
2023-07-10 12:51:27 |

2023-07-10 12:51:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:27 | ------------------------------------

2023-07-10 12:51:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2",
    "item-id": "item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b"
}

2023-07-10 12:51:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b"
}

2023-07-10 12:51:27 | [Mutex] received everything.

2023-07-10 12:51:27 | [Mutex] isItemNotified: retracted:item:notifieditem-65d8098d-2a58-4cea-86e3-f4dd1b0f603b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.052s
2023-07-10 12:51:26 |

2023-07-10 12:51:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:26 | ------------------------------------

2023-07-10 12:51:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2",
    "item-id": "item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b"
}

2023-07-10 12:51:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2",
    "item-id": "item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b",
    "item": [
        "<item id=\"item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b\"><test>item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b</test></item>"
    ]
}

2023-07-10 12:51:26 | [Mutex] notify: [retrieved:item:item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b:payload-matches:true:localhost]

2023-07-10 12:51:26 | [Mutex] received everything.

2023-07-10 12:51:26 | [Mutex] isItemNotified: retrieved:item:item-65d8098d-2a58-4cea-86e3-f4dd1b0f603b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-07-10 12:51:26 |

2023-07-10 12:51:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:26 | ------------------------------------

2023-07-10 12:51:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-10 12:51:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-70df3a1b-7428-411e-b7c6-52029892a486",
        "test",
        "node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-07-10 12:51:26 |

2023-07-10 12:51:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:26 | ------------------------------------

2023-07-10 12:51:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2)"
}

2023-07-10 12:51:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2023-07-10 12:51:25 |

2023-07-10 12:51:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:25 | ------------------------------------

2023-07-10 12:51:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-10 12:51:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-07-10 12:51:27 |

2023-07-10 12:51:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-10 12:51:27 | ------------------------------------

2023-07-10 12:51:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7c1553ce-26bf-48e4-adbd-e1adba68f4b2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-10 12:51:27 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}