Generated by TestNG with ReportNG at 22:16 PDT on Tuesday 04 July 2023
root@1512af24e4a5 / Java 17.0.6 (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.510s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.079s
2023-07-04 22:30:50 |

2023-07-04 22:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:50 | ------------------------------------

2023-07-04 22:30:50 | [Mutex] waiting for: [configured:node:node-0bb35c28-e6a3-42f8-8aee-12c59707752c:node-c71fd1ab-52fc-4330-9301-db7709c923af]

2023-07-04 22:30:50 | [Mutex] received everything.

2023-07-04 22:30:50 | [Mutex] isItemNotified: configured:node:node-0bb35c28-e6a3-42f8-8aee-12c59707752c:node-c71fd1ab-52fc-4330-9301-db7709c923af :: true

2023-07-04 22:30:51 | [Mutex] waiting for: [received:nodes:34acd115-65fe-4db7-b4b0-32cd7ae70370:localhost]

2023-07-04 22:30:51 | [Mutex] received everything.

2023-07-04 22:30:51 | [Mutex] isItemNotified: received:node:34acd115-65fe-4db7-b4b0-32cd7ae70370:localhost:node-0bb35c28-e6a3-42f8-8aee-12c59707752c:Node 0bb35c28-e6a3-42f8-8aee-12c59707752c :: true

2023-07-04 22:30:51 | [Mutex] waiting for: [received:nodes:855314c7-193c-4c46-8665-edadd3935efe:localhost]

2023-07-04 22:30:51 | [Mutex] waiting for: [received:nodes:855314c7-193c-4c46-8665-edadd3935efe:localhost]

2023-07-04 22:30:51 | [Mutex] waiting for: [received:nodes:855314c7-193c-4c46-8665-edadd3935efe:localhost]

2023-07-04 22:30:51 | [Mutex] waiting for: [received:nodes:855314c7-193c-4c46-8665-edadd3935efe:localhost]

2023-07-04 22:30:51 | [Mutex] received everything.

2023-07-04 22:30:51 | [Mutex] isItemNotified: received:node:855314c7-193c-4c46-8665-edadd3935efe:localhost:node-0bb35c28-e6a3-42f8-8aee-12c59707752c:Node 0bb35c28-e6a3-42f8-8aee-12c59707752c :: false

createNodes 1.580s
2023-07-04 22:30:47 |

2023-07-04 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:47 | ------------------------------------

2023-07-04 22:30:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0bb35c28-e6a3-42f8-8aee-12c59707752c",
    "pubsub#title": "Node 0bb35c28-e6a3-42f8-8aee-12c59707752c"
}

2023-07-04 22:30:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-04 22:30:49 | [Mutex] waiting for: [received:nodes:484a7dc9-8a89-4857-825c-bd35598d07a6:localhost]

2023-07-04 22:30:49 | [Mutex] waiting for: [received:nodes:484a7dc9-8a89-4857-825c-bd35598d07a6:localhost]

2023-07-04 22:30:49 | [Mutex] waiting for: [received:nodes:484a7dc9-8a89-4857-825c-bd35598d07a6:localhost]

2023-07-04 22:30:49 | [Mutex] received everything.

2023-07-04 22:30:49 | [Mutex] isItemNotified: received:node:484a7dc9-8a89-4857-825c-bd35598d07a6:localhost:node-0bb35c28-e6a3-42f8-8aee-12c59707752c:Node 0bb35c28-e6a3-42f8-8aee-12c59707752c :: true

createSubnodes 1.021s
2023-07-04 22:30:49 |

2023-07-04 22:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:49 | ------------------------------------

2023-07-04 22:30:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c71fd1ab-52fc-4330-9301-db7709c923af",
    "pubsub#title": "Node c71fd1ab-52fc-4330-9301-db7709c923af"
}

2023-07-04 22:30:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-04 22:30:50 | [Mutex] waiting for: [received:nodes:3247d637-e706-4594-a089-c39a944c48aa:localhost]

