Generated by TestNG with ReportNG at 22:43 PDT on Friday 14 May 2021
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / 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 : 9.117s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2021-05-14 22:59:10 |

2021-05-14 22:59:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:10 | ------------------------------------

2021-05-14 22:59:10 | [Mutex] waiting for: [configured:node:node-75721b66-41e0-44a6-b41d-982eaef096b1:node-1d7d47ea-3f00-4c0c-90f7-525f48f02c04]

2021-05-14 22:59:10 | [Mutex] received everything.

2021-05-14 22:59:10 | [Mutex] isItemNotified: configured:node:node-75721b66-41e0-44a6-b41d-982eaef096b1:node-1d7d47ea-3f00-4c0c-90f7-525f48f02c04 :: true

2021-05-14 22:59:11 | [Mutex] waiting for: [received:nodes:6d699e3c-f6d2-437f-a248-a2602ac5d18d:localhost]

2021-05-14 22:59:11 | [Mutex] received everything.

2021-05-14 22:59:11 | [Mutex] isItemNotified: received:node:6d699e3c-f6d2-437f-a248-a2602ac5d18d:localhost:node-75721b66-41e0-44a6-b41d-982eaef096b1:Node 75721b66-41e0-44a6-b41d-982eaef096b1 :: true

2021-05-14 22:59:11 | [Mutex] waiting for: [received:nodes:ed971ed5-1f74-4d9f-846b-d5aa36f1d845:localhost]

2021-05-14 22:59:11 | [Mutex] received everything.

2021-05-14 22:59:11 | [Mutex] isItemNotified: received:node:ed971ed5-1f74-4d9f-846b-d5aa36f1d845:localhost:node-75721b66-41e0-44a6-b41d-982eaef096b1:Node 75721b66-41e0-44a6-b41d-982eaef096b1 :: false

createNodes 1.681s
2021-05-14 22:59:08 |

2021-05-14 22:59:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:08 | ------------------------------------

2021-05-14 22:59:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-75721b66-41e0-44a6-b41d-982eaef096b1",
    "pubsub#title": "Node 75721b66-41e0-44a6-b41d-982eaef096b1"
}

2021-05-14 22:59:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-14 22:59:09 | [Mutex] waiting for: [received:nodes:770945c5-c385-4257-a034-20e451cb16c1:localhost]

2021-05-14 22:59:09 | [Mutex] received everything.

2021-05-14 22:59:09 | [Mutex] isItemNotified: received:node:770945c5-c385-4257-a034-20e451cb16c1:localhost:node-75721b66-41e0-44a6-b41d-982eaef096b1:Node 75721b66-41e0-44a6-b41d-982eaef096b1 :: true

createSubnodes 1.037s
2021-05-14 22:59:09 |

2021-05-14 22:59:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:09 | ------------------------------------

2021-05-14 22:59:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1d7d47ea-3f00-4c0c-90f7-525f48f02c04",
    "pubsub#title": "Node 1d7d47ea-3f00-4c0c-90f7-525f48f02c04"
}

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

2021-05-14 22:59:10 | [Mutex] waiting for: [received:nodes:f70ba9d5-3756-4c03-a1d4-92f3e8d58916:localhost]

2021-05-14 22:59:10 | [Mutex] received everything.

2021-05-14 22:59:10 | [Mutex] isItemNotified: received:node:f70ba9d5-3756-4c03-a1d4-92f3e8d58916:localhost:node-1d7d47ea-3f00-4c0c-90f7-525f48f02c04:Node 1d7d47ea-3f00-4c0c-90f7-525f48f02c04 :: true

deleteNodes 1.033s
2021-05-14 22:59:15 |

2021-05-14 22:59:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:15 | ------------------------------------

2021-05-14 22:59:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1d7d47ea-3f00-4c0c-90f7-525f48f02c04"
}

2021-05-14 22:59:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-14 22:59:16 | [Mutex] waiting for: [received:nodes:5ebbce29-0bac-47ae-a6e3-c635bac1e46c:localhost]

2021-05-14 22:59:16 | [Mutex] received everything.

2021-05-14 22:59:16 | [Mutex] isItemNotified: received:node:5ebbce29-0bac-47ae-a6e3-c635bac1e46c:localhost:node-1d7d47ea-3f00-4c0c-90f7-525f48f02c04:Node 1d7d47ea-3f00-4c0c-90f7-525f48f02c04 :: false

