Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
[HWKINVENT-10] Make Pinger compile again.
Browse files Browse the repository at this point in the history
  • Loading branch information
metlos committed Jul 8, 2015
1 parent f10f40f commit 89c521c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.Map;

import org.hawkular.component.pinger.PingDestination.ResourceField;
import org.hawkular.inventory.api.model.CanonicalPath;
import org.hawkular.inventory.api.model.Resource;
import org.hawkular.inventory.api.model.ResourceType;

Expand All @@ -38,9 +39,10 @@ public static Resource createTestResource() {
Map<String, Object> props = new HashMap<>();
props.put(ResourceField.url.name(), PingerTestUtils.TEST_URL);
props.put(ResourceField.method.name(), PingerTestUtils.GET_METHOD);
ResourceType urlType = new ResourceType(PingerTestUtils.TEST_TENANT_ID, PingDestination.URL_TYPE);
Resource urlResource = new Resource(PingerTestUtils.TEST_TENANT_ID, PingerTestUtils.TEST_ENVIRONMENT_ID, null,
PingerTestUtils.TEST_RESOURCE_ID, urlType, props);
ResourceType urlType = new ResourceType(CanonicalPath.of().tenant(TEST_TENANT_ID)
.resourceType(PingDestination.URL_TYPE).get());
Resource urlResource = new Resource(CanonicalPath.of().tenant(TEST_TENANT_ID).environment(TEST_ENVIRONMENT_ID)
.resource(TEST_RESOURCE_ID).get(), urlType, props);
return urlResource;
}

Expand Down

0 comments on commit 89c521c

Please sign in to comment.