2023-07-04 22:30:50 | [Mutex] waiting for: [received:nodes:3247d637-e706-4594-a089-c39a944c48aa:localhost]

2023-07-04 22:30:50 | [Mutex] waiting for: [received:nodes:3247d637-e706-4594-a089-c39a944c48aa:localhost]

2023-07-04 22:30:50 | [Mutex] waiting for: [received:nodes:3247d637-e706-4594-a089-c39a944c48aa:localhost]

2023-07-04 22:30:50 | [Mutex] waiting for: [received:nodes:3247d637-e706-4594-a089-c39a944c48aa:localhost]

2023-07-04 22:30:50 | [Mutex] received everything.

2023-07-04 22:30:50 | [Mutex] isItemNotified: received:node:3247d637-e706-4594-a089-c39a944c48aa:localhost:node-c71fd1ab-52fc-4330-9301-db7709c923af:Node c71fd1ab-52fc-4330-9301-db7709c923af :: true

deleteNodes 1.019s
2023-07-04 22:30:54 |

2023-07-04 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:54 | ------------------------------------

2023-07-04 22:30:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c71fd1ab-52fc-4330-9301-db7709c923af"
}

2023-07-04 22:30:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-04 22:30:55 | [Mutex] waiting for: [received:nodes:2d9db6b5-8564-4d88-a522-d88ef186d765:localhost]

2023-07-04 22:30:55 | [Mutex] waiting for: [received:nodes:2d9db6b5-8564-4d88-a522-d88ef186d765:localhost]

2023-07-04 22:30:55 | [Mutex] waiting for: [received:nodes:2d9db6b5-8564-4d88-a522-d88ef186d765:localhost]

2023-07-04 22:30:55 | [Mutex] received everything.

2023-07-04 22:30:55 | [Mutex] isItemNotified: received:node:2d9db6b5-8564-4d88-a522-d88ef186d765:localhost:node-c71fd1ab-52fc-4330-9301-db7709c923af:Node c71fd1ab-52fc-4330-9301-db7709c923af :: false

deleteSubnodes 1.025s
2023-07-04 22:30:53 |

2023-07-04 22:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:53 | ------------------------------------

2023-07-04 22:30:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0bb35c28-e6a3-42f8-8aee-12c59707752c"
}

2023-07-04 22:30:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-04 22:30:54 | [Mutex] waiting for: [received:nodes:c66d291f-7567-4fa9-8c21-117df77aeb88:localhost]

2023-07-04 22:30:54 | [Mutex] waiting for: [received:nodes:c66d291f-7567-4fa9-8c21-117df77aeb88:localhost]

2023-07-04 22:30:54 | [Mutex] waiting for: [received:nodes:c66d291f-7567-4fa9-8c21-117df77aeb88:localhost]

2023-07-04 22:30:54 | [Mutex] waiting for: [received:nodes:c66d291f-7567-4fa9-8c21-117df77aeb88:localhost]

2023-07-04 22:30:54 | [Mutex] received everything.

2023-07-04 22:30:54 | [Mutex] isItemNotified: received:node:c66d291f-7567-4fa9-8c21-117df77aeb88:localhost:node-0bb35c28-e6a3-42f8-8aee-12c59707752c:Node 0bb35c28-e6a3-42f8-8aee-12c59707752c :: false

2023-07-04 22:30:54 | [Mutex] waiting for: [received:nodes:be56d6e5-8ac7-4d1f-be0d-62ec920d013c:localhost]

2023-07-04 22:30:54 | [Mutex] received everything.

2023-07-04 22:30:54 | [Mutex] isItemNotified: received:node:be56d6e5-8ac7-4d1f-be0d-62ec920d013c:localhost:node-0bb35c28-e6a3-42f8-8aee-12c59707752c:Node 0bb35c28-e6a3-42f8-8aee-12c59707752c :: false

