Generated by TestNG with ReportNG at 22:29 PDT on Friday 17 March 2023
root@7c41cec37518 / 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.677s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-03-17 22:44:11 |

2023-03-17 22:44:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:11 | ------------------------------------

2023-03-17 22:44:11 | [Mutex] waiting for: [configured:node:node-76a05d72-9bf0-425f-818a-d244d036ad91:node-a41d0042-dacc-4679-93d5-06f3b1236753]

2023-03-17 22:44:11 | [Mutex] received everything.

2023-03-17 22:44:11 | [Mutex] isItemNotified: configured:node:node-76a05d72-9bf0-425f-818a-d244d036ad91:node-a41d0042-dacc-4679-93d5-06f3b1236753 :: true

2023-03-17 22:44:12 | [Mutex] waiting for: [received:nodes:24c45f9a-8419-4fbc-828a-ce85d212f369:localhost]

2023-03-17 22:44:12 | [Mutex] received everything.

2023-03-17 22:44:12 | [Mutex] isItemNotified: received:node:24c45f9a-8419-4fbc-828a-ce85d212f369:localhost:node-76a05d72-9bf0-425f-818a-d244d036ad91:Node 76a05d72-9bf0-425f-818a-d244d036ad91 :: true

2023-03-17 22:44:12 | [Mutex] waiting for: [received:nodes:aa66ba52-f656-48e8-b427-147bda0a9aab:localhost]

2023-03-17 22:44:12 | [Mutex] waiting for: [received:nodes:aa66ba52-f656-48e8-b427-147bda0a9aab:localhost]

2023-03-17 22:44:12 | [Mutex] waiting for: [received:nodes:aa66ba52-f656-48e8-b427-147bda0a9aab:localhost]

2023-03-17 22:44:12 | [Mutex] waiting for: [received:nodes:aa66ba52-f656-48e8-b427-147bda0a9aab:localhost]

2023-03-17 22:44:12 | [Mutex] received everything.

2023-03-17 22:44:12 | [Mutex] isItemNotified: received:node:aa66ba52-f656-48e8-b427-147bda0a9aab:localhost:node-76a05d72-9bf0-425f-818a-d244d036ad91:Node 76a05d72-9bf0-425f-818a-d244d036ad91 :: false

createNodes 1.582s
2023-03-17 22:44:09 |

2023-03-17 22:44:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:09 | ------------------------------------

2023-03-17 22:44: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-76a05d72-9bf0-425f-818a-d244d036ad91",
    "pubsub#title": "Node 76a05d72-9bf0-425f-818a-d244d036ad91"
}

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

2023-03-17 22:44:10 | [Mutex] waiting for: [received:nodes:0d160edf-0d97-4249-8568-0a905bc6bc78:localhost]

2023-03-17 22:44:10 | [Mutex] waiting for: [received:nodes:0d160edf-0d97-4249-8568-0a905bc6bc78:localhost]

2023-03-17 22:44:10 | [Mutex] received everything.

2023-03-17 22:44:10 | [Mutex] isItemNotified: received:node:0d160edf-0d97-4249-8568-0a905bc6bc78:localhost:node-76a05d72-9bf0-425f-818a-d244d036ad91:Node 76a05d72-9bf0-425f-818a-d244d036ad91 :: true

createSubnodes 1.030s
2023-03-17 22:44:10 |

2023-03-17 22:44:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:10 | ------------------------------------

2023-03-17 22:44: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-a41d0042-dacc-4679-93d5-06f3b1236753",
    "pubsub#title": "Node a41d0042-dacc-4679-93d5-06f3b1236753"
}

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

2023-03-17 22:44:11 | [Mutex] waiting for: [received:nodes:010d8aa1-33cc-4153-b1d1-2f3b83f32d0e:localhost]

2023-03-17 22:44:11 | [Mutex] waiting for: [received:nodes:010d8aa1-33cc-4153-b1d1-2f3b83f32d0e:localhost]

2023-03-17 22:44:11 | [Mutex] received everything.

2023-03-17 22:44:11 | [Mutex] isItemNotified: received:node:010d8aa1-33cc-4153-b1d1-2f3b83f32d0e:localhost:node-a41d0042-dacc-4679-93d5-06f3b1236753:Node a41d0042-dacc-4679-93d5-06f3b1236753 :: true

deleteNodes 1.026s
2023-03-17 22:44:16 |

2023-03-17 22:44:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:16 | ------------------------------------

2023-03-17 22:44:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a41d0042-dacc-4679-93d5-06f3b1236753"
}

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

2023-03-17 22:44:17 | [Mutex] waiting for: [received:nodes:2c7431ad-7d5d-4c2e-b50b-8e5869faeb3f:localhost]

2023-03-17 22:44:17 | [Mutex] waiting for: [received:nodes:2c7431ad-7d5d-4c2e-b50b-8e5869faeb3f:localhost]

2023-03-17 22:44:17 | [Mutex] waiting for: [received:nodes:2c7431ad-7d5d-4c2e-b50b-8e5869faeb3f:localhost]

2023-03-17 22:44:17 | [Mutex] received everything.

2023-03-17 22:44:17 | [Mutex] isItemNotified: received:node:2c7431ad-7d5d-4c2e-b50b-8e5869faeb3f:localhost:node-a41d0042-dacc-4679-93d5-06f3b1236753:Node a41d0042-dacc-4679-93d5-06f3b1236753 :: false

