Generated by TestNG with ReportNG at 22:46 PDT on Wednesday 26 May 2021
root@b2c2a8eba6e6 / 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 : 8.933s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-05-26 23:01:11 |

2021-05-26 23:01:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:11 | ------------------------------------

2021-05-26 23:01:11 | [Mutex] waiting for: [configured:node:node-1a1015a0-ecee-4e48-935a-b42cc591b310:node-b3b3cc15-36ba-4514-a450-13d0a77f644b]

2021-05-26 23:01:11 | [Mutex] received everything.

2021-05-26 23:01:11 | [Mutex] isItemNotified: configured:node:node-1a1015a0-ecee-4e48-935a-b42cc591b310:node-b3b3cc15-36ba-4514-a450-13d0a77f644b :: true

2021-05-26 23:01:12 | [Mutex] waiting for: [received:nodes:e5e59f25-f584-46b4-ad0d-e9185d8c3ce4:localhost]

2021-05-26 23:01:12 | [Mutex] received everything.

2021-05-26 23:01:12 | [Mutex] isItemNotified: received:node:e5e59f25-f584-46b4-ad0d-e9185d8c3ce4:localhost:node-1a1015a0-ecee-4e48-935a-b42cc591b310:Node 1a1015a0-ecee-4e48-935a-b42cc591b310 :: true

2021-05-26 23:01:12 | [Mutex] waiting for: [received:nodes:c23e2030-a5f7-4c08-8d9d-75372477a1a1:localhost]

2021-05-26 23:01:12 | [Mutex] waiting for: [received:nodes:c23e2030-a5f7-4c08-8d9d-75372477a1a1:localhost]

2021-05-26 23:01:12 | [Mutex] received everything.

2021-05-26 23:01:12 | [Mutex] isItemNotified: received:node:c23e2030-a5f7-4c08-8d9d-75372477a1a1:localhost:node-1a1015a0-ecee-4e48-935a-b42cc591b310:Node 1a1015a0-ecee-4e48-935a-b42cc591b310 :: false

createNodes 1.553s
2021-05-26 23:01:08 |

2021-05-26 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:08 | ------------------------------------

2021-05-26 23:01:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1a1015a0-ecee-4e48-935a-b42cc591b310",
    "pubsub#title": "Node 1a1015a0-ecee-4e48-935a-b42cc591b310"
}

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

2021-05-26 23:01:10 | [Mutex] waiting for: [received:nodes:0a73b532-cfed-436a-b212-bf152aabb2dd:localhost]

2021-05-26 23:01:10 | [Mutex] received everything.

2021-05-26 23:01:10 | [Mutex] isItemNotified: received:node:0a73b532-cfed-436a-b212-bf152aabb2dd:localhost:node-1a1015a0-ecee-4e48-935a-b42cc591b310:Node 1a1015a0-ecee-4e48-935a-b42cc591b310 :: true

createSubnodes 1.027s
2021-05-26 23:01:10 |

2021-05-26 23:01:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:10 | ------------------------------------

2021-05-26 23:01:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b3b3cc15-36ba-4514-a450-13d0a77f644b",
    "pubsub#title": "Node b3b3cc15-36ba-4514-a450-13d0a77f644b"
}

2021-05-26 23:01:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-26 23:01:11 | [Mutex] waiting for: [received:nodes:ebfdb779-a47f-473b-8e80-a6cc12c8b8a5:localhost]

2021-05-26 23:01:11 | [Mutex] received everything.

2021-05-26 23:01:11 | [Mutex] isItemNotified: received:node:ebfdb779-a47f-473b-8e80-a6cc12c8b8a5:localhost:node-b3b3cc15-36ba-4514-a450-13d0a77f644b:Node b3b3cc15-36ba-4514-a450-13d0a77f644b :: true

deleteNodes 1.033s
2021-05-26 23:01:15 |

2021-05-26 23:01:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:15 | ------------------------------------

2021-05-26 23:01:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b3b3cc15-36ba-4514-a450-13d0a77f644b"
}

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

2021-05-26 23:01:16 | [Mutex] waiting for: [received:nodes:7372a6c4-8aa7-4222-9943-10a06b009dd7:localhost]

2021-05-26 23:01:16 | [Mutex] received everything.

2021-05-26 23:01:16 | [Mutex] isItemNotified: received:node:7372a6c4-8aa7-4222-9943-10a06b009dd7:localhost:node-b3b3cc15-36ba-4514-a450-13d0a77f644b:Node b3b3cc15-36ba-4514-a450-13d0a77f644b :: false

deleteSubnodes 1.027s
2021-05-26 23:01:14 |

2021-05-26 23:01:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:14 | ------------------------------------

2021-05-26 23:01:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1a1015a0-ecee-4e48-935a-b42cc591b310"
}

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

