Generated by TestNG with ReportNG at 22:19 PDT on Thursday 06 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.119s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2021-05-06 22:35:36 |

2021-05-06 22:35:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:36 | ------------------------------------

2021-05-06 22:35:36 | [Mutex] waiting for: [configured:node:node-82b68995-d2d9-4a1d-a80a-c17ab6376caa:node-d181c16d-0286-47a4-aefe-2dd909d6516c]

2021-05-06 22:35:36 | [Mutex] received everything.

2021-05-06 22:35:36 | [Mutex] isItemNotified: configured:node:node-82b68995-d2d9-4a1d-a80a-c17ab6376caa:node-d181c16d-0286-47a4-aefe-2dd909d6516c :: true

2021-05-06 22:35:37 | [Mutex] waiting for: [received:nodes:f04e472a-89ce-4bf2-bd34-b7f9ea3135db:localhost]

2021-05-06 22:35:37 | [Mutex] received everything.

2021-05-06 22:35:37 | [Mutex] isItemNotified: received:node:f04e472a-89ce-4bf2-bd34-b7f9ea3135db:localhost:node-82b68995-d2d9-4a1d-a80a-c17ab6376caa:Node 82b68995-d2d9-4a1d-a80a-c17ab6376caa :: true

2021-05-06 22:35:37 | [Mutex] waiting for: [received:nodes:5a536e82-cebe-4cea-a505-13af531030fe:localhost]

2021-05-06 22:35:37 | [Mutex] received everything.

2021-05-06 22:35:37 | [Mutex] isItemNotified: received:node:5a536e82-cebe-4cea-a505-13af531030fe:localhost:node-82b68995-d2d9-4a1d-a80a-c17ab6376caa:Node 82b68995-d2d9-4a1d-a80a-c17ab6376caa :: false

createNodes 1.704s
2021-05-06 22:35:33 |

2021-05-06 22:35:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:33 | ------------------------------------

2021-05-06 22:35:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-82b68995-d2d9-4a1d-a80a-c17ab6376caa",
    "pubsub#title": "Node 82b68995-d2d9-4a1d-a80a-c17ab6376caa"
}

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

2021-05-06 22:35:35 | [Mutex] waiting for: [received:nodes:1a0cc314-9b73-472e-99ae-58338d157f45:localhost]

2021-05-06 22:35:35 | [Mutex] waiting for: [received:nodes:1a0cc314-9b73-472e-99ae-58338d157f45:localhost]

2021-05-06 22:35:35 | [Mutex] received everything.

2021-05-06 22:35:35 | [Mutex] isItemNotified: received:node:1a0cc314-9b73-472e-99ae-58338d157f45:localhost:node-82b68995-d2d9-4a1d-a80a-c17ab6376caa:Node 82b68995-d2d9-4a1d-a80a-c17ab6376caa :: true

createSubnodes 1.028s
2021-05-06 22:35:35 |

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

2021-05-06 22:35:35 | ------------------------------------

2021-05-06 22:35:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d181c16d-0286-47a4-aefe-2dd909d6516c",
    "pubsub#title": "Node d181c16d-0286-47a4-aefe-2dd909d6516c"
}

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

2021-05-06 22:35:36 | [Mutex] waiting for: [received:nodes:cc9e5fdd-d7a2-4a4a-bc10-ccd7e7855322:localhost]

2021-05-06 22:35:36 | [Mutex] received everything.

2021-05-06 22:35:36 | [Mutex] isItemNotified: received:node:cc9e5fdd-d7a2-4a4a-bc10-ccd7e7855322:localhost:node-d181c16d-0286-47a4-aefe-2dd909d6516c:Node d181c16d-0286-47a4-aefe-2dd909d6516c :: true

deleteNodes 1.030s
2021-05-06 22:35:40 |

2021-05-06 22:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:40 | ------------------------------------

2021-05-06 22:35:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d181c16d-0286-47a4-aefe-2dd909d6516c"
}

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

2021-05-06 22:35:41 | [Mutex] waiting for: [received:nodes:c1e9875c-6d81-40c4-962b-eb89e69c15a7:localhost]

2021-05-06 22:35:41 | [Mutex] received everything.

2021-05-06 22:35:41 | [Mutex] isItemNotified: received:node:c1e9875c-6d81-40c4-962b-eb89e69c15a7:localhost:node-d181c16d-0286-47a4-aefe-2dd909d6516c:Node d181c16d-0286-47a4-aefe-2dd909d6516c :: false

deleteSubnodes 1.031s
2021-05-06 22:35:39 |

2021-05-06 22:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:39 | ------------------------------------

2021-05-06 22:35:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-82b68995-d2d9-4a1d-a80a-c17ab6376caa"
}

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

