Generated by TestNG with ReportNG at 09:25 PST on Friday 30 December 2022
root@7c41cec37518 / 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.631s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2022-12-30 09:40:40 |

2022-12-30 09:40:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:40 | ------------------------------------

2022-12-30 09:40:40 | [Mutex] waiting for: [configured:node:node-06d3eda3-d05e-4ec2-bf82-c70eab69577a:node-a97e3cea-9964-4894-9a1c-8d49e2cc04b1]

2022-12-30 09:40:40 | [Mutex] received everything.

2022-12-30 09:40:40 | [Mutex] isItemNotified: configured:node:node-06d3eda3-d05e-4ec2-bf82-c70eab69577a:node-a97e3cea-9964-4894-9a1c-8d49e2cc04b1 :: true

2022-12-30 09:40:41 | [Mutex] waiting for: [received:nodes:7bfc4b38-8a83-4ad9-9bae-10ae023ea3bc:localhost]

2022-12-30 09:40:41 | [Mutex] received everything.

2022-12-30 09:40:41 | [Mutex] isItemNotified: received:node:7bfc4b38-8a83-4ad9-9bae-10ae023ea3bc:localhost:node-06d3eda3-d05e-4ec2-bf82-c70eab69577a:Node 06d3eda3-d05e-4ec2-bf82-c70eab69577a :: true

2022-12-30 09:40:41 | [Mutex] waiting for: [received:nodes:436f2d40-f211-4748-ba1e-8049e8132ffc:localhost]

2022-12-30 09:40:41 | [Mutex] waiting for: [received:nodes:436f2d40-f211-4748-ba1e-8049e8132ffc:localhost]

2022-12-30 09:40:41 | [Mutex] waiting for: [received:nodes:436f2d40-f211-4748-ba1e-8049e8132ffc:localhost]

2022-12-30 09:40:41 | [Mutex] received everything.

2022-12-30 09:40:41 | [Mutex] isItemNotified: received:node:436f2d40-f211-4748-ba1e-8049e8132ffc:localhost:node-06d3eda3-d05e-4ec2-bf82-c70eab69577a:Node 06d3eda3-d05e-4ec2-bf82-c70eab69577a :: false

createNodes 1.622s
2022-12-30 09:40:38 |

2022-12-30 09:40:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:38 | ------------------------------------

2022-12-30 09:40:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-06d3eda3-d05e-4ec2-bf82-c70eab69577a",
    "pubsub#title": "Node 06d3eda3-d05e-4ec2-bf82-c70eab69577a"
}

2022-12-30 09:40:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:40:39 | [Mutex] waiting for: [received:nodes:720545c6-45a5-4645-858d-9425f1943bce:localhost]

2022-12-30 09:40:39 | [Mutex] waiting for: [received:nodes:720545c6-45a5-4645-858d-9425f1943bce:localhost]

2022-12-30 09:40:39 | [Mutex] waiting for: [received:nodes:720545c6-45a5-4645-858d-9425f1943bce:localhost]

2022-12-30 09:40:39 | [Mutex] waiting for: [received:nodes:720545c6-45a5-4645-858d-9425f1943bce:localhost]

2022-12-30 09:40:39 | [Mutex] received everything.

2022-12-30 09:40:39 | [Mutex] isItemNotified: received:node:720545c6-45a5-4645-858d-9425f1943bce:localhost:node-06d3eda3-d05e-4ec2-bf82-c70eab69577a:Node 06d3eda3-d05e-4ec2-bf82-c70eab69577a :: true

createSubnodes 1.021s
2022-12-30 09:40:39 |

2022-12-30 09:40:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:39 | ------------------------------------

2022-12-30 09:40:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a97e3cea-9964-4894-9a1c-8d49e2cc04b1",
    "pubsub#title": "Node a97e3cea-9964-4894-9a1c-8d49e2cc04b1"
}

2022-12-30 09:40:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:40:40 | [Mutex] waiting for: [received:nodes:b8890e1e-9a1e-4566-a5f5-9ded6ae5a392:localhost]

2022-12-30 09:40:40 | [Mutex] waiting for: [received:nodes:b8890e1e-9a1e-4566-a5f5-9ded6ae5a392:localhost]

2022-12-30 09:40:40 | [Mutex] received everything.

2022-12-30 09:40:40 | [Mutex] isItemNotified: received:node:b8890e1e-9a1e-4566-a5f5-9ded6ae5a392:localhost:node-a97e3cea-9964-4894-9a1c-8d49e2cc04b1:Node a97e3cea-9964-4894-9a1c-8d49e2cc04b1 :: true

deleteNodes 1.025s
2022-12-30 09:40:45 |

2022-12-30 09:40:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:45 | ------------------------------------

2022-12-30 09:40:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a97e3cea-9964-4894-9a1c-8d49e2cc04b1"
}

2022-12-30 09:40:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:40:46 | [Mutex] waiting for: [received:nodes:f7fce09e-a9bd-4389-9c9a-95345fc07049:localhost]

2022-12-30 09:40:46 | [Mutex] received everything.

