Generated by TestNG with ReportNG at 22:31 PDT on Monday 11 July 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.751s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2022-07-11 22:46:06 |

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

2022-07-11 22:46:06 | ------------------------------------

2022-07-11 22:46:06 | [Mutex] waiting for: [configured:node:node-718cf250-f037-4716-acc0-bfe12a3bf26f:node-5c297d0d-1550-4567-b86a-acfa9ed5b4b6]

2022-07-11 22:46:06 | [Mutex] received everything.

2022-07-11 22:46:06 | [Mutex] isItemNotified: configured:node:node-718cf250-f037-4716-acc0-bfe12a3bf26f:node-5c297d0d-1550-4567-b86a-acfa9ed5b4b6 :: true

2022-07-11 22:46:07 | [Mutex] waiting for: [received:nodes:2f80b429-2184-41b4-a03d-d4148012ee02:localhost]

2022-07-11 22:46:07 | [Mutex] received everything.

2022-07-11 22:46:07 | [Mutex] isItemNotified: received:node:2f80b429-2184-41b4-a03d-d4148012ee02:localhost:node-718cf250-f037-4716-acc0-bfe12a3bf26f:Node 718cf250-f037-4716-acc0-bfe12a3bf26f :: true

2022-07-11 22:46:07 | [Mutex] waiting for: [received:nodes:12323f37-ea55-45be-b43c-936afdb32b1f:localhost]

2022-07-11 22:46:07 | [Mutex] received everything.

2022-07-11 22:46:07 | [Mutex] isItemNotified: received:node:12323f37-ea55-45be-b43c-936afdb32b1f:localhost:node-718cf250-f037-4716-acc0-bfe12a3bf26f:Node 718cf250-f037-4716-acc0-bfe12a3bf26f :: false

createNodes 1.653s
2022-07-11 22:46:03 |

2022-07-11 22:46:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:03 | ------------------------------------

2022-07-11 22:46:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-718cf250-f037-4716-acc0-bfe12a3bf26f",
    "pubsub#title": "Node 718cf250-f037-4716-acc0-bfe12a3bf26f"
}

2022-07-11 22:46:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-11 22:46:05 | [Mutex] waiting for: [received:nodes:f74aa21d-97ba-4f68-85b9-246f6bfbec7c:localhost]

2022-07-11 22:46:05 | [Mutex] waiting for: [received:nodes:f74aa21d-97ba-4f68-85b9-246f6bfbec7c:localhost]

2022-07-11 22:46:05 | [Mutex] received everything.

2022-07-11 22:46:05 | [Mutex] isItemNotified: received:node:f74aa21d-97ba-4f68-85b9-246f6bfbec7c:localhost:node-718cf250-f037-4716-acc0-bfe12a3bf26f:Node 718cf250-f037-4716-acc0-bfe12a3bf26f :: true

createSubnodes 1.034s
2022-07-11 22:46:05 |

2022-07-11 22:46:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:05 | ------------------------------------

2022-07-11 22:46:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5c297d0d-1550-4567-b86a-acfa9ed5b4b6",
    "pubsub#title": "Node 5c297d0d-1550-4567-b86a-acfa9ed5b4b6"
}

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

2022-07-11 22:46:06 | [Mutex] waiting for: [received:nodes:f4d77ac5-90e0-463f-990a-a054c41704c4:localhost]

2022-07-11 22:46:06 | [Mutex] waiting for: [received:nodes:f4d77ac5-90e0-463f-990a-a054c41704c4:localhost]

2022-07-11 22:46:06 | [Mutex] received everything.

2022-07-11 22:46:06 | [Mutex] isItemNotified: received:node:f4d77ac5-90e0-463f-990a-a054c41704c4:localhost:node-5c297d0d-1550-4567-b86a-acfa9ed5b4b6:Node 5c297d0d-1550-4567-b86a-acfa9ed5b4b6 :: true

deleteNodes 1.024s
2022-07-11 22:46:11 |

2022-07-11 22:46:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:11 | ------------------------------------

2022-07-11 22:46:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5c297d0d-1550-4567-b86a-acfa9ed5b4b6"
}

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

2022-07-11 22:46:12 | [Mutex] waiting for: [received:nodes:12d824b3-1708-476f-955e-003d323c0691:localhost]

2022-07-11 22:46:12 | [Mutex] waiting for: [received:nodes:12d824b3-1708-476f-955e-003d323c0691:localhost]

2022-07-11 22:46:12 | [Mutex] received everything.

2022-07-11 22:46:12 | [Mutex] isItemNotified: received:node:12d824b3-1708-476f-955e-003d323c0691:localhost:node-5c297d0d-1550-4567-b86a-acfa9ed5b4b6:Node 5c297d0d-1550-4567-b86a-acfa9ed5b4b6 :: false

deleteSubnodes 1.031s
2022-07-11 22:46:10 |

