Generated by TestNG with ReportNG at 21:40 PST on Tuesday 03 November 2020
root@87f6aca6b6f2 / 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.104s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.142s
2020-11-03 21:57:56 |

2020-11-03 21:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:56 | ------------------------------------

2020-11-03 21:57:56 | [Mutex] waiting for: [configured:node:node-d77f0a0e-f133-4613-84de-29ca9dff27b4:node-042b7894-4976-40d3-9874-00fc3c3660ef]

2020-11-03 21:57:56 | [Mutex] received everything.

2020-11-03 21:57:56 | [Mutex] isItemNotified: configured:node:node-d77f0a0e-f133-4613-84de-29ca9dff27b4:node-042b7894-4976-40d3-9874-00fc3c3660ef :: true

2020-11-03 21:57:57 | [Mutex] waiting for: [received:nodes:ba5ef24c-218c-4de1-b0df-707fb3f659d9:localhost]

2020-11-03 21:57:57 | [Mutex] received everything.

2020-11-03 21:57:57 | [Mutex] isItemNotified: received:node:ba5ef24c-218c-4de1-b0df-707fb3f659d9:localhost:node-d77f0a0e-f133-4613-84de-29ca9dff27b4:Node d77f0a0e-f133-4613-84de-29ca9dff27b4 :: true

2020-11-03 21:57:57 | [Mutex] waiting for: [received:nodes:42d33694-8d1b-42fc-acdd-ccb5e63fa691:localhost]

2020-11-03 21:57:57 | [Mutex] received everything.

2020-11-03 21:57:57 | [Mutex] isItemNotified: received:node:42d33694-8d1b-42fc-acdd-ccb5e63fa691:localhost:node-d77f0a0e-f133-4613-84de-29ca9dff27b4:Node d77f0a0e-f133-4613-84de-29ca9dff27b4 :: false

createNodes 1.681s
2020-11-03 21:57:53 |

2020-11-03 21:57:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:53 | ------------------------------------

2020-11-03 21:57:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d77f0a0e-f133-4613-84de-29ca9dff27b4",
    "pubsub#title": "Node d77f0a0e-f133-4613-84de-29ca9dff27b4"
}

2020-11-03 21:57:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:57:55 | [Mutex] waiting for: [received:nodes:9308b06d-4be1-4e07-8946-5decc66e3a6f:localhost]

2020-11-03 21:57:55 | [Mutex] received everything.

2020-11-03 21:57:55 | [Mutex] isItemNotified: received:node:9308b06d-4be1-4e07-8946-5decc66e3a6f:localhost:node-d77f0a0e-f133-4613-84de-29ca9dff27b4:Node d77f0a0e-f133-4613-84de-29ca9dff27b4 :: true

createSubnodes 1.038s
2020-11-03 21:57:55 |

2020-11-03 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:55 | ------------------------------------

2020-11-03 21:57:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-042b7894-4976-40d3-9874-00fc3c3660ef",
    "pubsub#title": "Node 042b7894-4976-40d3-9874-00fc3c3660ef"
}

2020-11-03 21:57:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:57:56 | [Mutex] waiting for: [received:nodes:2b6a0c9f-5179-4d60-a295-81728822c272:localhost]

2020-11-03 21:57:56 | [Mutex] received everything.

2020-11-03 21:57:56 | [Mutex] isItemNotified: received:node:2b6a0c9f-5179-4d60-a295-81728822c272:localhost:node-042b7894-4976-40d3-9874-00fc3c3660ef:Node 042b7894-4976-40d3-9874-00fc3c3660ef :: true

deleteNodes 1.028s
2020-11-03 21:58:01 |

2020-11-03 21:58:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:58:01 | ------------------------------------

2020-11-03 21:58:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-042b7894-4976-40d3-9874-00fc3c3660ef"
}

2020-11-03 21:58:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:58:02 | [Mutex] waiting for: [received:nodes:3d2002f0-2d4f-4539-adf4-ae209f87e04c:localhost]

2020-11-03 21:58:02 | [Mutex] waiting for: [received:nodes:3d2002f0-2d4f-4539-adf4-ae209f87e04c:localhost]

2020-11-03 21:58:02 | [Mutex] received everything.

2020-11-03 21:58:02 | [Mutex] isItemNotified: received:node:3d2002f0-2d4f-4539-adf4-ae209f87e04c:localhost:node-042b7894-4976-40d3-9874-00fc3c3660ef:Node 042b7894-4976-40d3-9874-00fc3c3660ef :: false

deleteSubnodes 1.036s
2020-11-03 21:57:59 |

2020-11-03 21:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:59 | ------------------------------------

2020-11-03 21:57:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d77f0a0e-f133-4613-84de-29ca9dff27b4"
}

