Generated by TestNG with ReportNG at 22:17 PDT on Friday 25 August 2023
root@a4d66e74f1de / Java 17.0.8 (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.571s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2023-08-25 22:32:07 |

2023-08-25 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:07 | ------------------------------------

2023-08-25 22:32:07 | [Mutex] waiting for: [configured:node:node-cd7c8770-117c-4f06-94a0-af87ea9ec70b:node-42b5d881-a7f3-43ed-afa8-68c353c3aa15]

2023-08-25 22:32:07 | [Mutex] received everything.

2023-08-25 22:32:07 | [Mutex] isItemNotified: configured:node:node-cd7c8770-117c-4f06-94a0-af87ea9ec70b:node-42b5d881-a7f3-43ed-afa8-68c353c3aa15 :: true

2023-08-25 22:32:08 | [Mutex] waiting for: [received:nodes:eecc09de-34cf-4709-87e2-e6a89c40e0c0:localhost]

2023-08-25 22:32:08 | [Mutex] received everything.

2023-08-25 22:32:08 | [Mutex] isItemNotified: received:node:eecc09de-34cf-4709-87e2-e6a89c40e0c0:localhost:node-cd7c8770-117c-4f06-94a0-af87ea9ec70b:Node cd7c8770-117c-4f06-94a0-af87ea9ec70b :: true

2023-08-25 22:32:08 | [Mutex] waiting for: [received:nodes:a38aadbf-cc29-4c71-af1b-affdc8943446:localhost]

2023-08-25 22:32:08 | [Mutex] waiting for: [received:nodes:a38aadbf-cc29-4c71-af1b-affdc8943446:localhost]

2023-08-25 22:32:08 | [Mutex] waiting for: [received:nodes:a38aadbf-cc29-4c71-af1b-affdc8943446:localhost]

2023-08-25 22:32:08 | [Mutex] waiting for: [received:nodes:a38aadbf-cc29-4c71-af1b-affdc8943446:localhost]

2023-08-25 22:32:08 | [Mutex] received everything.

2023-08-25 22:32:08 | [Mutex] isItemNotified: received:node:a38aadbf-cc29-4c71-af1b-affdc8943446:localhost:node-cd7c8770-117c-4f06-94a0-af87ea9ec70b:Node cd7c8770-117c-4f06-94a0-af87ea9ec70b :: false

createNodes 1.626s
2023-08-25 22:32:05 |

2023-08-25 22:32:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:05 | ------------------------------------

2023-08-25 22:32: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-cd7c8770-117c-4f06-94a0-af87ea9ec70b",
    "pubsub#title": "Node cd7c8770-117c-4f06-94a0-af87ea9ec70b"
}

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

2023-08-25 22:32:06 | [Mutex] waiting for: [received:nodes:34dda297-83ff-4289-95e0-81376742d349:localhost]

2023-08-25 22:32:06 | [Mutex] waiting for: [received:nodes:34dda297-83ff-4289-95e0-81376742d349:localhost]

2023-08-25 22:32:06 | [Mutex] waiting for: [received:nodes:34dda297-83ff-4289-95e0-81376742d349:localhost]

2023-08-25 22:32:06 | [Mutex] received everything.

2023-08-25 22:32:06 | [Mutex] isItemNotified: received:node:34dda297-83ff-4289-95e0-81376742d349:localhost:node-cd7c8770-117c-4f06-94a0-af87ea9ec70b:Node cd7c8770-117c-4f06-94a0-af87ea9ec70b :: true

createSubnodes 1.020s
2023-08-25 22:32:06 |

2023-08-25 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:06 | ------------------------------------

2023-08-25 22:32: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-42b5d881-a7f3-43ed-afa8-68c353c3aa15",
    "pubsub#title": "Node 42b5d881-a7f3-43ed-afa8-68c353c3aa15"
}

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

2023-08-25 22:32:07 | [Mutex] waiting for: [received:nodes:9675cf98-4fb1-4ebc-bc9c-800b2d7f8726:localhost]

2023-08-25 22:32:07 | [Mutex] waiting for: [received:nodes:9675cf98-4fb1-4ebc-bc9c-800b2d7f8726:localhost]

2023-08-25 22:32:07 | [Mutex] waiting for: [received:nodes:9675cf98-4fb1-4ebc-bc9c-800b2d7f8726:localhost]

2023-08-25 22:32:07 | [Mutex] waiting for: [received:nodes:9675cf98-4fb1-4ebc-bc9c-800b2d7f8726:localhost]

2023-08-25 22:32:07 | [Mutex] received everything.

2023-08-25 22:32:07 | [Mutex] isItemNotified: received:node:9675cf98-4fb1-4ebc-bc9c-800b2d7f8726:localhost:node-42b5d881-a7f3-43ed-afa8-68c353c3aa15:Node 42b5d881-a7f3-43ed-afa8-68c353c3aa15 :: true

deleteNodes 1.019s
2023-08-25 22:32:12 |

2023-08-25 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:12 | ------------------------------------

2023-08-25 22:32:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-42b5d881-a7f3-43ed-afa8-68c353c3aa15"
}

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

2023-08-25 22:32:13 | [Mutex] waiting for: [received:nodes:5a027d64-3178-4337-b4d7-7983c6a65547:localhost]

2023-08-25 22:32:13 | [Mutex] waiting for: [received:nodes:5a027d64-3178-4337-b4d7-7983c6a65547:localhost]

2023-08-25 22:32:13 | [Mutex] waiting for: [received:nodes:5a027d64-3178-4337-b4d7-7983c6a65547:localhost]

2023-08-25 22:32:13 | [Mutex] received everything.

