Generated by TestNG with ReportNG at 08:12 PDT on Wednesday 27 October 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 : 9.078s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2021-10-27 08:28:05 |

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

2021-10-27 08:28:05 | ------------------------------------

2021-10-27 08:28:05 | [Mutex] waiting for: [configured:node:node-f784386c-f226-4918-ac22-4df8ebe00e06:node-97efe0fd-8d1c-4675-b4af-760f15a71e36]

2021-10-27 08:28:05 | [Mutex] received everything.

2021-10-27 08:28:05 | [Mutex] isItemNotified: configured:node:node-f784386c-f226-4918-ac22-4df8ebe00e06:node-97efe0fd-8d1c-4675-b4af-760f15a71e36 :: true

2021-10-27 08:28:06 | [Mutex] waiting for: [received:nodes:7d232dca-a827-40f5-adec-cd2ed4b11574:localhost]

2021-10-27 08:28:06 | [Mutex] received everything.

2021-10-27 08:28:06 | [Mutex] isItemNotified: received:node:7d232dca-a827-40f5-adec-cd2ed4b11574:localhost:node-f784386c-f226-4918-ac22-4df8ebe00e06:Node f784386c-f226-4918-ac22-4df8ebe00e06 :: true

2021-10-27 08:28:06 | [Mutex] waiting for: [received:nodes:7bd7a616-c2ff-41f8-9ed7-93329a1eba40:localhost]

2021-10-27 08:28:06 | [Mutex] waiting for: [received:nodes:7bd7a616-c2ff-41f8-9ed7-93329a1eba40:localhost]

2021-10-27 08:28:06 | [Mutex] received everything.

2021-10-27 08:28:06 | [Mutex] isItemNotified: received:node:7bd7a616-c2ff-41f8-9ed7-93329a1eba40:localhost:node-f784386c-f226-4918-ac22-4df8ebe00e06:Node f784386c-f226-4918-ac22-4df8ebe00e06 :: false

createNodes 1.681s
2021-10-27 08:28:02 |

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

2021-10-27 08:28:02 | ------------------------------------

2021-10-27 08:28:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f784386c-f226-4918-ac22-4df8ebe00e06",
    "pubsub#title": "Node f784386c-f226-4918-ac22-4df8ebe00e06"
}

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

2021-10-27 08:28:04 | [Mutex] waiting for: [received:nodes:ca162e09-e0b4-4fdd-866d-cfee47521e54:localhost]

2021-10-27 08:28:04 | [Mutex] received everything.

2021-10-27 08:28:04 | [Mutex] isItemNotified: received:node:ca162e09-e0b4-4fdd-866d-cfee47521e54:localhost:node-f784386c-f226-4918-ac22-4df8ebe00e06:Node f784386c-f226-4918-ac22-4df8ebe00e06 :: true

createSubnodes 1.034s
2021-10-27 08:28:04 |

2021-10-27 08:28:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:28:04 | ------------------------------------

2021-10-27 08:28:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-97efe0fd-8d1c-4675-b4af-760f15a71e36",
    "pubsub#title": "Node 97efe0fd-8d1c-4675-b4af-760f15a71e36"
}

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

2021-10-27 08:28:05 | [Mutex] waiting for: [received:nodes:48491ea0-06f1-4a00-8f8c-89d4b6d11aaf:localhost]

2021-10-27 08:28:05 | [Mutex] received everything.

2021-10-27 08:28:05 | [Mutex] isItemNotified: received:node:48491ea0-06f1-4a00-8f8c-89d4b6d11aaf:localhost:node-97efe0fd-8d1c-4675-b4af-760f15a71e36:Node 97efe0fd-8d1c-4675-b4af-760f15a71e36 :: true

deleteNodes 1.067s
2021-10-27 08:28:10 |

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

2021-10-27 08:28:10 | ------------------------------------

2021-10-27 08:28:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-97efe0fd-8d1c-4675-b4af-760f15a71e36"
}

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

2021-10-27 08:28:11 | [Mutex] waiting for: [received:nodes:14ac52dc-ae0f-4414-88d3-0fd149d4cdbd:localhost]

2021-10-27 08:28:11 | [Mutex] received everything.

2021-10-27 08:28:11 | [Mutex] isItemNotified: received:node:14ac52dc-ae0f-4414-88d3-0fd149d4cdbd:localhost:node-97efe0fd-8d1c-4675-b4af-760f15a71e36:Node 97efe0fd-8d1c-4675-b4af-760f15a71e36 :: false

