Generated by TestNG with ReportNG at 14:51 CET on jueves 03 marzo 2022
wojtek@atlantiscity.local / Java 11.0.14.1 (Eclipse Adoptium) / Mac OS X 12.2.1 (x86_64)

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

Suites · Log Output

Test duration : 8,848s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1,139s
2022-03-03 15:05:09 |

2022-03-03 15:05:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:09 | ------------------------------------

2022-03-03 15:05:09 | [Mutex] waiting for: [configured:node:node-b1986c7d-326d-433a-8b2d-0a50d80a39a0:node-933f4d7d-1e86-4b6b-802a-cbaafe68d917]

2022-03-03 15:05:09 | [Mutex] received everything.

2022-03-03 15:05:09 | [Mutex] isItemNotified: configured:node:node-b1986c7d-326d-433a-8b2d-0a50d80a39a0:node-933f4d7d-1e86-4b6b-802a-cbaafe68d917 :: true

2022-03-03 15:05:10 | [Mutex] waiting for: [received:nodes:634dd0fa-91a4-409e-a5f2-8d41c15fb99f:localhost]

2022-03-03 15:05:10 | [Mutex] received everything.

2022-03-03 15:05:10 | [Mutex] isItemNotified: received:node:634dd0fa-91a4-409e-a5f2-8d41c15fb99f:localhost:node-b1986c7d-326d-433a-8b2d-0a50d80a39a0:Node b1986c7d-326d-433a-8b2d-0a50d80a39a0 :: true

2022-03-03 15:05:10 | [Mutex] waiting for: [received:nodes:f530c9b9-0657-4b61-a5d3-8e20b436432b:localhost]

2022-03-03 15:05:10 | [Mutex] waiting for: [received:nodes:f530c9b9-0657-4b61-a5d3-8e20b436432b:localhost]

2022-03-03 15:05:10 | [Mutex] waiting for: [received:nodes:f530c9b9-0657-4b61-a5d3-8e20b436432b:localhost]

2022-03-03 15:05:10 | [Mutex] received everything.

2022-03-03 15:05:10 | [Mutex] isItemNotified: received:node:f530c9b9-0657-4b61-a5d3-8e20b436432b:localhost:node-b1986c7d-326d-433a-8b2d-0a50d80a39a0:Node b1986c7d-326d-433a-8b2d-0a50d80a39a0 :: false

createNodes 1,630s
2022-03-03 15:05:06 |

2022-03-03 15:05:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:06 | ------------------------------------

2022-03-03 15:05:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b1986c7d-326d-433a-8b2d-0a50d80a39a0",
    "pubsub#title": "Node b1986c7d-326d-433a-8b2d-0a50d80a39a0"
}

2022-03-03 15:05:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-03 15:05:08 | [Mutex] waiting for: [received:nodes:d075ac21-1794-46b7-b154-579d3276283e:localhost]

2022-03-03 15:05:08 | [Mutex] waiting for: [received:nodes:d075ac21-1794-46b7-b154-579d3276283e:localhost]

2022-03-03 15:05:08 | [Mutex] waiting for: [received:nodes:d075ac21-1794-46b7-b154-579d3276283e:localhost]

2022-03-03 15:05:08 | [Mutex] waiting for: [received:nodes:d075ac21-1794-46b7-b154-579d3276283e:localhost]

2022-03-03 15:05:08 | [Mutex] received everything.

2022-03-03 15:05:08 | [Mutex] isItemNotified: received:node:d075ac21-1794-46b7-b154-579d3276283e:localhost:node-b1986c7d-326d-433a-8b2d-0a50d80a39a0:Node b1986c7d-326d-433a-8b2d-0a50d80a39a0 :: true

createSubnodes 1,109s
2022-03-03 15:05:08 |

2022-03-03 15:05:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:08 | ------------------------------------

2022-03-03 15:05:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-933f4d7d-1e86-4b6b-802a-cbaafe68d917",
    "pubsub#title": "Node 933f4d7d-1e86-4b6b-802a-cbaafe68d917"
}

2022-03-03 15:05:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-03 15:05:09 | [Mutex] waiting for: [received:nodes:7d947ab3-cdc2-4a14-b070-23c84c2c5f8d:localhost]

2022-03-03 15:05:09 | [Mutex] waiting for: [received:nodes:7d947ab3-cdc2-4a14-b070-23c84c2c5f8d:localhost]

2022-03-03 15:05:09 | [Mutex] waiting for: [received:nodes:7d947ab3-cdc2-4a14-b070-23c84c2c5f8d:localhost]

2022-03-03 15:05:09 | [Mutex] received everything.

2022-03-03 15:05:09 | [Mutex] isItemNotified: received:node:7d947ab3-cdc2-4a14-b070-23c84c2c5f8d:localhost:node-933f4d7d-1e86-4b6b-802a-cbaafe68d917:Node 933f4d7d-1e86-4b6b-802a-cbaafe68d917 :: true

deleteNodes 1,087s
2022-03-03 15:05:14 |

2022-03-03 15:05:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:14 | ------------------------------------

2022-03-03 15:05:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-933f4d7d-1e86-4b6b-802a-cbaafe68d917"
}

2022-03-03 15:05:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-03 15:05:15 | [Mutex] waiting for: [received:nodes:1ea0f412-2e9d-4297-8c79-df17458dd384:localhost]

2022-03-03 15:05:15 | [Mutex] received everything.

2022-03-03 15:05:15 | [Mutex] isItemNotified: received:node:1ea0f412-2e9d-4297-8c79-df17458dd384:localhost:node-933f4d7d-1e86-4b6b-802a-cbaafe68d917:Node 933f4d7d-1e86-4b6b-802a-cbaafe68d917 :: false

