Generated by TestNG with ReportNG at 22:16 PDT on Thursday 06 July 2023
root@1512af24e4a5 / Java 17.0.6 (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.553s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2023-07-06 22:30:41 |

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

2023-07-06 22:30:41 | ------------------------------------

2023-07-06 22:30:41 | [Mutex] waiting for: [configured:node:node-d7559632-9b69-478b-bf52-6e3d216363b0:node-e679e734-d110-412f-9d8e-c0c1f955e2b3]

2023-07-06 22:30:41 | [Mutex] received everything.

2023-07-06 22:30:41 | [Mutex] isItemNotified: configured:node:node-d7559632-9b69-478b-bf52-6e3d216363b0:node-e679e734-d110-412f-9d8e-c0c1f955e2b3 :: true

2023-07-06 22:30:42 | [Mutex] waiting for: [received:nodes:3c158fd4-1491-44bd-98d2-dec3ba6ea15d:localhost]

2023-07-06 22:30:42 | [Mutex] received everything.

2023-07-06 22:30:42 | [Mutex] isItemNotified: received:node:3c158fd4-1491-44bd-98d2-dec3ba6ea15d:localhost:node-d7559632-9b69-478b-bf52-6e3d216363b0:Node d7559632-9b69-478b-bf52-6e3d216363b0 :: true

2023-07-06 22:30:42 | [Mutex] waiting for: [received:nodes:101e7ed4-bd66-4309-8df4-05ace8f21756:localhost]

2023-07-06 22:30:42 | [Mutex] waiting for: [received:nodes:101e7ed4-bd66-4309-8df4-05ace8f21756:localhost]

2023-07-06 22:30:42 | [Mutex] waiting for: [received:nodes:101e7ed4-bd66-4309-8df4-05ace8f21756:localhost]

2023-07-06 22:30:42 | [Mutex] received everything.

2023-07-06 22:30:42 | [Mutex] isItemNotified: received:node:101e7ed4-bd66-4309-8df4-05ace8f21756:localhost:node-d7559632-9b69-478b-bf52-6e3d216363b0:Node d7559632-9b69-478b-bf52-6e3d216363b0 :: false

createNodes 1.638s
2023-07-06 22:30:38 |

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

2023-07-06 22:30:38 | ------------------------------------

2023-07-06 22:30:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d7559632-9b69-478b-bf52-6e3d216363b0",
    "pubsub#title": "Node d7559632-9b69-478b-bf52-6e3d216363b0"
}

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

2023-07-06 22:30:40 | [Mutex] waiting for: [received:nodes:e0809a84-9d75-4382-91a6-54a059caaa06:localhost]

2023-07-06 22:30:40 | [Mutex] waiting for: [received:nodes:e0809a84-9d75-4382-91a6-54a059caaa06:localhost]

2023-07-06 22:30:40 | [Mutex] waiting for: [received:nodes:e0809a84-9d75-4382-91a6-54a059caaa06:localhost]

2023-07-06 22:30:40 | [Mutex] waiting for: [received:nodes:e0809a84-9d75-4382-91a6-54a059caaa06:localhost]

2023-07-06 22:30:40 | [Mutex] received everything.

2023-07-06 22:30:40 | [Mutex] isItemNotified: received:node:e0809a84-9d75-4382-91a6-54a059caaa06:localhost:node-d7559632-9b69-478b-bf52-6e3d216363b0:Node d7559632-9b69-478b-bf52-6e3d216363b0 :: true

createSubnodes 1.020s
2023-07-06 22:30:40 |

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

2023-07-06 22:30:40 | ------------------------------------

2023-07-06 22:30:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e679e734-d110-412f-9d8e-c0c1f955e2b3",
    "pubsub#title": "Node e679e734-d110-412f-9d8e-c0c1f955e2b3"
}

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

2023-07-06 22:30:41 | [Mutex] waiting for: [received:nodes:4dd3e9f6-5ce2-4825-b0e7-3e98beadbbb2:localhost]

2023-07-06 22:30:41 | [Mutex] waiting for: [received:nodes:4dd3e9f6-5ce2-4825-b0e7-3e98beadbbb2:localhost]

2023-07-06 22:30:41 | [Mutex] waiting for: [received:nodes:4dd3e9f6-5ce2-4825-b0e7-3e98beadbbb2:localhost]

2023-07-06 22:30:41 | [Mutex] waiting for: [received:nodes:4dd3e9f6-5ce2-4825-b0e7-3e98beadbbb2:localhost]

2023-07-06 22:30:41 | [Mutex] waiting for: [received:nodes:4dd3e9f6-5ce2-4825-b0e7-3e98beadbbb2:localhost]

2023-07-06 22:30:41 | [Mutex] received everything.

2023-07-06 22:30:41 | [Mutex] isItemNotified: received:node:4dd3e9f6-5ce2-4825-b0e7-3e98beadbbb2:localhost:node-e679e734-d110-412f-9d8e-c0c1f955e2b3:Node e679e734-d110-412f-9d8e-c0c1f955e2b3 :: true

deleteNodes 1.018s
2023-07-06 22:30:46 |

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

2023-07-06 22:30:46 | ------------------------------------

2023-07-06 22:30:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e679e734-d110-412f-9d8e-c0c1f955e2b3"
}

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

