Generated by TestNG with ReportNG at 22:50 PDT on Friday 08 July 2022
root@ed1b7dd8a1b3 / 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.619s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2022-07-08 23:04:16 |

2022-07-08 23:04:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:16 | ------------------------------------

2022-07-08 23:04:16 | [Mutex] waiting for: [configured:node:node-0082c930-284a-40eb-8557-8ec65cdfab2a:node-c48a90df-ff8d-4db8-bca2-acf5553252d5]

2022-07-08 23:04:16 | [Mutex] received everything.

2022-07-08 23:04:16 | [Mutex] isItemNotified: configured:node:node-0082c930-284a-40eb-8557-8ec65cdfab2a:node-c48a90df-ff8d-4db8-bca2-acf5553252d5 :: true

2022-07-08 23:04:17 | [Mutex] waiting for: [received:nodes:2d12fcf1-9d34-4946-a2c5-2497f3887869:localhost]

2022-07-08 23:04:17 | [Mutex] received everything.

2022-07-08 23:04:17 | [Mutex] isItemNotified: received:node:2d12fcf1-9d34-4946-a2c5-2497f3887869:localhost:node-0082c930-284a-40eb-8557-8ec65cdfab2a:Node 0082c930-284a-40eb-8557-8ec65cdfab2a :: true

2022-07-08 23:04:17 | [Mutex] waiting for: [received:nodes:3f88e7bb-670f-4d87-970c-d6e1817a1aff:localhost]

2022-07-08 23:04:17 | [Mutex] received everything.

2022-07-08 23:04:17 | [Mutex] isItemNotified: received:node:3f88e7bb-670f-4d87-970c-d6e1817a1aff:localhost:node-0082c930-284a-40eb-8557-8ec65cdfab2a:Node 0082c930-284a-40eb-8557-8ec65cdfab2a :: false

createNodes 1.527s
2022-07-08 23:04:13 |

2022-07-08 23:04:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:13 | ------------------------------------

2022-07-08 23:04:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0082c930-284a-40eb-8557-8ec65cdfab2a",
    "pubsub#title": "Node 0082c930-284a-40eb-8557-8ec65cdfab2a"
}

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

2022-07-08 23:04:15 | [Mutex] waiting for: [received:nodes:36080853-d477-4a0f-a6b0-75414e86df2d:localhost]

2022-07-08 23:04:15 | [Mutex] waiting for: [received:nodes:36080853-d477-4a0f-a6b0-75414e86df2d:localhost]

2022-07-08 23:04:15 | [Mutex] received everything.

2022-07-08 23:04:15 | [Mutex] isItemNotified: received:node:36080853-d477-4a0f-a6b0-75414e86df2d:localhost:node-0082c930-284a-40eb-8557-8ec65cdfab2a:Node 0082c930-284a-40eb-8557-8ec65cdfab2a :: true

createSubnodes 1.024s
2022-07-08 23:04:15 |

2022-07-08 23:04:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:15 | ------------------------------------

2022-07-08 23:04:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c48a90df-ff8d-4db8-bca2-acf5553252d5",
    "pubsub#title": "Node c48a90df-ff8d-4db8-bca2-acf5553252d5"
}

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

2022-07-08 23:04:16 | [Mutex] waiting for: [received:nodes:ba38e216-2203-447f-a4f5-2a315ac9442c:localhost]

2022-07-08 23:04:16 | [Mutex] waiting for: [received:nodes:ba38e216-2203-447f-a4f5-2a315ac9442c:localhost]

2022-07-08 23:04:16 | [Mutex] received everything.

2022-07-08 23:04:16 | [Mutex] isItemNotified: received:node:ba38e216-2203-447f-a4f5-2a315ac9442c:localhost:node-c48a90df-ff8d-4db8-bca2-acf5553252d5:Node c48a90df-ff8d-4db8-bca2-acf5553252d5 :: true

deleteNodes 1.018s
2022-07-08 23:04:20 |

2022-07-08 23:04:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:20 | ------------------------------------

2022-07-08 23:04:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c48a90df-ff8d-4db8-bca2-acf5553252d5"
}

2022-07-08 23:04:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-08 23:04:21 | [Mutex] waiting for: [received:nodes:30b77b89-e5c6-4d22-954a-c4aea957833a:localhost]

2022-07-08 23:04:21 | [Mutex] waiting for: [received:nodes:30b77b89-e5c6-4d22-954a-c4aea957833a:localhost]

2022-07-08 23:04:21 | [Mutex] received everything.

2022-07-08 23:04:21 | [Mutex] isItemNotified: received:node:30b77b89-e5c6-4d22-954a-c4aea957833a:localhost:node-c48a90df-ff8d-4db8-bca2-acf5553252d5:Node c48a90df-ff8d-4db8-bca2-acf5553252d5 :: false

deleteSubnodes 1.077s
2022-07-08 23:04:19 |

2022-07-08 23:04:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:19 | ------------------------------------