publishItemsToNodes 0.019s
2023-07-04 22:30:52 |

2023-07-04 22:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:52 | ------------------------------------

2023-07-04 22:30:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0bb35c28-e6a3-42f8-8aee-12c59707752c",
    "entry": "<test>item-6d2c50ab-e66b-4d81-a988-130bef1bab28</test>",
    "item-id": "item-6d2c50ab-e66b-4d81-a988-130bef1bab28"
}

2023-07-04 22:30:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d2c50ab-e66b-4d81-a988-130bef1bab28"
}

2023-07-04 22:30:52 | [Mutex] waiting for: [published:item:notifieditem-6d2c50ab-e66b-4d81-a988-130bef1bab28:admin@test-domain.com]

2023-07-04 22:30:52 | [Mutex] received everything.

2023-07-04 22:30:52 | [Mutex] isItemNotified: published:item:notifieditem-6d2c50ab-e66b-4d81-a988-130bef1bab28:admin@test-domain.com :: true

retractItemsFromNodes 0.119s
2023-07-04 22:30:52 |

2023-07-04 22:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:52 | ------------------------------------

2023-07-04 22:30:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0bb35c28-e6a3-42f8-8aee-12c59707752c",
    "item-id": "item-6d2c50ab-e66b-4d81-a988-130bef1bab28"
}

2023-07-04 22:30:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d2c50ab-e66b-4d81-a988-130bef1bab28"
}

2023-07-04 22:30:52 | [Mutex] waiting for: [retracted:item:notifieditem-6d2c50ab-e66b-4d81-a988-130bef1bab28:admin@test-domain.com]

2023-07-04 22:30:52 | [Mutex] received everything.

2023-07-04 22:30:52 | [Mutex] isItemNotified: retracted:item:notifieditem-6d2c50ab-e66b-4d81-a988-130bef1bab28:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2023-07-04 22:30:52 |

2023-07-04 22:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:52 | ------------------------------------

2023-07-04 22:30:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0bb35c28-e6a3-42f8-8aee-12c59707752c",
    "item-id": "item-6d2c50ab-e66b-4d81-a988-130bef1bab28"
}

2023-07-04 22:30:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0bb35c28-e6a3-42f8-8aee-12c59707752c",
    "item-id": "item-6d2c50ab-e66b-4d81-a988-130bef1bab28",
    "item": [
        "<item id=\"item-6d2c50ab-e66b-4d81-a988-130bef1bab28\"><test>item-6d2c50ab-e66b-4d81-a988-130bef1bab28</test></item>"
    ]
}

2023-07-04 22:30:52 | [Mutex] notify: [retrieved:item:item-6d2c50ab-e66b-4d81-a988-130bef1bab28:payload-matches:true:localhost]

2023-07-04 22:30:52 | [Mutex] received everything.

2023-07-04 22:30:52 | [Mutex] isItemNotified: retrieved:item:item-6d2c50ab-e66b-4d81-a988-130bef1bab28:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-04 22:30:52 |

2023-07-04 22:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:52 | ------------------------------------

2023-07-04 22:30:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-04 22:30:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0bb35c28-e6a3-42f8-8aee-12c59707752c",
        "node-c71fd1ab-52fc-4330-9301-db7709c923af"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-04 22:30:52 |

2023-07-04 22:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:52 | ------------------------------------

2023-07-04 22:30:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0bb35c28-e6a3-42f8-8aee-12c59707752c)"
}

2023-07-04 22:30:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-07-04 22:30:51 |

2023-07-04 22:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:51 | ------------------------------------

2023-07-04 22:30:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0bb35c28-e6a3-42f8-8aee-12c59707752c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-04 22:30:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.030s
2023-07-04 22:30:52 |

2023-07-04 22:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-04 22:30:52 | ------------------------------------

2023-07-04 22:30:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0bb35c28-e6a3-42f8-8aee-12c59707752c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-04 22:30:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}