Generated by TestNG with ReportNG at 22:35 PDT on Monday 02 May 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.762s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-05-02 22:51:03 |

2022-05-02 22:51:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:03 | ------------------------------------

2022-05-02 22:51:03 | [Mutex] waiting for: [configured:node:node-806e9e2b-d8de-4b74-946a-dfb5c9621332:node-ae93b855-cd88-460a-8cba-0a0870fe76c7]

2022-05-02 22:51:04 | [Mutex] received everything.

2022-05-02 22:51:04 | [Mutex] isItemNotified: configured:node:node-806e9e2b-d8de-4b74-946a-dfb5c9621332:node-ae93b855-cd88-460a-8cba-0a0870fe76c7 :: true

2022-05-02 22:51:05 | [Mutex] waiting for: [received:nodes:3c926c55-f205-4dc9-8c97-ea36f2bab691:localhost]

2022-05-02 22:51:05 | [Mutex] received everything.

2022-05-02 22:51:05 | [Mutex] isItemNotified: received:node:3c926c55-f205-4dc9-8c97-ea36f2bab691:localhost:node-806e9e2b-d8de-4b74-946a-dfb5c9621332:Node 806e9e2b-d8de-4b74-946a-dfb5c9621332 :: true

2022-05-02 22:51:05 | [Mutex] waiting for: [received:nodes:9fc89262-8489-4fd6-90d2-e6f1584c6675:localhost]

2022-05-02 22:51:05 | [Mutex] received everything.

2022-05-02 22:51:05 | [Mutex] isItemNotified: received:node:9fc89262-8489-4fd6-90d2-e6f1584c6675:localhost:node-806e9e2b-d8de-4b74-946a-dfb5c9621332:Node 806e9e2b-d8de-4b74-946a-dfb5c9621332 :: false

createNodes 1.560s
2022-05-02 22:51:01 |

2022-05-02 22:51:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:01 | ------------------------------------

2022-05-02 22:51:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-806e9e2b-d8de-4b74-946a-dfb5c9621332",
    "pubsub#title": "Node 806e9e2b-d8de-4b74-946a-dfb5c9621332"
}

2022-05-02 22:51:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 22:51:02 | [Mutex] waiting for: [received:nodes:e098577a-8807-4904-a125-1466174f4326:localhost]

2022-05-02 22:51:02 | [Mutex] received everything.

2022-05-02 22:51:02 | [Mutex] isItemNotified: received:node:e098577a-8807-4904-a125-1466174f4326:localhost:node-806e9e2b-d8de-4b74-946a-dfb5c9621332:Node 806e9e2b-d8de-4b74-946a-dfb5c9621332 :: true

createSubnodes 1.032s
2022-05-02 22:51:02 |

2022-05-02 22:51:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:02 | ------------------------------------

2022-05-02 22:51:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ae93b855-cd88-460a-8cba-0a0870fe76c7",
    "pubsub#title": "Node ae93b855-cd88-460a-8cba-0a0870fe76c7"
}

2022-05-02 22:51:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 22:51:03 | [Mutex] waiting for: [received:nodes:4f0c00ab-b58e-409d-bbad-5c0b6f80ba80:localhost]

2022-05-02 22:51:03 | [Mutex] received everything.

2022-05-02 22:51:03 | [Mutex] isItemNotified: received:node:4f0c00ab-b58e-409d-bbad-5c0b6f80ba80:localhost:node-ae93b855-cd88-460a-8cba-0a0870fe76c7:Node ae93b855-cd88-460a-8cba-0a0870fe76c7 :: true

deleteNodes 1.029s
2022-05-02 22:51:08 |

2022-05-02 22:51:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:08 | ------------------------------------

2022-05-02 22:51:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ae93b855-cd88-460a-8cba-0a0870fe76c7"
}

2022-05-02 22:51:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 22:51:09 | [Mutex] waiting for: [received:nodes:a079d3e4-e283-4615-88a1-c7ce5d632f3b:localhost]

2022-05-02 22:51:09 | [Mutex] waiting for: [received:nodes:a079d3e4-e283-4615-88a1-c7ce5d632f3b:localhost]

2022-05-02 22:51:09 | [Mutex] received everything.

2022-05-02 22:51:09 | [Mutex] isItemNotified: received:node:a079d3e4-e283-4615-88a1-c7ce5d632f3b:localhost:node-ae93b855-cd88-460a-8cba-0a0870fe76c7:Node ae93b855-cd88-460a-8cba-0a0870fe76c7 :: false

deleteSubnodes 1.029s
2022-05-02 22:51:07 |

2022-05-02 22:51:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:07 | ------------------------------------

2022-05-02 22:51:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-806e9e2b-d8de-4b74-946a-dfb5c9621332"
}

2022-05-02 22:51:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 22:51:08 | [Mutex] waiting for: [received:nodes:b7359726-4b12-4d7b-9f4d-12029dcf6193:localhost]