deleteSubnodes 1.047s
2021-05-14 22:59:14 |

2021-05-14 22:59:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:14 | ------------------------------------

2021-05-14 22:59:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-75721b66-41e0-44a6-b41d-982eaef096b1"
}

2021-05-14 22:59:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-14 22:59:15 | [Mutex] waiting for: [received:nodes:27cfa9db-4819-42e5-9d2e-4f81e6af6f1f:localhost]

2021-05-14 22:59:15 | [Mutex] received everything.

2021-05-14 22:59:15 | [Mutex] isItemNotified: received:node:27cfa9db-4819-42e5-9d2e-4f81e6af6f1f:localhost:node-75721b66-41e0-44a6-b41d-982eaef096b1:Node 75721b66-41e0-44a6-b41d-982eaef096b1 :: false

2021-05-14 22:59:15 | [Mutex] waiting for: [received:nodes:961a48f4-d4f6-4f16-aa6b-74af01253099:localhost]

2021-05-14 22:59:15 | [Mutex] received everything.

2021-05-14 22:59:15 | [Mutex] isItemNotified: received:node:961a48f4-d4f6-4f16-aa6b-74af01253099:localhost:node-75721b66-41e0-44a6-b41d-982eaef096b1:Node 75721b66-41e0-44a6-b41d-982eaef096b1 :: false

publishItemsToNodes 0.051s
2021-05-14 22:59:12 |

2021-05-14 22:59:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:12 | ------------------------------------

2021-05-14 22:59:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-75721b66-41e0-44a6-b41d-982eaef096b1",
    "entry": "<test>item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2</test>",
    "item-id": "item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2"
}

2021-05-14 22:59:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2"
}

2021-05-14 22:59:12 | [Mutex] waiting for: [published:item:notifieditem-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2:admin@test-domain.com]

2021-05-14 22:59:12 | [Mutex] received everything.

2021-05-14 22:59:12 | [Mutex] isItemNotified: published:item:notifieditem-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2:admin@test-domain.com :: true

retractItemsFromNodes 0.122s
2021-05-14 22:59:13 |

2021-05-14 22:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:13 | ------------------------------------

2021-05-14 22:59:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-75721b66-41e0-44a6-b41d-982eaef096b1",
    "item-id": "item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2"
}

2021-05-14 22:59:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2"
}

2021-05-14 22:59:13 | [Mutex] waiting for: [retracted:item:notifieditem-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2:admin@test-domain.com]

2021-05-14 22:59:13 | [Mutex] received everything.

2021-05-14 22:59:13 | [Mutex] isItemNotified: retracted:item:notifieditem-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2021-05-14 22:59:12 |

2021-05-14 22:59:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:12 | ------------------------------------

2021-05-14 22:59:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-75721b66-41e0-44a6-b41d-982eaef096b1",
    "item-id": "item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2"
}

2021-05-14 22:59:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-75721b66-41e0-44a6-b41d-982eaef096b1",
    "item-id": "item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2",
    "item": [
        "<item id=\"item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2\"><test>item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2</test></item>"
    ]
}

2021-05-14 22:59:13 | [Mutex] notify: [retrieved:item:item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2:payload-matches:true:localhost]

2021-05-14 22:59:13 | [Mutex] received everything.

2021-05-14 22:59:13 | [Mutex] isItemNotified: retrieved:item:item-aa6fdb4c-eab6-4ef6-a78e-5f8bcfb5bba2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-05-14 22:59:13 |

2021-05-14 22:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:13 | ------------------------------------

2021-05-14 22:59:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-14 22:59:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1d7d47ea-3f00-4c0c-90f7-525f48f02c04",
        "node-75721b66-41e0-44a6-b41d-982eaef096b1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-05-14 22:59:13 |

2021-05-14 22:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:13 | ------------------------------------

2021-05-14 22:59:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-75721b66-41e0-44a6-b41d-982eaef096b1)"
}

2021-05-14 22:59:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-05-14 22:59:11 |

2021-05-14 22:59:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:11 | ------------------------------------

2021-05-14 22:59:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-75721b66-41e0-44a6-b41d-982eaef096b1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-14 22:59:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2021-05-14 22:59:13 |

2021-05-14 22:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 22:59:13 | ------------------------------------

2021-05-14 22:59:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-75721b66-41e0-44a6-b41d-982eaef096b1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-14 22:59:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}