Generated by TestNG with ReportNG at 22:43 PDT on Tuesday 25 May 2021
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / 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 : 9.007s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.125s
2021-05-25 22:59:27 |

2021-05-25 22:59:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:27 | ------------------------------------

2021-05-25 22:59:27 | [Mutex] waiting for: [configured:node:node-612b1f5f-f6f2-4329-8ba2-11c6370139a7:node-b8d174ef-9f84-4984-9d98-3adc22386f17]

2021-05-25 22:59:27 | [Mutex] received everything.

2021-05-25 22:59:27 | [Mutex] isItemNotified: configured:node:node-612b1f5f-f6f2-4329-8ba2-11c6370139a7:node-b8d174ef-9f84-4984-9d98-3adc22386f17 :: true

2021-05-25 22:59:28 | [Mutex] waiting for: [received:nodes:df017d9e-69f9-4a41-99bc-ce77b0b55eff:localhost]

2021-05-25 22:59:28 | [Mutex] received everything.

2021-05-25 22:59:28 | [Mutex] isItemNotified: received:node:df017d9e-69f9-4a41-99bc-ce77b0b55eff:localhost:node-612b1f5f-f6f2-4329-8ba2-11c6370139a7:Node 612b1f5f-f6f2-4329-8ba2-11c6370139a7 :: true

2021-05-25 22:59:28 | [Mutex] waiting for: [received:nodes:49435145-3ebc-4059-b667-1a31b031fc5f:localhost]

2021-05-25 22:59:28 | [Mutex] waiting for: [received:nodes:49435145-3ebc-4059-b667-1a31b031fc5f:localhost]

2021-05-25 22:59:28 | [Mutex] received everything.

2021-05-25 22:59:28 | [Mutex] isItemNotified: received:node:49435145-3ebc-4059-b667-1a31b031fc5f:localhost:node-612b1f5f-f6f2-4329-8ba2-11c6370139a7:Node 612b1f5f-f6f2-4329-8ba2-11c6370139a7 :: false

createNodes 1.693s
2021-05-25 22:59:24 |

2021-05-25 22:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:24 | ------------------------------------

2021-05-25 22:59:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-612b1f5f-f6f2-4329-8ba2-11c6370139a7",
    "pubsub#title": "Node 612b1f5f-f6f2-4329-8ba2-11c6370139a7"
}

2021-05-25 22:59:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-25 22:59:26 | [Mutex] waiting for: [received:nodes:9cda7980-e4f3-4f0b-a20a-f3b9021128ba:localhost]

2021-05-25 22:59:26 | [Mutex] received everything.

2021-05-25 22:59:26 | [Mutex] isItemNotified: received:node:9cda7980-e4f3-4f0b-a20a-f3b9021128ba:localhost:node-612b1f5f-f6f2-4329-8ba2-11c6370139a7:Node 612b1f5f-f6f2-4329-8ba2-11c6370139a7 :: true

createSubnodes 1.033s
2021-05-25 22:59:26 |

2021-05-25 22:59:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:26 | ------------------------------------

2021-05-25 22:59:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b8d174ef-9f84-4984-9d98-3adc22386f17",
    "pubsub#title": "Node b8d174ef-9f84-4984-9d98-3adc22386f17"
}

2021-05-25 22:59:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-25 22:59:27 | [Mutex] waiting for: [received:nodes:7a49de7f-4639-44dc-acc1-43f7ba60a183:localhost]

2021-05-25 22:59:27 | [Mutex] received everything.

2021-05-25 22:59:27 | [Mutex] isItemNotified: received:node:7a49de7f-4639-44dc-acc1-43f7ba60a183:localhost:node-b8d174ef-9f84-4984-9d98-3adc22386f17:Node b8d174ef-9f84-4984-9d98-3adc22386f17 :: true

deleteNodes 1.023s
2021-05-25 22:59:31 |

2021-05-25 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:31 | ------------------------------------

2021-05-25 22:59:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b8d174ef-9f84-4984-9d98-3adc22386f17"
}

2021-05-25 22:59:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-25 22:59:32 | [Mutex] waiting for: [received:nodes:52894b76-e1fe-49f7-989d-4d1d02452f08:localhost]

2021-05-25 22:59:32 | [Mutex] received everything.

2021-05-25 22:59:32 | [Mutex] isItemNotified: received:node:52894b76-e1fe-49f7-989d-4d1d02452f08:localhost:node-b8d174ef-9f84-4984-9d98-3adc22386f17:Node b8d174ef-9f84-4984-9d98-3adc22386f17 :: false

