Generated by TestNG with ReportNG at 22:21 PDT on Friday 02 October 2020
root@43fec6d4badf / 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.158s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2020-10-02 22:36:57 |

2020-10-02 22:36:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:36:57 | ------------------------------------

2020-10-02 22:36:57 | [Mutex] waiting for: [configured:node:node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9:node-cb70576c-2b97-4983-9e59-a5edfd00cb5e]

2020-10-02 22:36:57 | [Mutex] received everything.

2020-10-02 22:36:57 | [Mutex] isItemNotified: configured:node:node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9:node-cb70576c-2b97-4983-9e59-a5edfd00cb5e :: true

2020-10-02 22:36:58 | [Mutex] waiting for: [received:nodes:9fc4df55-a0cc-41b1-a23b-ef67946e6f98:localhost]

2020-10-02 22:36:58 | [Mutex] received everything.

2020-10-02 22:36:58 | [Mutex] isItemNotified: received:node:9fc4df55-a0cc-41b1-a23b-ef67946e6f98:localhost:node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9:Node c840c9a1-5208-4e19-8f4a-c99639c9ecf9 :: true

2020-10-02 22:36:58 | [Mutex] waiting for: [received:nodes:db159c83-7148-45bd-bcb6-9ba3e9aaed1b:localhost]

2020-10-02 22:36:58 | [Mutex] waiting for: [received:nodes:db159c83-7148-45bd-bcb6-9ba3e9aaed1b:localhost]

2020-10-02 22:36:58 | [Mutex] received everything.

2020-10-02 22:36:58 | [Mutex] isItemNotified: received:node:db159c83-7148-45bd-bcb6-9ba3e9aaed1b:localhost:node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9:Node c840c9a1-5208-4e19-8f4a-c99639c9ecf9 :: false

createNodes 1.826s
2020-10-02 22:36:54 |

2020-10-02 22:36:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:36:54 | ------------------------------------

2020-10-02 22:36:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9",
    "pubsub#title": "Node c840c9a1-5208-4e19-8f4a-c99639c9ecf9"
}

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

2020-10-02 22:36:56 | [Mutex] waiting for: [received:nodes:5126e693-8ae5-419f-8a62-5469d8bb8706:localhost]

2020-10-02 22:36:56 | [Mutex] waiting for: [received:nodes:5126e693-8ae5-419f-8a62-5469d8bb8706:localhost]

2020-10-02 22:36:56 | [Mutex] received everything.

2020-10-02 22:36:56 | [Mutex] isItemNotified: received:node:5126e693-8ae5-419f-8a62-5469d8bb8706:localhost:node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9:Node c840c9a1-5208-4e19-8f4a-c99639c9ecf9 :: true

createSubnodes 1.023s
2020-10-02 22:36:56 |

2020-10-02 22:36:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:36:56 | ------------------------------------

2020-10-02 22:36:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cb70576c-2b97-4983-9e59-a5edfd00cb5e",
    "pubsub#title": "Node cb70576c-2b97-4983-9e59-a5edfd00cb5e"
}

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

2020-10-02 22:36:57 | [Mutex] waiting for: [received:nodes:75980913-16b6-4e17-8145-97c6b5cdd381:localhost]

2020-10-02 22:36:57 | [Mutex] received everything.

2020-10-02 22:36:57 | [Mutex] isItemNotified: received:node:75980913-16b6-4e17-8145-97c6b5cdd381:localhost:node-cb70576c-2b97-4983-9e59-a5edfd00cb5e:Node cb70576c-2b97-4983-9e59-a5edfd00cb5e :: true

deleteNodes 1.019s
2020-10-02 22:37:02 |

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

2020-10-02 22:37:02 | ------------------------------------

2020-10-02 22:37:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cb70576c-2b97-4983-9e59-a5edfd00cb5e"
}

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

2020-10-02 22:37:03 | [Mutex] waiting for: [received:nodes:1cd39de5-2e5a-4fea-9c70-e86a0f79c541:localhost]

2020-10-02 22:37:03 | [Mutex] received everything.

2020-10-02 22:37:03 | [Mutex] isItemNotified: received:node:1cd39de5-2e5a-4fea-9c70-e86a0f79c541:localhost:node-cb70576c-2b97-4983-9e59-a5edfd00cb5e:Node cb70576c-2b97-4983-9e59-a5edfd00cb5e :: false

deleteSubnodes 1.046s
2020-10-02 22:37:01 |

