@Test public void testDescribeTagsWithWrongResourceType() throws Exception { MockingHelper.setExpectedExceptions(exception, RuntimeException.class, "Unrecognized resource type value: [WRONG]. Valid values are: customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway"); final FilterInputs filterInputs = new FilterInputs.Builder() .withDelimiter(",") .withNewFilter("resource-type", "WRONG") .build(); toTest.execute(getCommonInputs("DescribeTags", HEADERS), getCustomInputs(), filterInputs); }
@SafeVarargs public final <T> Map<String, String> execute(CommonInputs commonInputs, T... builders) throws Exception { InputsWrapper inputs = InputsWrapperBuilder.getWrapper(commonInputs, builders); Map<String, String> queryParamsMap = ParamsMapBuilder.getParamsMap(inputs); Map<String, String> headersMap = HeadersMapBuilder.getHeadersMap(inputs); setQueryApiParams(inputs, queryParamsMap); setQueryApiHeaders(inputs, headersMap, queryParamsMap); Map<String, String> awsResponse = new HttpClientService().execute(inputs.getHttpClientInputs()); return getValidResponse(awsResponse); }
QueryApiExecutor { @SafeVarargs public final <T> Map<String, String> execute(CommonInputs commonInputs, T... builders) throws Exception { InputsWrapper inputs = InputsWrapperBuilder.getWrapper(commonInputs, builders); Map<String, String> queryParamsMap = ParamsMapBuilder.getParamsMap(inputs); Map<String, String> headersMap = HeadersMapBuilder.getHeadersMap(inputs); setQueryApiParams(inputs, queryParamsMap); setQueryApiHeaders(inputs, headersMap, queryParamsMap); Map<String, String> awsResponse = new HttpClientService().execute(inputs.getHttpClientInputs()); return getValidResponse(awsResponse); } }
QueryApiExecutor { @SafeVarargs public final <T> Map<String, String> execute(CommonInputs commonInputs, T... builders) throws Exception { InputsWrapper inputs = InputsWrapperBuilder.getWrapper(commonInputs, builders); Map<String, String> queryParamsMap = ParamsMapBuilder.getParamsMap(inputs); Map<String, String> headersMap = HeadersMapBuilder.getHeadersMap(inputs); setQueryApiParams(inputs, queryParamsMap); setQueryApiHeaders(inputs, headersMap, queryParamsMap); Map<String, String> awsResponse = new HttpClientService().execute(inputs.getHttpClientInputs()); return getValidResponse(awsResponse); }  }
QueryApiExecutor { @SafeVarargs public final <T> Map<String, String> execute(CommonInputs commonInputs, T... builders) throws Exception { InputsWrapper inputs = InputsWrapperBuilder.getWrapper(commonInputs, builders); Map<String, String> queryParamsMap = ParamsMapBuilder.getParamsMap(inputs); Map<String, String> headersMap = HeadersMapBuilder.getHeadersMap(inputs); setQueryApiParams(inputs, queryParamsMap); setQueryApiHeaders(inputs, headersMap, queryParamsMap); Map<String, String> awsResponse = new HttpClientService().execute(inputs.getHttpClientInputs()); return getValidResponse(awsResponse); }  @SafeVarargs final Map<String, String> execute(CommonInputs commonInputs, T... builders); }
QueryApiExecutor { @SafeVarargs public final <T> Map<String, String> execute(CommonInputs commonInputs, T... builders) throws Exception { InputsWrapper inputs = InputsWrapperBuilder.getWrapper(commonInputs, builders); Map<String, String> queryParamsMap = ParamsMapBuilder.getParamsMap(inputs); Map<String, String> headersMap = HeadersMapBuilder.getHeadersMap(inputs); setQueryApiParams(inputs, queryParamsMap); setQueryApiHeaders(inputs, headersMap, queryParamsMap); Map<String, String> awsResponse = new HttpClientService().execute(inputs.getHttpClientInputs()); return getValidResponse(awsResponse); }  @SafeVarargs final Map<String, String> execute(CommonInputs commonInputs, T... builders);  }