Fixed problem that client works only with localhost.
This commit is contained in:
@@ -14,7 +14,7 @@ import org.springframework.cloud.netflix.feign.FeignClient;
|
|||||||
/**
|
/**
|
||||||
* Client binding for the DistributionSet resource of the management API.
|
* Client binding for the DistributionSet resource of the management API.
|
||||||
*/
|
*/
|
||||||
@FeignClient(url = "${hawkbit.endpoint.url:localhost:8080}/rest/v1/distributionsets")
|
@FeignClient(url = "${hawkbit.url:localhost:8080}/rest/v1/distributionsets")
|
||||||
public interface DistributionSetResourceClient extends DistributionSetRestApi {
|
public interface DistributionSetResourceClient extends DistributionSetRestApi {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import org.springframework.cloud.netflix.feign.FeignClient;
|
|||||||
/**
|
/**
|
||||||
* Client binding for the DistributionSetTag resource of the management API.
|
* Client binding for the DistributionSetTag resource of the management API.
|
||||||
*/
|
*/
|
||||||
@FeignClient(url = "${hawkbit.endpoint.url:localhost:8080}/rest/v1/distributionsettags")
|
@FeignClient(url = "${hawkbit.url:localhost:8080}/rest/v1/distributionsettags")
|
||||||
public interface DistributionSetTagResourceClient extends DistributionSetTagRestApi {
|
public interface DistributionSetTagResourceClient extends DistributionSetTagRestApi {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import org.springframework.cloud.netflix.feign.FeignClient;
|
|||||||
* Client binding for the DistributionSetType resource of the management API.
|
* Client binding for the DistributionSetType resource of the management API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@FeignClient(url = "${hawkbit.endpoint.url:localhost:8080}/rest/v1/distributionsettypes")
|
@FeignClient(url = "${hawkbit.url:localhost:8080}/rest/v1/distributionsettypes")
|
||||||
public interface DistributionSetTypeResourceClient extends DistributionSetTypeRestApi {
|
public interface DistributionSetTypeResourceClient extends DistributionSetTypeRestApi {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import org.springframework.cloud.netflix.feign.FeignClient;
|
|||||||
/**
|
/**
|
||||||
* Client binding for the Rollout resource of the management API.
|
* Client binding for the Rollout resource of the management API.
|
||||||
*/
|
*/
|
||||||
@FeignClient(url = "${hawkbit.endpoint.url:localhost:8080}/rest/v1/rollouts")
|
@FeignClient(url = "${hawkbit.url:localhost:8080}/rest/v1/rollouts")
|
||||||
public interface RolloutResourceClient extends RolloutRestApi {
|
public interface RolloutResourceClient extends RolloutRestApi {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import org.springframework.cloud.netflix.feign.FeignClient;
|
|||||||
/**
|
/**
|
||||||
* Client binding for the SoftwareModule resource of the management API.
|
* Client binding for the SoftwareModule resource of the management API.
|
||||||
*/
|
*/
|
||||||
@FeignClient(url = "${hawkbit.endpoint.url:localhost:8080}/rest/v1/softwaremodules")
|
@FeignClient(url = "${hawkbit.url:localhost:8080}/rest/v1/softwaremodules")
|
||||||
public interface SoftwareModuleResourceClient extends SoftwareModuleRestAPI {
|
public interface SoftwareModuleResourceClient extends SoftwareModuleRestAPI {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import org.springframework.cloud.netflix.feign.FeignClient;
|
|||||||
/**
|
/**
|
||||||
* Client binding for the oftwareModuleType resource of the management API.
|
* Client binding for the oftwareModuleType resource of the management API.
|
||||||
*/
|
*/
|
||||||
@FeignClient(url = "${hawkbit.endpoint.url:localhost:8080}/rest/v1/softwaremoduletypes")
|
@FeignClient(url = "${hawkbit.url:localhost:8080}/rest/v1/softwaremoduletypes")
|
||||||
public interface SoftwareModuleTypeResourceClient extends SoftwareModuleTypeRestApi {
|
public interface SoftwareModuleTypeResourceClient extends SoftwareModuleTypeRestApi {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import org.springframework.cloud.netflix.feign.FeignClient;
|
|||||||
/**
|
/**
|
||||||
* Client binding for the Target resource of the management API.
|
* Client binding for the Target resource of the management API.
|
||||||
*/
|
*/
|
||||||
@FeignClient(url = "${hawkbit.endpoint.url:localhost:8080}/rest/v1/targets")
|
@FeignClient(url = "${hawkbit.url:localhost:8080}/rest/v1/targets")
|
||||||
public interface TargetResourceClient extends TargetRestApi {
|
public interface TargetResourceClient extends TargetRestApi {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import org.springframework.cloud.netflix.feign.FeignClient;
|
|||||||
/**
|
/**
|
||||||
* Client binding for the TargetTag resource of the management API.
|
* Client binding for the TargetTag resource of the management API.
|
||||||
*/
|
*/
|
||||||
@FeignClient(url = "${hawkbit.endpoint.url:localhost:8080}/rest/v1/targettags")
|
@FeignClient(url = "${hawkbit.url:localhost:8080}/rest/v1/targettags")
|
||||||
public interface TargetTagResourceClient extends TargetTagRestApi {
|
public interface TargetTagResourceClient extends TargetTagRestApi {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,11 +16,7 @@ import org.eclipse.hawkbit.rest.resource.model.distributionset.DistributionSetRe
|
|||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* Builder pattern for building {@link DistributionSetRequestBodyPost}.
|
* Builder pattern for building {@link DistributionSetRequestBodyPost}.
|
||||||
*
|
|
||||||
* @author Jonathan Knoblauch
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class DistributionSetBuilder {
|
public class DistributionSetBuilder {
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ import com.google.common.collect.Lists;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Builder pattern for building {@link DistributionSetTypeRequestBodyPost}.
|
* Builder pattern for building {@link DistributionSetTypeRequestBodyPost}.
|
||||||
*
|
|
||||||
* @author Jonathan Knoblauch
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class DistributionSetTypeBuilder {
|
public class DistributionSetTypeBuilder {
|
||||||
|
|||||||
@@ -15,8 +15,6 @@ import org.eclipse.hawkbit.rest.resource.model.rollout.RolloutRestRequestBody;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Builder pattern for building {@link RolloutRestRequestBody}.
|
* Builder pattern for building {@link RolloutRestRequestBody}.
|
||||||
*
|
|
||||||
* @author Jonathan Knoblauch
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RolloutBuilder {
|
public class RolloutBuilder {
|
||||||
|
|||||||
@@ -16,8 +16,6 @@ import org.eclipse.hawkbit.rest.resource.model.softwaremodule.SoftwareModuleAssi
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Builder pattern for building {@link SoftwareModuleAssigmentRest}.
|
* Builder pattern for building {@link SoftwareModuleAssigmentRest}.
|
||||||
*
|
|
||||||
* @author Jonathan Knoblauch
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class SoftwareModuleAssigmentBuilder {
|
public class SoftwareModuleAssigmentBuilder {
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ import com.google.common.collect.Lists;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Builder pattern for building {@link SoftwareModuleRequestBodyPost}.
|
* Builder pattern for building {@link SoftwareModuleRequestBodyPost}.
|
||||||
*
|
|
||||||
* @author Jonathan Knoblauch
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class SoftwareModuleBuilder {
|
public class SoftwareModuleBuilder {
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ import com.google.common.collect.Lists;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Builder pattern for building {@link SoftwareModuleRequestBodyPost}.
|
* Builder pattern for building {@link SoftwareModuleRequestBodyPost}.
|
||||||
*
|
|
||||||
* @author Jonathan Knoblauch
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class SoftwareModuleTypeBuilder {
|
public class SoftwareModuleTypeBuilder {
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ import com.google.common.collect.Lists;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Builder pattern for building {@link TagRequestBodyPut}.
|
* Builder pattern for building {@link TagRequestBodyPut}.
|
||||||
*
|
|
||||||
* @author Jonathan Knoblauch
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class TagBuilder {
|
public class TagBuilder {
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ import com.google.common.collect.Lists;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Builder pattern for building {@link TargetRequestBody}.
|
* Builder pattern for building {@link TargetRequestBody}.
|
||||||
*
|
|
||||||
* @author Jonathan Knoblauch
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class TargetBuilder {
|
public class TargetBuilder {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public class CreateStartedRolloutExample {
|
|||||||
private static final String SM_MODULE_TYPE = "firmware";
|
private static final String SM_MODULE_TYPE = "firmware";
|
||||||
|
|
||||||
/* known distribution set type name and key */
|
/* known distribution set type name and key */
|
||||||
private static final String DS_MODULE_TYPE = "firmware";
|
private static final String DS_MODULE_TYPE = SM_MODULE_TYPE;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DistributionSetResourceClient distributionSetResource;
|
private DistributionSetResourceClient distributionSetResource;
|
||||||
|
|||||||
@@ -41,13 +41,13 @@ public class GettingStartedDefaultScenario {
|
|||||||
private static final String SM_MODULE_TYPE = "gettingstarted";
|
private static final String SM_MODULE_TYPE = "gettingstarted";
|
||||||
|
|
||||||
/* known distribution set type name and key */
|
/* known distribution set type name and key */
|
||||||
private static final String DS_MODULE_TYPE = "gettingstarted";
|
private static final String DS_MODULE_TYPE = SM_MODULE_TYPE;
|
||||||
|
|
||||||
/* known distribution name of this getting started example */
|
/* known distribution name of this getting started example */
|
||||||
private static final String SM_EXAMPLE_NAME = "gettingstarted-example";
|
private static final String SM_EXAMPLE_NAME = "gettingstarted-example";
|
||||||
|
|
||||||
/* known distribution name of this getting started example */
|
/* known distribution name of this getting started example */
|
||||||
private static final String DS_EXAMPLE_NAME = "gettingstarted-example";
|
private static final String DS_EXAMPLE_NAME = SM_EXAMPLE_NAME;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DistributionSetResourceClient distributionSetResource;
|
private DistributionSetResourceClient distributionSetResource;
|
||||||
|
|||||||
Reference in New Issue
Block a user