Generated by TestNG with ReportNG at 22:19 PDT on Thursday 25 August 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.643s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2022-08-25 22:34:20 |

2022-08-25 22:34:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:20 | ------------------------------------

2022-08-25 22:34:20 | [Mutex] waiting for: [configured:node:node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af:node-a53fa873-037b-4d21-9dd3-73ac70715c47]

2022-08-25 22:34:20 | [Mutex] received everything.

2022-08-25 22:34:20 | [Mutex] isItemNotified: configured:node:node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af:node-a53fa873-037b-4d21-9dd3-73ac70715c47 :: true

2022-08-25 22:34:21 | [Mutex] waiting for: [received:nodes:61bad304-560c-4969-bd24-044cdc00d7f7:localhost]

2022-08-25 22:34:21 | [Mutex] received everything.

2022-08-25 22:34:21 | [Mutex] isItemNotified: received:node:61bad304-560c-4969-bd24-044cdc00d7f7:localhost:node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af:Node 69a8f8c6-ad97-412c-a4e0-c7b905ed88af :: true

2022-08-25 22:34:21 | [Mutex] waiting for: [received:nodes:52193f33-29b1-414f-86fc-e6e4c7f47033:localhost]

2022-08-25 22:34:21 | [Mutex] received everything.

2022-08-25 22:34:21 | [Mutex] isItemNotified: received:node:52193f33-29b1-414f-86fc-e6e4c7f47033:localhost:node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af:Node 69a8f8c6-ad97-412c-a4e0-c7b905ed88af :: false

createNodes 1.602s
2022-08-25 22:34:18 |

2022-08-25 22:34:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:18 | ------------------------------------

2022-08-25 22:34:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af",
    "pubsub#title": "Node 69a8f8c6-ad97-412c-a4e0-c7b905ed88af"
}

2022-08-25 22:34:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-25 22:34:19 | [Mutex] waiting for: [received:nodes:d19bb4d1-60f7-480d-a15d-30b2f60853b9:localhost]

2022-08-25 22:34:19 | [Mutex] waiting for: [received:nodes:d19bb4d1-60f7-480d-a15d-30b2f60853b9:localhost]

2022-08-25 22:34:19 | [Mutex] received everything.

2022-08-25 22:34:19 | [Mutex] isItemNotified: received:node:d19bb4d1-60f7-480d-a15d-30b2f60853b9:localhost:node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af:Node 69a8f8c6-ad97-412c-a4e0-c7b905ed88af :: true

createSubnodes 1.024s
2022-08-25 22:34:19 |

2022-08-25 22:34:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:19 | ------------------------------------

2022-08-25 22:34:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a53fa873-037b-4d21-9dd3-73ac70715c47",
    "pubsub#title": "Node a53fa873-037b-4d21-9dd3-73ac70715c47"
}

2022-08-25 22:34:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-25 22:34:20 | [Mutex] waiting for: [received:nodes:8b29d7a8-a6a1-4bc9-a992-19b453aa94b9:localhost]

2022-08-25 22:34:20 | [Mutex] received everything.

2022-08-25 22:34:20 | [Mutex] isItemNotified: received:node:8b29d7a8-a6a1-4bc9-a992-19b453aa94b9:localhost:node-a53fa873-037b-4d21-9dd3-73ac70715c47:Node a53fa873-037b-4d21-9dd3-73ac70715c47 :: true

deleteNodes 1.021s
2022-08-25 22:34:25 |

2022-08-25 22:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:25 | ------------------------------------

2022-08-25 22:34:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a53fa873-037b-4d21-9dd3-73ac70715c47"
}

2022-08-25 22:34:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-25 22:34:26 | [Mutex] waiting for: [received:nodes:b4aa56fa-a239-4d9a-935a-48e563eabc55:localhost]

2022-08-25 22:34:26 | [Mutex] waiting for: [received:nodes:b4aa56fa-a239-4d9a-935a-48e563eabc55:localhost]

2022-08-25 22:34:26 | [Mutex] received everything.

2022-08-25 22:34:26 | [Mutex] isItemNotified: received:node:b4aa56fa-a239-4d9a-935a-48e563eabc55:localhost:node-a53fa873-037b-4d21-9dd3-73ac70715c47:Node a53fa873-037b-4d21-9dd3-73ac70715c47 :: false

