Generated by TestNG with ReportNG at 09:22 PDT on Friday 18 September 2020
root@f53a97fae7d2 / 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.227s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.142s
2020-09-18 09:38:37 |

2020-09-18 09:38:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:37 | ------------------------------------

2020-09-18 09:38:37 | [Mutex] waiting for: [configured:node:node-6b43a858-af1b-4e90-a809-9b39f71aa7d7:node-29a54063-cbfd-4b50-8b02-c54a51fbff6f]

2020-09-18 09:38:37 | [Mutex] received everything.

2020-09-18 09:38:37 | [Mutex] isItemNotified: configured:node:node-6b43a858-af1b-4e90-a809-9b39f71aa7d7:node-29a54063-cbfd-4b50-8b02-c54a51fbff6f :: true

2020-09-18 09:38:38 | [Mutex] waiting for: [received:nodes:cd14ab48-1a8c-48a6-ace6-119eed49cdb5:localhost]

2020-09-18 09:38:38 | [Mutex] received everything.

2020-09-18 09:38:38 | [Mutex] isItemNotified: received:node:cd14ab48-1a8c-48a6-ace6-119eed49cdb5:localhost:node-6b43a858-af1b-4e90-a809-9b39f71aa7d7:Node 6b43a858-af1b-4e90-a809-9b39f71aa7d7 :: true

2020-09-18 09:38:38 | [Mutex] waiting for: [received:nodes:ac76b04c-1a72-4986-b1e6-7265eed151cc:localhost]

2020-09-18 09:38:38 | [Mutex] waiting for: [received:nodes:ac76b04c-1a72-4986-b1e6-7265eed151cc:localhost]

2020-09-18 09:38:38 | [Mutex] received everything.

2020-09-18 09:38:38 | [Mutex] isItemNotified: received:node:ac76b04c-1a72-4986-b1e6-7265eed151cc:localhost:node-6b43a858-af1b-4e90-a809-9b39f71aa7d7:Node 6b43a858-af1b-4e90-a809-9b39f71aa7d7 :: false

createNodes 1.876s
2020-09-18 09:38:34 |

2020-09-18 09:38:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:34 | ------------------------------------

2020-09-18 09:38:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6b43a858-af1b-4e90-a809-9b39f71aa7d7",
    "pubsub#title": "Node 6b43a858-af1b-4e90-a809-9b39f71aa7d7"
}

2020-09-18 09:38:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 09:38:36 | [Mutex] waiting for: [received:nodes:5f38968e-3c2a-4dbe-8064-f6b097730d9a:localhost]

2020-09-18 09:38:36 | [Mutex] received everything.

2020-09-18 09:38:36 | [Mutex] isItemNotified: received:node:5f38968e-3c2a-4dbe-8064-f6b097730d9a:localhost:node-6b43a858-af1b-4e90-a809-9b39f71aa7d7:Node 6b43a858-af1b-4e90-a809-9b39f71aa7d7 :: true

createSubnodes 1.026s
2020-09-18 09:38:36 |

2020-09-18 09:38:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:36 | ------------------------------------

2020-09-18 09:38:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-29a54063-cbfd-4b50-8b02-c54a51fbff6f",
    "pubsub#title": "Node 29a54063-cbfd-4b50-8b02-c54a51fbff6f"
}

2020-09-18 09:38:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 09:38:37 | [Mutex] waiting for: [received:nodes:fd18aab3-413c-45ed-a77d-42af880b33e8:localhost]

2020-09-18 09:38:37 | [Mutex] received everything.

2020-09-18 09:38:37 | [Mutex] isItemNotified: received:node:fd18aab3-413c-45ed-a77d-42af880b33e8:localhost:node-29a54063-cbfd-4b50-8b02-c54a51fbff6f:Node 29a54063-cbfd-4b50-8b02-c54a51fbff6f :: true

deleteNodes 1.027s
2020-09-18 09:38:41 |

2020-09-18 09:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:41 | ------------------------------------

2020-09-18 09:38:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-29a54063-cbfd-4b50-8b02-c54a51fbff6f"
}

2020-09-18 09:38:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 09:38:42 | [Mutex] waiting for: [received:nodes:56950a36-2ea2-4140-a823-fa92f04f8ea2:localhost]

2020-09-18 09:38:42 | [Mutex] waiting for: [received:nodes:56950a36-2ea2-4140-a823-fa92f04f8ea2:localhost]

2020-09-18 09:38:42 | [Mutex] received everything.

2020-09-18 09:38:42 | [Mutex] isItemNotified: received:node:56950a36-2ea2-4140-a823-fa92f04f8ea2:localhost:node-29a54063-cbfd-4b50-8b02-c54a51fbff6f:Node 29a54063-cbfd-4b50-8b02-c54a51fbff6f :: false

deleteSubnodes 1.025s
2020-09-18 09:38:40 |

2020-09-18 09:38:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:40 | ------------------------------------