2022-07-08 23:04:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0082c930-284a-40eb-8557-8ec65cdfab2a"
}

2022-07-08 23:04:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-08 23:04:20 | [Mutex] waiting for: [received:nodes:8e308a3e-5ad2-4a5c-8a79-f031af9474b0:localhost]

2022-07-08 23:04:20 | [Mutex] received everything.

2022-07-08 23:04:20 | [Mutex] isItemNotified: received:node:8e308a3e-5ad2-4a5c-8a79-f031af9474b0:localhost:node-0082c930-284a-40eb-8557-8ec65cdfab2a:Node 0082c930-284a-40eb-8557-8ec65cdfab2a :: false

2022-07-08 23:04:20 | [Mutex] waiting for: [received:nodes:4e72a5f6-d70a-4bc4-ad1d-e232b51a433b:localhost]

2022-07-08 23:04:20 | [Mutex] received everything.

2022-07-08 23:04:20 | [Mutex] isItemNotified: received:node:4e72a5f6-d70a-4bc4-ad1d-e232b51a433b:localhost:node-0082c930-284a-40eb-8557-8ec65cdfab2a:Node 0082c930-284a-40eb-8557-8ec65cdfab2a :: false

publishItemsToNodes 0.069s
2022-07-08 23:04:18 |

2022-07-08 23:04:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:18 | ------------------------------------

2022-07-08 23:04:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0082c930-284a-40eb-8557-8ec65cdfab2a",
    "entry": "<test>item-826b0285-01cf-4964-972e-809c711802db</test>",
    "item-id": "item-826b0285-01cf-4964-972e-809c711802db"
}

2022-07-08 23:04:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-826b0285-01cf-4964-972e-809c711802db"
}

2022-07-08 23:04:18 | [Mutex] waiting for: [published:item:notifieditem-826b0285-01cf-4964-972e-809c711802db:admin@test-domain.com]

2022-07-08 23:04:18 | [Mutex] received everything.

2022-07-08 23:04:18 | [Mutex] isItemNotified: published:item:notifieditem-826b0285-01cf-4964-972e-809c711802db:admin@test-domain.com :: true

retractItemsFromNodes 0.094s
2022-07-08 23:04:18 |

2022-07-08 23:04:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:18 | ------------------------------------

2022-07-08 23:04:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0082c930-284a-40eb-8557-8ec65cdfab2a",
    "item-id": "item-826b0285-01cf-4964-972e-809c711802db"
}

2022-07-08 23:04:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-826b0285-01cf-4964-972e-809c711802db"
}

2022-07-08 23:04:18 | [Mutex] waiting for: [retracted:item:notifieditem-826b0285-01cf-4964-972e-809c711802db:admin@test-domain.com]

2022-07-08 23:04:18 | [Mutex] received everything.

2022-07-08 23:04:18 | [Mutex] isItemNotified: retracted:item:notifieditem-826b0285-01cf-4964-972e-809c711802db:admin@test-domain.com :: true

retrieveItemsFromNodes 0.039s
2022-07-08 23:04:18 |

2022-07-08 23:04:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:18 | ------------------------------------

2022-07-08 23:04:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0082c930-284a-40eb-8557-8ec65cdfab2a",
    "item-id": "item-826b0285-01cf-4964-972e-809c711802db"
}

2022-07-08 23:04:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0082c930-284a-40eb-8557-8ec65cdfab2a",
    "item-id": "item-826b0285-01cf-4964-972e-809c711802db",
    "item": [
        "<item id=\"item-826b0285-01cf-4964-972e-809c711802db\"><test>item-826b0285-01cf-4964-972e-809c711802db</test></item>"
    ]
}

2022-07-08 23:04:18 | [Mutex] notify: [retrieved:item:item-826b0285-01cf-4964-972e-809c711802db:payload-matches:true:localhost]

2022-07-08 23:04:18 | [Mutex] received everything.

2022-07-08 23:04:18 | [Mutex] isItemNotified: retrieved:item:item-826b0285-01cf-4964-972e-809c711802db:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-07-08 23:04:18 |

2022-07-08 23:04:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:18 | ------------------------------------

2022-07-08 23:04:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-08 23:04:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-0082c930-284a-40eb-8557-8ec65cdfab2a",
        "test",
        "node-c48a90df-ff8d-4db8-bca2-acf5553252d5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-08 23:04:18 |

2022-07-08 23:04:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:18 | ------------------------------------

2022-07-08 23:04:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0082c930-284a-40eb-8557-8ec65cdfab2a)"
}

2022-07-08 23:04:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-07-08 23:04:17 |

2022-07-08 23:04:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:17 | ------------------------------------

2022-07-08 23:04:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0082c930-284a-40eb-8557-8ec65cdfab2a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-08 23:04:17 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.017s
2022-07-08 23:04:18 |

2022-07-08 23:04:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:04:18 | ------------------------------------

2022-07-08 23:04:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0082c930-284a-40eb-8557-8ec65cdfab2a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-08 23:04:18 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}