Generated by TestNG with ReportNG at 10:15 PDT on Thursday 27 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 : 8.964s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2021-05-27 10:28:38 |

2021-05-27 10:28:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:38 | ------------------------------------

2021-05-27 10:28:38 | [Mutex] waiting for: [configured:node:node-da86a94c-121c-4418-87c8-7d62c53c069f:node-de345bf8-21b8-4636-861a-b36baf91690a]

2021-05-27 10:28:38 | [Mutex] received everything.

2021-05-27 10:28:38 | [Mutex] isItemNotified: configured:node:node-da86a94c-121c-4418-87c8-7d62c53c069f:node-de345bf8-21b8-4636-861a-b36baf91690a :: true

2021-05-27 10:28:39 | [Mutex] waiting for: [received:nodes:d4beac00-c17c-48e6-9bee-61ce1761351b:localhost]

2021-05-27 10:28:39 | [Mutex] received everything.

2021-05-27 10:28:39 | [Mutex] isItemNotified: received:node:d4beac00-c17c-48e6-9bee-61ce1761351b:localhost:node-da86a94c-121c-4418-87c8-7d62c53c069f:Node da86a94c-121c-4418-87c8-7d62c53c069f :: true

2021-05-27 10:28:39 | [Mutex] waiting for: [received:nodes:9d020279-8858-4d4b-bef9-86005218a516:localhost]

2021-05-27 10:28:39 | [Mutex] waiting for: [received:nodes:9d020279-8858-4d4b-bef9-86005218a516:localhost]

2021-05-27 10:28:39 | [Mutex] waiting for: [received:nodes:9d020279-8858-4d4b-bef9-86005218a516:localhost]

2021-05-27 10:28:39 | [Mutex] received everything.

2021-05-27 10:28:39 | [Mutex] isItemNotified: received:node:9d020279-8858-4d4b-bef9-86005218a516:localhost:node-da86a94c-121c-4418-87c8-7d62c53c069f:Node da86a94c-121c-4418-87c8-7d62c53c069f :: false

createNodes 1.573s
2021-05-27 10:28:36 |

2021-05-27 10:28:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:36 | ------------------------------------

2021-05-27 10:28:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-da86a94c-121c-4418-87c8-7d62c53c069f",
    "pubsub#title": "Node da86a94c-121c-4418-87c8-7d62c53c069f"
}

2021-05-27 10:28:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 10:28:37 | [Mutex] waiting for: [received:nodes:44a68403-dc16-48ba-9c4a-ac8e94ab19f8:localhost]

2021-05-27 10:28:37 | [Mutex] received everything.

2021-05-27 10:28:37 | [Mutex] isItemNotified: received:node:44a68403-dc16-48ba-9c4a-ac8e94ab19f8:localhost:node-da86a94c-121c-4418-87c8-7d62c53c069f:Node da86a94c-121c-4418-87c8-7d62c53c069f :: true

createSubnodes 1.024s
2021-05-27 10:28:37 |

2021-05-27 10:28:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:37 | ------------------------------------

2021-05-27 10:28:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-de345bf8-21b8-4636-861a-b36baf91690a",
    "pubsub#title": "Node de345bf8-21b8-4636-861a-b36baf91690a"
}

2021-05-27 10:28:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 10:28:38 | [Mutex] waiting for: [received:nodes:45d82665-cbe8-4f31-a995-706904ab9bd7:localhost]

2021-05-27 10:28:38 | [Mutex] waiting for: [received:nodes:45d82665-cbe8-4f31-a995-706904ab9bd7:localhost]

2021-05-27 10:28:38 | [Mutex] received everything.

2021-05-27 10:28:38 | [Mutex] isItemNotified: received:node:45d82665-cbe8-4f31-a995-706904ab9bd7:localhost:node-de345bf8-21b8-4636-861a-b36baf91690a:Node de345bf8-21b8-4636-861a-b36baf91690a :: true

deleteNodes 1.020s
2021-05-27 10:28:43 |

2021-05-27 10:28:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:43 | ------------------------------------

2021-05-27 10:28:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-de345bf8-21b8-4636-861a-b36baf91690a"
}

2021-05-27 10:28:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 10:28:44 | [Mutex] waiting for: [received:nodes:c744eadb-babf-4449-8ec2-ebe5a992679f:localhost]

2021-05-27 10:28:44 | [Mutex] waiting for: [received:nodes:c744eadb-babf-4449-8ec2-ebe5a992679f:localhost]

2021-05-27 10:28:44 | [Mutex] received everything.

2021-05-27 10:28:44 | [Mutex] isItemNotified: received:node:c744eadb-babf-4449-8ec2-ebe5a992679f:localhost:node-de345bf8-21b8-4636-861a-b36baf91690a:Node de345bf8-21b8-4636-861a-b36baf91690a :: false

deleteSubnodes 1.036s
2021-05-27 10:28:42 |

2021-05-27 10:28:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:42 | ------------------------------------

