Bug 1802845

Summary: [RFE] Provide connection test method on Java SDK too
Product: Red Hat Enterprise Virtualization Manager Reporter: Germano Veit Michel <gveitmic>
Component: ovirt-engine-sdk-javaAssignee: Ori Liel <oliel>
Status: CLOSED ERRATA QA Contact: Lucie Leistnerova <lleistne>
Severity: low Docs Contact:
Priority: low    
Version: 4.3.7CC: lleistne, lsurette, mperina, oliel, pelauter, srevivo
Target Milestone: ovirt-4.4.1Keywords: FutureFeature
Target Release: ---Flags: lsvaty: testing_plan_complete-
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: java-ovirt-engine-sdk4-4.4.2-1.el8ev Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-04 13:23:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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