Generated by TestNG with ReportNG at 22:44 PDT on Sunday 09 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.564s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2023-07-09 22:59:34 |

2023-07-09 22:59:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:34 | ------------------------------------

2023-07-09 22:59:34 | [Mutex] waiting for: [configured:node:node-47947434-aef5-4bba-bdd0-19c53b96363d:node-756a7fc7-aa84-409b-b878-aadde7873c4f]

2023-07-09 22:59:34 | [Mutex] received everything.

2023-07-09 22:59:34 | [Mutex] isItemNotified: configured:node:node-47947434-aef5-4bba-bdd0-19c53b96363d:node-756a7fc7-aa84-409b-b878-aadde7873c4f :: true

2023-07-09 22:59:35 | [Mutex] waiting for: [received:nodes:c8018668-c155-4483-8901-c9a8c8e88c6f:localhost]

2023-07-09 22:59:35 | [Mutex] received everything.

2023-07-09 22:59:35 | [Mutex] isItemNotified: received:node:c8018668-c155-4483-8901-c9a8c8e88c6f:localhost:node-47947434-aef5-4bba-bdd0-19c53b96363d:Node 47947434-aef5-4bba-bdd0-19c53b96363d :: true

2023-07-09 22:59:35 | [Mutex] waiting for: [received:nodes:d327d63a-b6f9-432e-a897-0601313aa4fd:localhost]

2023-07-09 22:59:35 | [Mutex] received everything.

2023-07-09 22:59:35 | [Mutex] isItemNotified: received:node:d327d63a-b6f9-432e-a897-0601313aa4fd:localhost:node-47947434-aef5-4bba-bdd0-19c53b96363d:Node 47947434-aef5-4bba-bdd0-19c53b96363d :: false

createNodes 1.606s
2023-07-09 22:59:31 |

2023-07-09 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:31 | ------------------------------------

2023-07-09 22:59:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-47947434-aef5-4bba-bdd0-19c53b96363d",
    "pubsub#title": "Node 47947434-aef5-4bba-bdd0-19c53b96363d"
}

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

2023-07-09 22:59:33 | [Mutex] waiting for: [received:nodes:31a62b96-e4e8-422f-b821-02a430c2dbf5:localhost]

2023-07-09 22:59:33 | [Mutex] waiting for: [received:nodes:31a62b96-e4e8-422f-b821-02a430c2dbf5:localhost]

2023-07-09 22:59:33 | [Mutex] waiting for: [received:nodes:31a62b96-e4e8-422f-b821-02a430c2dbf5:localhost]

2023-07-09 22:59:33 | [Mutex] received everything.

2023-07-09 22:59:33 | [Mutex] isItemNotified: received:node:31a62b96-e4e8-422f-b821-02a430c2dbf5:localhost:node-47947434-aef5-4bba-bdd0-19c53b96363d:Node 47947434-aef5-4bba-bdd0-19c53b96363d :: true

createSubnodes 1.028s
2023-07-09 22:59:33 |

2023-07-09 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:33 | ------------------------------------

2023-07-09 22:59:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-756a7fc7-aa84-409b-b878-aadde7873c4f",
    "pubsub#title": "Node 756a7fc7-aa84-409b-b878-aadde7873c4f"
}

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

2023-07-09 22:59:34 | [Mutex] waiting for: [received:nodes:65ba405e-ddb4-465c-a2fb-118d6fbccd9b:localhost]

2023-07-09 22:59:34 | [Mutex] received everything.

2023-07-09 22:59:34 | [Mutex] isItemNotified: received:node:65ba405e-ddb4-465c-a2fb-118d6fbccd9b:localhost:node-756a7fc7-aa84-409b-b878-aadde7873c4f:Node 756a7fc7-aa84-409b-b878-aadde7873c4f :: true

deleteNodes 1.017s
2023-07-09 22:59:38 |

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

2023-07-09 22:59:38 | ------------------------------------

2023-07-09 22:59:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-756a7fc7-aa84-409b-b878-aadde7873c4f"
}

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

2023-07-09 22:59:39 | [Mutex] waiting for: [received:nodes:6324d042-e21f-4a10-aa18-9998a69740a3:localhost]

2023-07-09 22:59:39 | [Mutex] waiting for: [received:nodes:6324d042-e21f-4a10-aa18-9998a69740a3:localhost]

2023-07-09 22:59:39 | [Mutex] waiting for: [received:nodes:6324d042-e21f-4a10-aa18-9998a69740a3:localhost]

2023-07-09 22:59:39 | [Mutex] received everything.

