Generated by TestNG with ReportNG at 03:48 PST on Friday 05 March 2021
root@eaa73862192b / 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.879s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2021-03-05 04:03:04 |

2021-03-05 04:03:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:04 | ------------------------------------

2021-03-05 04:03:04 | [Mutex] waiting for: [configured:node:node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6:node-ffeba37b-4820-4d20-b0ae-c54b068c6df9]

2021-03-05 04:03:04 | [Mutex] received everything.

2021-03-05 04:03:04 | [Mutex] isItemNotified: configured:node:node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6:node-ffeba37b-4820-4d20-b0ae-c54b068c6df9 :: true

2021-03-05 04:03:05 | [Mutex] waiting for: [received:nodes:b0c766c0-f3fe-4c99-af76-40a78bd351ec:localhost]

2021-03-05 04:03:05 | [Mutex] received everything.

2021-03-05 04:03:05 | [Mutex] isItemNotified: received:node:b0c766c0-f3fe-4c99-af76-40a78bd351ec:localhost:node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6:Node 4156f4d6-15f6-4d85-a29e-f49a06ae3fa6 :: true

2021-03-05 04:03:05 | [Mutex] waiting for: [received:nodes:ed4bf585-5487-4c6e-9eaf-c79ba3033b3d:localhost]

2021-03-05 04:03:05 | [Mutex] waiting for: [received:nodes:ed4bf585-5487-4c6e-9eaf-c79ba3033b3d:localhost]

2021-03-05 04:03:05 | [Mutex] received everything.

2021-03-05 04:03:05 | [Mutex] isItemNotified: received:node:ed4bf585-5487-4c6e-9eaf-c79ba3033b3d:localhost:node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6:Node 4156f4d6-15f6-4d85-a29e-f49a06ae3fa6 :: false

createNodes 1.571s
2021-03-05 04:03:01 |

2021-03-05 04:03:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:01 | ------------------------------------

2021-03-05 04:03: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-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6",
    "pubsub#title": "Node 4156f4d6-15f6-4d85-a29e-f49a06ae3fa6"
}

2021-03-05 04:03:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:03:03 | [Mutex] waiting for: [received:nodes:47f4b68f-7caa-4946-bc6b-f26c12bd092d:localhost]

2021-03-05 04:03:03 | [Mutex] received everything.

2021-03-05 04:03:03 | [Mutex] isItemNotified: received:node:47f4b68f-7caa-4946-bc6b-f26c12bd092d:localhost:node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6:Node 4156f4d6-15f6-4d85-a29e-f49a06ae3fa6 :: true

createSubnodes 1.022s
2021-03-05 04:03:03 |

2021-03-05 04:03:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:03 | ------------------------------------

2021-03-05 04:03:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ffeba37b-4820-4d20-b0ae-c54b068c6df9",
    "pubsub#title": "Node ffeba37b-4820-4d20-b0ae-c54b068c6df9"
}

2021-03-05 04:03:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:03:04 | [Mutex] waiting for: [received:nodes:4aa2af6b-cc0a-4759-9322-cc6d9dc6a3f4:localhost]

2021-03-05 04:03:04 | [Mutex] received everything.

2021-03-05 04:03:04 | [Mutex] isItemNotified: received:node:4aa2af6b-cc0a-4759-9322-cc6d9dc6a3f4:localhost:node-ffeba37b-4820-4d20-b0ae-c54b068c6df9:Node ffeba37b-4820-4d20-b0ae-c54b068c6df9 :: true

deleteNodes 1.024s
2021-03-05 04:03:08 |

2021-03-05 04:03:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:08 | ------------------------------------

2021-03-05 04:03:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ffeba37b-4820-4d20-b0ae-c54b068c6df9"
}

2021-03-05 04:03:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:03:09 | [Mutex] waiting for: [received:nodes:901e58a3-b766-4b6b-85b4-f7644ffcd897:localhost]

2021-03-05 04:03:09 | [Mutex] received everything.

2021-03-05 04:03:09 | [Mutex] isItemNotified: received:node:901e58a3-b766-4b6b-85b4-f7644ffcd897:localhost:node-ffeba37b-4820-4d20-b0ae-c54b068c6df9:Node ffeba37b-4820-4d20-b0ae-c54b068c6df9 :: false

