Generated by TestNG with ReportNG at 22:46 PDT on Thursday 23 March 2023
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.533s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2023-03-23 23:00:54 |

2023-03-23 23:00:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:54 | ------------------------------------

2023-03-23 23:00:54 | [Mutex] waiting for: [configured:node:node-84ef5467-e418-484d-bbec-63d4cc332eaf:node-4593e33f-d822-46f2-9df7-4230b20bc96c]

2023-03-23 23:00:54 | [Mutex] received everything.

2023-03-23 23:00:54 | [Mutex] isItemNotified: configured:node:node-84ef5467-e418-484d-bbec-63d4cc332eaf:node-4593e33f-d822-46f2-9df7-4230b20bc96c :: true

2023-03-23 23:00:55 | [Mutex] waiting for: [received:nodes:e79afdaf-ca2b-439e-bcaf-a6055af1ce69:localhost]

2023-03-23 23:00:55 | [Mutex] received everything.

2023-03-23 23:00:55 | [Mutex] isItemNotified: received:node:e79afdaf-ca2b-439e-bcaf-a6055af1ce69:localhost:node-84ef5467-e418-484d-bbec-63d4cc332eaf:Node 84ef5467-e418-484d-bbec-63d4cc332eaf :: true

2023-03-23 23:00:55 | [Mutex] waiting for: [received:nodes:1476ac37-884e-479e-a376-bf0758f712fc:localhost]

2023-03-23 23:00:55 | [Mutex] received everything.

2023-03-23 23:00:55 | [Mutex] isItemNotified: received:node:1476ac37-884e-479e-a376-bf0758f712fc:localhost:node-84ef5467-e418-484d-bbec-63d4cc332eaf:Node 84ef5467-e418-484d-bbec-63d4cc332eaf :: false

createNodes 1.514s
2023-03-23 23:00:52 |

2023-03-23 23:00:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:52 | ------------------------------------

2023-03-23 23:00:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-84ef5467-e418-484d-bbec-63d4cc332eaf",
    "pubsub#title": "Node 84ef5467-e418-484d-bbec-63d4cc332eaf"
}

2023-03-23 23:00:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 23:00:53 | [Mutex] waiting for: [received:nodes:7db6e036-3eac-40d2-9df1-2e25a79a8e7b:localhost]

2023-03-23 23:00:53 | [Mutex] waiting for: [received:nodes:7db6e036-3eac-40d2-9df1-2e25a79a8e7b:localhost]

2023-03-23 23:00:53 | [Mutex] waiting for: [received:nodes:7db6e036-3eac-40d2-9df1-2e25a79a8e7b:localhost]

2023-03-23 23:00:53 | [Mutex] received everything.

2023-03-23 23:00:53 | [Mutex] isItemNotified: received:node:7db6e036-3eac-40d2-9df1-2e25a79a8e7b:localhost:node-84ef5467-e418-484d-bbec-63d4cc332eaf:Node 84ef5467-e418-484d-bbec-63d4cc332eaf :: true

createSubnodes 1.018s
2023-03-23 23:00:53 |

2023-03-23 23:00:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:53 | ------------------------------------

2023-03-23 23:00:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4593e33f-d822-46f2-9df7-4230b20bc96c",
    "pubsub#title": "Node 4593e33f-d822-46f2-9df7-4230b20bc96c"
}

2023-03-23 23:00:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 23:00:54 | [Mutex] waiting for: [received:nodes:9b5457e3-3271-4434-be37-f6d9a343540d:localhost]

2023-03-23 23:00:54 | [Mutex] waiting for: [received:nodes:9b5457e3-3271-4434-be37-f6d9a343540d:localhost]

2023-03-23 23:00:54 | [Mutex] waiting for: [received:nodes:9b5457e3-3271-4434-be37-f6d9a343540d:localhost]

2023-03-23 23:00:54 | [Mutex] waiting for: [received:nodes:9b5457e3-3271-4434-be37-f6d9a343540d:localhost]

2023-03-23 23:00:54 | [Mutex] waiting for: [received:nodes:9b5457e3-3271-4434-be37-f6d9a343540d:localhost]

2023-03-23 23:00:54 | [Mutex] received everything.

2023-03-23 23:00:54 | [Mutex] isItemNotified: received:node:9b5457e3-3271-4434-be37-f6d9a343540d:localhost:node-4593e33f-d822-46f2-9df7-4230b20bc96c:Node 4593e33f-d822-46f2-9df7-4230b20bc96c :: true

deleteNodes 1.023s
2023-03-23 23:00:59 |

2023-03-23 23:00:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:59 | ------------------------------------

2023-03-23 23:00:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4593e33f-d822-46f2-9df7-4230b20bc96c"
}

2023-03-23 23:00:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 23:01:00 | [Mutex] waiting for: [received:nodes:1ed69603-a5a1-48cb-b1eb-d665db2ecf75:localhost]

2023-03-23 23:01:00 | [Mutex] waiting for: [received:nodes:1ed69603-a5a1-48cb-b1eb-d665db2ecf75:localhost]

2023-03-23 23:01:00 | [Mutex] waiting for: [received:nodes:1ed69603-a5a1-48cb-b1eb-d665db2ecf75:localhost]

2023-03-23 23:01:00 | [Mutex] received everything.

2023-03-23 23:01:00 | [Mutex] isItemNotified: received:node:1ed69603-a5a1-48cb-b1eb-d665db2ecf75:localhost:node-4593e33f-d822-46f2-9df7-4230b20bc96c:Node 4593e33f-d822-46f2-9df7-4230b20bc96c :: false

