Generated by TestNG with ReportNG at 22:22 PDT on Thursday 13 October 2022
root@f9c07ffec79b / 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.836s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-10-13 22:36:35 |

2022-10-13 22:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:35 | ------------------------------------

2022-10-13 22:36:35 | [Mutex] waiting for: [configured:node:node-200e4b95-dabd-411a-bed6-20654247f8c0:node-f118c97e-5c4a-47be-84d1-02683bccc96a]

2022-10-13 22:36:35 | [Mutex] received everything.

2022-10-13 22:36:35 | [Mutex] isItemNotified: configured:node:node-200e4b95-dabd-411a-bed6-20654247f8c0:node-f118c97e-5c4a-47be-84d1-02683bccc96a :: true

2022-10-13 22:36:36 | [Mutex] waiting for: [received:nodes:2eff7744-8874-45f0-9d14-36f797555d35:localhost]

2022-10-13 22:36:36 | [Mutex] received everything.

2022-10-13 22:36:36 | [Mutex] isItemNotified: received:node:2eff7744-8874-45f0-9d14-36f797555d35:localhost:node-200e4b95-dabd-411a-bed6-20654247f8c0:Node 200e4b95-dabd-411a-bed6-20654247f8c0 :: true

2022-10-13 22:36:36 | [Mutex] waiting for: [received:nodes:07a8e448-eee3-4ad1-9b22-cc7b3f226e68:localhost]

2022-10-13 22:36:36 | [Mutex] received everything.

2022-10-13 22:36:36 | [Mutex] isItemNotified: received:node:07a8e448-eee3-4ad1-9b22-cc7b3f226e68:localhost:node-200e4b95-dabd-411a-bed6-20654247f8c0:Node 200e4b95-dabd-411a-bed6-20654247f8c0 :: false

createNodes 1.610s
2022-10-13 22:36:32 |

2022-10-13 22:36:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:32 | ------------------------------------

2022-10-13 22:36:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-200e4b95-dabd-411a-bed6-20654247f8c0",
    "pubsub#title": "Node 200e4b95-dabd-411a-bed6-20654247f8c0"
}

2022-10-13 22:36:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-13 22:36:34 | [Mutex] waiting for: [received:nodes:92a732b6-d238-4544-8998-8537f4184cfc:localhost]

2022-10-13 22:36:34 | [Mutex] received everything.

2022-10-13 22:36:34 | [Mutex] isItemNotified: received:node:92a732b6-d238-4544-8998-8537f4184cfc:localhost:node-200e4b95-dabd-411a-bed6-20654247f8c0:Node 200e4b95-dabd-411a-bed6-20654247f8c0 :: true

createSubnodes 1.020s
2022-10-13 22:36:34 |

2022-10-13 22:36:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:34 | ------------------------------------

2022-10-13 22:36:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f118c97e-5c4a-47be-84d1-02683bccc96a",
    "pubsub#title": "Node f118c97e-5c4a-47be-84d1-02683bccc96a"
}

2022-10-13 22:36:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-13 22:36:35 | [Mutex] waiting for: [received:nodes:e8c27940-b854-47c5-95ca-3069e55a63a4:localhost]

2022-10-13 22:36:35 | [Mutex] waiting for: [received:nodes:e8c27940-b854-47c5-95ca-3069e55a63a4:localhost]

2022-10-13 22:36:35 | [Mutex] received everything.

2022-10-13 22:36:35 | [Mutex] isItemNotified: received:node:e8c27940-b854-47c5-95ca-3069e55a63a4:localhost:node-f118c97e-5c4a-47be-84d1-02683bccc96a:Node f118c97e-5c4a-47be-84d1-02683bccc96a :: true

deleteNodes 1.021s
2022-10-13 22:36:39 |

2022-10-13 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:39 | ------------------------------------

2022-10-13 22:36:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f118c97e-5c4a-47be-84d1-02683bccc96a"
}

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

2022-10-13 22:36:40 | [Mutex] waiting for: [received:nodes:613cb14f-5236-401f-bac4-bac0a48f0061:localhost]

2022-10-13 22:36:40 | [Mutex] received everything.

2022-10-13 22:36:40 | [Mutex] isItemNotified: received:node:613cb14f-5236-401f-bac4-bac0a48f0061:localhost:node-f118c97e-5c4a-47be-84d1-02683bccc96a:Node f118c97e-5c4a-47be-84d1-02683bccc96a :: false

