Generated by TestNG with ReportNG at 07:50 PST on Monday 06 March 2023
root@ed1b7dd8a1b3 / 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.751s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2023-03-06 08:05:07 |

2023-03-06 08:05:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:07 | ------------------------------------

2023-03-06 08:05:07 | [Mutex] waiting for: [configured:node:node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1:node-64e65e46-f91f-4932-9cd3-0e1d2c1376d5]

2023-03-06 08:05:07 | [Mutex] received everything.

2023-03-06 08:05:07 | [Mutex] isItemNotified: configured:node:node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1:node-64e65e46-f91f-4932-9cd3-0e1d2c1376d5 :: true

2023-03-06 08:05:08 | [Mutex] waiting for: [received:nodes:ae0075f7-18ef-45cb-8acc-29696a3ef119:localhost]

2023-03-06 08:05:08 | [Mutex] received everything.

2023-03-06 08:05:08 | [Mutex] isItemNotified: received:node:ae0075f7-18ef-45cb-8acc-29696a3ef119:localhost:node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1:Node 34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1 :: true

2023-03-06 08:05:08 | [Mutex] waiting for: [received:nodes:de50432b-daeb-45d9-84ab-42f9f08cdfce:localhost]

2023-03-06 08:05:08 | [Mutex] waiting for: [received:nodes:de50432b-daeb-45d9-84ab-42f9f08cdfce:localhost]

2023-03-06 08:05:08 | [Mutex] waiting for: [received:nodes:de50432b-daeb-45d9-84ab-42f9f08cdfce:localhost]

2023-03-06 08:05:08 | [Mutex] waiting for: [received:nodes:de50432b-daeb-45d9-84ab-42f9f08cdfce:localhost]

2023-03-06 08:05:08 | [Mutex] received everything.

2023-03-06 08:05:08 | [Mutex] isItemNotified: received:node:de50432b-daeb-45d9-84ab-42f9f08cdfce:localhost:node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1:Node 34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1 :: false

createNodes 1.663s
2023-03-06 08:05:04 |

2023-03-06 08:05:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:04 | ------------------------------------

2023-03-06 08:05:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1",
    "pubsub#title": "Node 34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1"
}

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

2023-03-06 08:05:06 | [Mutex] waiting for: [received:nodes:debf6088-0949-4cb2-bde7-1690744452e2:localhost]

2023-03-06 08:05:06 | [Mutex] received everything.

2023-03-06 08:05:06 | [Mutex] isItemNotified: received:node:debf6088-0949-4cb2-bde7-1690744452e2:localhost:node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1:Node 34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1 :: true

createSubnodes 1.028s
2023-03-06 08:05:06 |

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

2023-03-06 08:05:06 | ------------------------------------

2023-03-06 08:05:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-64e65e46-f91f-4932-9cd3-0e1d2c1376d5",
    "pubsub#title": "Node 64e65e46-f91f-4932-9cd3-0e1d2c1376d5"
}

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

2023-03-06 08:05:07 | [Mutex] waiting for: [received:nodes:a8c14067-171d-4ff6-88b6-c3cd251f1f75:localhost]

2023-03-06 08:05:07 | [Mutex] waiting for: [received:nodes:a8c14067-171d-4ff6-88b6-c3cd251f1f75:localhost]

2023-03-06 08:05:07 | [Mutex] received everything.

2023-03-06 08:05:07 | [Mutex] isItemNotified: received:node:a8c14067-171d-4ff6-88b6-c3cd251f1f75:localhost:node-64e65e46-f91f-4932-9cd3-0e1d2c1376d5:Node 64e65e46-f91f-4932-9cd3-0e1d2c1376d5 :: true

deleteNodes 1.027s
2023-03-06 08:05:11 |

2023-03-06 08:05:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:11 | ------------------------------------

2023-03-06 08:05:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-64e65e46-f91f-4932-9cd3-0e1d2c1376d5"
}

2023-03-06 08:05:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 08:05:12 | [Mutex] waiting for: [received:nodes:8301be2c-d2aa-4075-bc46-e9f035793923:localhost]

2023-03-06 08:05:12 | [Mutex] waiting for: [received:nodes:8301be2c-d2aa-4075-bc46-e9f035793923:localhost]

2023-03-06 08:05:12 | [Mutex] waiting for: [received:nodes:8301be2c-d2aa-4075-bc46-e9f035793923:localhost]

2023-03-06 08:05:12 | [Mutex] received everything.

2023-03-06 08:05:12 | [Mutex] isItemNotified: received:node:8301be2c-d2aa-4075-bc46-e9f035793923:localhost:node-64e65e46-f91f-4932-9cd3-0e1d2c1376d5:Node 64e65e46-f91f-4932-9cd3-0e1d2c1376d5 :: false

