Generated by TestNG with ReportNG at 22:30 PDT on Friday 07 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.592s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2023-07-07 22:45:11 |

2023-07-07 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:11 | ------------------------------------

2023-07-07 22:45:11 | [Mutex] waiting for: [configured:node:node-a58d25b6-1952-450c-ab40-e95c53bf3751:node-f082efad-02f1-479f-bff8-57211bf9a6d6]

2023-07-07 22:45:11 | [Mutex] received everything.

2023-07-07 22:45:11 | [Mutex] isItemNotified: configured:node:node-a58d25b6-1952-450c-ab40-e95c53bf3751:node-f082efad-02f1-479f-bff8-57211bf9a6d6 :: true

2023-07-07 22:45:12 | [Mutex] waiting for: [received:nodes:9673dae6-852f-410e-b80d-aa29a973c637:localhost]

2023-07-07 22:45:12 | [Mutex] received everything.

2023-07-07 22:45:12 | [Mutex] isItemNotified: received:node:9673dae6-852f-410e-b80d-aa29a973c637:localhost:node-a58d25b6-1952-450c-ab40-e95c53bf3751:Node a58d25b6-1952-450c-ab40-e95c53bf3751 :: true

2023-07-07 22:45:12 | [Mutex] waiting for: [received:nodes:d10716d3-29a8-43fc-9ca4-32db3d18584d:localhost]

2023-07-07 22:45:12 | [Mutex] waiting for: [received:nodes:d10716d3-29a8-43fc-9ca4-32db3d18584d:localhost]

2023-07-07 22:45:12 | [Mutex] waiting for: [received:nodes:d10716d3-29a8-43fc-9ca4-32db3d18584d:localhost]

2023-07-07 22:45:12 | [Mutex] received everything.

2023-07-07 22:45:12 | [Mutex] isItemNotified: received:node:d10716d3-29a8-43fc-9ca4-32db3d18584d:localhost:node-a58d25b6-1952-450c-ab40-e95c53bf3751:Node a58d25b6-1952-450c-ab40-e95c53bf3751 :: false

createNodes 1.568s
2023-07-07 22:45:08 |

2023-07-07 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:08 | ------------------------------------

2023-07-07 22:45:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a58d25b6-1952-450c-ab40-e95c53bf3751",
    "pubsub#title": "Node a58d25b6-1952-450c-ab40-e95c53bf3751"
}

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

2023-07-07 22:45:10 | [Mutex] waiting for: [received:nodes:69424ff3-6ff7-4125-b232-54840dc658af:localhost]

2023-07-07 22:45:10 | [Mutex] waiting for: [received:nodes:69424ff3-6ff7-4125-b232-54840dc658af:localhost]

2023-07-07 22:45:10 | [Mutex] waiting for: [received:nodes:69424ff3-6ff7-4125-b232-54840dc658af:localhost]

2023-07-07 22:45:10 | [Mutex] received everything.

2023-07-07 22:45:10 | [Mutex] isItemNotified: received:node:69424ff3-6ff7-4125-b232-54840dc658af:localhost:node-a58d25b6-1952-450c-ab40-e95c53bf3751:Node a58d25b6-1952-450c-ab40-e95c53bf3751 :: true

createSubnodes 1.028s
2023-07-07 22:45:10 |

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

2023-07-07 22:45:10 | ------------------------------------

2023-07-07 22:45:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f082efad-02f1-479f-bff8-57211bf9a6d6",
    "pubsub#title": "Node f082efad-02f1-479f-bff8-57211bf9a6d6"
}

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

2023-07-07 22:45:11 | [Mutex] waiting for: [received:nodes:1d169de3-1774-4c09-b9bf-d48293b860da:localhost]

2023-07-07 22:45:11 | [Mutex] waiting for: [received:nodes:1d169de3-1774-4c09-b9bf-d48293b860da:localhost]

2023-07-07 22:45:11 | [Mutex] waiting for: [received:nodes:1d169de3-1774-4c09-b9bf-d48293b860da:localhost]

2023-07-07 22:45:11 | [Mutex] waiting for: [received:nodes:1d169de3-1774-4c09-b9bf-d48293b860da:localhost]

2023-07-07 22:45:11 | [Mutex] received everything.

2023-07-07 22:45:11 | [Mutex] isItemNotified: received:node:1d169de3-1774-4c09-b9bf-d48293b860da:localhost:node-f082efad-02f1-479f-bff8-57211bf9a6d6:Node f082efad-02f1-479f-bff8-57211bf9a6d6 :: true

deleteNodes 1.033s
2023-07-07 22:45:15 |

2023-07-07 22:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:15 | ------------------------------------

2023-07-07 22:45:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f082efad-02f1-479f-bff8-57211bf9a6d6"
}

2023-07-07 22:45:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-07 22:45:16 | [Mutex] waiting for: [received:nodes:4b1f3395-440c-4773-a5a7-0444e252dc01:localhost]

2023-07-07 22:45:16 | [Mutex] received everything.

