Generated by TestNG with ReportNG at 22:30 PDT on Wednesday 09 September 2020
root@9b315bf73b73 / 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.889s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2020-09-09 22:45:33 |

2020-09-09 22:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 22:45:33 | ------------------------------------

2020-09-09 22:45:33 | [Mutex] waiting for: [configured:node:node-9872e5a2-3e92-4bca-aae1-4cf144f1582d:node-2a7f1e6f-eba7-42e0-a586-7785b136cd47]

2020-09-09 22:45:33 | [Mutex] received everything.

2020-09-09 22:45:33 | [Mutex] isItemNotified: configured:node:node-9872e5a2-3e92-4bca-aae1-4cf144f1582d:node-2a7f1e6f-eba7-42e0-a586-7785b136cd47 :: true

2020-09-09 22:45:34 | [Mutex] waiting for: [received:nodes:e964926d-37e3-4d29-a04d-945e2f7d26b3:localhost]

2020-09-09 22:45:34 | [Mutex] received everything.

2020-09-09 22:45:34 | [Mutex] isItemNotified: received:node:e964926d-37e3-4d29-a04d-945e2f7d26b3:localhost:node-9872e5a2-3e92-4bca-aae1-4cf144f1582d:Node 9872e5a2-3e92-4bca-aae1-4cf144f1582d :: true

2020-09-09 22:45:34 | [Mutex] waiting for: [received:nodes:ae3a80c3-92be-44ca-a5ba-1b507ff521dc:localhost]

2020-09-09 22:45:34 | [Mutex] waiting for: [received:nodes:ae3a80c3-92be-44ca-a5ba-1b507ff521dc:localhost]

2020-09-09 22:45:34 | [Mutex] received everything.

2020-09-09 22:45:34 | [Mutex] isItemNotified: received:node:ae3a80c3-92be-44ca-a5ba-1b507ff521dc:localhost:node-9872e5a2-3e92-4bca-aae1-4cf144f1582d:Node 9872e5a2-3e92-4bca-aae1-4cf144f1582d :: false

createNodes 1.624s
2020-09-09 22:45:30 |

2020-09-09 22:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 22:45:30 | ------------------------------------

2020-09-09 22:45:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9872e5a2-3e92-4bca-aae1-4cf144f1582d",
    "pubsub#title": "Node 9872e5a2-3e92-4bca-aae1-4cf144f1582d"
}

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

2020-09-09 22:45:32 | [Mutex] waiting for: [received:nodes:ceff55d8-d737-428a-8306-6a0f425b0a26:localhost]

2020-09-09 22:45:32 | [Mutex] received everything.

2020-09-09 22:45:32 | [Mutex] isItemNotified: received:node:ceff55d8-d737-428a-8306-6a0f425b0a26:localhost:node-9872e5a2-3e92-4bca-aae1-4cf144f1582d:Node 9872e5a2-3e92-4bca-aae1-4cf144f1582d :: true

createSubnodes 1.024s
2020-09-09 22:45:32 |

2020-09-09 22:45:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 22:45:32 | ------------------------------------

2020-09-09 22:45:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2a7f1e6f-eba7-42e0-a586-7785b136cd47",
    "pubsub#title": "Node 2a7f1e6f-eba7-42e0-a586-7785b136cd47"
}

2020-09-09 22:45:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 22:45:33 | [Mutex] waiting for: [received:nodes:f3e1b431-8b6f-4d18-9e2d-523168ba97fd:localhost]

2020-09-09 22:45:33 | [Mutex] received everything.

2020-09-09 22:45:33 | [Mutex] isItemNotified: received:node:f3e1b431-8b6f-4d18-9e2d-523168ba97fd:localhost:node-2a7f1e6f-eba7-42e0-a586-7785b136cd47:Node 2a7f1e6f-eba7-42e0-a586-7785b136cd47 :: true

deleteNodes 1.021s
2020-09-09 22:45:38 |

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

2020-09-09 22:45:38 | ------------------------------------

2020-09-09 22:45:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2a7f1e6f-eba7-42e0-a586-7785b136cd47"
}

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

2020-09-09 22:45:39 | [Mutex] waiting for: [received:nodes:d96d8998-f419-4040-964c-1496d9e45cd0:localhost]

2020-09-09 22:45:39 | [Mutex] received everything.

2020-09-09 22:45:39 | [Mutex] isItemNotified: received:node:d96d8998-f419-4040-964c-1496d9e45cd0:localhost:node-2a7f1e6f-eba7-42e0-a586-7785b136cd47:Node 2a7f1e6f-eba7-42e0-a586-7785b136cd47 :: false