2022-05-02 22:51:08 | [Mutex] waiting for: [received:nodes:b7359726-4b12-4d7b-9f4d-12029dcf6193:localhost]

2022-05-02 22:51:08 | [Mutex] received everything.

2022-05-02 22:51:08 | [Mutex] isItemNotified: received:node:b7359726-4b12-4d7b-9f4d-12029dcf6193:localhost:node-806e9e2b-d8de-4b74-946a-dfb5c9621332:Node 806e9e2b-d8de-4b74-946a-dfb5c9621332 :: false

2022-05-02 22:51:08 | [Mutex] waiting for: [received:nodes:f622cb4d-9507-41c9-9014-8e7d1abe57e5:localhost]

2022-05-02 22:51:08 | [Mutex] received everything.

2022-05-02 22:51:08 | [Mutex] isItemNotified: received:node:f622cb4d-9507-41c9-9014-8e7d1abe57e5:localhost:node-806e9e2b-d8de-4b74-946a-dfb5c9621332:Node 806e9e2b-d8de-4b74-946a-dfb5c9621332 :: false

publishItemsToNodes 0.064s
2022-05-02 22:51:06 |

2022-05-02 22:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:06 | ------------------------------------

2022-05-02 22:51:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-806e9e2b-d8de-4b74-946a-dfb5c9621332",
    "entry": "<test>item-e1c8804f-4235-424b-ade9-d1d265f83fca</test>",
    "item-id": "item-e1c8804f-4235-424b-ade9-d1d265f83fca"
}

2022-05-02 22:51:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e1c8804f-4235-424b-ade9-d1d265f83fca"
}

2022-05-02 22:51:06 | [Mutex] waiting for: [published:item:notifieditem-e1c8804f-4235-424b-ade9-d1d265f83fca:admin@test-domain.com]

2022-05-02 22:51:06 | [Mutex] received everything.

2022-05-02 22:51:06 | [Mutex] isItemNotified: published:item:notifieditem-e1c8804f-4235-424b-ade9-d1d265f83fca:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-05-02 22:51:06 |

2022-05-02 22:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:06 | ------------------------------------

2022-05-02 22:51:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-806e9e2b-d8de-4b74-946a-dfb5c9621332",
    "item-id": "item-e1c8804f-4235-424b-ade9-d1d265f83fca"
}

2022-05-02 22:51:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e1c8804f-4235-424b-ade9-d1d265f83fca"
}

2022-05-02 22:51:06 | [Mutex] received everything.

2022-05-02 22:51:06 | [Mutex] isItemNotified: retracted:item:notifieditem-e1c8804f-4235-424b-ade9-d1d265f83fca:admin@test-domain.com :: true

retrieveItemsFromNodes 0.041s
2022-05-02 22:51:06 |

2022-05-02 22:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:06 | ------------------------------------

2022-05-02 22:51:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-806e9e2b-d8de-4b74-946a-dfb5c9621332",
    "item-id": "item-e1c8804f-4235-424b-ade9-d1d265f83fca"
}

2022-05-02 22:51:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-806e9e2b-d8de-4b74-946a-dfb5c9621332",
    "item-id": "item-e1c8804f-4235-424b-ade9-d1d265f83fca",
    "item": [
        "<item id=\"item-e1c8804f-4235-424b-ade9-d1d265f83fca\"><test>item-e1c8804f-4235-424b-ade9-d1d265f83fca</test></item>"
    ]
}

2022-05-02 22:51:06 | [Mutex] notify: [retrieved:item:item-e1c8804f-4235-424b-ade9-d1d265f83fca:payload-matches:true:localhost]

2022-05-02 22:51:06 | [Mutex] received everything.

2022-05-02 22:51:06 | [Mutex] isItemNotified: retrieved:item:item-e1c8804f-4235-424b-ade9-d1d265f83fca:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-05-02 22:51:06 |

2022-05-02 22:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:06 | ------------------------------------

2022-05-02 22:51:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-02 22:51:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-806e9e2b-d8de-4b74-946a-dfb5c9621332",
        "node-ae93b855-cd88-460a-8cba-0a0870fe76c7",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-02 22:51:06 |

2022-05-02 22:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:06 | ------------------------------------

2022-05-02 22:51:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-806e9e2b-d8de-4b74-946a-dfb5c9621332)"
}

2022-05-02 22:51:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2022-05-02 22:51:05 |

2022-05-02 22:51:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:05 | ------------------------------------

2022-05-02 22:51:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-806e9e2b-d8de-4b74-946a-dfb5c9621332",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-02 22:51:05 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-05-02 22:51:06 |

2022-05-02 22:51:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 22:51:06 | ------------------------------------

2022-05-02 22:51:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-806e9e2b-d8de-4b74-946a-dfb5c9621332",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-02 22:51:06 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}