Generated by TestNG with ReportNG at 22:18 PDT on Monday 03 April 2023
root@cc7d7fbb25f7 / 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.716s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2023-04-03 22:32:58 |

2023-04-03 22:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:58 | ------------------------------------

2023-04-03 22:32:58 | [Mutex] waiting for: [configured:node:node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db:node-f554c508-ee76-4263-b6ee-0b5b561c4889]

2023-04-03 22:32:58 | [Mutex] received everything.

2023-04-03 22:32:58 | [Mutex] isItemNotified: configured:node:node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db:node-f554c508-ee76-4263-b6ee-0b5b561c4889 :: true

2023-04-03 22:32:59 | [Mutex] waiting for: [received:nodes:4fdbe646-0c6f-40b0-832d-7e5dd527e736:localhost]

2023-04-03 22:32:59 | [Mutex] received everything.

2023-04-03 22:32:59 | [Mutex] isItemNotified: received:node:4fdbe646-0c6f-40b0-832d-7e5dd527e736:localhost:node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db:Node a3edace4-4e9c-4781-a8b0-d4a96e4dc9db :: true

2023-04-03 22:32:59 | [Mutex] waiting for: [received:nodes:8f4e0da5-9e5a-46c1-b68c-7ffff51ef78a:localhost]

2023-04-03 22:32:59 | [Mutex] waiting for: [received:nodes:8f4e0da5-9e5a-46c1-b68c-7ffff51ef78a:localhost]

2023-04-03 22:32:59 | [Mutex] waiting for: [received:nodes:8f4e0da5-9e5a-46c1-b68c-7ffff51ef78a:localhost]

2023-04-03 22:32:59 | [Mutex] waiting for: [received:nodes:8f4e0da5-9e5a-46c1-b68c-7ffff51ef78a:localhost]

2023-04-03 22:32:59 | [Mutex] received everything.

2023-04-03 22:32:59 | [Mutex] isItemNotified: received:node:8f4e0da5-9e5a-46c1-b68c-7ffff51ef78a:localhost:node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db:Node a3edace4-4e9c-4781-a8b0-d4a96e4dc9db :: false

createNodes 1.728s
2023-04-03 22:32:55 |

2023-04-03 22:32:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:55 | ------------------------------------

2023-04-03 22:32:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db",
    "pubsub#title": "Node a3edace4-4e9c-4781-a8b0-d4a96e4dc9db"
}

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

2023-04-03 22:32:57 | [Mutex] waiting for: [received:nodes:a5bc6ece-64a7-4a76-ae9b-673ab5d7320f:localhost]

2023-04-03 22:32:57 | [Mutex] waiting for: [received:nodes:a5bc6ece-64a7-4a76-ae9b-673ab5d7320f:localhost]

2023-04-03 22:32:57 | [Mutex] waiting for: [received:nodes:a5bc6ece-64a7-4a76-ae9b-673ab5d7320f:localhost]

2023-04-03 22:32:57 | [Mutex] received everything.

2023-04-03 22:32:57 | [Mutex] isItemNotified: received:node:a5bc6ece-64a7-4a76-ae9b-673ab5d7320f:localhost:node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db:Node a3edace4-4e9c-4781-a8b0-d4a96e4dc9db :: true

createSubnodes 1.026s
2023-04-03 22:32:57 |

2023-04-03 22:32:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:57 | ------------------------------------

2023-04-03 22:32:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f554c508-ee76-4263-b6ee-0b5b561c4889",
    "pubsub#title": "Node f554c508-ee76-4263-b6ee-0b5b561c4889"
}

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

2023-04-03 22:32:58 | [Mutex] waiting for: [received:nodes:31e47d04-37ab-4e0e-af29-95e2e2379df9:localhost]

2023-04-03 22:32:58 | [Mutex] waiting for: [received:nodes:31e47d04-37ab-4e0e-af29-95e2e2379df9:localhost]

2023-04-03 22:32:58 | [Mutex] waiting for: [received:nodes:31e47d04-37ab-4e0e-af29-95e2e2379df9:localhost]

2023-04-03 22:32:58 | [Mutex] waiting for: [received:nodes:31e47d04-37ab-4e0e-af29-95e2e2379df9:localhost]

2023-04-03 22:32:58 | [Mutex] waiting for: [received:nodes:31e47d04-37ab-4e0e-af29-95e2e2379df9:localhost]

2023-04-03 22:32:58 | [Mutex] received everything.

2023-04-03 22:32:58 | [Mutex] isItemNotified: received:node:31e47d04-37ab-4e0e-af29-95e2e2379df9:localhost:node-f554c508-ee76-4263-b6ee-0b5b561c4889:Node f554c508-ee76-4263-b6ee-0b5b561c4889 :: true

deleteNodes 1.019s
2023-04-03 22:33:02 |

2023-04-03 22:33:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:33:02 | ------------------------------------

2023-04-03 22:33:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f554c508-ee76-4263-b6ee-0b5b561c4889"
}

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

2023-04-03 22:33:03 | [Mutex] waiting for: [received:nodes:98bac45e-6f42-4de8-a8b0-acfed35f383e:localhost]

