Generated by TestNG with ReportNG at 22:43 PDT on Thursday 24 June 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.411s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-06-24 22:57:26 |

2021-06-24 22:57:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:26 | ------------------------------------

2021-06-24 22:57:26 | [Mutex] waiting for: [configured:node:node-b122c995-b879-465c-af10-424441ae28b3:node-49aca23f-f387-4dde-b76b-31a51066d43c]

2021-06-24 22:57:26 | [Mutex] received everything.

2021-06-24 22:57:26 | [Mutex] isItemNotified: configured:node:node-b122c995-b879-465c-af10-424441ae28b3:node-49aca23f-f387-4dde-b76b-31a51066d43c :: true

2021-06-24 22:57:27 | [Mutex] waiting for: [received:nodes:59d09424-8c9f-4797-b241-3dfb176ee40d:localhost]

2021-06-24 22:57:27 | [Mutex] received everything.

2021-06-24 22:57:27 | [Mutex] isItemNotified: received:node:59d09424-8c9f-4797-b241-3dfb176ee40d:localhost:node-b122c995-b879-465c-af10-424441ae28b3:Node b122c995-b879-465c-af10-424441ae28b3 :: true

2021-06-24 22:57:27 | [Mutex] waiting for: [received:nodes:2c4d32cc-c2c8-400e-9ebb-8c8521c4ea98:localhost]

2021-06-24 22:57:27 | [Mutex] received everything.

2021-06-24 22:57:27 | [Mutex] isItemNotified: received:node:2c4d32cc-c2c8-400e-9ebb-8c8521c4ea98:localhost:node-b122c995-b879-465c-af10-424441ae28b3:Node b122c995-b879-465c-af10-424441ae28b3 :: false

createNodes 1.848s
2021-06-24 22:57:23 |

2021-06-24 22:57:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:23 | ------------------------------------

2021-06-24 22:57:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b122c995-b879-465c-af10-424441ae28b3",
    "pubsub#title": "Node b122c995-b879-465c-af10-424441ae28b3"
}

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

2021-06-24 22:57:25 | [Mutex] waiting for: [received:nodes:4cf851bc-3e8a-4d59-a386-c2a8ee140118:localhost]

2021-06-24 22:57:25 | [Mutex] received everything.

2021-06-24 22:57:25 | [Mutex] isItemNotified: received:node:4cf851bc-3e8a-4d59-a386-c2a8ee140118:localhost:node-b122c995-b879-465c-af10-424441ae28b3:Node b122c995-b879-465c-af10-424441ae28b3 :: true

createSubnodes 1.025s
2021-06-24 22:57:25 |

2021-06-24 22:57:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:25 | ------------------------------------

2021-06-24 22:57:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-49aca23f-f387-4dde-b76b-31a51066d43c",
    "pubsub#title": "Node 49aca23f-f387-4dde-b76b-31a51066d43c"
}

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

2021-06-24 22:57:26 | [Mutex] waiting for: [received:nodes:01f6c003-ddf0-4ed6-87cb-77e1d7578dc7:localhost]

2021-06-24 22:57:26 | [Mutex] waiting for: [received:nodes:01f6c003-ddf0-4ed6-87cb-77e1d7578dc7:localhost]

2021-06-24 22:57:26 | [Mutex] received everything.

2021-06-24 22:57:26 | [Mutex] isItemNotified: received:node:01f6c003-ddf0-4ed6-87cb-77e1d7578dc7:localhost:node-49aca23f-f387-4dde-b76b-31a51066d43c:Node 49aca23f-f387-4dde-b76b-31a51066d43c :: true

deleteNodes 1.026s
2021-06-24 22:57:31 |

2021-06-24 22:57:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:31 | ------------------------------------

2021-06-24 22:57:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-49aca23f-f387-4dde-b76b-31a51066d43c"
}

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

2021-06-24 22:57:32 | [Mutex] waiting for: [received:nodes:c44610d1-dc84-4ddd-8fc0-6a67bc5b7960:localhost]

2021-06-24 22:57:32 | [Mutex] received everything.

2021-06-24 22:57:32 | [Mutex] isItemNotified: received:node:c44610d1-dc84-4ddd-8fc0-6a67bc5b7960:localhost:node-49aca23f-f387-4dde-b76b-31a51066d43c:Node 49aca23f-f387-4dde-b76b-31a51066d43c :: false

deleteSubnodes 1.029s
2021-06-24 22:57:30 |

2021-06-24 22:57:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:30 | ------------------------------------

2021-06-24 22:57:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b122c995-b879-465c-af10-424441ae28b3"
}

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

