Generated by TestNG with ReportNG at 07:05 PDT on Friday 26 August 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.633s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.136s
2022-08-26 07:20:39 |

2022-08-26 07:20:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:39 | ------------------------------------

2022-08-26 07:20:39 | [Mutex] waiting for: [configured:node:node-b3f22abc-e468-4189-92b0-697612a5aa50:node-e7bc42fd-c43f-4713-baac-3e1305fdb972]

2022-08-26 07:20:39 | [Mutex] received everything.

2022-08-26 07:20:39 | [Mutex] isItemNotified: configured:node:node-b3f22abc-e468-4189-92b0-697612a5aa50:node-e7bc42fd-c43f-4713-baac-3e1305fdb972 :: true

2022-08-26 07:20:40 | [Mutex] waiting for: [received:nodes:be9f9b15-8e28-4350-865d-0b0a615bcfcf:localhost]

2022-08-26 07:20:40 | [Mutex] received everything.

2022-08-26 07:20:40 | [Mutex] isItemNotified: received:node:be9f9b15-8e28-4350-865d-0b0a615bcfcf:localhost:node-b3f22abc-e468-4189-92b0-697612a5aa50:Node b3f22abc-e468-4189-92b0-697612a5aa50 :: true

2022-08-26 07:20:40 | [Mutex] waiting for: [received:nodes:7830acdc-9364-4d29-bdfa-558a5af3c945:localhost]

2022-08-26 07:20:40 | [Mutex] received everything.

2022-08-26 07:20:40 | [Mutex] isItemNotified: received:node:7830acdc-9364-4d29-bdfa-558a5af3c945:localhost:node-b3f22abc-e468-4189-92b0-697612a5aa50:Node b3f22abc-e468-4189-92b0-697612a5aa50 :: false

createNodes 1.574s
2022-08-26 07:20:36 |

2022-08-26 07:20:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:36 | ------------------------------------

2022-08-26 07:20:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b3f22abc-e468-4189-92b0-697612a5aa50",
    "pubsub#title": "Node b3f22abc-e468-4189-92b0-697612a5aa50"
}

2022-08-26 07:20:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-26 07:20:38 | [Mutex] waiting for: [received:nodes:479d79bf-c25e-4e1c-be4f-14d402c60cf6:localhost]

2022-08-26 07:20:38 | [Mutex] received everything.

2022-08-26 07:20:38 | [Mutex] isItemNotified: received:node:479d79bf-c25e-4e1c-be4f-14d402c60cf6:localhost:node-b3f22abc-e468-4189-92b0-697612a5aa50:Node b3f22abc-e468-4189-92b0-697612a5aa50 :: true

createSubnodes 1.029s
2022-08-26 07:20:38 |

2022-08-26 07:20:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:38 | ------------------------------------

2022-08-26 07:20:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e7bc42fd-c43f-4713-baac-3e1305fdb972",
    "pubsub#title": "Node e7bc42fd-c43f-4713-baac-3e1305fdb972"
}

2022-08-26 07:20:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-26 07:20:39 | [Mutex] waiting for: [received:nodes:1b8ab3c3-7b7e-47f0-b439-15792a9dbd0c:localhost]

2022-08-26 07:20:39 | [Mutex] received everything.

2022-08-26 07:20:39 | [Mutex] isItemNotified: received:node:1b8ab3c3-7b7e-47f0-b439-15792a9dbd0c:localhost:node-e7bc42fd-c43f-4713-baac-3e1305fdb972:Node e7bc42fd-c43f-4713-baac-3e1305fdb972 :: true

deleteNodes 1.017s
2022-08-26 07:20:44 |

2022-08-26 07:20:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:44 | ------------------------------------

2022-08-26 07:20:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e7bc42fd-c43f-4713-baac-3e1305fdb972"
}

2022-08-26 07:20:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-26 07:20:45 | [Mutex] waiting for: [received:nodes:34ea22a1-9482-458a-a2d1-004bdd432697:localhost]

2022-08-26 07:20:45 | [Mutex] waiting for: [received:nodes:34ea22a1-9482-458a-a2d1-004bdd432697:localhost]

2022-08-26 07:20:45 | [Mutex] waiting for: [received:nodes:34ea22a1-9482-458a-a2d1-004bdd432697:localhost]

2022-08-26 07:20:45 | [Mutex] received everything.

2022-08-26 07:20:45 | [Mutex] isItemNotified: received:node:34ea22a1-9482-458a-a2d1-004bdd432697:localhost:node-e7bc42fd-c43f-4713-baac-3e1305fdb972:Node e7bc42fd-c43f-4713-baac-3e1305fdb972 :: false