2021-05-06 22:35:40 | [Mutex] waiting for: [received:nodes:40bde1be-0c91-4dfb-867e-bd86bfe35197:localhost]

2021-05-06 22:35:40 | [Mutex] received everything.

2021-05-06 22:35:40 | [Mutex] isItemNotified: received:node:40bde1be-0c91-4dfb-867e-bd86bfe35197:localhost:node-82b68995-d2d9-4a1d-a80a-c17ab6376caa:Node 82b68995-d2d9-4a1d-a80a-c17ab6376caa :: false

2021-05-06 22:35:40 | [Mutex] waiting for: [received:nodes:6f7fdb2d-49c8-45d6-a161-f500fe056439:localhost]

2021-05-06 22:35:40 | [Mutex] received everything.

2021-05-06 22:35:40 | [Mutex] isItemNotified: received:node:6f7fdb2d-49c8-45d6-a161-f500fe056439:localhost:node-82b68995-d2d9-4a1d-a80a-c17ab6376caa:Node 82b68995-d2d9-4a1d-a80a-c17ab6376caa :: false

publishItemsToNodes 0.101s
2021-05-06 22:35:38 |

2021-05-06 22:35:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:38 | ------------------------------------

2021-05-06 22:35:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-82b68995-d2d9-4a1d-a80a-c17ab6376caa",
    "entry": "<test>item-6a208a8d-9385-406f-b8c8-e046f6ebda9b</test>",
    "item-id": "item-6a208a8d-9385-406f-b8c8-e046f6ebda9b"
}

2021-05-06 22:35:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6a208a8d-9385-406f-b8c8-e046f6ebda9b"
}

2021-05-06 22:35:38 | [Mutex] received everything.

2021-05-06 22:35:38 | [Mutex] isItemNotified: published:item:notifieditem-6a208a8d-9385-406f-b8c8-e046f6ebda9b:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2021-05-06 22:35:38 |

2021-05-06 22:35:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:38 | ------------------------------------

2021-05-06 22:35:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-82b68995-d2d9-4a1d-a80a-c17ab6376caa",
    "item-id": "item-6a208a8d-9385-406f-b8c8-e046f6ebda9b"
}

2021-05-06 22:35:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6a208a8d-9385-406f-b8c8-e046f6ebda9b"
}

2021-05-06 22:35:38 | [Mutex] received everything.

2021-05-06 22:35:38 | [Mutex] isItemNotified: retracted:item:notifieditem-6a208a8d-9385-406f-b8c8-e046f6ebda9b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.097s
2021-05-06 22:35:38 |

2021-05-06 22:35:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:38 | ------------------------------------

2021-05-06 22:35:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-82b68995-d2d9-4a1d-a80a-c17ab6376caa",
    "item-id": "item-6a208a8d-9385-406f-b8c8-e046f6ebda9b"
}

2021-05-06 22:35:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-82b68995-d2d9-4a1d-a80a-c17ab6376caa",
    "item-id": "item-6a208a8d-9385-406f-b8c8-e046f6ebda9b",
    "item": [
        "<item id=\"item-6a208a8d-9385-406f-b8c8-e046f6ebda9b\"><test>item-6a208a8d-9385-406f-b8c8-e046f6ebda9b</test></item>"
    ]
}

2021-05-06 22:35:38 | [Mutex] notify: [retrieved:item:item-6a208a8d-9385-406f-b8c8-e046f6ebda9b:payload-matches:true:localhost]

2021-05-06 22:35:38 | [Mutex] received everything.

2021-05-06 22:35:38 | [Mutex] isItemNotified: retrieved:item:item-6a208a8d-9385-406f-b8c8-e046f6ebda9b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-05-06 22:35:38 |

2021-05-06 22:35:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:38 | ------------------------------------

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

2021-05-06 22:35:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d181c16d-0286-47a4-aefe-2dd909d6516c",
        "test",
        "node-82b68995-d2d9-4a1d-a80a-c17ab6376caa"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-06 22:35:38 |

2021-05-06 22:35:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:38 | ------------------------------------

2021-05-06 22:35:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-82b68995-d2d9-4a1d-a80a-c17ab6376caa)"
}

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

subscribeNodes 1.011s
2021-05-06 22:35:37 |

2021-05-06 22:35:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:37 | ------------------------------------

2021-05-06 22:35:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-82b68995-d2d9-4a1d-a80a-c17ab6376caa",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2021-05-06 22:35:38 |

2021-05-06 22:35:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 22:35:38 | ------------------------------------

2021-05-06 22:35:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-82b68995-d2d9-4a1d-a80a-c17ab6376caa",
    "jids": [
        "admin@test-domain.com"
    ]
}

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