deleteSubnodes 1.025s
2020-09-09 22:45:36 |

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

2020-09-09 22:45:36 | ------------------------------------

2020-09-09 22:45:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9872e5a2-3e92-4bca-aae1-4cf144f1582d"
}

2020-09-09 22:45:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 22:45:38 | [Mutex] waiting for: [received:nodes:31a47454-3884-45be-b32a-037890a7d83f:localhost]

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

2020-09-09 22:45:38 | [Mutex] isItemNotified: received:node:31a47454-3884-45be-b32a-037890a7d83f:localhost:node-9872e5a2-3e92-4bca-aae1-4cf144f1582d:Node 9872e5a2-3e92-4bca-aae1-4cf144f1582d :: false

2020-09-09 22:45:38 | [Mutex] waiting for: [received:nodes:9ddff08b-f3b8-4f47-9ccb-ff0b5ef2ec86:localhost]

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

2020-09-09 22:45:38 | [Mutex] isItemNotified: received:node:9ddff08b-f3b8-4f47-9ccb-ff0b5ef2ec86:localhost:node-9872e5a2-3e92-4bca-aae1-4cf144f1582d:Node 9872e5a2-3e92-4bca-aae1-4cf144f1582d :: false

publishItemsToNodes 0.048s
2020-09-09 22:45:35 |

2020-09-09 22:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 22:45:35 | ------------------------------------

2020-09-09 22:45:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9872e5a2-3e92-4bca-aae1-4cf144f1582d",
    "entry": "<test>item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811</test>",
    "item-id": "item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811"
}

2020-09-09 22:45:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811"
}

2020-09-09 22:45:35 | [Mutex] waiting for: [published:item:notifieditem-ee6a3fcc-7735-4336-a30c-dc4a24e3b811:admin@test-domain.com]

2020-09-09 22:45:35 | [Mutex] received everything.

2020-09-09 22:45:35 | [Mutex] isItemNotified: published:item:notifieditem-ee6a3fcc-7735-4336-a30c-dc4a24e3b811:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-09-09 22:45:35 |

2020-09-09 22:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 22:45:35 | ------------------------------------

2020-09-09 22:45:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9872e5a2-3e92-4bca-aae1-4cf144f1582d",
    "item-id": "item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811"
}

2020-09-09 22:45:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811"
}

2020-09-09 22:45:35 | [Mutex] received everything.

2020-09-09 22:45:35 | [Mutex] isItemNotified: retracted:item:notifieditem-ee6a3fcc-7735-4336-a30c-dc4a24e3b811:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2020-09-09 22:45:35 |

2020-09-09 22:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 22:45:35 | ------------------------------------

2020-09-09 22:45:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9872e5a2-3e92-4bca-aae1-4cf144f1582d",
    "item-id": "item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811"
}

2020-09-09 22:45:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9872e5a2-3e92-4bca-aae1-4cf144f1582d",
    "item-id": "item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811",
    "item": [
        "<item id=\"item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811\"><test>item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811</test></item>"
    ]
}

2020-09-09 22:45:35 | [Mutex] notify: [retrieved:item:item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811:payload-matches:true:localhost]

2020-09-09 22:45:35 | [Mutex] received everything.

2020-09-09 22:45:35 | [Mutex] isItemNotified: retrieved:item:item-ee6a3fcc-7735-4336-a30c-dc4a24e3b811:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-09 22:45:35 |

2020-09-09 22:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 22:45:35 | ------------------------------------

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

2020-09-09 22:45:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9872e5a2-3e92-4bca-aae1-4cf144f1582d",
        "node-2a7f1e6f-eba7-42e0-a586-7785b136cd47"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-09 22:45:35 |

2020-09-09 22:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 22:45:35 | ------------------------------------

2020-09-09 22:45:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9872e5a2-3e92-4bca-aae1-4cf144f1582d)"
}

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

subscribeNodes 1.015s
2020-09-09 22:45:34 |

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

2020-09-09 22:45:34 | ------------------------------------

2020-09-09 22:45:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9872e5a2-3e92-4bca-aae1-4cf144f1582d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2020-09-09 22:45:35 |

2020-09-09 22:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 22:45:35 | ------------------------------------

2020-09-09 22:45:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9872e5a2-3e92-4bca-aae1-4cf144f1582d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-09 22:45:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}