2023-07-06 22:30:47 | [Mutex] waiting for: [received:nodes:8cd595c5-c14d-4248-b214-3e67ccf012f8:localhost]

2023-07-06 22:30:47 | [Mutex] waiting for: [received:nodes:8cd595c5-c14d-4248-b214-3e67ccf012f8:localhost]

2023-07-06 22:30:47 | [Mutex] waiting for: [received:nodes:8cd595c5-c14d-4248-b214-3e67ccf012f8:localhost]

2023-07-06 22:30:47 | [Mutex] received everything.

2023-07-06 22:30:47 | [Mutex] isItemNotified: received:node:8cd595c5-c14d-4248-b214-3e67ccf012f8:localhost:node-e679e734-d110-412f-9d8e-c0c1f955e2b3:Node e679e734-d110-412f-9d8e-c0c1f955e2b3 :: false

deleteSubnodes 1.022s
2023-07-06 22:30:45 |

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

2023-07-06 22:30:45 | ------------------------------------

2023-07-06 22:30:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d7559632-9b69-478b-bf52-6e3d216363b0"
}

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

2023-07-06 22:30:46 | [Mutex] waiting for: [received:nodes:0a6b6320-51eb-459d-8480-ef39a6aca42e:localhost]

2023-07-06 22:30:46 | [Mutex] waiting for: [received:nodes:0a6b6320-51eb-459d-8480-ef39a6aca42e:localhost]

2023-07-06 22:30:46 | [Mutex] waiting for: [received:nodes:0a6b6320-51eb-459d-8480-ef39a6aca42e:localhost]

2023-07-06 22:30:46 | [Mutex] waiting for: [received:nodes:0a6b6320-51eb-459d-8480-ef39a6aca42e:localhost]

2023-07-06 22:30:46 | [Mutex] received everything.

2023-07-06 22:30:46 | [Mutex] isItemNotified: received:node:0a6b6320-51eb-459d-8480-ef39a6aca42e:localhost:node-d7559632-9b69-478b-bf52-6e3d216363b0:Node d7559632-9b69-478b-bf52-6e3d216363b0 :: false

2023-07-06 22:30:46 | [Mutex] waiting for: [received:nodes:ccb071f7-7ff3-41c2-9adf-7cd2c76d39e1:localhost]

2023-07-06 22:30:46 | [Mutex] received everything.

2023-07-06 22:30:46 | [Mutex] isItemNotified: received:node:ccb071f7-7ff3-41c2-9adf-7cd2c76d39e1:localhost:node-d7559632-9b69-478b-bf52-6e3d216363b0:Node d7559632-9b69-478b-bf52-6e3d216363b0 :: false

publishItemsToNodes 0.041s
2023-07-06 22:30:43 |

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

2023-07-06 22:30:43 | ------------------------------------

2023-07-06 22:30:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d7559632-9b69-478b-bf52-6e3d216363b0",
    "entry": "<test>item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b</test>",
    "item-id": "item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b"
}

2023-07-06 22:30:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b"
}

2023-07-06 22:30:43 | [Mutex] received everything.

2023-07-06 22:30:43 | [Mutex] isItemNotified: published:item:notifieditem-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-07-06 22:30:43 |

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

2023-07-06 22:30:43 | ------------------------------------

2023-07-06 22:30:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d7559632-9b69-478b-bf52-6e3d216363b0",
    "item-id": "item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b"
}

2023-07-06 22:30:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b"
}

2023-07-06 22:30:43 | [Mutex] received everything.

2023-07-06 22:30:43 | [Mutex] isItemNotified: retracted:item:notifieditem-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2023-07-06 22:30:43 |

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

2023-07-06 22:30:43 | ------------------------------------

2023-07-06 22:30:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d7559632-9b69-478b-bf52-6e3d216363b0",
    "item-id": "item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b"
}

2023-07-06 22:30:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d7559632-9b69-478b-bf52-6e3d216363b0",
    "item-id": "item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b",
    "item": [
        "<item id=\"item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b\"><test>item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b</test></item>"
    ]
}

2023-07-06 22:30:43 | [Mutex] notify: [retrieved:item:item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b:payload-matches:true:localhost]

2023-07-06 22:30:43 | [Mutex] received everything.

2023-07-06 22:30:43 | [Mutex] isItemNotified: retrieved:item:item-a9003ed7-b4a9-47a0-bb1c-7e51e4417b6b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-06 22:30:43 |

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

2023-07-06 22:30:43 | ------------------------------------

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

2023-07-06 22:30:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d7559632-9b69-478b-bf52-6e3d216363b0",
        "test",
        "node-e679e734-d110-412f-9d8e-c0c1f955e2b3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-07-06 22:30:43 |

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

2023-07-06 22:30:43 | ------------------------------------

2023-07-06 22:30:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d7559632-9b69-478b-bf52-6e3d216363b0)"
}

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

subscribeNodes 1.010s
2023-07-06 22:30:42 |

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

2023-07-06 22:30:42 | ------------------------------------

2023-07-06 22:30:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d7559632-9b69-478b-bf52-6e3d216363b0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2023-07-06 22:30:43 |

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

2023-07-06 22:30:43 | ------------------------------------

2023-07-06 22:30:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d7559632-9b69-478b-bf52-6e3d216363b0",
    "jids": [
        "admin@test-domain.com"
    ]
}

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