Generated by TestNG with ReportNG at 22:15 PDT on Sunday 09 July 2023
root@cc7d7fbb25f7 / 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.589s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-07-09 22:30:26 |

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

2023-07-09 22:30:26 | ------------------------------------

2023-07-09 22:30:26 | [Mutex] waiting for: [configured:node:node-9a4337b6-c036-47ab-92e2-e3247e75cffc:node-c24b6b00-7b19-4091-925a-a38bf9d503d1]

2023-07-09 22:30:26 | [Mutex] received everything.

2023-07-09 22:30:26 | [Mutex] isItemNotified: configured:node:node-9a4337b6-c036-47ab-92e2-e3247e75cffc:node-c24b6b00-7b19-4091-925a-a38bf9d503d1 :: true

2023-07-09 22:30:27 | [Mutex] waiting for: [received:nodes:9bb47551-e9f3-4de6-a1aa-c1b6a097945c:localhost]

2023-07-09 22:30:27 | [Mutex] received everything.

2023-07-09 22:30:27 | [Mutex] isItemNotified: received:node:9bb47551-e9f3-4de6-a1aa-c1b6a097945c:localhost:node-9a4337b6-c036-47ab-92e2-e3247e75cffc:Node 9a4337b6-c036-47ab-92e2-e3247e75cffc :: true

2023-07-09 22:30:27 | [Mutex] waiting for: [received:nodes:33bbc4b7-980b-4c43-8d0f-b301b3c62d17:localhost]

2023-07-09 22:30:27 | [Mutex] waiting for: [received:nodes:33bbc4b7-980b-4c43-8d0f-b301b3c62d17:localhost]

2023-07-09 22:30:27 | [Mutex] waiting for: [received:nodes:33bbc4b7-980b-4c43-8d0f-b301b3c62d17:localhost]

2023-07-09 22:30:27 | [Mutex] waiting for: [received:nodes:33bbc4b7-980b-4c43-8d0f-b301b3c62d17:localhost]

2023-07-09 22:30:27 | [Mutex] received everything.

2023-07-09 22:30:27 | [Mutex] isItemNotified: received:node:33bbc4b7-980b-4c43-8d0f-b301b3c62d17:localhost:node-9a4337b6-c036-47ab-92e2-e3247e75cffc:Node 9a4337b6-c036-47ab-92e2-e3247e75cffc :: false

createNodes 1.666s
2023-07-09 22:30:24 |

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

2023-07-09 22:30:24 | ------------------------------------

2023-07-09 22:30:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9a4337b6-c036-47ab-92e2-e3247e75cffc",
    "pubsub#title": "Node 9a4337b6-c036-47ab-92e2-e3247e75cffc"
}

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

2023-07-09 22:30:25 | [Mutex] waiting for: [received:nodes:221efc97-ed70-4ac9-94ac-c804af54202a:localhost]

2023-07-09 22:30:25 | [Mutex] waiting for: [received:nodes:221efc97-ed70-4ac9-94ac-c804af54202a:localhost]

2023-07-09 22:30:25 | [Mutex] waiting for: [received:nodes:221efc97-ed70-4ac9-94ac-c804af54202a:localhost]

2023-07-09 22:30:25 | [Mutex] waiting for: [received:nodes:221efc97-ed70-4ac9-94ac-c804af54202a:localhost]

2023-07-09 22:30:25 | [Mutex] received everything.

2023-07-09 22:30:25 | [Mutex] isItemNotified: received:node:221efc97-ed70-4ac9-94ac-c804af54202a:localhost:node-9a4337b6-c036-47ab-92e2-e3247e75cffc:Node 9a4337b6-c036-47ab-92e2-e3247e75cffc :: true

createSubnodes 1.025s
2023-07-09 22:30:25 |

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

2023-07-09 22:30:25 | ------------------------------------

2023-07-09 22:30:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c24b6b00-7b19-4091-925a-a38bf9d503d1",
    "pubsub#title": "Node c24b6b00-7b19-4091-925a-a38bf9d503d1"
}

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

2023-07-09 22:30:26 | [Mutex] waiting for: [received:nodes:057f36e9-2874-438e-a9e9-8026ac96a0a1:localhost]

2023-07-09 22:30:26 | [Mutex] waiting for: [received:nodes:057f36e9-2874-438e-a9e9-8026ac96a0a1:localhost]

2023-07-09 22:30:26 | [Mutex] waiting for: [received:nodes:057f36e9-2874-438e-a9e9-8026ac96a0a1:localhost]

2023-07-09 22:30:26 | [Mutex] received everything.

2023-07-09 22:30:26 | [Mutex] isItemNotified: received:node:057f36e9-2874-438e-a9e9-8026ac96a0a1:localhost:node-c24b6b00-7b19-4091-925a-a38bf9d503d1:Node c24b6b00-7b19-4091-925a-a38bf9d503d1 :: true

deleteNodes 1.019s
2023-07-09 22:30:31 |

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

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

2023-07-09 22:30:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c24b6b00-7b19-4091-925a-a38bf9d503d1"
}

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

2023-07-09 22:30:32 | [Mutex] waiting for: [received:nodes:59f019cb-ae51-40eb-98e5-fc9bfc94c826:localhost]

2023-07-09 22:30:32 | [Mutex] waiting for: [received:nodes:59f019cb-ae51-40eb-98e5-fc9bfc94c826:localhost]

2023-07-09 22:30:32 | [Mutex] waiting for: [received:nodes:59f019cb-ae51-40eb-98e5-fc9bfc94c826:localhost]

2023-07-09 22:30:32 | [Mutex] received everything.

