Generated by TestNG with ReportNG at 22:15 PDT on Sunday 09 May 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.966s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2021-05-09 22:33:57 |

2021-05-09 22:33:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:33:57 | ------------------------------------

2021-05-09 22:33:57 | [Mutex] waiting for: [configured:node:node-ba5e3336-5b96-4e96-84eb-bf8a273e29be:node-cccfb5b3-a42c-44b7-bd53-a861f5c4d199]

2021-05-09 22:33:57 | [Mutex] received everything.

2021-05-09 22:33:57 | [Mutex] isItemNotified: configured:node:node-ba5e3336-5b96-4e96-84eb-bf8a273e29be:node-cccfb5b3-a42c-44b7-bd53-a861f5c4d199 :: true

2021-05-09 22:33:59 | [Mutex] waiting for: [received:nodes:797b7b2e-60b0-4ae8-a063-a6f54e7e31f2:localhost]

2021-05-09 22:33:59 | [Mutex] received everything.

2021-05-09 22:33:59 | [Mutex] isItemNotified: received:node:797b7b2e-60b0-4ae8-a063-a6f54e7e31f2:localhost:node-ba5e3336-5b96-4e96-84eb-bf8a273e29be:Node ba5e3336-5b96-4e96-84eb-bf8a273e29be :: true

2021-05-09 22:33:59 | [Mutex] waiting for: [received:nodes:95a4e1b8-d784-4edc-a7c3-e749c2e68e6e:localhost]

2021-05-09 22:33:59 | [Mutex] received everything.

2021-05-09 22:33:59 | [Mutex] isItemNotified: received:node:95a4e1b8-d784-4edc-a7c3-e749c2e68e6e:localhost:node-ba5e3336-5b96-4e96-84eb-bf8a273e29be:Node ba5e3336-5b96-4e96-84eb-bf8a273e29be :: false

createNodes 1.572s
2021-05-09 22:33:55 |

2021-05-09 22:33:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:33:55 | ------------------------------------

2021-05-09 22:33: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-ba5e3336-5b96-4e96-84eb-bf8a273e29be",
    "pubsub#title": "Node ba5e3336-5b96-4e96-84eb-bf8a273e29be"
}

2021-05-09 22:33:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-09 22:33:56 | [Mutex] waiting for: [received:nodes:2644e233-8cfc-4fc0-a08e-f2a6985e837f:localhost]

2021-05-09 22:33:56 | [Mutex] waiting for: [received:nodes:2644e233-8cfc-4fc0-a08e-f2a6985e837f:localhost]

2021-05-09 22:33:56 | [Mutex] waiting for: [received:nodes:2644e233-8cfc-4fc0-a08e-f2a6985e837f:localhost]

2021-05-09 22:33:56 | [Mutex] waiting for: [received:nodes:2644e233-8cfc-4fc0-a08e-f2a6985e837f:localhost]

2021-05-09 22:33:56 | [Mutex] received everything.

2021-05-09 22:33:56 | [Mutex] isItemNotified: received:node:2644e233-8cfc-4fc0-a08e-f2a6985e837f:localhost:node-ba5e3336-5b96-4e96-84eb-bf8a273e29be:Node ba5e3336-5b96-4e96-84eb-bf8a273e29be :: true

createSubnodes 1.021s
2021-05-09 22:33:56 |

2021-05-09 22:33:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:33:56 | ------------------------------------

2021-05-09 22:33: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-cccfb5b3-a42c-44b7-bd53-a861f5c4d199",
    "pubsub#title": "Node cccfb5b3-a42c-44b7-bd53-a861f5c4d199"
}

2021-05-09 22:33:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-09 22:33:57 | [Mutex] waiting for: [received:nodes:438ed065-0345-42db-9266-47058b826a63:localhost]

2021-05-09 22:33:57 | [Mutex] received everything.

2021-05-09 22:33:57 | [Mutex] isItemNotified: received:node:438ed065-0345-42db-9266-47058b826a63:localhost:node-cccfb5b3-a42c-44b7-bd53-a861f5c4d199:Node cccfb5b3-a42c-44b7-bd53-a861f5c4d199 :: true

deleteNodes 1.023s
2021-05-09 22:34:02 |

2021-05-09 22:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:34:02 | ------------------------------------

2021-05-09 22:34:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cccfb5b3-a42c-44b7-bd53-a861f5c4d199"
}

2021-05-09 22:34:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-09 22:34:03 | [Mutex] waiting for: [received:nodes:977d657b-6e44-438c-90d1-f3f6d2984be1:localhost]

2021-05-09 22:34:03 | [Mutex] received everything.

2021-05-09 22:34:03 | [Mutex] isItemNotified: received:node:977d657b-6e44-438c-90d1-f3f6d2984be1:localhost:node-cccfb5b3-a42c-44b7-bd53-a861f5c4d199:Node cccfb5b3-a42c-44b7-bd53-a861f5c4d199 :: false

deleteSubnodes 1.027s
2021-05-09 22:34:01 |

