Generated by TestNG with ReportNG at 22:46 PDT on Friday 25 August 2023
root@c198f8de0a9c / 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.565s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2023-08-25 23:01:08 |

2023-08-25 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:08 | ------------------------------------

2023-08-25 23:01:08 | [Mutex] waiting for: [configured:node:node-54de78cf-e431-4182-9c31-e2409692dffd:node-f207bba2-3261-4d45-8213-c60f672c904a]

2023-08-25 23:01:08 | [Mutex] received everything.

2023-08-25 23:01:08 | [Mutex] isItemNotified: configured:node:node-54de78cf-e431-4182-9c31-e2409692dffd:node-f207bba2-3261-4d45-8213-c60f672c904a :: true

2023-08-25 23:01:09 | [Mutex] waiting for: [received:nodes:c275bd37-1556-4447-9fec-96ad245a8859:localhost]

2023-08-25 23:01:09 | [Mutex] received everything.

2023-08-25 23:01:09 | [Mutex] isItemNotified: received:node:c275bd37-1556-4447-9fec-96ad245a8859:localhost:node-54de78cf-e431-4182-9c31-e2409692dffd:Node 54de78cf-e431-4182-9c31-e2409692dffd :: true

2023-08-25 23:01:09 | [Mutex] waiting for: [received:nodes:db39f468-1af2-4023-9571-a0d4170a6c6d:localhost]

2023-08-25 23:01:09 | [Mutex] waiting for: [received:nodes:db39f468-1af2-4023-9571-a0d4170a6c6d:localhost]

2023-08-25 23:01:09 | [Mutex] waiting for: [received:nodes:db39f468-1af2-4023-9571-a0d4170a6c6d:localhost]

2023-08-25 23:01:09 | [Mutex] waiting for: [received:nodes:db39f468-1af2-4023-9571-a0d4170a6c6d:localhost]

2023-08-25 23:01:09 | [Mutex] received everything.

2023-08-25 23:01:09 | [Mutex] isItemNotified: received:node:db39f468-1af2-4023-9571-a0d4170a6c6d:localhost:node-54de78cf-e431-4182-9c31-e2409692dffd:Node 54de78cf-e431-4182-9c31-e2409692dffd :: false

createNodes 1.591s
2023-08-25 23:01:05 |

2023-08-25 23:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:05 | ------------------------------------

2023-08-25 23:01:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-54de78cf-e431-4182-9c31-e2409692dffd",
    "pubsub#title": "Node 54de78cf-e431-4182-9c31-e2409692dffd"
}

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

2023-08-25 23:01:07 | [Mutex] waiting for: [received:nodes:6cb818f9-ca30-49ce-a891-5a6e15fecd12:localhost]

2023-08-25 23:01:07 | [Mutex] waiting for: [received:nodes:6cb818f9-ca30-49ce-a891-5a6e15fecd12:localhost]

2023-08-25 23:01:07 | [Mutex] waiting for: [received:nodes:6cb818f9-ca30-49ce-a891-5a6e15fecd12:localhost]

2023-08-25 23:01:07 | [Mutex] waiting for: [received:nodes:6cb818f9-ca30-49ce-a891-5a6e15fecd12:localhost]

2023-08-25 23:01:07 | [Mutex] received everything.

2023-08-25 23:01:07 | [Mutex] isItemNotified: received:node:6cb818f9-ca30-49ce-a891-5a6e15fecd12:localhost:node-54de78cf-e431-4182-9c31-e2409692dffd:Node 54de78cf-e431-4182-9c31-e2409692dffd :: true

createSubnodes 1.022s
2023-08-25 23:01:07 |

2023-08-25 23:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:07 | ------------------------------------

2023-08-25 23:01:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f207bba2-3261-4d45-8213-c60f672c904a",
    "pubsub#title": "Node f207bba2-3261-4d45-8213-c60f672c904a"
}

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

2023-08-25 23:01:08 | [Mutex] waiting for: [received:nodes:fa93af48-665c-4ccd-8f7f-59b981f6b2ee:localhost]

2023-08-25 23:01:08 | [Mutex] waiting for: [received:nodes:fa93af48-665c-4ccd-8f7f-59b981f6b2ee:localhost]

2023-08-25 23:01:08 | [Mutex] waiting for: [received:nodes:fa93af48-665c-4ccd-8f7f-59b981f6b2ee:localhost]

2023-08-25 23:01:08 | [Mutex] waiting for: [received:nodes:fa93af48-665c-4ccd-8f7f-59b981f6b2ee:localhost]

2023-08-25 23:01:08 | [Mutex] waiting for: [received:nodes:fa93af48-665c-4ccd-8f7f-59b981f6b2ee:localhost]

2023-08-25 23:01:08 | [Mutex] received everything.

2023-08-25 23:01:08 | [Mutex] isItemNotified: received:node:fa93af48-665c-4ccd-8f7f-59b981f6b2ee:localhost:node-f207bba2-3261-4d45-8213-c60f672c904a:Node f207bba2-3261-4d45-8213-c60f672c904a :: true

deleteNodes 1.015s
2023-08-25 23:01:12 |

2023-08-25 23:01:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:12 | ------------------------------------

2023-08-25 23:01:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f207bba2-3261-4d45-8213-c60f672c904a"
}

2023-08-25 23:01:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 23:01:13 | [Mutex] waiting for: [received:nodes:af83037f-2644-4008-9df3-f2f231db4860:localhost]

2023-08-25 23:01:13 | [Mutex] waiting for: [received:nodes:af83037f-2644-4008-9df3-f2f231db4860:localhost]