2023-08-25 22:32:13 | [Mutex] isItemNotified: received:node:5a027d64-3178-4337-b4d7-7983c6a65547:localhost:node-42b5d881-a7f3-43ed-afa8-68c353c3aa15:Node 42b5d881-a7f3-43ed-afa8-68c353c3aa15 :: false

deleteSubnodes 1.026s
2023-08-25 22:32:11 |

2023-08-25 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:11 | ------------------------------------

2023-08-25 22:32:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cd7c8770-117c-4f06-94a0-af87ea9ec70b"
}

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

2023-08-25 22:32:12 | [Mutex] waiting for: [received:nodes:a29e3063-c6a1-43ea-8601-0ef84e9e734d:localhost]

2023-08-25 22:32:12 | [Mutex] waiting for: [received:nodes:a29e3063-c6a1-43ea-8601-0ef84e9e734d:localhost]

2023-08-25 22:32:12 | [Mutex] waiting for: [received:nodes:a29e3063-c6a1-43ea-8601-0ef84e9e734d:localhost]

2023-08-25 22:32:12 | [Mutex] waiting for: [received:nodes:a29e3063-c6a1-43ea-8601-0ef84e9e734d:localhost]

2023-08-25 22:32:12 | [Mutex] received everything.

2023-08-25 22:32:12 | [Mutex] isItemNotified: received:node:a29e3063-c6a1-43ea-8601-0ef84e9e734d:localhost:node-cd7c8770-117c-4f06-94a0-af87ea9ec70b:Node cd7c8770-117c-4f06-94a0-af87ea9ec70b :: false

2023-08-25 22:32:12 | [Mutex] waiting for: [received:nodes:c06819e8-f987-44c1-9676-608fc1855441:localhost]

2023-08-25 22:32:12 | [Mutex] received everything.

2023-08-25 22:32:12 | [Mutex] isItemNotified: received:node:c06819e8-f987-44c1-9676-608fc1855441:localhost:node-cd7c8770-117c-4f06-94a0-af87ea9ec70b:Node cd7c8770-117c-4f06-94a0-af87ea9ec70b :: false

publishItemsToNodes 0.095s
2023-08-25 22:32:10 |

2023-08-25 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:10 | ------------------------------------

2023-08-25 22:32:10 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cd7c8770-117c-4f06-94a0-af87ea9ec70b",
    "entry": "<test>item-edca8529-cc8f-45fa-a868-ba6785d2cc4d</test>",
    "item-id": "item-edca8529-cc8f-45fa-a868-ba6785d2cc4d"
}

2023-08-25 22:32:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-edca8529-cc8f-45fa-a868-ba6785d2cc4d"
}

2023-08-25 22:32:10 | [Mutex] waiting for: [published:item:notifieditem-edca8529-cc8f-45fa-a868-ba6785d2cc4d:admin@test-domain.com]

2023-08-25 22:32:10 | [Mutex] received everything.

2023-08-25 22:32:10 | [Mutex] isItemNotified: published:item:notifieditem-edca8529-cc8f-45fa-a868-ba6785d2cc4d:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2023-08-25 22:32:10 |

2023-08-25 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:10 | ------------------------------------

2023-08-25 22:32:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cd7c8770-117c-4f06-94a0-af87ea9ec70b",
    "item-id": "item-edca8529-cc8f-45fa-a868-ba6785d2cc4d"
}

2023-08-25 22:32:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-edca8529-cc8f-45fa-a868-ba6785d2cc4d"
}

2023-08-25 22:32:10 | [Mutex] received everything.

2023-08-25 22:32:10 | [Mutex] isItemNotified: retracted:item:notifieditem-edca8529-cc8f-45fa-a868-ba6785d2cc4d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.011s
2023-08-25 22:32:10 |

2023-08-25 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:10 | ------------------------------------

2023-08-25 22:32:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cd7c8770-117c-4f06-94a0-af87ea9ec70b",
    "item-id": "item-edca8529-cc8f-45fa-a868-ba6785d2cc4d"
}

2023-08-25 22:32:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cd7c8770-117c-4f06-94a0-af87ea9ec70b",
    "item-id": "item-edca8529-cc8f-45fa-a868-ba6785d2cc4d",
    "item": [
        "<item id=\"item-edca8529-cc8f-45fa-a868-ba6785d2cc4d\"><test>item-edca8529-cc8f-45fa-a868-ba6785d2cc4d</test></item>"
    ]
}

2023-08-25 22:32:10 | [Mutex] notify: [retrieved:item:item-edca8529-cc8f-45fa-a868-ba6785d2cc4d:payload-matches:true:localhost]

2023-08-25 22:32:10 | [Mutex] received everything.

2023-08-25 22:32:10 | [Mutex] isItemNotified: retrieved:item:item-edca8529-cc8f-45fa-a868-ba6785d2cc4d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2023-08-25 22:32:10 |

2023-08-25 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:10 | ------------------------------------

2023-08-25 22:32:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-08-25 22:32:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-cd7c8770-117c-4f06-94a0-af87ea9ec70b",
        "node-42b5d881-a7f3-43ed-afa8-68c353c3aa15"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-08-25 22:32:10 |

2023-08-25 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:10 | ------------------------------------

2023-08-25 22:32:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cd7c8770-117c-4f06-94a0-af87ea9ec70b)"
}

2023-08-25 22:32:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-08-25 22:32:08 |

2023-08-25 22:32:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:08 | ------------------------------------

2023-08-25 22:32:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cd7c8770-117c-4f06-94a0-af87ea9ec70b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 22:32:09 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.074s
2023-08-25 22:32:10 |

2023-08-25 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-25 22:32:10 | ------------------------------------

2023-08-25 22:32:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cd7c8770-117c-4f06-94a0-af87ea9ec70b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-25 22:32:10 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}