2020-09-18 09:38:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6b43a858-af1b-4e90-a809-9b39f71aa7d7"
}

2020-09-18 09:38:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 09:38:41 | [Mutex] waiting for: [received:nodes:b54a265d-e998-4d9a-b744-55eca3328e22:localhost]

2020-09-18 09:38:41 | [Mutex] received everything.

2020-09-18 09:38:41 | [Mutex] isItemNotified: received:node:b54a265d-e998-4d9a-b744-55eca3328e22:localhost:node-6b43a858-af1b-4e90-a809-9b39f71aa7d7:Node 6b43a858-af1b-4e90-a809-9b39f71aa7d7 :: false

2020-09-18 09:38:41 | [Mutex] waiting for: [received:nodes:5a008744-8963-45a8-8d6d-0e87b198284c:localhost]

2020-09-18 09:38:41 | [Mutex] received everything.

2020-09-18 09:38:41 | [Mutex] isItemNotified: received:node:5a008744-8963-45a8-8d6d-0e87b198284c:localhost:node-6b43a858-af1b-4e90-a809-9b39f71aa7d7:Node 6b43a858-af1b-4e90-a809-9b39f71aa7d7 :: false

publishItemsToNodes 0.029s
2020-09-18 09:38:39 |

2020-09-18 09:38:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:39 | ------------------------------------

2020-09-18 09:38:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6b43a858-af1b-4e90-a809-9b39f71aa7d7",
    "entry": "<test>item-8ba73e7d-0171-4aef-aefa-bd48e30934ad</test>",
    "item-id": "item-8ba73e7d-0171-4aef-aefa-bd48e30934ad"
}

2020-09-18 09:38:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8ba73e7d-0171-4aef-aefa-bd48e30934ad"
}

2020-09-18 09:38:39 | [Mutex] waiting for: [published:item:notifieditem-8ba73e7d-0171-4aef-aefa-bd48e30934ad:admin@test-domain.com]

2020-09-18 09:38:39 | [Mutex] received everything.

2020-09-18 09:38:39 | [Mutex] isItemNotified: published:item:notifieditem-8ba73e7d-0171-4aef-aefa-bd48e30934ad:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-09-18 09:38:39 |

2020-09-18 09:38:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:39 | ------------------------------------

2020-09-18 09:38:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6b43a858-af1b-4e90-a809-9b39f71aa7d7",
    "item-id": "item-8ba73e7d-0171-4aef-aefa-bd48e30934ad"
}

2020-09-18 09:38:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8ba73e7d-0171-4aef-aefa-bd48e30934ad"
}

2020-09-18 09:38:39 | [Mutex] received everything.

2020-09-18 09:38:39 | [Mutex] isItemNotified: retracted:item:notifieditem-8ba73e7d-0171-4aef-aefa-bd48e30934ad:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2020-09-18 09:38:39 |

2020-09-18 09:38:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:39 | ------------------------------------

2020-09-18 09:38:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6b43a858-af1b-4e90-a809-9b39f71aa7d7",
    "item-id": "item-8ba73e7d-0171-4aef-aefa-bd48e30934ad"
}

2020-09-18 09:38:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6b43a858-af1b-4e90-a809-9b39f71aa7d7",
    "item-id": "item-8ba73e7d-0171-4aef-aefa-bd48e30934ad",
    "item": [
        "<item id=\"item-8ba73e7d-0171-4aef-aefa-bd48e30934ad\"><test>item-8ba73e7d-0171-4aef-aefa-bd48e30934ad</test></item>"
    ]
}

2020-09-18 09:38:39 | [Mutex] notify: [retrieved:item:item-8ba73e7d-0171-4aef-aefa-bd48e30934ad:payload-matches:true:localhost]

2020-09-18 09:38:39 | [Mutex] received everything.

2020-09-18 09:38:39 | [Mutex] isItemNotified: retrieved:item:item-8ba73e7d-0171-4aef-aefa-bd48e30934ad:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-18 09:38:39 |

2020-09-18 09:38:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:39 | ------------------------------------

2020-09-18 09:38:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-18 09:38:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6b43a858-af1b-4e90-a809-9b39f71aa7d7",
        "node-29a54063-cbfd-4b50-8b02-c54a51fbff6f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-18 09:38:39 |

2020-09-18 09:38:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:39 | ------------------------------------

2020-09-18 09:38:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6b43a858-af1b-4e90-a809-9b39f71aa7d7)"
}

2020-09-18 09:38:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2020-09-18 09:38:38 |

2020-09-18 09:38:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:38 | ------------------------------------

2020-09-18 09:38:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6b43a858-af1b-4e90-a809-9b39f71aa7d7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 09:38:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2020-09-18 09:38:39 |

2020-09-18 09:38:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 09:38:39 | ------------------------------------

2020-09-18 09:38:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6b43a858-af1b-4e90-a809-9b39f71aa7d7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 09:38:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}