2022-12-30 09:40:46 | [Mutex] isItemNotified: received:node:f7fce09e-a9bd-4389-9c9a-95345fc07049:localhost:node-a97e3cea-9964-4894-9a1c-8d49e2cc04b1:Node a97e3cea-9964-4894-9a1c-8d49e2cc04b1 :: false

deleteSubnodes 1.022s
2022-12-30 09:40:44 |

2022-12-30 09:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:44 | ------------------------------------

2022-12-30 09:40:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-06d3eda3-d05e-4ec2-bf82-c70eab69577a"
}

2022-12-30 09:40:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:40:45 | [Mutex] waiting for: [received:nodes:825f4b32-8cdd-419d-98a8-80256b31348d:localhost]

2022-12-30 09:40:45 | [Mutex] waiting for: [received:nodes:825f4b32-8cdd-419d-98a8-80256b31348d:localhost]

2022-12-30 09:40:45 | [Mutex] waiting for: [received:nodes:825f4b32-8cdd-419d-98a8-80256b31348d:localhost]

2022-12-30 09:40:45 | [Mutex] received everything.

2022-12-30 09:40:45 | [Mutex] isItemNotified: received:node:825f4b32-8cdd-419d-98a8-80256b31348d:localhost:node-06d3eda3-d05e-4ec2-bf82-c70eab69577a:Node 06d3eda3-d05e-4ec2-bf82-c70eab69577a :: false

2022-12-30 09:40:45 | [Mutex] waiting for: [received:nodes:32205394-bdd2-46a0-ac3e-acb18461c25a:localhost]

2022-12-30 09:40:45 | [Mutex] received everything.

2022-12-30 09:40:45 | [Mutex] isItemNotified: received:node:32205394-bdd2-46a0-ac3e-acb18461c25a:localhost:node-06d3eda3-d05e-4ec2-bf82-c70eab69577a:Node 06d3eda3-d05e-4ec2-bf82-c70eab69577a :: false

publishItemsToNodes 0.053s
2022-12-30 09:40:42 |

2022-12-30 09:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:42 | ------------------------------------

2022-12-30 09:40:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-06d3eda3-d05e-4ec2-bf82-c70eab69577a",
    "entry": "<test>item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a</test>",
    "item-id": "item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a"
}

2022-12-30 09:40:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a"
}

2022-12-30 09:40:42 | [Mutex] waiting for: [published:item:notifieditem-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a:admin@test-domain.com]

2022-12-30 09:40:43 | [Mutex] received everything.

2022-12-30 09:40:43 | [Mutex] isItemNotified: published:item:notifieditem-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a:admin@test-domain.com :: true

retractItemsFromNodes 0.102s
2022-12-30 09:40:43 |

2022-12-30 09:40:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:43 | ------------------------------------

2022-12-30 09:40:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-06d3eda3-d05e-4ec2-bf82-c70eab69577a",
    "item-id": "item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a"
}

2022-12-30 09:40:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a"
}

2022-12-30 09:40:43 | [Mutex] waiting for: [retracted:item:notifieditem-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a:admin@test-domain.com]

2022-12-30 09:40:43 | [Mutex] received everything.

2022-12-30 09:40:43 | [Mutex] isItemNotified: retracted:item:notifieditem-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2022-12-30 09:40:43 |

2022-12-30 09:40:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:43 | ------------------------------------

2022-12-30 09:40:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-06d3eda3-d05e-4ec2-bf82-c70eab69577a",
    "item-id": "item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a"
}

2022-12-30 09:40:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-06d3eda3-d05e-4ec2-bf82-c70eab69577a",
    "item-id": "item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a",
    "item": [
        "<item id=\"item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a\"><test>item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a</test></item>"
    ]
}

2022-12-30 09:40:43 | [Mutex] notify: [retrieved:item:item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a:payload-matches:true:localhost]

2022-12-30 09:40:43 | [Mutex] received everything.

2022-12-30 09:40:43 | [Mutex] isItemNotified: retrieved:item:item-e181eec8-5ff9-4c4c-aa47-0dddc3733e1a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-12-30 09:40:43 |

2022-12-30 09:40:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:43 | ------------------------------------

2022-12-30 09:40:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-30 09:40:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-06d3eda3-d05e-4ec2-bf82-c70eab69577a",
        "node-a97e3cea-9964-4894-9a1c-8d49e2cc04b1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-12-30 09:40:43 |

2022-12-30 09:40:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:43 | ------------------------------------

2022-12-30 09:40:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-06d3eda3-d05e-4ec2-bf82-c70eab69577a)"
}

2022-12-30 09:40:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-12-30 09:40:41 |

2022-12-30 09:40:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:41 | ------------------------------------

2022-12-30 09:40:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-06d3eda3-d05e-4ec2-bf82-c70eab69577a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 09:40:41 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.013s
2022-12-30 09:40:43 |

2022-12-30 09:40:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:43 | ------------------------------------

2022-12-30 09:40:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-06d3eda3-d05e-4ec2-bf82-c70eab69577a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 09:40:43 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}