2021-05-26 23:01:15 | [Mutex] waiting for: [received:nodes:3b8790ba-a6e9-488d-972c-097be7bceff2:localhost]

2021-05-26 23:01:15 | [Mutex] received everything.

2021-05-26 23:01:15 | [Mutex] isItemNotified: received:node:3b8790ba-a6e9-488d-972c-097be7bceff2:localhost:node-1a1015a0-ecee-4e48-935a-b42cc591b310:Node 1a1015a0-ecee-4e48-935a-b42cc591b310 :: false

2021-05-26 23:01:15 | [Mutex] waiting for: [received:nodes:4df1b7b0-9b73-4024-a106-e5aadebef023:localhost]

2021-05-26 23:01:15 | [Mutex] received everything.

2021-05-26 23:01:15 | [Mutex] isItemNotified: received:node:4df1b7b0-9b73-4024-a106-e5aadebef023:localhost:node-1a1015a0-ecee-4e48-935a-b42cc591b310:Node 1a1015a0-ecee-4e48-935a-b42cc591b310 :: false

publishItemsToNodes 0.073s
2021-05-26 23:01:13 |

2021-05-26 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:13 | ------------------------------------

2021-05-26 23:01:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1a1015a0-ecee-4e48-935a-b42cc591b310",
    "entry": "<test>item-41844380-98b4-4d34-b270-1b50829c2027</test>",
    "item-id": "item-41844380-98b4-4d34-b270-1b50829c2027"
}

2021-05-26 23:01:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-41844380-98b4-4d34-b270-1b50829c2027"
}

2021-05-26 23:01:13 | [Mutex] waiting for: [published:item:notifieditem-41844380-98b4-4d34-b270-1b50829c2027:admin@test-domain.com]

2021-05-26 23:01:13 | [Mutex] received everything.

2021-05-26 23:01:13 | [Mutex] isItemNotified: published:item:notifieditem-41844380-98b4-4d34-b270-1b50829c2027:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2021-05-26 23:01:13 |

2021-05-26 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:13 | ------------------------------------

2021-05-26 23:01:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1a1015a0-ecee-4e48-935a-b42cc591b310",
    "item-id": "item-41844380-98b4-4d34-b270-1b50829c2027"
}

2021-05-26 23:01:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-41844380-98b4-4d34-b270-1b50829c2027"
}

2021-05-26 23:01:13 | [Mutex] waiting for: [retracted:item:notifieditem-41844380-98b4-4d34-b270-1b50829c2027:admin@test-domain.com]

2021-05-26 23:01:13 | [Mutex] received everything.

2021-05-26 23:01:13 | [Mutex] isItemNotified: retracted:item:notifieditem-41844380-98b4-4d34-b270-1b50829c2027:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2021-05-26 23:01:13 |

2021-05-26 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:13 | ------------------------------------

2021-05-26 23:01:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1a1015a0-ecee-4e48-935a-b42cc591b310",
    "item-id": "item-41844380-98b4-4d34-b270-1b50829c2027"
}

2021-05-26 23:01:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1a1015a0-ecee-4e48-935a-b42cc591b310",
    "item-id": "item-41844380-98b4-4d34-b270-1b50829c2027",
    "item": [
        "<item id=\"item-41844380-98b4-4d34-b270-1b50829c2027\"><test>item-41844380-98b4-4d34-b270-1b50829c2027</test></item>"
    ]
}

2021-05-26 23:01:13 | [Mutex] notify: [retrieved:item:item-41844380-98b4-4d34-b270-1b50829c2027:payload-matches:true:localhost]

2021-05-26 23:01:13 | [Mutex] received everything.

2021-05-26 23:01:13 | [Mutex] isItemNotified: retrieved:item:item-41844380-98b4-4d34-b270-1b50829c2027:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2021-05-26 23:01:13 |

2021-05-26 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:13 | ------------------------------------

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

2021-05-26 23:01:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1a1015a0-ecee-4e48-935a-b42cc591b310",
        "test",
        "node-b3b3cc15-36ba-4514-a450-13d0a77f644b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-26 23:01:13 |

2021-05-26 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:13 | ------------------------------------

2021-05-26 23:01:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1a1015a0-ecee-4e48-935a-b42cc591b310)"
}

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

subscribeNodes 1.015s
2021-05-26 23:01:12 |

2021-05-26 23:01:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:12 | ------------------------------------

2021-05-26 23:01:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1a1015a0-ecee-4e48-935a-b42cc591b310",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-26 23:01:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.086s
2021-05-26 23:01:13 |

2021-05-26 23:01:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 23:01:13 | ------------------------------------

2021-05-26 23:01:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1a1015a0-ecee-4e48-935a-b42cc591b310",
    "jids": [
        "admin@test-domain.com"
    ]
}

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