deleteSubnodes 1.025s
2022-08-26 07:20:43 |

2022-08-26 07:20:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:43 | ------------------------------------

2022-08-26 07:20:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b3f22abc-e468-4189-92b0-697612a5aa50"
}

2022-08-26 07:20:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-26 07:20:44 | [Mutex] waiting for: [received:nodes:db99d1bb-77ec-4fa1-87ed-5951126061d3:localhost]

2022-08-26 07:20:44 | [Mutex] waiting for: [received:nodes:db99d1bb-77ec-4fa1-87ed-5951126061d3:localhost]

2022-08-26 07:20:44 | [Mutex] received everything.

2022-08-26 07:20:44 | [Mutex] isItemNotified: received:node:db99d1bb-77ec-4fa1-87ed-5951126061d3:localhost:node-b3f22abc-e468-4189-92b0-697612a5aa50:Node b3f22abc-e468-4189-92b0-697612a5aa50 :: false

2022-08-26 07:20:44 | [Mutex] waiting for: [received:nodes:641d0f71-6826-42c2-ab7c-9bab89741bff:localhost]

2022-08-26 07:20:44 | [Mutex] received everything.

2022-08-26 07:20:44 | [Mutex] isItemNotified: received:node:641d0f71-6826-42c2-ab7c-9bab89741bff:localhost:node-b3f22abc-e468-4189-92b0-697612a5aa50:Node b3f22abc-e468-4189-92b0-697612a5aa50 :: false

publishItemsToNodes 0.030s
2022-08-26 07:20:41 |

2022-08-26 07:20:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:41 | ------------------------------------

2022-08-26 07:20:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b3f22abc-e468-4189-92b0-697612a5aa50",
    "entry": "<test>item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810</test>",
    "item-id": "item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810"
}

2022-08-26 07:20:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810"
}

2022-08-26 07:20:41 | [Mutex] waiting for: [published:item:notifieditem-6f462ba5-6088-4b52-bcc0-5e3eaca2d810:admin@test-domain.com]

2022-08-26 07:20:41 | [Mutex] received everything.

2022-08-26 07:20:41 | [Mutex] isItemNotified: published:item:notifieditem-6f462ba5-6088-4b52-bcc0-5e3eaca2d810:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-08-26 07:20:41 |

2022-08-26 07:20:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:41 | ------------------------------------

2022-08-26 07:20:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b3f22abc-e468-4189-92b0-697612a5aa50",
    "item-id": "item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810"
}

2022-08-26 07:20:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810"
}

2022-08-26 07:20:41 | [Mutex] received everything.

2022-08-26 07:20:41 | [Mutex] isItemNotified: retracted:item:notifieditem-6f462ba5-6088-4b52-bcc0-5e3eaca2d810:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2022-08-26 07:20:41 |

2022-08-26 07:20:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:41 | ------------------------------------

2022-08-26 07:20:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b3f22abc-e468-4189-92b0-697612a5aa50",
    "item-id": "item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810"
}

2022-08-26 07:20:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b3f22abc-e468-4189-92b0-697612a5aa50",
    "item-id": "item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810",
    "item": [
        "<item id=\"item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810\"><test>item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810</test></item>"
    ]
}

2022-08-26 07:20:41 | [Mutex] notify: [retrieved:item:item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810:payload-matches:true:localhost]

2022-08-26 07:20:41 | [Mutex] received everything.

2022-08-26 07:20:41 | [Mutex] isItemNotified: retrieved:item:item-6f462ba5-6088-4b52-bcc0-5e3eaca2d810:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-26 07:20:41 |

2022-08-26 07:20:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:41 | ------------------------------------

2022-08-26 07:20:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-26 07:20:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b3f22abc-e468-4189-92b0-697612a5aa50",
        "test",
        "node-e7bc42fd-c43f-4713-baac-3e1305fdb972"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-26 07:20:41 |

2022-08-26 07:20:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:41 | ------------------------------------

2022-08-26 07:20:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b3f22abc-e468-4189-92b0-697612a5aa50)"
}

2022-08-26 07:20:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-08-26 07:20:40 |

2022-08-26 07:20:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:40 | ------------------------------------

2022-08-26 07:20:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b3f22abc-e468-4189-92b0-697612a5aa50",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-26 07:20:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-08-26 07:20:41 |

2022-08-26 07:20:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-26 07:20:41 | ------------------------------------

2022-08-26 07:20:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b3f22abc-e468-4189-92b0-697612a5aa50",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-26 07:20:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}