2023-04-03 22:33:03 | [Mutex] waiting for: [received:nodes:98bac45e-6f42-4de8-a8b0-acfed35f383e:localhost]

2023-04-03 22:33:03 | [Mutex] waiting for: [received:nodes:98bac45e-6f42-4de8-a8b0-acfed35f383e:localhost]

2023-04-03 22:33:03 | [Mutex] received everything.

2023-04-03 22:33:03 | [Mutex] isItemNotified: received:node:98bac45e-6f42-4de8-a8b0-acfed35f383e:localhost:node-f554c508-ee76-4263-b6ee-0b5b561c4889:Node f554c508-ee76-4263-b6ee-0b5b561c4889 :: false

deleteSubnodes 1.065s
2023-04-03 22:33:01 |

2023-04-03 22:33:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:33:01 | ------------------------------------

2023-04-03 22:33:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db"
}

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

2023-04-03 22:33:02 | [Mutex] waiting for: [received:nodes:20f913c6-3d1f-4bb6-ab6d-35b00cc80c70:localhost]

2023-04-03 22:33:02 | [Mutex] received everything.

2023-04-03 22:33:02 | [Mutex] isItemNotified: received:node:20f913c6-3d1f-4bb6-ab6d-35b00cc80c70:localhost:node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db:Node a3edace4-4e9c-4781-a8b0-d4a96e4dc9db :: false

2023-04-03 22:33:02 | [Mutex] waiting for: [received:nodes:bb97164e-7046-4199-acb2-d292e9c39ed5:localhost]

2023-04-03 22:33:02 | [Mutex] received everything.

2023-04-03 22:33:02 | [Mutex] isItemNotified: received:node:bb97164e-7046-4199-acb2-d292e9c39ed5:localhost:node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db:Node a3edace4-4e9c-4781-a8b0-d4a96e4dc9db :: false

publishItemsToNodes 0.033s
2023-04-03 22:33:00 |

2023-04-03 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:33:00 | ------------------------------------

2023-04-03 22:33:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db",
    "entry": "<test>item-abcc1ddc-7663-437b-8cc3-946852ca62ed</test>",
    "item-id": "item-abcc1ddc-7663-437b-8cc3-946852ca62ed"
}

2023-04-03 22:33:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-abcc1ddc-7663-437b-8cc3-946852ca62ed"
}

2023-04-03 22:33:00 | [Mutex] waiting for: [published:item:notifieditem-abcc1ddc-7663-437b-8cc3-946852ca62ed:admin@test-domain.com]

2023-04-03 22:33:00 | [Mutex] received everything.

2023-04-03 22:33:00 | [Mutex] isItemNotified: published:item:notifieditem-abcc1ddc-7663-437b-8cc3-946852ca62ed:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-04-03 22:33:00 |

2023-04-03 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:33:00 | ------------------------------------

2023-04-03 22:33:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db",
    "item-id": "item-abcc1ddc-7663-437b-8cc3-946852ca62ed"
}

2023-04-03 22:33:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-abcc1ddc-7663-437b-8cc3-946852ca62ed"
}

2023-04-03 22:33:00 | [Mutex] received everything.

2023-04-03 22:33:00 | [Mutex] isItemNotified: retracted:item:notifieditem-abcc1ddc-7663-437b-8cc3-946852ca62ed:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2023-04-03 22:33:00 |

2023-04-03 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:33:00 | ------------------------------------

2023-04-03 22:33:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db",
    "item-id": "item-abcc1ddc-7663-437b-8cc3-946852ca62ed"
}

2023-04-03 22:33:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db",
    "item-id": "item-abcc1ddc-7663-437b-8cc3-946852ca62ed",
    "item": [
        "<item id=\"item-abcc1ddc-7663-437b-8cc3-946852ca62ed\"><test>item-abcc1ddc-7663-437b-8cc3-946852ca62ed</test></item>"
    ]
}

2023-04-03 22:33:00 | [Mutex] notify: [retrieved:item:item-abcc1ddc-7663-437b-8cc3-946852ca62ed:payload-matches:true:localhost]

2023-04-03 22:33:00 | [Mutex] received everything.

2023-04-03 22:33:00 | [Mutex] isItemNotified: retrieved:item:item-abcc1ddc-7663-437b-8cc3-946852ca62ed:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-04-03 22:33:00 |

2023-04-03 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:33:00 | ------------------------------------

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

2023-04-03 22:33:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db",
        "node-f554c508-ee76-4263-b6ee-0b5b561c4889"
    ]
}

retrieveUserSubscriptionsWithRegex 0.046s
2023-04-03 22:33:00 |

2023-04-03 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:33:00 | ------------------------------------

2023-04-03 22:33:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db)"
}

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

subscribeNodes 1.010s
2023-04-03 22:32:59 |

2023-04-03 22:32:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:59 | ------------------------------------

2023-04-03 22:32:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2023-04-03 22:33:00 |

2023-04-03 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:33:00 | ------------------------------------

2023-04-03 22:33:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a3edace4-4e9c-4781-a8b0-d4a96e4dc9db",
    "jids": [
        "admin@test-domain.com"
    ]
}

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