deleteSubnodes 1,071s
2022-03-03 15:05:13 |

2022-03-03 15:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:13 | ------------------------------------

2022-03-03 15:05:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b1986c7d-326d-433a-8b2d-0a50d80a39a0"
}

2022-03-03 15:05:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-03 15:05:14 | [Mutex] waiting for: [received:nodes:e54092d9-c07e-4114-8804-8c5f5d07cb3b:localhost]

2022-03-03 15:05:14 | [Mutex] waiting for: [received:nodes:e54092d9-c07e-4114-8804-8c5f5d07cb3b:localhost]

2022-03-03 15:05:14 | [Mutex] waiting for: [received:nodes:e54092d9-c07e-4114-8804-8c5f5d07cb3b:localhost]

2022-03-03 15:05:14 | [Mutex] received everything.

2022-03-03 15:05:14 | [Mutex] isItemNotified: received:node:e54092d9-c07e-4114-8804-8c5f5d07cb3b:localhost:node-b1986c7d-326d-433a-8b2d-0a50d80a39a0:Node b1986c7d-326d-433a-8b2d-0a50d80a39a0 :: false

2022-03-03 15:05:14 | [Mutex] waiting for: [received:nodes:264b3e45-3121-42c8-be69-c3f5c0be8029:localhost]

2022-03-03 15:05:14 | [Mutex] received everything.

2022-03-03 15:05:14 | [Mutex] isItemNotified: received:node:264b3e45-3121-42c8-be69-c3f5c0be8029:localhost:node-b1986c7d-326d-433a-8b2d-0a50d80a39a0:Node b1986c7d-326d-433a-8b2d-0a50d80a39a0 :: false

publishItemsToNodes 0,066s
2022-03-03 15:05:11 |

2022-03-03 15:05:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:11 | ------------------------------------

2022-03-03 15:05:11 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b1986c7d-326d-433a-8b2d-0a50d80a39a0",
    "entry": "<test>item-2a81db8f-2f07-4889-a459-1524ec34433f</test>",
    "item-id": "item-2a81db8f-2f07-4889-a459-1524ec34433f"
}

2022-03-03 15:05:11 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2a81db8f-2f07-4889-a459-1524ec34433f"
}

2022-03-03 15:05:11 | [Mutex] received everything.

2022-03-03 15:05:11 | [Mutex] isItemNotified: published:item:notifieditem-2a81db8f-2f07-4889-a459-1524ec34433f:admin@test-domain.com :: true

retractItemsFromNodes 0,084s
2022-03-03 15:05:11 |

2022-03-03 15:05:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:11 | ------------------------------------

2022-03-03 15:05:11 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b1986c7d-326d-433a-8b2d-0a50d80a39a0",
    "item-id": "item-2a81db8f-2f07-4889-a459-1524ec34433f"
}

2022-03-03 15:05:11 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2a81db8f-2f07-4889-a459-1524ec34433f"
}

2022-03-03 15:05:11 | [Mutex] waiting for: [retracted:item:notifieditem-2a81db8f-2f07-4889-a459-1524ec34433f:admin@test-domain.com]

2022-03-03 15:05:12 | [Mutex] received everything.

2022-03-03 15:05:12 | [Mutex] isItemNotified: retracted:item:notifieditem-2a81db8f-2f07-4889-a459-1524ec34433f:admin@test-domain.com :: true

retrieveItemsFromNodes 0,034s
2022-03-03 15:05:11 |

2022-03-03 15:05:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:11 | ------------------------------------

2022-03-03 15:05:11 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b1986c7d-326d-433a-8b2d-0a50d80a39a0",
    "item-id": "item-2a81db8f-2f07-4889-a459-1524ec34433f"
}

2022-03-03 15:05:11 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b1986c7d-326d-433a-8b2d-0a50d80a39a0",
    "item-id": "item-2a81db8f-2f07-4889-a459-1524ec34433f",
    "item": [
        "<item id=\"item-2a81db8f-2f07-4889-a459-1524ec34433f\"><test>item-2a81db8f-2f07-4889-a459-1524ec34433f</test></item>"
    ]
}

2022-03-03 15:05:11 | [Mutex] notify: [retrieved:item:item-2a81db8f-2f07-4889-a459-1524ec34433f:payload-matches:true:localhost]

2022-03-03 15:05:11 | [Mutex] received everything.

2022-03-03 15:05:11 | [Mutex] isItemNotified: retrieved:item:item-2a81db8f-2f07-4889-a459-1524ec34433f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0,033s
2022-03-03 15:05:11 |

2022-03-03 15:05:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:11 | ------------------------------------

2022-03-03 15:05:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-03-03 15:05:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b1986c7d-326d-433a-8b2d-0a50d80a39a0",
        "node-933f4d7d-1e86-4b6b-802a-cbaafe68d917"
    ]
}

retrieveUserSubscriptionsWithRegex 0,015s
2022-03-03 15:05:11 |

2022-03-03 15:05:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:11 | ------------------------------------

2022-03-03 15:05:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b1986c7d-326d-433a-8b2d-0a50d80a39a0)"
}

2022-03-03 15:05:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1,035s
2022-03-03 15:05:10 |

2022-03-03 15:05:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:10 | ------------------------------------

2022-03-03 15:05:10 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b1986c7d-326d-433a-8b2d-0a50d80a39a0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-03-03 15:05:10 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1,051s
2022-03-03 15:05:12 |

2022-03-03 15:05:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 15:05:12 | ------------------------------------

2022-03-03 15:05:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b1986c7d-326d-433a-8b2d-0a50d80a39a0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-03-03 15:05:12 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}