2021-05-09 22:34:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:34:01 | ------------------------------------

2021-05-09 22:34:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ba5e3336-5b96-4e96-84eb-bf8a273e29be"
}

2021-05-09 22:34:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-09 22:34:02 | [Mutex] waiting for: [received:nodes:3eccbc06-01a5-4076-9e77-5fe1ccd7ff1b:localhost]

2021-05-09 22:34:02 | [Mutex] received everything.

2021-05-09 22:34:02 | [Mutex] isItemNotified: received:node:3eccbc06-01a5-4076-9e77-5fe1ccd7ff1b:localhost:node-ba5e3336-5b96-4e96-84eb-bf8a273e29be:Node ba5e3336-5b96-4e96-84eb-bf8a273e29be :: false

2021-05-09 22:34:02 | [Mutex] waiting for: [received:nodes:8055363a-43a1-4f53-8ecd-c39b66b4cc5d:localhost]

2021-05-09 22:34:02 | [Mutex] received everything.

2021-05-09 22:34:02 | [Mutex] isItemNotified: received:node:8055363a-43a1-4f53-8ecd-c39b66b4cc5d:localhost:node-ba5e3336-5b96-4e96-84eb-bf8a273e29be:Node ba5e3336-5b96-4e96-84eb-bf8a273e29be :: false

publishItemsToNodes 0.056s
2021-05-09 22:34:00 |

2021-05-09 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:34:00 | ------------------------------------

2021-05-09 22:34:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ba5e3336-5b96-4e96-84eb-bf8a273e29be",
    "entry": "<test>item-60953ac0-d0b7-4857-b307-d998461e6f9f</test>",
    "item-id": "item-60953ac0-d0b7-4857-b307-d998461e6f9f"
}

2021-05-09 22:34:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-60953ac0-d0b7-4857-b307-d998461e6f9f"
}

2021-05-09 22:34:00 | [Mutex] waiting for: [published:item:notifieditem-60953ac0-d0b7-4857-b307-d998461e6f9f:admin@test-domain.com]

2021-05-09 22:34:00 | [Mutex] received everything.

2021-05-09 22:34:00 | [Mutex] isItemNotified: published:item:notifieditem-60953ac0-d0b7-4857-b307-d998461e6f9f:admin@test-domain.com :: true

retractItemsFromNodes 0.075s
2021-05-09 22:34:00 |

2021-05-09 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:34:00 | ------------------------------------

2021-05-09 22:34:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ba5e3336-5b96-4e96-84eb-bf8a273e29be",
    "item-id": "item-60953ac0-d0b7-4857-b307-d998461e6f9f"
}

2021-05-09 22:34:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-60953ac0-d0b7-4857-b307-d998461e6f9f"
}

2021-05-09 22:34:00 | [Mutex] received everything.

2021-05-09 22:34:00 | [Mutex] isItemNotified: retracted:item:notifieditem-60953ac0-d0b7-4857-b307-d998461e6f9f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2021-05-09 22:34:00 |

2021-05-09 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:34:00 | ------------------------------------

2021-05-09 22:34:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ba5e3336-5b96-4e96-84eb-bf8a273e29be",
    "item-id": "item-60953ac0-d0b7-4857-b307-d998461e6f9f"
}

2021-05-09 22:34:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ba5e3336-5b96-4e96-84eb-bf8a273e29be",
    "item-id": "item-60953ac0-d0b7-4857-b307-d998461e6f9f",
    "item": [
        "<item id=\"item-60953ac0-d0b7-4857-b307-d998461e6f9f\"><test>item-60953ac0-d0b7-4857-b307-d998461e6f9f</test></item>"
    ]
}

2021-05-09 22:34:00 | [Mutex] notify: [retrieved:item:item-60953ac0-d0b7-4857-b307-d998461e6f9f:payload-matches:true:localhost]

2021-05-09 22:34:00 | [Mutex] received everything.

2021-05-09 22:34:00 | [Mutex] isItemNotified: retrieved:item:item-60953ac0-d0b7-4857-b307-d998461e6f9f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-05-09 22:34:00 |

2021-05-09 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:34:00 | ------------------------------------

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

2021-05-09 22:34:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ba5e3336-5b96-4e96-84eb-bf8a273e29be",
        "node-cccfb5b3-a42c-44b7-bd53-a861f5c4d199",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-05-09 22:34:00 |

2021-05-09 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:34:00 | ------------------------------------

2021-05-09 22:34:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ba5e3336-5b96-4e96-84eb-bf8a273e29be)"
}

2021-05-09 22:34:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2021-05-09 22:33:59 |

2021-05-09 22:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:33:59 | ------------------------------------

2021-05-09 22:33:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ba5e3336-5b96-4e96-84eb-bf8a273e29be",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-09 22:33:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2021-05-09 22:34:00 |

2021-05-09 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-09 22:34:00 | ------------------------------------

2021-05-09 22:34:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ba5e3336-5b96-4e96-84eb-bf8a273e29be",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-09 22:34:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}