2021-05-27 10:28:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-da86a94c-121c-4418-87c8-7d62c53c069f"
}

2021-05-27 10:28:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 10:28:43 | [Mutex] waiting for: [received:nodes:a79879af-b0c8-4d9f-8962-e6385f141943:localhost]

2021-05-27 10:28:43 | [Mutex] waiting for: [received:nodes:a79879af-b0c8-4d9f-8962-e6385f141943:localhost]

2021-05-27 10:28:43 | [Mutex] received everything.

2021-05-27 10:28:43 | [Mutex] isItemNotified: received:node:a79879af-b0c8-4d9f-8962-e6385f141943:localhost:node-da86a94c-121c-4418-87c8-7d62c53c069f:Node da86a94c-121c-4418-87c8-7d62c53c069f :: false

2021-05-27 10:28:43 | [Mutex] waiting for: [received:nodes:a9c77b35-4c03-4c9c-bec6-812812759748:localhost]

2021-05-27 10:28:43 | [Mutex] received everything.

2021-05-27 10:28:43 | [Mutex] isItemNotified: received:node:a9c77b35-4c03-4c9c-bec6-812812759748:localhost:node-da86a94c-121c-4418-87c8-7d62c53c069f:Node da86a94c-121c-4418-87c8-7d62c53c069f :: false

publishItemsToNodes 0.067s
2021-05-27 10:28:40 |

2021-05-27 10:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:40 | ------------------------------------

2021-05-27 10:28:40 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-da86a94c-121c-4418-87c8-7d62c53c069f",
    "entry": "<test>item-3610df7b-1368-48b9-94d3-845b6eddfd2c</test>",
    "item-id": "item-3610df7b-1368-48b9-94d3-845b6eddfd2c"
}

2021-05-27 10:28:40 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3610df7b-1368-48b9-94d3-845b6eddfd2c"
}

2021-05-27 10:28:40 | [Mutex] waiting for: [published:item:notifieditem-3610df7b-1368-48b9-94d3-845b6eddfd2c:admin@test-domain.com]

2021-05-27 10:28:40 | [Mutex] received everything.

2021-05-27 10:28:40 | [Mutex] isItemNotified: published:item:notifieditem-3610df7b-1368-48b9-94d3-845b6eddfd2c:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2021-05-27 10:28:41 |

2021-05-27 10:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:41 | ------------------------------------

2021-05-27 10:28:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-da86a94c-121c-4418-87c8-7d62c53c069f",
    "item-id": "item-3610df7b-1368-48b9-94d3-845b6eddfd2c"
}

2021-05-27 10:28:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3610df7b-1368-48b9-94d3-845b6eddfd2c"
}

2021-05-27 10:28:41 | [Mutex] received everything.

2021-05-27 10:28:41 | [Mutex] isItemNotified: retracted:item:notifieditem-3610df7b-1368-48b9-94d3-845b6eddfd2c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2021-05-27 10:28:40 |

2021-05-27 10:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:40 | ------------------------------------

2021-05-27 10:28:40 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-da86a94c-121c-4418-87c8-7d62c53c069f",
    "item-id": "item-3610df7b-1368-48b9-94d3-845b6eddfd2c"
}

2021-05-27 10:28:40 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-da86a94c-121c-4418-87c8-7d62c53c069f",
    "item-id": "item-3610df7b-1368-48b9-94d3-845b6eddfd2c",
    "item": [
        "<item id=\"item-3610df7b-1368-48b9-94d3-845b6eddfd2c\"><test>item-3610df7b-1368-48b9-94d3-845b6eddfd2c</test></item>"
    ]
}

2021-05-27 10:28:40 | [Mutex] notify: [retrieved:item:item-3610df7b-1368-48b9-94d3-845b6eddfd2c:payload-matches:true:localhost]

2021-05-27 10:28:40 | [Mutex] received everything.

2021-05-27 10:28:40 | [Mutex] isItemNotified: retrieved:item:item-3610df7b-1368-48b9-94d3-845b6eddfd2c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.095s
2021-05-27 10:28:40 |

2021-05-27 10:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:40 | ------------------------------------

2021-05-27 10:28:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-27 10:28:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-da86a94c-121c-4418-87c8-7d62c53c069f",
        "test",
        "node-de345bf8-21b8-4636-861a-b36baf91690a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-27 10:28:40 |

2021-05-27 10:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:40 | ------------------------------------

2021-05-27 10:28:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-da86a94c-121c-4418-87c8-7d62c53c069f)"
}

2021-05-27 10:28:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-05-27 10:28:39 |

2021-05-27 10:28:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:39 | ------------------------------------

2021-05-27 10:28:39 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-da86a94c-121c-4418-87c8-7d62c53c069f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2021-05-27 10:28:41 |

2021-05-27 10:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 10:28:41 | ------------------------------------

2021-05-27 10:28:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-da86a94c-121c-4418-87c8-7d62c53c069f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-27 10:28:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}