Generated by TestNG with ReportNG at 23:02 PDT on Thursday 19 May 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.672s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2022-05-19 23:23:49 |

2022-05-19 23:23:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:49 | ------------------------------------

2022-05-19 23:23:49 | [Mutex] waiting for: [configured:node:node-82303d49-09f1-4fb9-a782-dd4c3bfea79b:node-61b1c783-1feb-4c96-ad88-f64aedfec1f6]

2022-05-19 23:23:50 | [Mutex] received everything.

2022-05-19 23:23:50 | [Mutex] isItemNotified: configured:node:node-82303d49-09f1-4fb9-a782-dd4c3bfea79b:node-61b1c783-1feb-4c96-ad88-f64aedfec1f6 :: true

2022-05-19 23:23:51 | [Mutex] waiting for: [received:nodes:13e0fd72-ed4e-443a-ae91-feefe395728d:localhost]

2022-05-19 23:23:51 | [Mutex] received everything.

2022-05-19 23:23:51 | [Mutex] isItemNotified: received:node:13e0fd72-ed4e-443a-ae91-feefe395728d:localhost:node-82303d49-09f1-4fb9-a782-dd4c3bfea79b:Node 82303d49-09f1-4fb9-a782-dd4c3bfea79b :: true

2022-05-19 23:23:51 | [Mutex] waiting for: [received:nodes:1c00ce18-ee53-49c3-ae92-81d5f1025c60:localhost]

2022-05-19 23:23:51 | [Mutex] received everything.

2022-05-19 23:23:51 | [Mutex] isItemNotified: received:node:1c00ce18-ee53-49c3-ae92-81d5f1025c60:localhost:node-82303d49-09f1-4fb9-a782-dd4c3bfea79b:Node 82303d49-09f1-4fb9-a782-dd4c3bfea79b :: false

createNodes 1.644s
2022-05-19 23:23:47 |

2022-05-19 23:23:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:47 | ------------------------------------

2022-05-19 23:23:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-82303d49-09f1-4fb9-a782-dd4c3bfea79b",
    "pubsub#title": "Node 82303d49-09f1-4fb9-a782-dd4c3bfea79b"
}

2022-05-19 23:23:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 23:23:48 | [Mutex] waiting for: [received:nodes:96f22ce2-e47a-4ff8-b9ee-c51c893245aa:localhost]

2022-05-19 23:23:48 | [Mutex] waiting for: [received:nodes:96f22ce2-e47a-4ff8-b9ee-c51c893245aa:localhost]

2022-05-19 23:23:48 | [Mutex] received everything.

2022-05-19 23:23:48 | [Mutex] isItemNotified: received:node:96f22ce2-e47a-4ff8-b9ee-c51c893245aa:localhost:node-82303d49-09f1-4fb9-a782-dd4c3bfea79b:Node 82303d49-09f1-4fb9-a782-dd4c3bfea79b :: true

createSubnodes 1.025s
2022-05-19 23:23:48 |

2022-05-19 23:23:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:48 | ------------------------------------

2022-05-19 23:23:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-61b1c783-1feb-4c96-ad88-f64aedfec1f6",
    "pubsub#title": "Node 61b1c783-1feb-4c96-ad88-f64aedfec1f6"
}

2022-05-19 23:23:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 23:23:49 | [Mutex] waiting for: [received:nodes:7e5b994b-1440-421a-83d7-ed21336ff9fe:localhost]

2022-05-19 23:23:49 | [Mutex] received everything.

2022-05-19 23:23:49 | [Mutex] isItemNotified: received:node:7e5b994b-1440-421a-83d7-ed21336ff9fe:localhost:node-61b1c783-1feb-4c96-ad88-f64aedfec1f6:Node 61b1c783-1feb-4c96-ad88-f64aedfec1f6 :: true

deleteNodes 1.072s
2022-05-19 23:23:54 |

2022-05-19 23:23:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:54 | ------------------------------------

2022-05-19 23:23:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-61b1c783-1feb-4c96-ad88-f64aedfec1f6"
}

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

2022-05-19 23:23:55 | [Mutex] waiting for: [received:nodes:09e40dae-ea95-4f65-b812-4f70c4140c0a:localhost]

2022-05-19 23:23:55 | [Mutex] waiting for: [received:nodes:09e40dae-ea95-4f65-b812-4f70c4140c0a:localhost]

2022-05-19 23:23:55 | [Mutex] waiting for: [received:nodes:09e40dae-ea95-4f65-b812-4f70c4140c0a:localhost]

2022-05-19 23:23:55 | [Mutex] received everything.

2022-05-19 23:23:55 | [Mutex] isItemNotified: received:node:09e40dae-ea95-4f65-b812-4f70c4140c0a:localhost:node-61b1c783-1feb-4c96-ad88-f64aedfec1f6:Node 61b1c783-1feb-4c96-ad88-f64aedfec1f6 :: false

deleteSubnodes 1.026s
2022-05-19 23:23:53 |

2022-05-19 23:23:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:53 | ------------------------------------

