Generated by TestNG with ReportNG at 09:45 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 : 9.179s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2021-05-27 10:02:12 |

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

2021-05-27 10:02:12 | ------------------------------------

2021-05-27 10:02:12 | [Mutex] waiting for: [configured:node:node-423e5acd-c66e-4503-bcc0-37e8dedefd30:node-6cbc8668-fad1-4cef-bd24-4996d04ba8d0]

2021-05-27 10:02:12 | [Mutex] received everything.

2021-05-27 10:02:12 | [Mutex] isItemNotified: configured:node:node-423e5acd-c66e-4503-bcc0-37e8dedefd30:node-6cbc8668-fad1-4cef-bd24-4996d04ba8d0 :: true

2021-05-27 10:02:13 | [Mutex] waiting for: [received:nodes:852cdc4d-c9e0-4195-80b6-c5216b3f9a0c:localhost]

2021-05-27 10:02:13 | [Mutex] received everything.

2021-05-27 10:02:13 | [Mutex] isItemNotified: received:node:852cdc4d-c9e0-4195-80b6-c5216b3f9a0c:localhost:node-423e5acd-c66e-4503-bcc0-37e8dedefd30:Node 423e5acd-c66e-4503-bcc0-37e8dedefd30 :: true

2021-05-27 10:02:13 | [Mutex] waiting for: [received:nodes:78c37a0b-2989-4c9a-970d-426945246838:localhost]

2021-05-27 10:02:13 | [Mutex] received everything.

2021-05-27 10:02:13 | [Mutex] isItemNotified: received:node:78c37a0b-2989-4c9a-970d-426945246838:localhost:node-423e5acd-c66e-4503-bcc0-37e8dedefd30:Node 423e5acd-c66e-4503-bcc0-37e8dedefd30 :: false

createNodes 1.729s
2021-05-27 10:02:10 |

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

2021-05-27 10:02:10 | ------------------------------------

2021-05-27 10:02:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-423e5acd-c66e-4503-bcc0-37e8dedefd30",
    "pubsub#title": "Node 423e5acd-c66e-4503-bcc0-37e8dedefd30"
}

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

2021-05-27 10:02:11 | [Mutex] waiting for: [received:nodes:66755fbd-4cb2-4260-a8a7-1a1258bfce44:localhost]

2021-05-27 10:02:11 | [Mutex] received everything.

2021-05-27 10:02:11 | [Mutex] isItemNotified: received:node:66755fbd-4cb2-4260-a8a7-1a1258bfce44:localhost:node-423e5acd-c66e-4503-bcc0-37e8dedefd30:Node 423e5acd-c66e-4503-bcc0-37e8dedefd30 :: true

createSubnodes 1.035s
2021-05-27 10:02:11 |

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

2021-05-27 10:02:11 | ------------------------------------

2021-05-27 10:02:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6cbc8668-fad1-4cef-bd24-4996d04ba8d0",
    "pubsub#title": "Node 6cbc8668-fad1-4cef-bd24-4996d04ba8d0"
}

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

2021-05-27 10:02:12 | [Mutex] waiting for: [received:nodes:5f4285c0-14b2-4862-bc6d-2140545ff677:localhost]

2021-05-27 10:02:12 | [Mutex] received everything.

2021-05-27 10:02:12 | [Mutex] isItemNotified: received:node:5f4285c0-14b2-4862-bc6d-2140545ff677:localhost:node-6cbc8668-fad1-4cef-bd24-4996d04ba8d0:Node 6cbc8668-fad1-4cef-bd24-4996d04ba8d0 :: true

deleteNodes 1.029s
2021-05-27 10:02:17 |

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

2021-05-27 10:02:17 | ------------------------------------

2021-05-27 10:02:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6cbc8668-fad1-4cef-bd24-4996d04ba8d0"
}

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

2021-05-27 10:02:18 | [Mutex] waiting for: [received:nodes:ed89fafe-3df7-4ce6-973d-ed087decb91a:localhost]

2021-05-27 10:02:18 | [Mutex] waiting for: [received:nodes:ed89fafe-3df7-4ce6-973d-ed087decb91a:localhost]

2021-05-27 10:02:18 | [Mutex] received everything.

2021-05-27 10:02:18 | [Mutex] isItemNotified: received:node:ed89fafe-3df7-4ce6-973d-ed087decb91a:localhost:node-6cbc8668-fad1-4cef-bd24-4996d04ba8d0:Node 6cbc8668-fad1-4cef-bd24-4996d04ba8d0 :: false