2022-07-11 22:46:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:10 | ------------------------------------

2022-07-11 22:46:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-718cf250-f037-4716-acc0-bfe12a3bf26f"
}

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

2022-07-11 22:46:11 | [Mutex] waiting for: [received:nodes:99ca63f8-a2bd-4c09-af42-b30ef5291524:localhost]

2022-07-11 22:46:11 | [Mutex] received everything.

2022-07-11 22:46:11 | [Mutex] isItemNotified: received:node:99ca63f8-a2bd-4c09-af42-b30ef5291524:localhost:node-718cf250-f037-4716-acc0-bfe12a3bf26f:Node 718cf250-f037-4716-acc0-bfe12a3bf26f :: false

2022-07-11 22:46:11 | [Mutex] waiting for: [received:nodes:0209d56f-758e-4a95-8c8f-398fffe37f93:localhost]

2022-07-11 22:46:11 | [Mutex] received everything.

2022-07-11 22:46:11 | [Mutex] isItemNotified: received:node:0209d56f-758e-4a95-8c8f-398fffe37f93:localhost:node-718cf250-f037-4716-acc0-bfe12a3bf26f:Node 718cf250-f037-4716-acc0-bfe12a3bf26f :: false

publishItemsToNodes 0.057s
2022-07-11 22:46:08 |

2022-07-11 22:46:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:08 | ------------------------------------

2022-07-11 22:46:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-718cf250-f037-4716-acc0-bfe12a3bf26f",
    "entry": "<test>item-f2004332-6d8d-4380-82bb-8515d903ea09</test>",
    "item-id": "item-f2004332-6d8d-4380-82bb-8515d903ea09"
}

2022-07-11 22:46:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2004332-6d8d-4380-82bb-8515d903ea09"
}

2022-07-11 22:46:08 | [Mutex] waiting for: [published:item:notifieditem-f2004332-6d8d-4380-82bb-8515d903ea09:admin@test-domain.com]

2022-07-11 22:46:08 | [Mutex] received everything.

2022-07-11 22:46:08 | [Mutex] isItemNotified: published:item:notifieditem-f2004332-6d8d-4380-82bb-8515d903ea09:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-07-11 22:46:08 |

2022-07-11 22:46:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:08 | ------------------------------------

2022-07-11 22:46:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-718cf250-f037-4716-acc0-bfe12a3bf26f",
    "item-id": "item-f2004332-6d8d-4380-82bb-8515d903ea09"
}

2022-07-11 22:46:09 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2004332-6d8d-4380-82bb-8515d903ea09"
}

2022-07-11 22:46:09 | [Mutex] received everything.

2022-07-11 22:46:09 | [Mutex] isItemNotified: retracted:item:notifieditem-f2004332-6d8d-4380-82bb-8515d903ea09:admin@test-domain.com :: true

retrieveItemsFromNodes 0.045s
2022-07-11 22:46:08 |

2022-07-11 22:46:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:08 | ------------------------------------

2022-07-11 22:46:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-718cf250-f037-4716-acc0-bfe12a3bf26f",
    "item-id": "item-f2004332-6d8d-4380-82bb-8515d903ea09"
}

2022-07-11 22:46:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-718cf250-f037-4716-acc0-bfe12a3bf26f",
    "item-id": "item-f2004332-6d8d-4380-82bb-8515d903ea09",
    "item": [
        "<item id=\"item-f2004332-6d8d-4380-82bb-8515d903ea09\"><test>item-f2004332-6d8d-4380-82bb-8515d903ea09</test></item>"
    ]
}

2022-07-11 22:46:08 | [Mutex] notify: [retrieved:item:item-f2004332-6d8d-4380-82bb-8515d903ea09:payload-matches:true:localhost]

2022-07-11 22:46:08 | [Mutex] received everything.

2022-07-11 22:46:08 | [Mutex] isItemNotified: retrieved:item:item-f2004332-6d8d-4380-82bb-8515d903ea09:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-07-11 22:46:08 |

2022-07-11 22:46:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:08 | ------------------------------------

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

2022-07-11 22:46:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-718cf250-f037-4716-acc0-bfe12a3bf26f",
        "node-5c297d0d-1550-4567-b86a-acfa9ed5b4b6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.059s
2022-07-11 22:46:08 |

2022-07-11 22:46:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:08 | ------------------------------------

2022-07-11 22:46:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-718cf250-f037-4716-acc0-bfe12a3bf26f)"
}

2022-07-11 22:46:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-07-11 22:46:07 |

2022-07-11 22:46:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:07 | ------------------------------------

2022-07-11 22:46:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-718cf250-f037-4716-acc0-bfe12a3bf26f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-11 22:46:07 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-07-11 22:46:09 |

2022-07-11 22:46:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-11 22:46:09 | ------------------------------------

2022-07-11 22:46:09 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-718cf250-f037-4716-acc0-bfe12a3bf26f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-11 22:46:09 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}