public class ITestHelper extends Object
| Constructor and Description |
|---|
ITestHelper(String tenantId,
String hawkularAuthHeader,
String baseInvUri) |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.OkHttpClient |
client() |
org.hawkular.inventory.paths.CanonicalPath.FeedBuilder |
feedPath(String feedId) |
Optional<org.hawkular.inventory.api.model.Blueprint> |
getBlueprintFromCP(org.hawkular.inventory.paths.CanonicalPath path) |
Map<org.hawkular.inventory.paths.CanonicalPath,org.hawkular.inventory.api.model.Blueprint> |
getBlueprintsByType(String feedId,
String type,
int expectedCount) |
Optional<org.hawkular.inventory.api.model.InventoryStructure> |
getInventoryStructure(String feedId,
String type,
String id) |
String |
getTenantId() |
String |
getWithRetries(String url) |
com.fasterxml.jackson.databind.ObjectMapper |
mapper() |
okhttp3.Request.Builder |
newAuthRequest() |
void |
waitForNoResourceContaining(String feed,
String rType,
String containing,
long sleep,
int attempts) |
Map.Entry<org.hawkular.inventory.paths.CanonicalPath,org.hawkular.inventory.api.model.Blueprint> |
waitForResourceContaining(String feed,
String rType,
String containing,
long sleep,
int attempts) |
public okhttp3.Request.Builder newAuthRequest()
public Optional<org.hawkular.inventory.api.model.InventoryStructure> getInventoryStructure(String feedId, String type, String id) throws Throwable
Throwablepublic Optional<org.hawkular.inventory.api.model.Blueprint> getBlueprintFromCP(org.hawkular.inventory.paths.CanonicalPath path) throws Throwable
Throwablepublic Map<org.hawkular.inventory.paths.CanonicalPath,org.hawkular.inventory.api.model.Blueprint> getBlueprintsByType(String feedId, String type, int expectedCount) throws Throwable
Throwablepublic Map.Entry<org.hawkular.inventory.paths.CanonicalPath,org.hawkular.inventory.api.model.Blueprint> waitForResourceContaining(String feed, String rType, String containing, long sleep, int attempts) throws Throwable
Throwablepublic void waitForNoResourceContaining(String feed, String rType, String containing, long sleep, int attempts) throws Throwable
Throwablepublic org.hawkular.inventory.paths.CanonicalPath.FeedBuilder feedPath(String feedId)
public okhttp3.OkHttpClient client()
public com.fasterxml.jackson.databind.ObjectMapper mapper()
public String getTenantId()
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.