2023-07-09 22:30:32 | [Mutex] isItemNotified: received:node:59f019cb-ae51-40eb-98e5-fc9bfc94c826:localhost:node-c24b6b00-7b19-4091-925a-a38bf9d503d1:Node c24b6b00-7b19-4091-925a-a38bf9d503d1 :: false

deleteSubnodes 1.025s
2023-07-09 22:30:30 |

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

2023-07-09 22:30:30 | ------------------------------------

2023-07-09 22:30:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9a4337b6-c036-47ab-92e2-e3247e75cffc"
}

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

2023-07-09 22:30:31 | [Mutex] waiting for: [received:nodes:156cf592-8e13-4ea8-836b-84e800d94f14:localhost]

2023-07-09 22:30:31 | [Mutex] waiting for: [received:nodes:156cf592-8e13-4ea8-836b-84e800d94f14:localhost]

2023-07-09 22:30:31 | [Mutex] waiting for: [received:nodes:156cf592-8e13-4ea8-836b-84e800d94f14:localhost]

2023-07-09 22:30:31 | [Mutex] received everything.

2023-07-09 22:30:31 | [Mutex] isItemNotified: received:node:156cf592-8e13-4ea8-836b-84e800d94f14:localhost:node-9a4337b6-c036-47ab-92e2-e3247e75cffc:Node 9a4337b6-c036-47ab-92e2-e3247e75cffc :: false

2023-07-09 22:30:31 | [Mutex] waiting for: [received:nodes:8254c778-12f1-464e-8f0d-518744a669da:localhost]

2023-07-09 22:30:31 | [Mutex] received everything.

2023-07-09 22:30:31 | [Mutex] isItemNotified: received:node:8254c778-12f1-464e-8f0d-518744a669da:localhost:node-9a4337b6-c036-47ab-92e2-e3247e75cffc:Node 9a4337b6-c036-47ab-92e2-e3247e75cffc :: false

publishItemsToNodes 0.036s
2023-07-09 22:30:28 |

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

2023-07-09 22:30:28 | ------------------------------------

2023-07-09 22:30:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9a4337b6-c036-47ab-92e2-e3247e75cffc",
    "entry": "<test>item-02768d9b-c13e-4a7a-b0e2-5a9255416153</test>",
    "item-id": "item-02768d9b-c13e-4a7a-b0e2-5a9255416153"
}

2023-07-09 22:30:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-02768d9b-c13e-4a7a-b0e2-5a9255416153"
}

2023-07-09 22:30:28 | [Mutex] waiting for: [published:item:notifieditem-02768d9b-c13e-4a7a-b0e2-5a9255416153:admin@test-domain.com]

2023-07-09 22:30:28 | [Mutex] received everything.

2023-07-09 22:30:28 | [Mutex] isItemNotified: published:item:notifieditem-02768d9b-c13e-4a7a-b0e2-5a9255416153:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-07-09 22:30:29 |

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

2023-07-09 22:30:29 | ------------------------------------

2023-07-09 22:30:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9a4337b6-c036-47ab-92e2-e3247e75cffc",
    "item-id": "item-02768d9b-c13e-4a7a-b0e2-5a9255416153"
}

2023-07-09 22:30:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-02768d9b-c13e-4a7a-b0e2-5a9255416153"
}

2023-07-09 22:30:29 | [Mutex] received everything.

2023-07-09 22:30:29 | [Mutex] isItemNotified: retracted:item:notifieditem-02768d9b-c13e-4a7a-b0e2-5a9255416153:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2023-07-09 22:30:28 |

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

2023-07-09 22:30:28 | ------------------------------------

2023-07-09 22:30:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9a4337b6-c036-47ab-92e2-e3247e75cffc",
    "item-id": "item-02768d9b-c13e-4a7a-b0e2-5a9255416153"
}

2023-07-09 22:30:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9a4337b6-c036-47ab-92e2-e3247e75cffc",
    "item-id": "item-02768d9b-c13e-4a7a-b0e2-5a9255416153",
    "item": [
        "<item id=\"item-02768d9b-c13e-4a7a-b0e2-5a9255416153\"><test>item-02768d9b-c13e-4a7a-b0e2-5a9255416153</test></item>"
    ]
}

2023-07-09 22:30:28 | [Mutex] notify: [retrieved:item:item-02768d9b-c13e-4a7a-b0e2-5a9255416153:payload-matches:true:localhost]

2023-07-09 22:30:28 | [Mutex] received everything.

2023-07-09 22:30:28 | [Mutex] isItemNotified: retrieved:item:item-02768d9b-c13e-4a7a-b0e2-5a9255416153:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-09 22:30:28 |

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

2023-07-09 22:30:28 | ------------------------------------

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

2023-07-09 22:30:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9a4337b6-c036-47ab-92e2-e3247e75cffc",
        "node-c24b6b00-7b19-4091-925a-a38bf9d503d1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-07-09 22:30:29 |

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

2023-07-09 22:30:29 | ------------------------------------

2023-07-09 22:30:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9a4337b6-c036-47ab-92e2-e3247e75cffc)"
}

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

subscribeNodes 1.014s
2023-07-09 22:30:27 |

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

2023-07-09 22:30:27 | ------------------------------------

2023-07-09 22:30:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9a4337b6-c036-47ab-92e2-e3247e75cffc",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2023-07-09 22:30:29 |

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

2023-07-09 22:30:29 | ------------------------------------

2023-07-09 22:30:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9a4337b6-c036-47ab-92e2-e3247e75cffc",
    "jids": [
        "admin@test-domain.com"
    ]
}

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