deleteSubnodes 1.031s
2023-03-17 22:44:15 |

2023-03-17 22:44:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:15 | ------------------------------------

2023-03-17 22:44:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-76a05d72-9bf0-425f-818a-d244d036ad91"
}

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

2023-03-17 22:44:16 | [Mutex] waiting for: [received:nodes:039e230e-fe94-4bf3-87a1-6621b24231fb:localhost]

2023-03-17 22:44:16 | [Mutex] waiting for: [received:nodes:039e230e-fe94-4bf3-87a1-6621b24231fb:localhost]

2023-03-17 22:44:16 | [Mutex] waiting for: [received:nodes:039e230e-fe94-4bf3-87a1-6621b24231fb:localhost]

2023-03-17 22:44:16 | [Mutex] waiting for: [received:nodes:039e230e-fe94-4bf3-87a1-6621b24231fb:localhost]

2023-03-17 22:44:16 | [Mutex] received everything.

2023-03-17 22:44:16 | [Mutex] isItemNotified: received:node:039e230e-fe94-4bf3-87a1-6621b24231fb:localhost:node-76a05d72-9bf0-425f-818a-d244d036ad91:Node 76a05d72-9bf0-425f-818a-d244d036ad91 :: false

2023-03-17 22:44:16 | [Mutex] waiting for: [received:nodes:bdafc5a6-5375-43df-97eb-cbf2df1bbe61:localhost]

2023-03-17 22:44:16 | [Mutex] received everything.

2023-03-17 22:44:16 | [Mutex] isItemNotified: received:node:bdafc5a6-5375-43df-97eb-cbf2df1bbe61:localhost:node-76a05d72-9bf0-425f-818a-d244d036ad91:Node 76a05d72-9bf0-425f-818a-d244d036ad91 :: false

publishItemsToNodes 0.044s
2023-03-17 22:44:13 |

2023-03-17 22:44:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:13 | ------------------------------------

2023-03-17 22:44:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-76a05d72-9bf0-425f-818a-d244d036ad91",
    "entry": "<test>item-a6416152-5063-4e5d-b1d8-f077992997e0</test>",
    "item-id": "item-a6416152-5063-4e5d-b1d8-f077992997e0"
}

2023-03-17 22:44:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a6416152-5063-4e5d-b1d8-f077992997e0"
}

2023-03-17 22:44:13 | [Mutex] waiting for: [published:item:notifieditem-a6416152-5063-4e5d-b1d8-f077992997e0:admin@test-domain.com]

2023-03-17 22:44:13 | [Mutex] received everything.

2023-03-17 22:44:13 | [Mutex] isItemNotified: published:item:notifieditem-a6416152-5063-4e5d-b1d8-f077992997e0:admin@test-domain.com :: true

retractItemsFromNodes 0.111s
2023-03-17 22:44:14 |

2023-03-17 22:44:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:14 | ------------------------------------

2023-03-17 22:44:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-76a05d72-9bf0-425f-818a-d244d036ad91",
    "item-id": "item-a6416152-5063-4e5d-b1d8-f077992997e0"
}

2023-03-17 22:44:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a6416152-5063-4e5d-b1d8-f077992997e0"
}

2023-03-17 22:44:14 | [Mutex] received everything.

2023-03-17 22:44:14 | [Mutex] isItemNotified: retracted:item:notifieditem-a6416152-5063-4e5d-b1d8-f077992997e0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2023-03-17 22:44:13 |

2023-03-17 22:44:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:13 | ------------------------------------

2023-03-17 22:44:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-76a05d72-9bf0-425f-818a-d244d036ad91",
    "item-id": "item-a6416152-5063-4e5d-b1d8-f077992997e0"
}

2023-03-17 22:44:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-76a05d72-9bf0-425f-818a-d244d036ad91",
    "item-id": "item-a6416152-5063-4e5d-b1d8-f077992997e0",
    "item": [
        "<item id=\"item-a6416152-5063-4e5d-b1d8-f077992997e0\"><test>item-a6416152-5063-4e5d-b1d8-f077992997e0</test></item>"
    ]
}

2023-03-17 22:44:14 | [Mutex] notify: [retrieved:item:item-a6416152-5063-4e5d-b1d8-f077992997e0:payload-matches:true:localhost]

2023-03-17 22:44:14 | [Mutex] received everything.

2023-03-17 22:44:14 | [Mutex] isItemNotified: retrieved:item:item-a6416152-5063-4e5d-b1d8-f077992997e0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-03-17 22:44:14 |

2023-03-17 22:44:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:14 | ------------------------------------

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

2023-03-17 22:44:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-76a05d72-9bf0-425f-818a-d244d036ad91",
        "node-a41d0042-dacc-4679-93d5-06f3b1236753",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-03-17 22:44:14 |

2023-03-17 22:44:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:14 | ------------------------------------

2023-03-17 22:44:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-76a05d72-9bf0-425f-818a-d244d036ad91)"
}

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

subscribeNodes 1.017s
2023-03-17 22:44:12 |

2023-03-17 22:44:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:12 | ------------------------------------

2023-03-17 22:44:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-76a05d72-9bf0-425f-818a-d244d036ad91",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.082s
2023-03-17 22:44:14 |

2023-03-17 22:44:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:44:14 | ------------------------------------

2023-03-17 22:44:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-76a05d72-9bf0-425f-818a-d244d036ad91",
    "jids": [
        "admin@test-domain.com"
    ]
}

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