2022-05-19 23:23:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-82303d49-09f1-4fb9-a782-dd4c3bfea79b"
}

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

2022-05-19 23:23:54 | [Mutex] waiting for: [received:nodes:7fe38794-0e3e-4d89-83ef-ade167dd1e94:localhost]

2022-05-19 23:23:54 | [Mutex] received everything.

2022-05-19 23:23:54 | [Mutex] isItemNotified: received:node:7fe38794-0e3e-4d89-83ef-ade167dd1e94:localhost:node-82303d49-09f1-4fb9-a782-dd4c3bfea79b:Node 82303d49-09f1-4fb9-a782-dd4c3bfea79b :: false

2022-05-19 23:23:54 | [Mutex] waiting for: [received:nodes:5cfe589c-10b0-405e-b3ce-9e9af7e86b61:localhost]

2022-05-19 23:23:54 | [Mutex] received everything.

2022-05-19 23:23:54 | [Mutex] isItemNotified: received:node:5cfe589c-10b0-405e-b3ce-9e9af7e86b61:localhost:node-82303d49-09f1-4fb9-a782-dd4c3bfea79b:Node 82303d49-09f1-4fb9-a782-dd4c3bfea79b :: false

publishItemsToNodes 0.039s
2022-05-19 23:23:52 |

2022-05-19 23:23:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:52 | ------------------------------------

2022-05-19 23:23:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-82303d49-09f1-4fb9-a782-dd4c3bfea79b",
    "entry": "<test>item-3793c07d-4481-4f5e-8969-98c73c2b4f64</test>",
    "item-id": "item-3793c07d-4481-4f5e-8969-98c73c2b4f64"
}

2022-05-19 23:23:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3793c07d-4481-4f5e-8969-98c73c2b4f64"
}

2022-05-19 23:23:52 | [Mutex] waiting for: [published:item:notifieditem-3793c07d-4481-4f5e-8969-98c73c2b4f64:admin@test-domain.com]

2022-05-19 23:23:52 | [Mutex] received everything.

2022-05-19 23:23:52 | [Mutex] isItemNotified: published:item:notifieditem-3793c07d-4481-4f5e-8969-98c73c2b4f64:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-05-19 23:23:52 |

2022-05-19 23:23:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:52 | ------------------------------------

2022-05-19 23:23:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-82303d49-09f1-4fb9-a782-dd4c3bfea79b",
    "item-id": "item-3793c07d-4481-4f5e-8969-98c73c2b4f64"
}

2022-05-19 23:23:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3793c07d-4481-4f5e-8969-98c73c2b4f64"
}

2022-05-19 23:23:52 | [Mutex] received everything.

2022-05-19 23:23:52 | [Mutex] isItemNotified: retracted:item:notifieditem-3793c07d-4481-4f5e-8969-98c73c2b4f64:admin@test-domain.com :: true

retrieveItemsFromNodes 0.052s
2022-05-19 23:23:52 |

2022-05-19 23:23:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:52 | ------------------------------------

2022-05-19 23:23:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-82303d49-09f1-4fb9-a782-dd4c3bfea79b",
    "item-id": "item-3793c07d-4481-4f5e-8969-98c73c2b4f64"
}

2022-05-19 23:23:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-82303d49-09f1-4fb9-a782-dd4c3bfea79b",
    "item-id": "item-3793c07d-4481-4f5e-8969-98c73c2b4f64",
    "item": [
        "<item id=\"item-3793c07d-4481-4f5e-8969-98c73c2b4f64\"><test>item-3793c07d-4481-4f5e-8969-98c73c2b4f64</test></item>"
    ]
}

2022-05-19 23:23:52 | [Mutex] notify: [retrieved:item:item-3793c07d-4481-4f5e-8969-98c73c2b4f64:payload-matches:true:localhost]

2022-05-19 23:23:52 | [Mutex] received everything.

2022-05-19 23:23:52 | [Mutex] isItemNotified: retrieved:item:item-3793c07d-4481-4f5e-8969-98c73c2b4f64:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-05-19 23:23:52 |

2022-05-19 23:23:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:52 | ------------------------------------

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

2022-05-19 23:23:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-82303d49-09f1-4fb9-a782-dd4c3bfea79b",
        "node-61b1c783-1feb-4c96-ad88-f64aedfec1f6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-05-19 23:23:52 |

2022-05-19 23:23:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:52 | ------------------------------------

2022-05-19 23:23:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-82303d49-09f1-4fb9-a782-dd4c3bfea79b)"
}

2022-05-19 23:23:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-05-19 23:23:51 |

2022-05-19 23:23:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:51 | ------------------------------------

2022-05-19 23:23:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-82303d49-09f1-4fb9-a782-dd4c3bfea79b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-19 23:23:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.048s
2022-05-19 23:23:52 |

2022-05-19 23:23:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 23:23:52 | ------------------------------------

2022-05-19 23:23:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-82303d49-09f1-4fb9-a782-dd4c3bfea79b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-19 23:23:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}