2020-10-02 22:37:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:37:01 | ------------------------------------

2020-10-02 22:37:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9"
}

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

2020-10-02 22:37:02 | [Mutex] waiting for: [received:nodes:f725e580-9bba-4eef-9c55-70403dfdaadd:localhost]

2020-10-02 22:37:02 | [Mutex] received everything.

2020-10-02 22:37:02 | [Mutex] isItemNotified: received:node:f725e580-9bba-4eef-9c55-70403dfdaadd:localhost:node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9:Node c840c9a1-5208-4e19-8f4a-c99639c9ecf9 :: false

2020-10-02 22:37:02 | [Mutex] waiting for: [received:nodes:0c9cf1d7-100b-4578-bebe-a961c91298f2:localhost]

2020-10-02 22:37:02 | [Mutex] received everything.

2020-10-02 22:37:02 | [Mutex] isItemNotified: received:node:0c9cf1d7-100b-4578-bebe-a961c91298f2:localhost:node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9:Node c840c9a1-5208-4e19-8f4a-c99639c9ecf9 :: false

publishItemsToNodes 0.040s
2020-10-02 22:36:59 |

2020-10-02 22:36:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:36:59 | ------------------------------------

2020-10-02 22:36:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9",
    "entry": "<test>item-564f22fd-6bc5-446b-87d0-87c1924da0b4</test>",
    "item-id": "item-564f22fd-6bc5-446b-87d0-87c1924da0b4"
}

2020-10-02 22:36:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-564f22fd-6bc5-446b-87d0-87c1924da0b4"
}

2020-10-02 22:36:59 | [Mutex] waiting for: [published:item:notifieditem-564f22fd-6bc5-446b-87d0-87c1924da0b4:admin@test-domain.com]

2020-10-02 22:36:59 | [Mutex] received everything.

2020-10-02 22:36:59 | [Mutex] isItemNotified: published:item:notifieditem-564f22fd-6bc5-446b-87d0-87c1924da0b4:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-10-02 22:37:00 |

2020-10-02 22:37:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:37:00 | ------------------------------------

2020-10-02 22:37:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9",
    "item-id": "item-564f22fd-6bc5-446b-87d0-87c1924da0b4"
}

2020-10-02 22:37:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-564f22fd-6bc5-446b-87d0-87c1924da0b4"
}

2020-10-02 22:37:00 | [Mutex] received everything.

2020-10-02 22:37:00 | [Mutex] isItemNotified: retracted:item:notifieditem-564f22fd-6bc5-446b-87d0-87c1924da0b4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2020-10-02 22:36:59 |

2020-10-02 22:36:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:36:59 | ------------------------------------

2020-10-02 22:36:59 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9",
    "item-id": "item-564f22fd-6bc5-446b-87d0-87c1924da0b4"
}

2020-10-02 22:36:59 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9",
    "item-id": "item-564f22fd-6bc5-446b-87d0-87c1924da0b4",
    "item": [
        "<item id=\"item-564f22fd-6bc5-446b-87d0-87c1924da0b4\"><test>item-564f22fd-6bc5-446b-87d0-87c1924da0b4</test></item>"
    ]
}

2020-10-02 22:36:59 | [Mutex] notify: [retrieved:item:item-564f22fd-6bc5-446b-87d0-87c1924da0b4:payload-matches:true:localhost]

2020-10-02 22:36:59 | [Mutex] received everything.

2020-10-02 22:36:59 | [Mutex] isItemNotified: retrieved:item:item-564f22fd-6bc5-446b-87d0-87c1924da0b4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-10-02 22:36:59 |

2020-10-02 22:36:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:36:59 | ------------------------------------

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

2020-10-02 22:37:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9",
        "test",
        "node-cb70576c-2b97-4983-9e59-a5edfd00cb5e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-10-02 22:37:00 |

2020-10-02 22:37:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:37:00 | ------------------------------------

2020-10-02 22:37:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9)"
}

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

subscribeNodes 1.018s
2020-10-02 22:36:58 |

2020-10-02 22:36:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:36:58 | ------------------------------------

2020-10-02 22:36:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-10-02 22:37:00 |

2020-10-02 22:37:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-02 22:37:00 | ------------------------------------

2020-10-02 22:37:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c840c9a1-5208-4e19-8f4a-c99639c9ecf9",
    "jids": [
        "admin@test-domain.com"
    ]
}

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