deleteSubnodes 1.023s
2022-10-13 22:36:38 |

2022-10-13 22:36:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:38 | ------------------------------------

2022-10-13 22:36:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-200e4b95-dabd-411a-bed6-20654247f8c0"
}

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

2022-10-13 22:36:39 | [Mutex] waiting for: [received:nodes:62474b24-cc1a-44a8-aeda-904110da4895:localhost]

2022-10-13 22:36:39 | [Mutex] received everything.

2022-10-13 22:36:39 | [Mutex] isItemNotified: received:node:62474b24-cc1a-44a8-aeda-904110da4895:localhost:node-200e4b95-dabd-411a-bed6-20654247f8c0:Node 200e4b95-dabd-411a-bed6-20654247f8c0 :: false

2022-10-13 22:36:39 | [Mutex] waiting for: [received:nodes:44ea97d8-d7a4-4848-befa-00a52eb59d6e:localhost]

2022-10-13 22:36:39 | [Mutex] received everything.

2022-10-13 22:36:39 | [Mutex] isItemNotified: received:node:44ea97d8-d7a4-4848-befa-00a52eb59d6e:localhost:node-200e4b95-dabd-411a-bed6-20654247f8c0:Node 200e4b95-dabd-411a-bed6-20654247f8c0 :: false

publishItemsToNodes 0.059s
2022-10-13 22:36:37 |

2022-10-13 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:37 | ------------------------------------

2022-10-13 22:36:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-200e4b95-dabd-411a-bed6-20654247f8c0",
    "entry": "<test>item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1</test>",
    "item-id": "item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1"
}

2022-10-13 22:36:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1"
}

2022-10-13 22:36:37 | [Mutex] received everything.

2022-10-13 22:36:37 | [Mutex] isItemNotified: published:item:notifieditem-6eb31231-1ade-4e9a-aa2e-f258f1e604e1:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2022-10-13 22:36:37 |

2022-10-13 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:37 | ------------------------------------

2022-10-13 22:36:37 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-200e4b95-dabd-411a-bed6-20654247f8c0",
    "item-id": "item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1"
}

2022-10-13 22:36:37 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1"
}

2022-10-13 22:36:37 | [Mutex] received everything.

2022-10-13 22:36:37 | [Mutex] isItemNotified: retracted:item:notifieditem-6eb31231-1ade-4e9a-aa2e-f258f1e604e1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.085s
2022-10-13 22:36:37 |

2022-10-13 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:37 | ------------------------------------

2022-10-13 22:36:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-200e4b95-dabd-411a-bed6-20654247f8c0",
    "item-id": "item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1"
}

2022-10-13 22:36:37 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-200e4b95-dabd-411a-bed6-20654247f8c0",
    "item-id": "item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1",
    "item": [
        "<item id=\"item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1\"><test>item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1</test></item>"
    ]
}

2022-10-13 22:36:37 | [Mutex] notify: [retrieved:item:item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1:payload-matches:true:localhost]

2022-10-13 22:36:37 | [Mutex] received everything.

2022-10-13 22:36:37 | [Mutex] isItemNotified: retrieved:item:item-6eb31231-1ade-4e9a-aa2e-f258f1e604e1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-10-13 22:36:37 |

2022-10-13 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:37 | ------------------------------------

2022-10-13 22:36:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-10-13 22:36:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f118c97e-5c4a-47be-84d1-02683bccc96a",
        "test",
        "node-200e4b95-dabd-411a-bed6-20654247f8c0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-10-13 22:36:37 |

2022-10-13 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:37 | ------------------------------------

2022-10-13 22:36:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-200e4b95-dabd-411a-bed6-20654247f8c0)"
}

2022-10-13 22:36:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-10-13 22:36:36 |

2022-10-13 22:36:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:36 | ------------------------------------

2022-10-13 22:36:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-200e4b95-dabd-411a-bed6-20654247f8c0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-13 22:36:36 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-10-13 22:36:37 |

2022-10-13 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-13 22:36:37 | ------------------------------------

2022-10-13 22:36:37 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-200e4b95-dabd-411a-bed6-20654247f8c0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-13 22:36:37 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}