Generated by TestNG with ReportNG at 22:15 PDT on Wednesday 21 October 2020
root@eaa73862192b / 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.095s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2020-10-21 22:31:08 |

2020-10-21 22:31:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:08 | ------------------------------------

2020-10-21 22:31:08 | [Mutex] waiting for: [configured:node:node-f5e60002-72a3-4052-aec1-4761e955b4ff:node-24a91334-8d99-4850-8cdd-7f23e1adc19a]

2020-10-21 22:31:08 | [Mutex] received everything.

2020-10-21 22:31:08 | [Mutex] isItemNotified: configured:node:node-f5e60002-72a3-4052-aec1-4761e955b4ff:node-24a91334-8d99-4850-8cdd-7f23e1adc19a :: true

2020-10-21 22:31:09 | [Mutex] waiting for: [received:nodes:1d388aa9-c8b2-470c-b519-aae6187c5b31:localhost]

2020-10-21 22:31:09 | [Mutex] waiting for: [received:nodes:1d388aa9-c8b2-470c-b519-aae6187c5b31:localhost]

2020-10-21 22:31:09 | [Mutex] received everything.

2020-10-21 22:31:09 | [Mutex] isItemNotified: received:node:1d388aa9-c8b2-470c-b519-aae6187c5b31:localhost:node-f5e60002-72a3-4052-aec1-4761e955b4ff:Node f5e60002-72a3-4052-aec1-4761e955b4ff :: true

2020-10-21 22:31:09 | [Mutex] waiting for: [received:nodes:ebf1baa6-ebe1-4556-9c6e-4a0a11314b01:localhost]

2020-10-21 22:31:09 | [Mutex] received everything.

2020-10-21 22:31:09 | [Mutex] isItemNotified: received:node:ebf1baa6-ebe1-4556-9c6e-4a0a11314b01:localhost:node-f5e60002-72a3-4052-aec1-4761e955b4ff:Node f5e60002-72a3-4052-aec1-4761e955b4ff :: false

createNodes 1.742s
2020-10-21 22:31:05 |

2020-10-21 22:31:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:05 | ------------------------------------

2020-10-21 22:31:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f5e60002-72a3-4052-aec1-4761e955b4ff",
    "pubsub#title": "Node f5e60002-72a3-4052-aec1-4761e955b4ff"
}

2020-10-21 22:31:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-21 22:31:07 | [Mutex] waiting for: [received:nodes:623d9235-df09-439e-a90c-33b1c3923fee:localhost]

2020-10-21 22:31:07 | [Mutex] received everything.

2020-10-21 22:31:07 | [Mutex] isItemNotified: received:node:623d9235-df09-439e-a90c-33b1c3923fee:localhost:node-f5e60002-72a3-4052-aec1-4761e955b4ff:Node f5e60002-72a3-4052-aec1-4761e955b4ff :: true

createSubnodes 1.023s
2020-10-21 22:31:07 |

2020-10-21 22:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:07 | ------------------------------------

2020-10-21 22:31:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-24a91334-8d99-4850-8cdd-7f23e1adc19a",
    "pubsub#title": "Node 24a91334-8d99-4850-8cdd-7f23e1adc19a"
}

2020-10-21 22:31:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-21 22:31:08 | [Mutex] waiting for: [received:nodes:029ea518-9cde-4d84-90ba-d8df6695ba29:localhost]

2020-10-21 22:31:08 | [Mutex] received everything.

2020-10-21 22:31:08 | [Mutex] isItemNotified: received:node:029ea518-9cde-4d84-90ba-d8df6695ba29:localhost:node-24a91334-8d99-4850-8cdd-7f23e1adc19a:Node 24a91334-8d99-4850-8cdd-7f23e1adc19a :: true

deleteNodes 1.017s
2020-10-21 22:31:12 |

2020-10-21 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:12 | ------------------------------------

2020-10-21 22:31:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-24a91334-8d99-4850-8cdd-7f23e1adc19a"
}

2020-10-21 22:31:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-21 22:31:13 | [Mutex] waiting for: [received:nodes:2da8aa05-6069-4178-b308-b46f0c2beccd:localhost]

2020-10-21 22:31:13 | [Mutex] received everything.

2020-10-21 22:31:13 | [Mutex] isItemNotified: received:node:2da8aa05-6069-4178-b308-b46f0c2beccd:localhost:node-24a91334-8d99-4850-8cdd-7f23e1adc19a:Node 24a91334-8d99-4850-8cdd-7f23e1adc19a :: false

deleteSubnodes 1.026s
2020-10-21 22:31:11 |

2020-10-21 22:31:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:11 | ------------------------------------

2020-10-21 22:31:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f5e60002-72a3-4052-aec1-4761e955b4ff"
}

2020-10-21 22:31:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-21 22:31:12 | [Mutex] waiting for: [received:nodes:b949f473-8c5a-4e8a-b799-b8db536550bd:localhost]

