Generated by TestNG with ReportNG at 22:48 PDT on Thursday 23 March 2023
root@f9c07ffec79b / 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.825s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-03-23 23:02:33 |

2023-03-23 23:02:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:33 | ------------------------------------

2023-03-23 23:02:33 | [Mutex] waiting for: [configured:node:node-c254474b-9675-4648-a57d-995f787aebb2:node-b74b0d76-7595-4ec8-b948-77ab1ec4afd2]

2023-03-23 23:02:33 | [Mutex] received everything.

2023-03-23 23:02:33 | [Mutex] isItemNotified: configured:node:node-c254474b-9675-4648-a57d-995f787aebb2:node-b74b0d76-7595-4ec8-b948-77ab1ec4afd2 :: true

2023-03-23 23:02:34 | [Mutex] waiting for: [received:nodes:8d7043db-df89-44b5-a1d2-4ce40c4303d5:localhost]

2023-03-23 23:02:34 | [Mutex] received everything.

2023-03-23 23:02:34 | [Mutex] isItemNotified: received:node:8d7043db-df89-44b5-a1d2-4ce40c4303d5:localhost:node-c254474b-9675-4648-a57d-995f787aebb2:Node c254474b-9675-4648-a57d-995f787aebb2 :: true

2023-03-23 23:02:34 | [Mutex] waiting for: [received:nodes:e9482fd9-59df-42d4-949c-1eb7b18c6475:localhost]

2023-03-23 23:02:34 | [Mutex] waiting for: [received:nodes:e9482fd9-59df-42d4-949c-1eb7b18c6475:localhost]

2023-03-23 23:02:34 | [Mutex] waiting for: [received:nodes:e9482fd9-59df-42d4-949c-1eb7b18c6475:localhost]

2023-03-23 23:02:34 | [Mutex] waiting for: [received:nodes:e9482fd9-59df-42d4-949c-1eb7b18c6475:localhost]

2023-03-23 23:02:34 | [Mutex] received everything.

2023-03-23 23:02:34 | [Mutex] isItemNotified: received:node:e9482fd9-59df-42d4-949c-1eb7b18c6475:localhost:node-c254474b-9675-4648-a57d-995f787aebb2:Node c254474b-9675-4648-a57d-995f787aebb2 :: false

createNodes 1.882s
2023-03-23 23:02:30 |

2023-03-23 23:02:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:30 | ------------------------------------

2023-03-23 23:02:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c254474b-9675-4648-a57d-995f787aebb2",
    "pubsub#title": "Node c254474b-9675-4648-a57d-995f787aebb2"
}

2023-03-23 23:02:31 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 23:02:32 | [Mutex] waiting for: [received:nodes:adf05f5b-62e6-4b6f-8adc-6b506d537bca:localhost]

2023-03-23 23:02:32 | [Mutex] waiting for: [received:nodes:adf05f5b-62e6-4b6f-8adc-6b506d537bca:localhost]

2023-03-23 23:02:32 | [Mutex] received everything.

2023-03-23 23:02:32 | [Mutex] isItemNotified: received:node:adf05f5b-62e6-4b6f-8adc-6b506d537bca:localhost:node-c254474b-9675-4648-a57d-995f787aebb2:Node c254474b-9675-4648-a57d-995f787aebb2 :: true

createSubnodes 1.036s
2023-03-23 23:02:32 |

2023-03-23 23:02:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:32 | ------------------------------------

2023-03-23 23:02:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b74b0d76-7595-4ec8-b948-77ab1ec4afd2",
    "pubsub#title": "Node b74b0d76-7595-4ec8-b948-77ab1ec4afd2"
}

2023-03-23 23:02:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 23:02:33 | [Mutex] waiting for: [received:nodes:81179625-b3a1-4d2f-85f3-a8236e99c58d:localhost]

2023-03-23 23:02:33 | [Mutex] waiting for: [received:nodes:81179625-b3a1-4d2f-85f3-a8236e99c58d:localhost]

2023-03-23 23:02:33 | [Mutex] waiting for: [received:nodes:81179625-b3a1-4d2f-85f3-a8236e99c58d:localhost]

2023-03-23 23:02:33 | [Mutex] waiting for: [received:nodes:81179625-b3a1-4d2f-85f3-a8236e99c58d:localhost]

2023-03-23 23:02:33 | [Mutex] received everything.

2023-03-23 23:02:33 | [Mutex] isItemNotified: received:node:81179625-b3a1-4d2f-85f3-a8236e99c58d:localhost:node-b74b0d76-7595-4ec8-b948-77ab1ec4afd2:Node b74b0d76-7595-4ec8-b948-77ab1ec4afd2 :: true

deleteNodes 1.019s
2023-03-23 23:02:38 |

2023-03-23 23:02:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:38 | ------------------------------------

2023-03-23 23:02:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b74b0d76-7595-4ec8-b948-77ab1ec4afd2"
}

2023-03-23 23:02:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 23:02:39 | [Mutex] waiting for: [received:nodes:6b4914eb-8fae-442e-82c4-b0f885454148:localhost]

2023-03-23 23:02:39 | [Mutex] waiting for: [received:nodes:6b4914eb-8fae-442e-82c4-b0f885454148:localhost]

2023-03-23 23:02:39 | [Mutex] waiting for: [received:nodes:6b4914eb-8fae-442e-82c4-b0f885454148:localhost]

2023-03-23 23:02:39 | [Mutex] received everything.