deleteSubnodes 1.029s
2021-05-25 22:59:30 |

2021-05-25 22:59:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:30 | ------------------------------------

2021-05-25 22:59:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-612b1f5f-f6f2-4329-8ba2-11c6370139a7"
}

2021-05-25 22:59:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-25 22:59:31 | [Mutex] waiting for: [received:nodes:2495a394-3a00-4e6d-aea5-2ecd8d7f93a0:localhost]

2021-05-25 22:59:31 | [Mutex] received everything.

2021-05-25 22:59:31 | [Mutex] isItemNotified: received:node:2495a394-3a00-4e6d-aea5-2ecd8d7f93a0:localhost:node-612b1f5f-f6f2-4329-8ba2-11c6370139a7:Node 612b1f5f-f6f2-4329-8ba2-11c6370139a7 :: false

2021-05-25 22:59:31 | [Mutex] waiting for: [received:nodes:91f7d109-aa12-4827-b8a8-ba56485df7f9:localhost]

2021-05-25 22:59:31 | [Mutex] received everything.

2021-05-25 22:59:31 | [Mutex] isItemNotified: received:node:91f7d109-aa12-4827-b8a8-ba56485df7f9:localhost:node-612b1f5f-f6f2-4329-8ba2-11c6370139a7:Node 612b1f5f-f6f2-4329-8ba2-11c6370139a7 :: false

publishItemsToNodes 0.068s
2021-05-25 22:59:29 |

2021-05-25 22:59:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:29 | ------------------------------------

2021-05-25 22:59:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-612b1f5f-f6f2-4329-8ba2-11c6370139a7",
    "entry": "<test>item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d</test>",
    "item-id": "item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d"
}

2021-05-25 22:59:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d"
}

2021-05-25 22:59:29 | [Mutex] waiting for: [published:item:notifieditem-0e9d612d-6bc3-4a88-a43f-7ffda3da376d:admin@test-domain.com]

2021-05-25 22:59:29 | [Mutex] received everything.

2021-05-25 22:59:29 | [Mutex] isItemNotified: published:item:notifieditem-0e9d612d-6bc3-4a88-a43f-7ffda3da376d:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-05-25 22:59:29 |

2021-05-25 22:59:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:29 | ------------------------------------

2021-05-25 22:59:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-612b1f5f-f6f2-4329-8ba2-11c6370139a7",
    "item-id": "item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d"
}

2021-05-25 22:59:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d"
}

2021-05-25 22:59:29 | [Mutex] received everything.

2021-05-25 22:59:29 | [Mutex] isItemNotified: retracted:item:notifieditem-0e9d612d-6bc3-4a88-a43f-7ffda3da376d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.025s
2021-05-25 22:59:29 |

2021-05-25 22:59:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:29 | ------------------------------------

2021-05-25 22:59:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-612b1f5f-f6f2-4329-8ba2-11c6370139a7",
    "item-id": "item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d"
}

2021-05-25 22:59:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-612b1f5f-f6f2-4329-8ba2-11c6370139a7",
    "item-id": "item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d",
    "item": [
        "<item id=\"item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d\"><test>item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d</test></item>"
    ]
}

2021-05-25 22:59:29 | [Mutex] notify: [retrieved:item:item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d:payload-matches:true:localhost]

2021-05-25 22:59:29 | [Mutex] received everything.

2021-05-25 22:59:29 | [Mutex] isItemNotified: retrieved:item:item-0e9d612d-6bc3-4a88-a43f-7ffda3da376d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.086s
2021-05-25 22:59:29 |

2021-05-25 22:59:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:29 | ------------------------------------

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

2021-05-25 22:59:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-612b1f5f-f6f2-4329-8ba2-11c6370139a7",
        "test",
        "node-b8d174ef-9f84-4984-9d98-3adc22386f17"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-25 22:59:29 |

2021-05-25 22:59:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:29 | ------------------------------------

2021-05-25 22:59:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-612b1f5f-f6f2-4329-8ba2-11c6370139a7)"
}

2021-05-25 22:59:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-05-25 22:59:28 |

2021-05-25 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:28 | ------------------------------------

2021-05-25 22:59:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-612b1f5f-f6f2-4329-8ba2-11c6370139a7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-25 22:59:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2021-05-25 22:59:29 |

2021-05-25 22:59:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-25 22:59:29 | ------------------------------------

2021-05-25 22:59:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-612b1f5f-f6f2-4329-8ba2-11c6370139a7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-25 22:59:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}