Generated by TestNG with ReportNG at 22:20 PDT on Monday 26 April 2021
root@b2c2a8eba6e6 / 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 : 8.975s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2021-04-26 22:37:48 |

2021-04-26 22:37:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:48 | ------------------------------------

2021-04-26 22:37:48 | [Mutex] waiting for: [configured:node:node-69e22eb6-cb63-43a1-ab88-14bb98462b8f:node-a76feea5-5294-4e37-8897-b180709ddd58]

2021-04-26 22:37:48 | [Mutex] received everything.

2021-04-26 22:37:48 | [Mutex] isItemNotified: configured:node:node-69e22eb6-cb63-43a1-ab88-14bb98462b8f:node-a76feea5-5294-4e37-8897-b180709ddd58 :: true

2021-04-26 22:37:49 | [Mutex] waiting for: [received:nodes:3b2d6050-176c-4562-ab32-f18f05db2982:localhost]

2021-04-26 22:37:49 | [Mutex] received everything.

2021-04-26 22:37:49 | [Mutex] isItemNotified: received:node:3b2d6050-176c-4562-ab32-f18f05db2982:localhost:node-69e22eb6-cb63-43a1-ab88-14bb98462b8f:Node 69e22eb6-cb63-43a1-ab88-14bb98462b8f :: true

2021-04-26 22:37:49 | [Mutex] waiting for: [received:nodes:b3524958-13e2-4eb5-b913-e09825134ac3:localhost]

2021-04-26 22:37:49 | [Mutex] waiting for: [received:nodes:b3524958-13e2-4eb5-b913-e09825134ac3:localhost]

2021-04-26 22:37:49 | [Mutex] received everything.

2021-04-26 22:37:49 | [Mutex] isItemNotified: received:node:b3524958-13e2-4eb5-b913-e09825134ac3:localhost:node-69e22eb6-cb63-43a1-ab88-14bb98462b8f:Node 69e22eb6-cb63-43a1-ab88-14bb98462b8f :: false

createNodes 1.749s
2021-04-26 22:37:46 |

2021-04-26 22:37:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:46 | ------------------------------------

2021-04-26 22:37:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-69e22eb6-cb63-43a1-ab88-14bb98462b8f",
    "pubsub#title": "Node 69e22eb6-cb63-43a1-ab88-14bb98462b8f"
}

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

2021-04-26 22:37:47 | [Mutex] waiting for: [received:nodes:788a594b-6290-49bf-8f5a-3e13b22243d5:localhost]

2021-04-26 22:37:47 | [Mutex] received everything.

2021-04-26 22:37:47 | [Mutex] isItemNotified: received:node:788a594b-6290-49bf-8f5a-3e13b22243d5:localhost:node-69e22eb6-cb63-43a1-ab88-14bb98462b8f:Node 69e22eb6-cb63-43a1-ab88-14bb98462b8f :: true

createSubnodes 1.021s
2021-04-26 22:37:47 |

2021-04-26 22:37:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:47 | ------------------------------------

2021-04-26 22:37:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a76feea5-5294-4e37-8897-b180709ddd58",
    "pubsub#title": "Node a76feea5-5294-4e37-8897-b180709ddd58"
}

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

2021-04-26 22:37:48 | [Mutex] waiting for: [received:nodes:0c9bf78d-42cc-4ebf-813b-d06aec89bcd1:localhost]

2021-04-26 22:37:48 | [Mutex] waiting for: [received:nodes:0c9bf78d-42cc-4ebf-813b-d06aec89bcd1:localhost]

2021-04-26 22:37:48 | [Mutex] received everything.

2021-04-26 22:37:48 | [Mutex] isItemNotified: received:node:0c9bf78d-42cc-4ebf-813b-d06aec89bcd1:localhost:node-a76feea5-5294-4e37-8897-b180709ddd58:Node a76feea5-5294-4e37-8897-b180709ddd58 :: true

deleteNodes 1.021s
2021-04-26 22:37:53 |

2021-04-26 22:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:53 | ------------------------------------

2021-04-26 22:37:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a76feea5-5294-4e37-8897-b180709ddd58"
}

2021-04-26 22:37:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-26 22:37:54 | [Mutex] waiting for: [received:nodes:789d776a-f347-4064-a7f2-7bed569ca942:localhost]

2021-04-26 22:37:54 | [Mutex] received everything.

2021-04-26 22:37:54 | [Mutex] isItemNotified: received:node:789d776a-f347-4064-a7f2-7bed569ca942:localhost:node-a76feea5-5294-4e37-8897-b180709ddd58:Node a76feea5-5294-4e37-8897-b180709ddd58 :: false