deleteSubnodes 1.022s
2023-03-23 23:00:58 |

2023-03-23 23:00:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:58 | ------------------------------------

2023-03-23 23:00:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-84ef5467-e418-484d-bbec-63d4cc332eaf"
}

2023-03-23 23:00:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 23:00:59 | [Mutex] waiting for: [received:nodes:0cd98e0f-723a-4ab9-b62d-638829b8070f:localhost]

2023-03-23 23:00:59 | [Mutex] waiting for: [received:nodes:0cd98e0f-723a-4ab9-b62d-638829b8070f:localhost]

2023-03-23 23:00:59 | [Mutex] waiting for: [received:nodes:0cd98e0f-723a-4ab9-b62d-638829b8070f:localhost]

2023-03-23 23:00:59 | [Mutex] received everything.

2023-03-23 23:00:59 | [Mutex] isItemNotified: received:node:0cd98e0f-723a-4ab9-b62d-638829b8070f:localhost:node-84ef5467-e418-484d-bbec-63d4cc332eaf:Node 84ef5467-e418-484d-bbec-63d4cc332eaf :: false

2023-03-23 23:00:59 | [Mutex] waiting for: [received:nodes:98d908f4-ff51-492f-8f9f-f056dc77666c:localhost]

2023-03-23 23:00:59 | [Mutex] received everything.

2023-03-23 23:00:59 | [Mutex] isItemNotified: received:node:98d908f4-ff51-492f-8f9f-f056dc77666c:localhost:node-84ef5467-e418-484d-bbec-63d4cc332eaf:Node 84ef5467-e418-484d-bbec-63d4cc332eaf :: false

publishItemsToNodes 0.036s
2023-03-23 23:00:56 |

2023-03-23 23:00:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:56 | ------------------------------------

2023-03-23 23:00:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-84ef5467-e418-484d-bbec-63d4cc332eaf",
    "entry": "<test>item-1266f9bb-6926-4ee0-a4df-d0c7a150e333</test>",
    "item-id": "item-1266f9bb-6926-4ee0-a4df-d0c7a150e333"
}

2023-03-23 23:00:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1266f9bb-6926-4ee0-a4df-d0c7a150e333"
}

2023-03-23 23:00:56 | [Mutex] waiting for: [published:item:notifieditem-1266f9bb-6926-4ee0-a4df-d0c7a150e333:admin@test-domain.com]

2023-03-23 23:00:56 | [Mutex] received everything.

2023-03-23 23:00:56 | [Mutex] isItemNotified: published:item:notifieditem-1266f9bb-6926-4ee0-a4df-d0c7a150e333:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2023-03-23 23:00:56 |

2023-03-23 23:00:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:56 | ------------------------------------

2023-03-23 23:00:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-84ef5467-e418-484d-bbec-63d4cc332eaf",
    "item-id": "item-1266f9bb-6926-4ee0-a4df-d0c7a150e333"
}

2023-03-23 23:00:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1266f9bb-6926-4ee0-a4df-d0c7a150e333"
}

2023-03-23 23:00:57 | [Mutex] received everything.

2023-03-23 23:00:57 | [Mutex] isItemNotified: retracted:item:notifieditem-1266f9bb-6926-4ee0-a4df-d0c7a150e333:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2023-03-23 23:00:56 |

2023-03-23 23:00:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:56 | ------------------------------------

2023-03-23 23:00:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-84ef5467-e418-484d-bbec-63d4cc332eaf",
    "item-id": "item-1266f9bb-6926-4ee0-a4df-d0c7a150e333"
}

2023-03-23 23:00:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-84ef5467-e418-484d-bbec-63d4cc332eaf",
    "item-id": "item-1266f9bb-6926-4ee0-a4df-d0c7a150e333",
    "item": [
        "<item id=\"item-1266f9bb-6926-4ee0-a4df-d0c7a150e333\"><test>item-1266f9bb-6926-4ee0-a4df-d0c7a150e333</test></item>"
    ]
}

2023-03-23 23:00:56 | [Mutex] notify: [retrieved:item:item-1266f9bb-6926-4ee0-a4df-d0c7a150e333:payload-matches:true:localhost]

2023-03-23 23:00:56 | [Mutex] received everything.

2023-03-23 23:00:56 | [Mutex] isItemNotified: retrieved:item:item-1266f9bb-6926-4ee0-a4df-d0c7a150e333:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2023-03-23 23:00:56 |

2023-03-23 23:00:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:56 | ------------------------------------

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

2023-03-23 23:00:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4593e33f-d822-46f2-9df7-4230b20bc96c",
        "node-84ef5467-e418-484d-bbec-63d4cc332eaf"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-03-23 23:00:56 |

2023-03-23 23:00:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:56 | ------------------------------------

2023-03-23 23:00:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-84ef5467-e418-484d-bbec-63d4cc332eaf)"
}

2023-03-23 23:00:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-03-23 23:00:55 |

2023-03-23 23:00:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:55 | ------------------------------------

2023-03-23 23:00:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-84ef5467-e418-484d-bbec-63d4cc332eaf",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-23 23:00:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-03-23 23:00:57 |

2023-03-23 23:00:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 23:00:57 | ------------------------------------

2023-03-23 23:00:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-84ef5467-e418-484d-bbec-63d4cc332eaf",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-23 23:00:57 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}