deleteSubnodes 1.034s
2023-03-06 08:05:10 |

2023-03-06 08:05:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:10 | ------------------------------------

2023-03-06 08:05:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1"
}

2023-03-06 08:05:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 08:05:11 | [Mutex] waiting for: [received:nodes:7565c463-9e83-44d2-9fc2-09eb0debe29a:localhost]

2023-03-06 08:05:11 | [Mutex] waiting for: [received:nodes:7565c463-9e83-44d2-9fc2-09eb0debe29a:localhost]

2023-03-06 08:05:11 | [Mutex] waiting for: [received:nodes:7565c463-9e83-44d2-9fc2-09eb0debe29a:localhost]

2023-03-06 08:05:11 | [Mutex] waiting for: [received:nodes:7565c463-9e83-44d2-9fc2-09eb0debe29a:localhost]

2023-03-06 08:05:11 | [Mutex] received everything.

2023-03-06 08:05:11 | [Mutex] isItemNotified: received:node:7565c463-9e83-44d2-9fc2-09eb0debe29a:localhost:node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1:Node 34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1 :: false

2023-03-06 08:05:11 | [Mutex] waiting for: [received:nodes:d8abd80d-23cb-4bc9-bf43-f2041a2abd66:localhost]

2023-03-06 08:05:11 | [Mutex] received everything.

2023-03-06 08:05:11 | [Mutex] isItemNotified: received:node:d8abd80d-23cb-4bc9-bf43-f2041a2abd66:localhost:node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1:Node 34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1 :: false

publishItemsToNodes 0.051s
2023-03-06 08:05:09 |

2023-03-06 08:05:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:09 | ------------------------------------

2023-03-06 08:05:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1",
    "entry": "<test>item-04eb28da-1d95-44d4-af97-7546f30a6878</test>",
    "item-id": "item-04eb28da-1d95-44d4-af97-7546f30a6878"
}

2023-03-06 08:05:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-04eb28da-1d95-44d4-af97-7546f30a6878"
}

2023-03-06 08:05:09 | [Mutex] waiting for: [published:item:notifieditem-04eb28da-1d95-44d4-af97-7546f30a6878:admin@test-domain.com]

2023-03-06 08:05:09 | [Mutex] received everything.

2023-03-06 08:05:09 | [Mutex] isItemNotified: published:item:notifieditem-04eb28da-1d95-44d4-af97-7546f30a6878:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-03-06 08:05:09 |

2023-03-06 08:05:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:09 | ------------------------------------

2023-03-06 08:05:09 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1",
    "item-id": "item-04eb28da-1d95-44d4-af97-7546f30a6878"
}

2023-03-06 08:05:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-04eb28da-1d95-44d4-af97-7546f30a6878"
}

2023-03-06 08:05:09 | [Mutex] received everything.

2023-03-06 08:05:09 | [Mutex] isItemNotified: retracted:item:notifieditem-04eb28da-1d95-44d4-af97-7546f30a6878:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2023-03-06 08:05:09 |

2023-03-06 08:05:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:09 | ------------------------------------

2023-03-06 08:05:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1",
    "item-id": "item-04eb28da-1d95-44d4-af97-7546f30a6878"
}

2023-03-06 08:05:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1",
    "item-id": "item-04eb28da-1d95-44d4-af97-7546f30a6878",
    "item": [
        "<item id=\"item-04eb28da-1d95-44d4-af97-7546f30a6878\"><test>item-04eb28da-1d95-44d4-af97-7546f30a6878</test></item>"
    ]
}

2023-03-06 08:05:09 | [Mutex] notify: [retrieved:item:item-04eb28da-1d95-44d4-af97-7546f30a6878:payload-matches:true:localhost]

2023-03-06 08:05:09 | [Mutex] received everything.

2023-03-06 08:05:09 | [Mutex] isItemNotified: retrieved:item:item-04eb28da-1d95-44d4-af97-7546f30a6878:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2023-03-06 08:05:09 |

2023-03-06 08:05:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:09 | ------------------------------------

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

2023-03-06 08:05:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-64e65e46-f91f-4932-9cd3-0e1d2c1376d5",
        "test",
        "node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-03-06 08:05:09 |

2023-03-06 08:05:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:09 | ------------------------------------

2023-03-06 08:05:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1)"
}

2023-03-06 08:05:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-03-06 08:05:08 |

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

2023-03-06 08:05:08 | ------------------------------------

2023-03-06 08:05:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 08:05:08 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2023-03-06 08:05:09 |

2023-03-06 08:05:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 08:05:09 | ------------------------------------

2023-03-06 08:05:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-34a43c5e-e81e-48ab-aa9f-a52a4d0a23e1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 08:05:09 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}