Generated by TestNG with ReportNG at 22:15 PDT on Wednesday 15 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.840s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2023-03-15 22:30:04 |

2023-03-15 22:30:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:04 | ------------------------------------

2023-03-15 22:30:04 | [Mutex] waiting for: [configured:node:node-bcd79b9f-0caa-4fc3-a967-5371a12a8834:node-40eac6a5-1d08-4a3e-97e9-11f34d4ad4db]

2023-03-15 22:30:04 | [Mutex] received everything.

2023-03-15 22:30:04 | [Mutex] isItemNotified: configured:node:node-bcd79b9f-0caa-4fc3-a967-5371a12a8834:node-40eac6a5-1d08-4a3e-97e9-11f34d4ad4db :: true

2023-03-15 22:30:05 | [Mutex] waiting for: [received:nodes:1d4a9588-79f4-4183-b537-95998a6e8611:localhost]

2023-03-15 22:30:05 | [Mutex] received everything.

2023-03-15 22:30:05 | [Mutex] isItemNotified: received:node:1d4a9588-79f4-4183-b537-95998a6e8611:localhost:node-bcd79b9f-0caa-4fc3-a967-5371a12a8834:Node bcd79b9f-0caa-4fc3-a967-5371a12a8834 :: true

2023-03-15 22:30:05 | [Mutex] waiting for: [received:nodes:5ab10e34-8456-4797-910b-0bd95220a218:localhost]

2023-03-15 22:30:05 | [Mutex] received everything.

2023-03-15 22:30:05 | [Mutex] isItemNotified: received:node:5ab10e34-8456-4797-910b-0bd95220a218:localhost:node-bcd79b9f-0caa-4fc3-a967-5371a12a8834:Node bcd79b9f-0caa-4fc3-a967-5371a12a8834 :: false

createNodes 1.776s
2023-03-15 22:30:01 |

2023-03-15 22:30:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:01 | ------------------------------------

2023-03-15 22:30:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bcd79b9f-0caa-4fc3-a967-5371a12a8834",
    "pubsub#title": "Node bcd79b9f-0caa-4fc3-a967-5371a12a8834"
}

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

2023-03-15 22:30:03 | [Mutex] waiting for: [received:nodes:5a16ccd2-02e8-4e1f-8f2b-b0191d27791c:localhost]

2023-03-15 22:30:03 | [Mutex] waiting for: [received:nodes:5a16ccd2-02e8-4e1f-8f2b-b0191d27791c:localhost]

2023-03-15 22:30:03 | [Mutex] waiting for: [received:nodes:5a16ccd2-02e8-4e1f-8f2b-b0191d27791c:localhost]

2023-03-15 22:30:03 | [Mutex] waiting for: [received:nodes:5a16ccd2-02e8-4e1f-8f2b-b0191d27791c:localhost]

2023-03-15 22:30:03 | [Mutex] received everything.

2023-03-15 22:30:03 | [Mutex] isItemNotified: received:node:5a16ccd2-02e8-4e1f-8f2b-b0191d27791c:localhost:node-bcd79b9f-0caa-4fc3-a967-5371a12a8834:Node bcd79b9f-0caa-4fc3-a967-5371a12a8834 :: true

createSubnodes 1.025s
2023-03-15 22:30:03 |

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

2023-03-15 22:30:03 | ------------------------------------

2023-03-15 22:30:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-40eac6a5-1d08-4a3e-97e9-11f34d4ad4db",
    "pubsub#title": "Node 40eac6a5-1d08-4a3e-97e9-11f34d4ad4db"
}

2023-03-15 22:30:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 22:30:04 | [Mutex] waiting for: [received:nodes:2ff997c1-79e0-4a1f-a41d-087265a88ae9:localhost]

2023-03-15 22:30:04 | [Mutex] waiting for: [received:nodes:2ff997c1-79e0-4a1f-a41d-087265a88ae9:localhost]

2023-03-15 22:30:04 | [Mutex] waiting for: [received:nodes:2ff997c1-79e0-4a1f-a41d-087265a88ae9:localhost]

2023-03-15 22:30:04 | [Mutex] received everything.

2023-03-15 22:30:04 | [Mutex] isItemNotified: received:node:2ff997c1-79e0-4a1f-a41d-087265a88ae9:localhost:node-40eac6a5-1d08-4a3e-97e9-11f34d4ad4db:Node 40eac6a5-1d08-4a3e-97e9-11f34d4ad4db :: true

deleteNodes 1.021s
2023-03-15 22:30:08 |

2023-03-15 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:08 | ------------------------------------

2023-03-15 22:30:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-40eac6a5-1d08-4a3e-97e9-11f34d4ad4db"
}

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

2023-03-15 22:30:09 | [Mutex] waiting for: [received:nodes:7ab55a23-fd03-4cfe-809e-e379a2abf17d:localhost]

2023-03-15 22:30:09 | [Mutex] waiting for: [received:nodes:7ab55a23-fd03-4cfe-809e-e379a2abf17d:localhost]

2023-03-15 22:30:09 | [Mutex] waiting for: [received:nodes:7ab55a23-fd03-4cfe-809e-e379a2abf17d:localhost]

2023-03-15 22:30:09 | [Mutex] received everything.