2023-07-09 22:59:39 | [Mutex] isItemNotified: received:node:6324d042-e21f-4a10-aa18-9998a69740a3:localhost:node-756a7fc7-aa84-409b-b878-aadde7873c4f:Node 756a7fc7-aa84-409b-b878-aadde7873c4f :: false

deleteSubnodes 1.029s
2023-07-09 22:59:37 |

2023-07-09 22:59:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:37 | ------------------------------------

2023-07-09 22:59:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-47947434-aef5-4bba-bdd0-19c53b96363d"
}

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

2023-07-09 22:59:38 | [Mutex] waiting for: [received:nodes:8a3f5b48-b919-4cda-8369-4bfccd8257fc:localhost]

2023-07-09 22:59:38 | [Mutex] received everything.

2023-07-09 22:59:38 | [Mutex] isItemNotified: received:node:8a3f5b48-b919-4cda-8369-4bfccd8257fc:localhost:node-47947434-aef5-4bba-bdd0-19c53b96363d:Node 47947434-aef5-4bba-bdd0-19c53b96363d :: false

2023-07-09 22:59:38 | [Mutex] waiting for: [received:nodes:9fbb20dd-c785-47d0-a454-44183d346d67:localhost]

2023-07-09 22:59:38 | [Mutex] received everything.

2023-07-09 22:59:38 | [Mutex] isItemNotified: received:node:9fbb20dd-c785-47d0-a454-44183d346d67:localhost:node-47947434-aef5-4bba-bdd0-19c53b96363d:Node 47947434-aef5-4bba-bdd0-19c53b96363d :: false

publishItemsToNodes 0.019s
2023-07-09 22:59:36 |

2023-07-09 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:36 | ------------------------------------

2023-07-09 22:59:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-47947434-aef5-4bba-bdd0-19c53b96363d",
    "entry": "<test>item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c</test>",
    "item-id": "item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c"
}

2023-07-09 22:59:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c"
}

2023-07-09 22:59:36 | [Mutex] waiting for: [published:item:notifieditem-415b9ba3-67a2-4e48-ad29-e8d3cb53629c:admin@test-domain.com]

2023-07-09 22:59:36 | [Mutex] received everything.

2023-07-09 22:59:36 | [Mutex] isItemNotified: published:item:notifieditem-415b9ba3-67a2-4e48-ad29-e8d3cb53629c:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2023-07-09 22:59:36 |

2023-07-09 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:36 | ------------------------------------

2023-07-09 22:59:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-47947434-aef5-4bba-bdd0-19c53b96363d",
    "item-id": "item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c"
}

2023-07-09 22:59:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c"
}

2023-07-09 22:59:36 | [Mutex] received everything.

2023-07-09 22:59:36 | [Mutex] isItemNotified: retracted:item:notifieditem-415b9ba3-67a2-4e48-ad29-e8d3cb53629c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.088s
2023-07-09 22:59:36 |

2023-07-09 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:36 | ------------------------------------

2023-07-09 22:59:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-47947434-aef5-4bba-bdd0-19c53b96363d",
    "item-id": "item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c"
}

2023-07-09 22:59:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-47947434-aef5-4bba-bdd0-19c53b96363d",
    "item-id": "item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c",
    "item": [
        "<item id=\"item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c\"><test>item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c</test></item>"
    ]
}

2023-07-09 22:59:36 | [Mutex] notify: [retrieved:item:item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c:payload-matches:true:localhost]

2023-07-09 22:59:36 | [Mutex] received everything.

2023-07-09 22:59:36 | [Mutex] isItemNotified: retrieved:item:item-415b9ba3-67a2-4e48-ad29-e8d3cb53629c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-09 22:59:36 |

2023-07-09 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:36 | ------------------------------------

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

2023-07-09 22:59:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-47947434-aef5-4bba-bdd0-19c53b96363d",
        "test",
        "node-756a7fc7-aa84-409b-b878-aadde7873c4f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-09 22:59:36 |

2023-07-09 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:36 | ------------------------------------

2023-07-09 22:59:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-47947434-aef5-4bba-bdd0-19c53b96363d)"
}

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

subscribeNodes 1.010s
2023-07-09 22:59:35 |

2023-07-09 22:59:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:35 | ------------------------------------

2023-07-09 22:59:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-47947434-aef5-4bba-bdd0-19c53b96363d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.047s
2023-07-09 22:59:36 |

2023-07-09 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-09 22:59:36 | ------------------------------------

2023-07-09 22:59:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-47947434-aef5-4bba-bdd0-19c53b96363d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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