Bug 1802845 - [RFE] Provide connection test method on Java SDK too
Summary: [RFE] Provide connection test method on Java SDK too
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk-java
Version: 4.3.7
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ovirt-4.4.1
: ---
Assignee: Ori Liel
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-14 03:30 UTC by Germano Veit Michel
Modified: 2020-08-04 13:23 UTC (History)
6 users (show)

Fixed In Version: java-ovirt-engine-sdk4-4.4.2-1.el8ev
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-04 13:23:46 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:
lsvaty: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 108200 0 None MERGED Add validate connection method 2020-08-21 18:48:36 UTC

Description Germano Veit Michel 2020-02-14 03:30:10 UTC
Description of problem:

In the python and ruby SDKs, there is a method to test the connection:
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/lib/ovirtsdk4/__init__.py#L733

But the Java SDK does not have anything similar.

Ori has suggested adding the following:

public class HttpConnection implements Connection {
    public boolean validate() {
        return this.systemService().get().send() != null;
    }
}

Comment 1 RHEL Program Management 2020-02-14 03:31:49 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 2 Ori Liel 2020-05-21 06:01:47 UTC
Fixed: 

  https://gerrit.ovirt.org/#/c/108200/

Comment 5 Lucie Leistnerova 2020-07-11 16:54:20 UTC
Connection.validate method exists and returns true on running engine

Verified in java-ovirt-engine-sdk4-4.4.2-1.el8ev.noarch

Comment 9 errata-xmlrpc 2020-08-04 13:23:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (RHV Engine and Host Common Packages 4.4), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:3309


Note You need to log in before you can comment on or make changes to this bug.