deleteSubnodes 1.027s
2021-04-26 22:37:52 |

2021-04-26 22:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:52 | ------------------------------------

2021-04-26 22:37:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-69e22eb6-cb63-43a1-ab88-14bb98462b8f"
}

2021-04-26 22:37:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-26 22:37:53 | [Mutex] waiting for: [received:nodes:2a185d39-2a5b-4346-a4bf-44f4e60bb4a1:localhost]

2021-04-26 22:37:53 | [Mutex] waiting for: [received:nodes:2a185d39-2a5b-4346-a4bf-44f4e60bb4a1:localhost]

2021-04-26 22:37:53 | [Mutex] received everything.

2021-04-26 22:37:53 | [Mutex] isItemNotified: received:node:2a185d39-2a5b-4346-a4bf-44f4e60bb4a1:localhost:node-69e22eb6-cb63-43a1-ab88-14bb98462b8f:Node 69e22eb6-cb63-43a1-ab88-14bb98462b8f :: false

2021-04-26 22:37:53 | [Mutex] waiting for: [received:nodes:5cedb424-c2ee-4b3b-b32a-c4fd4718eedc:localhost]

2021-04-26 22:37:53 | [Mutex] received everything.

2021-04-26 22:37:53 | [Mutex] isItemNotified: received:node:5cedb424-c2ee-4b3b-b32a-c4fd4718eedc:localhost:node-69e22eb6-cb63-43a1-ab88-14bb98462b8f:Node 69e22eb6-cb63-43a1-ab88-14bb98462b8f :: false

publishItemsToNodes 0.046s
2021-04-26 22:37:50 |

2021-04-26 22:37:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:50 | ------------------------------------

2021-04-26 22:37:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-69e22eb6-cb63-43a1-ab88-14bb98462b8f",
    "entry": "<test>item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81</test>",
    "item-id": "item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81"
}

2021-04-26 22:37:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81"
}

2021-04-26 22:37:50 | [Mutex] waiting for: [published:item:notifieditem-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81:admin@test-domain.com]

2021-04-26 22:37:51 | [Mutex] received everything.

2021-04-26 22:37:51 | [Mutex] isItemNotified: published:item:notifieditem-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2021-04-26 22:37:51 |

2021-04-26 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:51 | ------------------------------------

2021-04-26 22:37:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-69e22eb6-cb63-43a1-ab88-14bb98462b8f",
    "item-id": "item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81"
}

2021-04-26 22:37:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81"
}

2021-04-26 22:37:51 | [Mutex] received everything.

2021-04-26 22:37:51 | [Mutex] isItemNotified: retracted:item:notifieditem-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2021-04-26 22:37:51 |

2021-04-26 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:51 | ------------------------------------

2021-04-26 22:37:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-69e22eb6-cb63-43a1-ab88-14bb98462b8f",
    "item-id": "item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81"
}

2021-04-26 22:37:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-69e22eb6-cb63-43a1-ab88-14bb98462b8f",
    "item-id": "item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81",
    "item": [
        "<item id=\"item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81\"><test>item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81</test></item>"
    ]
}

2021-04-26 22:37:51 | [Mutex] notify: [retrieved:item:item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81:payload-matches:true:localhost]

2021-04-26 22:37:51 | [Mutex] received everything.

2021-04-26 22:37:51 | [Mutex] isItemNotified: retrieved:item:item-3c3b6a17-ecdb-42e0-9df3-1ab241b87b81:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.058s
2021-04-26 22:37:51 |

2021-04-26 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:51 | ------------------------------------

2021-04-26 22:37:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-26 22:37:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a76feea5-5294-4e37-8897-b180709ddd58",
        "node-69e22eb6-cb63-43a1-ab88-14bb98462b8f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-04-26 22:37:51 |

2021-04-26 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:51 | ------------------------------------

2021-04-26 22:37:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-69e22eb6-cb63-43a1-ab88-14bb98462b8f)"
}

2021-04-26 22:37:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-04-26 22:37:49 |

2021-04-26 22:37:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:49 | ------------------------------------

2021-04-26 22:37:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-69e22eb6-cb63-43a1-ab88-14bb98462b8f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-26 22:37:49 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2021-04-26 22:37:51 |

2021-04-26 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:37:51 | ------------------------------------

2021-04-26 22:37:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-69e22eb6-cb63-43a1-ab88-14bb98462b8f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-26 22:37:51 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}