deleteSubnodes 1.031s
2021-10-27 08:28:09 |

2021-10-27 08:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:28:09 | ------------------------------------

2021-10-27 08:28:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f784386c-f226-4918-ac22-4df8ebe00e06"
}

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

2021-10-27 08:28:10 | [Mutex] waiting for: [received:nodes:1d491426-80d3-49e3-9d76-c30a2059d3e9:localhost]

2021-10-27 08:28:10 | [Mutex] waiting for: [received:nodes:1d491426-80d3-49e3-9d76-c30a2059d3e9:localhost]

2021-10-27 08:28:10 | [Mutex] received everything.

2021-10-27 08:28:10 | [Mutex] isItemNotified: received:node:1d491426-80d3-49e3-9d76-c30a2059d3e9:localhost:node-f784386c-f226-4918-ac22-4df8ebe00e06:Node f784386c-f226-4918-ac22-4df8ebe00e06 :: false

2021-10-27 08:28:10 | [Mutex] waiting for: [received:nodes:6325d9f2-e178-43c1-83e5-f171a8401064:localhost]

2021-10-27 08:28:10 | [Mutex] received everything.

2021-10-27 08:28:10 | [Mutex] isItemNotified: received:node:6325d9f2-e178-43c1-83e5-f171a8401064:localhost:node-f784386c-f226-4918-ac22-4df8ebe00e06:Node f784386c-f226-4918-ac22-4df8ebe00e06 :: false

publishItemsToNodes 0.061s
2021-10-27 08:28:07 |

2021-10-27 08:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:28:07 | ------------------------------------

2021-10-27 08:28:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f784386c-f226-4918-ac22-4df8ebe00e06",
    "entry": "<test>item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5</test>",
    "item-id": "item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5"
}

2021-10-27 08:28:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5"
}

2021-10-27 08:28:07 | [Mutex] received everything.

2021-10-27 08:28:07 | [Mutex] isItemNotified: published:item:notifieditem-86dc1989-c8ca-4f50-b731-0def9c4e1fd5:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2021-10-27 08:28:07 |

2021-10-27 08:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:28:07 | ------------------------------------

2021-10-27 08:28:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f784386c-f226-4918-ac22-4df8ebe00e06",
    "item-id": "item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5"
}

2021-10-27 08:28:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5"
}

2021-10-27 08:28:08 | [Mutex] received everything.

2021-10-27 08:28:08 | [Mutex] isItemNotified: retracted:item:notifieditem-86dc1989-c8ca-4f50-b731-0def9c4e1fd5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.081s
2021-10-27 08:28:07 |

2021-10-27 08:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:28:07 | ------------------------------------

2021-10-27 08:28:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f784386c-f226-4918-ac22-4df8ebe00e06",
    "item-id": "item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5"
}

2021-10-27 08:28:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f784386c-f226-4918-ac22-4df8ebe00e06",
    "item-id": "item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5",
    "item": [
        "<item id=\"item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5\"><test>item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5</test></item>"
    ]
}

2021-10-27 08:28:07 | [Mutex] notify: [retrieved:item:item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5:payload-matches:true:localhost]

2021-10-27 08:28:07 | [Mutex] received everything.

2021-10-27 08:28:07 | [Mutex] isItemNotified: retrieved:item:item-86dc1989-c8ca-4f50-b731-0def9c4e1fd5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-10-27 08:28:07 |

2021-10-27 08:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:28:07 | ------------------------------------

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

2021-10-27 08:28:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f784386c-f226-4918-ac22-4df8ebe00e06",
        "test",
        "node-97efe0fd-8d1c-4675-b4af-760f15a71e36"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-10-27 08:28:07 |

2021-10-27 08:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:28:07 | ------------------------------------

2021-10-27 08:28:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f784386c-f226-4918-ac22-4df8ebe00e06)"
}

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

subscribeNodes 1.017s
2021-10-27 08:28:06 |

2021-10-27 08:28:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:28:06 | ------------------------------------

2021-10-27 08:28:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f784386c-f226-4918-ac22-4df8ebe00e06",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.083s
2021-10-27 08:28:08 |

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

2021-10-27 08:28:08 | ------------------------------------

2021-10-27 08:28:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f784386c-f226-4918-ac22-4df8ebe00e06",
    "jids": [
        "admin@test-domain.com"
    ]
}

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