deleteSubnodes 1.029s
2021-03-05 04:03:07 |

2021-03-05 04:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:07 | ------------------------------------

2021-03-05 04:03:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6"
}

2021-03-05 04:03:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-05 04:03:08 | [Mutex] waiting for: [received:nodes:0e3cc06b-487a-4dc0-b7e4-1dc10c1396c8:localhost]

2021-03-05 04:03:08 | [Mutex] received everything.

2021-03-05 04:03:08 | [Mutex] isItemNotified: received:node:0e3cc06b-487a-4dc0-b7e4-1dc10c1396c8:localhost:node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6:Node 4156f4d6-15f6-4d85-a29e-f49a06ae3fa6 :: false

2021-03-05 04:03:08 | [Mutex] waiting for: [received:nodes:c569199b-2320-4ba4-a940-9c3e0b40f46b:localhost]

2021-03-05 04:03:08 | [Mutex] received everything.

2021-03-05 04:03:08 | [Mutex] isItemNotified: received:node:c569199b-2320-4ba4-a940-9c3e0b40f46b:localhost:node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6:Node 4156f4d6-15f6-4d85-a29e-f49a06ae3fa6 :: false

publishItemsToNodes 0.051s
2021-03-05 04:03:06 |

2021-03-05 04:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:06 | ------------------------------------

2021-03-05 04:03:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6",
    "entry": "<test>item-de413563-d534-4829-8fbd-804454f8b429</test>",
    "item-id": "item-de413563-d534-4829-8fbd-804454f8b429"
}

2021-03-05 04:03:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-de413563-d534-4829-8fbd-804454f8b429"
}

2021-03-05 04:03:06 | [Mutex] waiting for: [published:item:notifieditem-de413563-d534-4829-8fbd-804454f8b429:admin@test-domain.com]

2021-03-05 04:03:06 | [Mutex] received everything.

2021-03-05 04:03:06 | [Mutex] isItemNotified: published:item:notifieditem-de413563-d534-4829-8fbd-804454f8b429:admin@test-domain.com :: true

retractItemsFromNodes 0.065s
2021-03-05 04:03:06 |

2021-03-05 04:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:06 | ------------------------------------

2021-03-05 04:03:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6",
    "item-id": "item-de413563-d534-4829-8fbd-804454f8b429"
}

2021-03-05 04:03:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-de413563-d534-4829-8fbd-804454f8b429"
}

2021-03-05 04:03:06 | [Mutex] received everything.

2021-03-05 04:03:06 | [Mutex] isItemNotified: retracted:item:notifieditem-de413563-d534-4829-8fbd-804454f8b429:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2021-03-05 04:03:06 |

2021-03-05 04:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:06 | ------------------------------------

2021-03-05 04:03:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6",
    "item-id": "item-de413563-d534-4829-8fbd-804454f8b429"
}

2021-03-05 04:03:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6",
    "item-id": "item-de413563-d534-4829-8fbd-804454f8b429",
    "item": [
        "<item id=\"item-de413563-d534-4829-8fbd-804454f8b429\"><test>item-de413563-d534-4829-8fbd-804454f8b429</test></item>"
    ]
}

2021-03-05 04:03:06 | [Mutex] notify: [retrieved:item:item-de413563-d534-4829-8fbd-804454f8b429:payload-matches:true:localhost]

2021-03-05 04:03:06 | [Mutex] received everything.

2021-03-05 04:03:06 | [Mutex] isItemNotified: retrieved:item:item-de413563-d534-4829-8fbd-804454f8b429:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.070s
2021-03-05 04:03:06 |

2021-03-05 04:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:06 | ------------------------------------

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

2021-03-05 04:03:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ffeba37b-4820-4d20-b0ae-c54b068c6df9",
        "node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-03-05 04:03:06 |

2021-03-05 04:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:06 | ------------------------------------

2021-03-05 04:03:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6)"
}

2021-03-05 04:03:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2021-03-05 04:03:05 |

2021-03-05 04:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:05 | ------------------------------------

2021-03-05 04:03:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-05 04:03:05 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.082s
2021-03-05 04:03:06 |

2021-03-05 04:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-05 04:03:06 | ------------------------------------

2021-03-05 04:03:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4156f4d6-15f6-4d85-a29e-f49a06ae3fa6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-05 04:03:06 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}