2020-11-03 21:57:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:58:00 | [Mutex] waiting for: [received:nodes:45def5a5-c7fb-48ab-8487-2fd44b650801:localhost]

2020-11-03 21:58:00 | [Mutex] received everything.

2020-11-03 21:58:00 | [Mutex] isItemNotified: received:node:45def5a5-c7fb-48ab-8487-2fd44b650801:localhost:node-d77f0a0e-f133-4613-84de-29ca9dff27b4:Node d77f0a0e-f133-4613-84de-29ca9dff27b4 :: false

2020-11-03 21:58:00 | [Mutex] waiting for: [received:nodes:4172135d-e0c8-44f8-bf2e-785751f43063:localhost]

2020-11-03 21:58:00 | [Mutex] received everything.

2020-11-03 21:58:00 | [Mutex] isItemNotified: received:node:4172135d-e0c8-44f8-bf2e-785751f43063:localhost:node-d77f0a0e-f133-4613-84de-29ca9dff27b4:Node d77f0a0e-f133-4613-84de-29ca9dff27b4 :: false

publishItemsToNodes 0.042s
2020-11-03 21:57:58 |

2020-11-03 21:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:58 | ------------------------------------

2020-11-03 21:57:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d77f0a0e-f133-4613-84de-29ca9dff27b4",
    "entry": "<test>item-4c402ce3-20a6-46d7-a03d-9a5810848777</test>",
    "item-id": "item-4c402ce3-20a6-46d7-a03d-9a5810848777"
}

2020-11-03 21:57:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4c402ce3-20a6-46d7-a03d-9a5810848777"
}

2020-11-03 21:57:58 | [Mutex] waiting for: [published:item:notifieditem-4c402ce3-20a6-46d7-a03d-9a5810848777:admin@test-domain.com]

2020-11-03 21:57:58 | [Mutex] received everything.

2020-11-03 21:57:58 | [Mutex] isItemNotified: published:item:notifieditem-4c402ce3-20a6-46d7-a03d-9a5810848777:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-11-03 21:57:58 |

2020-11-03 21:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:58 | ------------------------------------

2020-11-03 21:57:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d77f0a0e-f133-4613-84de-29ca9dff27b4",
    "item-id": "item-4c402ce3-20a6-46d7-a03d-9a5810848777"
}

2020-11-03 21:57:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4c402ce3-20a6-46d7-a03d-9a5810848777"
}

2020-11-03 21:57:58 | [Mutex] waiting for: [retracted:item:notifieditem-4c402ce3-20a6-46d7-a03d-9a5810848777:admin@test-domain.com]

2020-11-03 21:57:58 | [Mutex] received everything.

2020-11-03 21:57:58 | [Mutex] isItemNotified: retracted:item:notifieditem-4c402ce3-20a6-46d7-a03d-9a5810848777:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2020-11-03 21:57:58 |

2020-11-03 21:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:58 | ------------------------------------

2020-11-03 21:57:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d77f0a0e-f133-4613-84de-29ca9dff27b4",
    "item-id": "item-4c402ce3-20a6-46d7-a03d-9a5810848777"
}

2020-11-03 21:57:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d77f0a0e-f133-4613-84de-29ca9dff27b4",
    "item-id": "item-4c402ce3-20a6-46d7-a03d-9a5810848777",
    "item": [
        "<item id=\"item-4c402ce3-20a6-46d7-a03d-9a5810848777\"><test>item-4c402ce3-20a6-46d7-a03d-9a5810848777</test></item>"
    ]
}

2020-11-03 21:57:58 | [Mutex] notify: [retrieved:item:item-4c402ce3-20a6-46d7-a03d-9a5810848777:payload-matches:true:localhost]

2020-11-03 21:57:58 | [Mutex] received everything.

2020-11-03 21:57:58 | [Mutex] isItemNotified: retrieved:item:item-4c402ce3-20a6-46d7-a03d-9a5810848777:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-11-03 21:57:58 |

2020-11-03 21:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:58 | ------------------------------------

2020-11-03 21:57:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-03 21:57:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-042b7894-4976-40d3-9874-00fc3c3660ef",
        "test",
        "node-d77f0a0e-f133-4613-84de-29ca9dff27b4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-03 21:57:58 |

2020-11-03 21:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:58 | ------------------------------------

2020-11-03 21:57:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d77f0a0e-f133-4613-84de-29ca9dff27b4)"
}

2020-11-03 21:57:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-11-03 21:57:57 |

2020-11-03 21:57:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:57 | ------------------------------------

2020-11-03 21:57:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d77f0a0e-f133-4613-84de-29ca9dff27b4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-03 21:57:57 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-11-03 21:57:58 |

2020-11-03 21:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:57:58 | ------------------------------------

2020-11-03 21:57:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d77f0a0e-f133-4613-84de-29ca9dff27b4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-03 21:57:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}