2020-10-21 22:31:12 | [Mutex] waiting for: [received:nodes:b949f473-8c5a-4e8a-b799-b8db536550bd:localhost]

2020-10-21 22:31:12 | [Mutex] received everything.

2020-10-21 22:31:12 | [Mutex] isItemNotified: received:node:b949f473-8c5a-4e8a-b799-b8db536550bd:localhost:node-f5e60002-72a3-4052-aec1-4761e955b4ff:Node f5e60002-72a3-4052-aec1-4761e955b4ff :: false

2020-10-21 22:31:12 | [Mutex] waiting for: [received:nodes:89f4a7fe-10c4-4938-ab8d-cc306d703e4c:localhost]

2020-10-21 22:31:12 | [Mutex] received everything.

2020-10-21 22:31:12 | [Mutex] isItemNotified: received:node:89f4a7fe-10c4-4938-ab8d-cc306d703e4c:localhost:node-f5e60002-72a3-4052-aec1-4761e955b4ff:Node f5e60002-72a3-4052-aec1-4761e955b4ff :: false

publishItemsToNodes 0.045s
2020-10-21 22:31:10 |

2020-10-21 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:10 | ------------------------------------

2020-10-21 22:31:10 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f5e60002-72a3-4052-aec1-4761e955b4ff",
    "entry": "<test>item-6316e229-64c6-45ba-9759-5b657a804814</test>",
    "item-id": "item-6316e229-64c6-45ba-9759-5b657a804814"
}

2020-10-21 22:31:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6316e229-64c6-45ba-9759-5b657a804814"
}

2020-10-21 22:31:10 | [Mutex] waiting for: [published:item:notifieditem-6316e229-64c6-45ba-9759-5b657a804814:admin@test-domain.com]

2020-10-21 22:31:10 | [Mutex] received everything.

2020-10-21 22:31:10 | [Mutex] isItemNotified: published:item:notifieditem-6316e229-64c6-45ba-9759-5b657a804814:admin@test-domain.com :: true

retractItemsFromNodes 0.065s
2020-10-21 22:31:10 |

2020-10-21 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:10 | ------------------------------------

2020-10-21 22:31:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f5e60002-72a3-4052-aec1-4761e955b4ff",
    "item-id": "item-6316e229-64c6-45ba-9759-5b657a804814"
}

2020-10-21 22:31:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6316e229-64c6-45ba-9759-5b657a804814"
}

2020-10-21 22:31:10 | [Mutex] waiting for: [retracted:item:notifieditem-6316e229-64c6-45ba-9759-5b657a804814:admin@test-domain.com]

2020-10-21 22:31:10 | [Mutex] received everything.

2020-10-21 22:31:10 | [Mutex] isItemNotified: retracted:item:notifieditem-6316e229-64c6-45ba-9759-5b657a804814:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2020-10-21 22:31:10 |

2020-10-21 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:10 | ------------------------------------

2020-10-21 22:31:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f5e60002-72a3-4052-aec1-4761e955b4ff",
    "item-id": "item-6316e229-64c6-45ba-9759-5b657a804814"
}

2020-10-21 22:31:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f5e60002-72a3-4052-aec1-4761e955b4ff",
    "item-id": "item-6316e229-64c6-45ba-9759-5b657a804814",
    "item": [
        "<item id=\"item-6316e229-64c6-45ba-9759-5b657a804814\"><test>item-6316e229-64c6-45ba-9759-5b657a804814</test></item>"
    ]
}

2020-10-21 22:31:10 | [Mutex] notify: [retrieved:item:item-6316e229-64c6-45ba-9759-5b657a804814:payload-matches:true:localhost]

2020-10-21 22:31:10 | [Mutex] received everything.

2020-10-21 22:31:10 | [Mutex] isItemNotified: retrieved:item:item-6316e229-64c6-45ba-9759-5b657a804814:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.060s
2020-10-21 22:31:10 |

2020-10-21 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:10 | ------------------------------------

2020-10-21 22:31:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-21 22:31:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-24a91334-8d99-4850-8cdd-7f23e1adc19a",
        "node-f5e60002-72a3-4052-aec1-4761e955b4ff"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-10-21 22:31:10 |

2020-10-21 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:10 | ------------------------------------

2020-10-21 22:31:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f5e60002-72a3-4052-aec1-4761e955b4ff)"
}

2020-10-21 22:31:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-10-21 22:31:09 |

2020-10-21 22:31:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:09 | ------------------------------------

2020-10-21 22:31:09 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f5e60002-72a3-4052-aec1-4761e955b4ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-21 22:31:09 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.086s
2020-10-21 22:31:10 |

2020-10-21 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-21 22:31:10 | ------------------------------------

2020-10-21 22:31:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f5e60002-72a3-4052-aec1-4761e955b4ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-21 22:31:10 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}