2023-07-07 22:45:16 | [Mutex] isItemNotified: received:node:4b1f3395-440c-4773-a5a7-0444e252dc01:localhost:node-f082efad-02f1-479f-bff8-57211bf9a6d6:Node f082efad-02f1-479f-bff8-57211bf9a6d6 :: false

deleteSubnodes 1.026s
2023-07-07 22:45:14 |

2023-07-07 22:45:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:14 | ------------------------------------

2023-07-07 22:45:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a58d25b6-1952-450c-ab40-e95c53bf3751"
}

2023-07-07 22:45:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-07 22:45:15 | [Mutex] waiting for: [received:nodes:ba34f5de-2d28-484b-9f4a-052927e92635:localhost]

2023-07-07 22:45:15 | [Mutex] waiting for: [received:nodes:ba34f5de-2d28-484b-9f4a-052927e92635:localhost]

2023-07-07 22:45:15 | [Mutex] waiting for: [received:nodes:ba34f5de-2d28-484b-9f4a-052927e92635:localhost]

2023-07-07 22:45:15 | [Mutex] received everything.

2023-07-07 22:45:15 | [Mutex] isItemNotified: received:node:ba34f5de-2d28-484b-9f4a-052927e92635:localhost:node-a58d25b6-1952-450c-ab40-e95c53bf3751:Node a58d25b6-1952-450c-ab40-e95c53bf3751 :: false

2023-07-07 22:45:15 | [Mutex] waiting for: [received:nodes:f36927c3-5c5a-45a4-8918-4827c269eb1a:localhost]

2023-07-07 22:45:15 | [Mutex] received everything.

2023-07-07 22:45:15 | [Mutex] isItemNotified: received:node:f36927c3-5c5a-45a4-8918-4827c269eb1a:localhost:node-a58d25b6-1952-450c-ab40-e95c53bf3751:Node a58d25b6-1952-450c-ab40-e95c53bf3751 :: false

publishItemsToNodes 0.045s
2023-07-07 22:45:13 |

2023-07-07 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:13 | ------------------------------------

2023-07-07 22:45:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a58d25b6-1952-450c-ab40-e95c53bf3751",
    "entry": "<test>item-724790d4-66da-4757-9090-6146f21fd53b</test>",
    "item-id": "item-724790d4-66da-4757-9090-6146f21fd53b"
}

2023-07-07 22:45:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-724790d4-66da-4757-9090-6146f21fd53b"
}

2023-07-07 22:45:13 | [Mutex] received everything.

2023-07-07 22:45:13 | [Mutex] isItemNotified: published:item:notifieditem-724790d4-66da-4757-9090-6146f21fd53b:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2023-07-07 22:45:13 |

2023-07-07 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:13 | ------------------------------------

2023-07-07 22:45:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a58d25b6-1952-450c-ab40-e95c53bf3751",
    "item-id": "item-724790d4-66da-4757-9090-6146f21fd53b"
}

2023-07-07 22:45:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-724790d4-66da-4757-9090-6146f21fd53b"
}

2023-07-07 22:45:13 | [Mutex] received everything.

2023-07-07 22:45:13 | [Mutex] isItemNotified: retracted:item:notifieditem-724790d4-66da-4757-9090-6146f21fd53b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2023-07-07 22:45:13 |

2023-07-07 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:13 | ------------------------------------

2023-07-07 22:45:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a58d25b6-1952-450c-ab40-e95c53bf3751",
    "item-id": "item-724790d4-66da-4757-9090-6146f21fd53b"
}

2023-07-07 22:45:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a58d25b6-1952-450c-ab40-e95c53bf3751",
    "item-id": "item-724790d4-66da-4757-9090-6146f21fd53b",
    "item": [
        "<item id=\"item-724790d4-66da-4757-9090-6146f21fd53b\"><test>item-724790d4-66da-4757-9090-6146f21fd53b</test></item>"
    ]
}

2023-07-07 22:45:13 | [Mutex] notify: [retrieved:item:item-724790d4-66da-4757-9090-6146f21fd53b:payload-matches:true:localhost]

2023-07-07 22:45:13 | [Mutex] received everything.

2023-07-07 22:45:13 | [Mutex] isItemNotified: retrieved:item:item-724790d4-66da-4757-9090-6146f21fd53b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.071s
2023-07-07 22:45:13 |

2023-07-07 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:13 | ------------------------------------

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

2023-07-07 22:45:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f082efad-02f1-479f-bff8-57211bf9a6d6",
        "test",
        "node-a58d25b6-1952-450c-ab40-e95c53bf3751"
    ]
}

retrieveUserSubscriptionsWithRegex 0.057s
2023-07-07 22:45:13 |

2023-07-07 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:13 | ------------------------------------

2023-07-07 22:45:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a58d25b6-1952-450c-ab40-e95c53bf3751)"
}

2023-07-07 22:45:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-07-07 22:45:12 |

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

2023-07-07 22:45:12 | ------------------------------------

2023-07-07 22:45:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a58d25b6-1952-450c-ab40-e95c53bf3751",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2023-07-07 22:45:13 |

2023-07-07 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-07 22:45:13 | ------------------------------------

2023-07-07 22:45:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a58d25b6-1952-450c-ab40-e95c53bf3751",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-07 22:45:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}