2023-03-23 23:02:39 | [Mutex] isItemNotified: received:node:6b4914eb-8fae-442e-82c4-b0f885454148:localhost:node-b74b0d76-7595-4ec8-b948-77ab1ec4afd2:Node b74b0d76-7595-4ec8-b948-77ab1ec4afd2 :: false

deleteSubnodes 1.026s
2023-03-23 23:02:37 |

2023-03-23 23:02:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:37 | ------------------------------------

2023-03-23 23:02:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c254474b-9675-4648-a57d-995f787aebb2"
}

2023-03-23 23:02:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 23:02:38 | [Mutex] waiting for: [received:nodes:6a30bbb4-45e8-42c1-b056-78bba66164dc:localhost]

2023-03-23 23:02:38 | [Mutex] waiting for: [received:nodes:6a30bbb4-45e8-42c1-b056-78bba66164dc:localhost]

2023-03-23 23:02:38 | [Mutex] waiting for: [received:nodes:6a30bbb4-45e8-42c1-b056-78bba66164dc:localhost]

2023-03-23 23:02:38 | [Mutex] received everything.

2023-03-23 23:02:38 | [Mutex] isItemNotified: received:node:6a30bbb4-45e8-42c1-b056-78bba66164dc:localhost:node-c254474b-9675-4648-a57d-995f787aebb2:Node c254474b-9675-4648-a57d-995f787aebb2 :: false

2023-03-23 23:02:38 | [Mutex] waiting for: [received:nodes:c8c412c4-5e6a-44e5-88b6-856f4bd92a66:localhost]

2023-03-23 23:02:38 | [Mutex] received everything.

2023-03-23 23:02:38 | [Mutex] isItemNotified: received:node:c8c412c4-5e6a-44e5-88b6-856f4bd92a66:localhost:node-c254474b-9675-4648-a57d-995f787aebb2:Node c254474b-9675-4648-a57d-995f787aebb2 :: false

publishItemsToNodes 0.047s
2023-03-23 23:02:35 |

2023-03-23 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:35 | ------------------------------------

2023-03-23 23:02:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c254474b-9675-4648-a57d-995f787aebb2",
    "entry": "<test>item-c6225186-567d-449f-abd3-0c7851237d49</test>",
    "item-id": "item-c6225186-567d-449f-abd3-0c7851237d49"
}

2023-03-23 23:02:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6225186-567d-449f-abd3-0c7851237d49"
}

2023-03-23 23:02:35 | [Mutex] waiting for: [published:item:notifieditem-c6225186-567d-449f-abd3-0c7851237d49:admin@test-domain.com]

2023-03-23 23:02:35 | [Mutex] received everything.

2023-03-23 23:02:35 | [Mutex] isItemNotified: published:item:notifieditem-c6225186-567d-449f-abd3-0c7851237d49:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2023-03-23 23:02:35 |

2023-03-23 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:35 | ------------------------------------

2023-03-23 23:02:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c254474b-9675-4648-a57d-995f787aebb2",
    "item-id": "item-c6225186-567d-449f-abd3-0c7851237d49"
}

2023-03-23 23:02:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6225186-567d-449f-abd3-0c7851237d49"
}

2023-03-23 23:02:36 | [Mutex] waiting for: [retracted:item:notifieditem-c6225186-567d-449f-abd3-0c7851237d49:admin@test-domain.com]

2023-03-23 23:02:36 | [Mutex] received everything.

2023-03-23 23:02:36 | [Mutex] isItemNotified: retracted:item:notifieditem-c6225186-567d-449f-abd3-0c7851237d49:admin@test-domain.com :: true

retrieveItemsFromNodes 0.018s
2023-03-23 23:02:35 |

2023-03-23 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:35 | ------------------------------------

2023-03-23 23:02:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c254474b-9675-4648-a57d-995f787aebb2",
    "item-id": "item-c6225186-567d-449f-abd3-0c7851237d49"
}

2023-03-23 23:02:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c254474b-9675-4648-a57d-995f787aebb2",
    "item-id": "item-c6225186-567d-449f-abd3-0c7851237d49",
    "item": [
        "<item id=\"item-c6225186-567d-449f-abd3-0c7851237d49\"><test>item-c6225186-567d-449f-abd3-0c7851237d49</test></item>"
    ]
}

2023-03-23 23:02:35 | [Mutex] notify: [retrieved:item:item-c6225186-567d-449f-abd3-0c7851237d49:payload-matches:true:localhost]

2023-03-23 23:02:35 | [Mutex] received everything.

2023-03-23 23:02:35 | [Mutex] isItemNotified: retrieved:item:item-c6225186-567d-449f-abd3-0c7851237d49:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2023-03-23 23:02:35 |

2023-03-23 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:35 | ------------------------------------

2023-03-23 23:02:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-23 23:02:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b74b0d76-7595-4ec8-b948-77ab1ec4afd2",
        "node-c254474b-9675-4648-a57d-995f787aebb2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-03-23 23:02:35 |

2023-03-23 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:35 | ------------------------------------

2023-03-23 23:02:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c254474b-9675-4648-a57d-995f787aebb2)"
}

2023-03-23 23:02:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-03-23 23:02:34 |

2023-03-23 23:02:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:34 | ------------------------------------

2023-03-23 23:02:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c254474b-9675-4648-a57d-995f787aebb2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-23 23:02:34 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.080s
2023-03-23 23:02:36 |

2023-03-23 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:02:36 | ------------------------------------

2023-03-23 23:02:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c254474b-9675-4648-a57d-995f787aebb2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-23 23:02:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}