deleteSubnodes 1.035s
2021-05-27 10:02:16 |

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

2021-05-27 10:02:16 | ------------------------------------

2021-05-27 10:02:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-423e5acd-c66e-4503-bcc0-37e8dedefd30"
}

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

2021-05-27 10:02:17 | [Mutex] waiting for: [received:nodes:48a489be-f1e0-445e-a1af-efbab3ed890d:localhost]

2021-05-27 10:02:17 | [Mutex] received everything.

2021-05-27 10:02:17 | [Mutex] isItemNotified: received:node:48a489be-f1e0-445e-a1af-efbab3ed890d:localhost:node-423e5acd-c66e-4503-bcc0-37e8dedefd30:Node 423e5acd-c66e-4503-bcc0-37e8dedefd30 :: false

2021-05-27 10:02:17 | [Mutex] waiting for: [received:nodes:567340bd-d6bc-499b-b388-1415aa855c1f:localhost]

2021-05-27 10:02:17 | [Mutex] received everything.

2021-05-27 10:02:17 | [Mutex] isItemNotified: received:node:567340bd-d6bc-499b-b388-1415aa855c1f:localhost:node-423e5acd-c66e-4503-bcc0-37e8dedefd30:Node 423e5acd-c66e-4503-bcc0-37e8dedefd30 :: false

publishItemsToNodes 0.057s
2021-05-27 10:02:14 |

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

2021-05-27 10:02:14 | ------------------------------------

2021-05-27 10:02:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-423e5acd-c66e-4503-bcc0-37e8dedefd30",
    "entry": "<test>item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f</test>",
    "item-id": "item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f"
}

2021-05-27 10:02:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f"
}

2021-05-27 10:02:14 | [Mutex] waiting for: [published:item:notifieditem-2e6a9d27-e12c-4cbc-88b0-29394a218e3f:admin@test-domain.com]

2021-05-27 10:02:14 | [Mutex] received everything.

2021-05-27 10:02:14 | [Mutex] isItemNotified: published:item:notifieditem-2e6a9d27-e12c-4cbc-88b0-29394a218e3f:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2021-05-27 10:02:15 |

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

2021-05-27 10:02:15 | ------------------------------------

2021-05-27 10:02:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-423e5acd-c66e-4503-bcc0-37e8dedefd30",
    "item-id": "item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f"
}

2021-05-27 10:02:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f"
}

2021-05-27 10:02:15 | [Mutex] received everything.

2021-05-27 10:02:15 | [Mutex] isItemNotified: retracted:item:notifieditem-2e6a9d27-e12c-4cbc-88b0-29394a218e3f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2021-05-27 10:02:14 |

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

2021-05-27 10:02:14 | ------------------------------------

2021-05-27 10:02:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-423e5acd-c66e-4503-bcc0-37e8dedefd30",
    "item-id": "item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f"
}

2021-05-27 10:02:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-423e5acd-c66e-4503-bcc0-37e8dedefd30",
    "item-id": "item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f",
    "item": [
        "<item id=\"item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f\"><test>item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f</test></item>"
    ]
}

2021-05-27 10:02:15 | [Mutex] notify: [retrieved:item:item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f:payload-matches:true:localhost]

2021-05-27 10:02:15 | [Mutex] received everything.

2021-05-27 10:02:15 | [Mutex] isItemNotified: retrieved:item:item-2e6a9d27-e12c-4cbc-88b0-29394a218e3f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-05-27 10:02:15 |

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

2021-05-27 10:02:15 | ------------------------------------

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

2021-05-27 10:02:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-423e5acd-c66e-4503-bcc0-37e8dedefd30",
        "node-6cbc8668-fad1-4cef-bd24-4996d04ba8d0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-05-27 10:02:15 |

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

2021-05-27 10:02:15 | ------------------------------------

2021-05-27 10:02:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-423e5acd-c66e-4503-bcc0-37e8dedefd30)"
}

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

subscribeNodes 1.013s
2021-05-27 10:02:13 |

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

2021-05-27 10:02:13 | ------------------------------------

2021-05-27 10:02:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-423e5acd-c66e-4503-bcc0-37e8dedefd30",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2021-05-27 10:02:15 |

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

2021-05-27 10:02:15 | ------------------------------------

2021-05-27 10:02:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-423e5acd-c66e-4503-bcc0-37e8dedefd30",
    "jids": [
        "admin@test-domain.com"
    ]
}

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