deleteSubnodes 1.026s
2022-08-25 22:34:24 |

2022-08-25 22:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:24 | ------------------------------------

2022-08-25 22:34:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af"
}

2022-08-25 22:34:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-25 22:34:25 | [Mutex] waiting for: [received:nodes:158b5131-6d56-4046-9374-aecebe057e2e:localhost]

2022-08-25 22:34:25 | [Mutex] received everything.

2022-08-25 22:34:25 | [Mutex] isItemNotified: received:node:158b5131-6d56-4046-9374-aecebe057e2e:localhost:node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af:Node 69a8f8c6-ad97-412c-a4e0-c7b905ed88af :: false

2022-08-25 22:34:25 | [Mutex] waiting for: [received:nodes:2729d249-cc88-4b67-a7ba-fcb6a9584d11:localhost]

2022-08-25 22:34:25 | [Mutex] received everything.

2022-08-25 22:34:25 | [Mutex] isItemNotified: received:node:2729d249-cc88-4b67-a7ba-fcb6a9584d11:localhost:node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af:Node 69a8f8c6-ad97-412c-a4e0-c7b905ed88af :: false

publishItemsToNodes 0.058s
2022-08-25 22:34:22 |

2022-08-25 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:22 | ------------------------------------

2022-08-25 22:34:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af",
    "entry": "<test>item-983a50c4-6328-4fac-a026-dab65799f2d1</test>",
    "item-id": "item-983a50c4-6328-4fac-a026-dab65799f2d1"
}

2022-08-25 22:34:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-983a50c4-6328-4fac-a026-dab65799f2d1"
}

2022-08-25 22:34:22 | [Mutex] waiting for: [published:item:notifieditem-983a50c4-6328-4fac-a026-dab65799f2d1:admin@test-domain.com]

2022-08-25 22:34:22 | [Mutex] received everything.

2022-08-25 22:34:22 | [Mutex] isItemNotified: published:item:notifieditem-983a50c4-6328-4fac-a026-dab65799f2d1:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-08-25 22:34:23 |

2022-08-25 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:23 | ------------------------------------

2022-08-25 22:34:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af",
    "item-id": "item-983a50c4-6328-4fac-a026-dab65799f2d1"
}

2022-08-25 22:34:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-983a50c4-6328-4fac-a026-dab65799f2d1"
}

2022-08-25 22:34:23 | [Mutex] received everything.

2022-08-25 22:34:23 | [Mutex] isItemNotified: retracted:item:notifieditem-983a50c4-6328-4fac-a026-dab65799f2d1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-08-25 22:34:22 |

2022-08-25 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:22 | ------------------------------------

2022-08-25 22:34:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af",
    "item-id": "item-983a50c4-6328-4fac-a026-dab65799f2d1"
}

2022-08-25 22:34:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af",
    "item-id": "item-983a50c4-6328-4fac-a026-dab65799f2d1",
    "item": [
        "<item id=\"item-983a50c4-6328-4fac-a026-dab65799f2d1\"><test>item-983a50c4-6328-4fac-a026-dab65799f2d1</test></item>"
    ]
}

2022-08-25 22:34:22 | [Mutex] notify: [retrieved:item:item-983a50c4-6328-4fac-a026-dab65799f2d1:payload-matches:true:localhost]

2022-08-25 22:34:22 | [Mutex] received everything.

2022-08-25 22:34:22 | [Mutex] isItemNotified: retrieved:item:item-983a50c4-6328-4fac-a026-dab65799f2d1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2022-08-25 22:34:22 |

2022-08-25 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:22 | ------------------------------------

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

2022-08-25 22:34:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af",
        "node-a53fa873-037b-4d21-9dd3-73ac70715c47"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-08-25 22:34:22 |

2022-08-25 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:22 | ------------------------------------

2022-08-25 22:34:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af)"
}

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

subscribeNodes 1.015s
2022-08-25 22:34:21 |

2022-08-25 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:21 | ------------------------------------

2022-08-25 22:34:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-25 22:34:21 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2022-08-25 22:34:23 |

2022-08-25 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-25 22:34:23 | ------------------------------------

2022-08-25 22:34:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-69a8f8c6-ad97-412c-a4e0-c7b905ed88af",
    "jids": [
        "admin@test-domain.com"
    ]
}

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