2023-08-25 23:01:13 | [Mutex] waiting for: [received:nodes:af83037f-2644-4008-9df3-f2f231db4860:localhost]

2023-08-25 23:01:13 | [Mutex] received everything.

2023-08-25 23:01:13 | [Mutex] isItemNotified: received:node:af83037f-2644-4008-9df3-f2f231db4860:localhost:node-f207bba2-3261-4d45-8213-c60f672c904a:Node f207bba2-3261-4d45-8213-c60f672c904a :: false

deleteSubnodes 1.023s
2023-08-25 23:01:11 |

2023-08-25 23:01:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:11 | ------------------------------------

2023-08-25 23:01:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-54de78cf-e431-4182-9c31-e2409692dffd"
}

2023-08-25 23:01:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-25 23:01:12 | [Mutex] waiting for: [received:nodes:999a1b11-83b9-454e-b6d3-67b1406e3785:localhost]

2023-08-25 23:01:12 | [Mutex] waiting for: [received:nodes:999a1b11-83b9-454e-b6d3-67b1406e3785:localhost]

2023-08-25 23:01:12 | [Mutex] waiting for: [received:nodes:999a1b11-83b9-454e-b6d3-67b1406e3785:localhost]

2023-08-25 23:01:12 | [Mutex] received everything.

2023-08-25 23:01:12 | [Mutex] isItemNotified: received:node:999a1b11-83b9-454e-b6d3-67b1406e3785:localhost:node-54de78cf-e431-4182-9c31-e2409692dffd:Node 54de78cf-e431-4182-9c31-e2409692dffd :: false

2023-08-25 23:01:12 | [Mutex] waiting for: [received:nodes:9bab36b6-6300-4970-96ec-9e881358485d:localhost]

2023-08-25 23:01:12 | [Mutex] received everything.

2023-08-25 23:01:12 | [Mutex] isItemNotified: received:node:9bab36b6-6300-4970-96ec-9e881358485d:localhost:node-54de78cf-e431-4182-9c31-e2409692dffd:Node 54de78cf-e431-4182-9c31-e2409692dffd :: false

publishItemsToNodes 0.043s
2023-08-25 23:01:10 |

2023-08-25 23:01:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:10 | ------------------------------------

2023-08-25 23:01:10 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-54de78cf-e431-4182-9c31-e2409692dffd",
    "entry": "<test>item-0ec8e632-d23b-4f16-9f18-e412847736ff</test>",
    "item-id": "item-0ec8e632-d23b-4f16-9f18-e412847736ff"
}

2023-08-25 23:01:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0ec8e632-d23b-4f16-9f18-e412847736ff"
}

2023-08-25 23:01:10 | [Mutex] waiting for: [published:item:notifieditem-0ec8e632-d23b-4f16-9f18-e412847736ff:admin@test-domain.com]

2023-08-25 23:01:10 | [Mutex] received everything.

2023-08-25 23:01:10 | [Mutex] isItemNotified: published:item:notifieditem-0ec8e632-d23b-4f16-9f18-e412847736ff:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-08-25 23:01:10 |

2023-08-25 23:01:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:10 | ------------------------------------

2023-08-25 23:01:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-54de78cf-e431-4182-9c31-e2409692dffd",
    "item-id": "item-0ec8e632-d23b-4f16-9f18-e412847736ff"
}

2023-08-25 23:01:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0ec8e632-d23b-4f16-9f18-e412847736ff"
}

2023-08-25 23:01:10 | [Mutex] received everything.

2023-08-25 23:01:10 | [Mutex] isItemNotified: retracted:item:notifieditem-0ec8e632-d23b-4f16-9f18-e412847736ff:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2023-08-25 23:01:10 |

2023-08-25 23:01:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:10 | ------------------------------------

2023-08-25 23:01:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-54de78cf-e431-4182-9c31-e2409692dffd",
    "item-id": "item-0ec8e632-d23b-4f16-9f18-e412847736ff"
}

2023-08-25 23:01:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-54de78cf-e431-4182-9c31-e2409692dffd",
    "item-id": "item-0ec8e632-d23b-4f16-9f18-e412847736ff",
    "item": [
        "<item id=\"item-0ec8e632-d23b-4f16-9f18-e412847736ff\"><test>item-0ec8e632-d23b-4f16-9f18-e412847736ff</test></item>"
    ]
}

2023-08-25 23:01:10 | [Mutex] notify: [retrieved:item:item-0ec8e632-d23b-4f16-9f18-e412847736ff:payload-matches:true:localhost]

2023-08-25 23:01:10 | [Mutex] received everything.

2023-08-25 23:01:10 | [Mutex] isItemNotified: retrieved:item:item-0ec8e632-d23b-4f16-9f18-e412847736ff:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.067s
2023-08-25 23:01:10 |

2023-08-25 23:01:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:10 | ------------------------------------

2023-08-25 23:01:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-08-25 23:01:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-54de78cf-e431-4182-9c31-e2409692dffd",
        "node-f207bba2-3261-4d45-8213-c60f672c904a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-08-25 23:01:10 |

2023-08-25 23:01:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:10 | ------------------------------------

2023-08-25 23:01:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-54de78cf-e431-4182-9c31-e2409692dffd)"
}

2023-08-25 23:01:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-08-25 23:01:09 |

2023-08-25 23:01:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:09 | ------------------------------------

2023-08-25 23:01:09 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-54de78cf-e431-4182-9c31-e2409692dffd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 23:01:09 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-08-25 23:01:10 |

2023-08-25 23:01:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 23:01:10 | ------------------------------------

2023-08-25 23:01:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-54de78cf-e431-4182-9c31-e2409692dffd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 23:01:10 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}