2023-03-15 22:30:09 | [Mutex] isItemNotified: received:node:7ab55a23-fd03-4cfe-809e-e379a2abf17d:localhost:node-40eac6a5-1d08-4a3e-97e9-11f34d4ad4db:Node 40eac6a5-1d08-4a3e-97e9-11f34d4ad4db :: false

deleteSubnodes 1.032s
2023-03-15 22:30:07 |

2023-03-15 22:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:07 | ------------------------------------

2023-03-15 22:30:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bcd79b9f-0caa-4fc3-a967-5371a12a8834"
}

2023-03-15 22:30:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-15 22:30:08 | [Mutex] waiting for: [received:nodes:f7b7aa72-e269-4cd4-9ed5-c230e40e9a6c:localhost]

2023-03-15 22:30:08 | [Mutex] received everything.

2023-03-15 22:30:08 | [Mutex] isItemNotified: received:node:f7b7aa72-e269-4cd4-9ed5-c230e40e9a6c:localhost:node-bcd79b9f-0caa-4fc3-a967-5371a12a8834:Node bcd79b9f-0caa-4fc3-a967-5371a12a8834 :: false

2023-03-15 22:30:08 | [Mutex] waiting for: [received:nodes:ff85cb05-0149-48aa-99b6-b387317ee921:localhost]

2023-03-15 22:30:08 | [Mutex] received everything.

2023-03-15 22:30:08 | [Mutex] isItemNotified: received:node:ff85cb05-0149-48aa-99b6-b387317ee921:localhost:node-bcd79b9f-0caa-4fc3-a967-5371a12a8834:Node bcd79b9f-0caa-4fc3-a967-5371a12a8834 :: false

publishItemsToNodes 0.045s
2023-03-15 22:30:06 |

2023-03-15 22:30:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:06 | ------------------------------------

2023-03-15 22:30:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bcd79b9f-0caa-4fc3-a967-5371a12a8834",
    "entry": "<test>item-baf4712c-c0d7-48f8-afc6-088dc7e5173e</test>",
    "item-id": "item-baf4712c-c0d7-48f8-afc6-088dc7e5173e"
}

2023-03-15 22:30:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-baf4712c-c0d7-48f8-afc6-088dc7e5173e"
}

2023-03-15 22:30:06 | [Mutex] waiting for: [published:item:notifieditem-baf4712c-c0d7-48f8-afc6-088dc7e5173e:admin@test-domain.com]

2023-03-15 22:30:06 | [Mutex] received everything.

2023-03-15 22:30:06 | [Mutex] isItemNotified: published:item:notifieditem-baf4712c-c0d7-48f8-afc6-088dc7e5173e:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2023-03-15 22:30:06 |

2023-03-15 22:30:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:06 | ------------------------------------

2023-03-15 22:30:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bcd79b9f-0caa-4fc3-a967-5371a12a8834",
    "item-id": "item-baf4712c-c0d7-48f8-afc6-088dc7e5173e"
}

2023-03-15 22:30:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-baf4712c-c0d7-48f8-afc6-088dc7e5173e"
}

2023-03-15 22:30:06 | [Mutex] received everything.

2023-03-15 22:30:06 | [Mutex] isItemNotified: retracted:item:notifieditem-baf4712c-c0d7-48f8-afc6-088dc7e5173e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2023-03-15 22:30:06 |

2023-03-15 22:30:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:06 | ------------------------------------

2023-03-15 22:30:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bcd79b9f-0caa-4fc3-a967-5371a12a8834",
    "item-id": "item-baf4712c-c0d7-48f8-afc6-088dc7e5173e"
}

2023-03-15 22:30:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bcd79b9f-0caa-4fc3-a967-5371a12a8834",
    "item-id": "item-baf4712c-c0d7-48f8-afc6-088dc7e5173e",
    "item": [
        "<item id=\"item-baf4712c-c0d7-48f8-afc6-088dc7e5173e\"><test>item-baf4712c-c0d7-48f8-afc6-088dc7e5173e</test></item>"
    ]
}

2023-03-15 22:30:06 | [Mutex] notify: [retrieved:item:item-baf4712c-c0d7-48f8-afc6-088dc7e5173e:payload-matches:true:localhost]

2023-03-15 22:30:06 | [Mutex] received everything.

2023-03-15 22:30:06 | [Mutex] isItemNotified: retrieved:item:item-baf4712c-c0d7-48f8-afc6-088dc7e5173e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-03-15 22:30:06 |

2023-03-15 22:30:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:06 | ------------------------------------

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

2023-03-15 22:30:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-40eac6a5-1d08-4a3e-97e9-11f34d4ad4db",
        "node-bcd79b9f-0caa-4fc3-a967-5371a12a8834"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2023-03-15 22:30:06 |

2023-03-15 22:30:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:06 | ------------------------------------

2023-03-15 22:30:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bcd79b9f-0caa-4fc3-a967-5371a12a8834)"
}

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

subscribeNodes 1.018s
2023-03-15 22:30:05 |

2023-03-15 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:05 | ------------------------------------

2023-03-15 22:30:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bcd79b9f-0caa-4fc3-a967-5371a12a8834",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.113s
2023-03-15 22:30:06 |

2023-03-15 22:30:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-15 22:30:06 | ------------------------------------

2023-03-15 22:30:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bcd79b9f-0caa-4fc3-a967-5371a12a8834",
    "jids": [
        "admin@test-domain.com"
    ]
}

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