2021-06-24 22:57:31 | [Mutex] waiting for: [received:nodes:0e586662-149d-4b8a-a5cd-4a4e57f5349d:localhost]

2021-06-24 22:57:31 | [Mutex] received everything.

2021-06-24 22:57:31 | [Mutex] isItemNotified: received:node:0e586662-149d-4b8a-a5cd-4a4e57f5349d:localhost:node-b122c995-b879-465c-af10-424441ae28b3:Node b122c995-b879-465c-af10-424441ae28b3 :: false

2021-06-24 22:57:31 | [Mutex] waiting for: [received:nodes:15654e7f-728a-4ea8-b442-1c0dee123985:localhost]

2021-06-24 22:57:31 | [Mutex] received everything.

2021-06-24 22:57:31 | [Mutex] isItemNotified: received:node:15654e7f-728a-4ea8-b442-1c0dee123985:localhost:node-b122c995-b879-465c-af10-424441ae28b3:Node b122c995-b879-465c-af10-424441ae28b3 :: false

publishItemsToNodes 0.056s
2021-06-24 22:57:28 |

2021-06-24 22:57:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:28 | ------------------------------------

2021-06-24 22:57:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b122c995-b879-465c-af10-424441ae28b3",
    "entry": "<test>item-f97ede79-a834-412b-8abf-55f6b4554dae</test>",
    "item-id": "item-f97ede79-a834-412b-8abf-55f6b4554dae"
}

2021-06-24 22:57:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f97ede79-a834-412b-8abf-55f6b4554dae"
}

2021-06-24 22:57:28 | [Mutex] received everything.

2021-06-24 22:57:28 | [Mutex] isItemNotified: published:item:notifieditem-f97ede79-a834-412b-8abf-55f6b4554dae:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2021-06-24 22:57:28 |

2021-06-24 22:57:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:28 | ------------------------------------

2021-06-24 22:57:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b122c995-b879-465c-af10-424441ae28b3",
    "item-id": "item-f97ede79-a834-412b-8abf-55f6b4554dae"
}

2021-06-24 22:57:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f97ede79-a834-412b-8abf-55f6b4554dae"
}

2021-06-24 22:57:28 | [Mutex] waiting for: [retracted:item:notifieditem-f97ede79-a834-412b-8abf-55f6b4554dae:admin@test-domain.com]

2021-06-24 22:57:28 | [Mutex] received everything.

2021-06-24 22:57:28 | [Mutex] isItemNotified: retracted:item:notifieditem-f97ede79-a834-412b-8abf-55f6b4554dae:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2021-06-24 22:57:28 |

2021-06-24 22:57:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:28 | ------------------------------------

2021-06-24 22:57:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b122c995-b879-465c-af10-424441ae28b3",
    "item-id": "item-f97ede79-a834-412b-8abf-55f6b4554dae"
}

2021-06-24 22:57:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b122c995-b879-465c-af10-424441ae28b3",
    "item-id": "item-f97ede79-a834-412b-8abf-55f6b4554dae",
    "item": [
        "<item id=\"item-f97ede79-a834-412b-8abf-55f6b4554dae\"><test>item-f97ede79-a834-412b-8abf-55f6b4554dae</test></item>"
    ]
}

2021-06-24 22:57:28 | [Mutex] notify: [retrieved:item:item-f97ede79-a834-412b-8abf-55f6b4554dae:payload-matches:true:localhost]

2021-06-24 22:57:28 | [Mutex] received everything.

2021-06-24 22:57:28 | [Mutex] isItemNotified: retrieved:item:item-f97ede79-a834-412b-8abf-55f6b4554dae:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-06-24 22:57:28 |

2021-06-24 22:57:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:28 | ------------------------------------

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

2021-06-24 22:57:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b122c995-b879-465c-af10-424441ae28b3",
        "test",
        "node-49aca23f-f387-4dde-b76b-31a51066d43c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-06-24 22:57:28 |

2021-06-24 22:57:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:28 | ------------------------------------

2021-06-24 22:57:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b122c995-b879-465c-af10-424441ae28b3)"
}

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

subscribeNodes 1.013s
2021-06-24 22:57:27 |

2021-06-24 22:57:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:27 | ------------------------------------

2021-06-24 22:57:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b122c995-b879-465c-af10-424441ae28b3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.057s
2021-06-24 22:57:28 |

2021-06-24 22:57:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-24 22:57:28 | ------------------------------------

2021-06-24 22:57:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b122c995-b879-465c-af10-424441ae28b3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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