Skip to content

Commit

Permalink
Bump APIM version to fix CTL test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
RakhithaRR committed Sep 10, 2024
1 parent d5b28eb commit 5b594fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public final class ImportExportConstants {

public static final String TYPE_POLICY_SPECIFICATION = "operation_policy_specification";

public static final String APIM_VERSION = "v4.3.0";
public static final String APIM_VERSION = "v4.4.0";

public static final String ENDPOINT_CONFIG = "endpointConfig";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ public Response exportThrottlingPolicy(String policyId, String policyName, Strin
String userName = RestApiCommonUtil.getLoggedInUsername();
ExportThrottlePolicyDTO exportPolicy = new ExportThrottlePolicyDTO();
exportPolicy.type(RestApiConstants.RESOURCE_THROTTLING_POLICY);
exportPolicy.version("v4.3.0");
exportPolicy.version(ImportExportConstants.APIM_VERSION);
type = (type == null) ? StringUtils.EMPTY : type;
if (StringUtils.EMPTY.equals(type) || PolicyConstants.POLICY_LEVEL_APP.equals(type)) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,11 @@ public static File exportOperationPolicyData(OperationPolicyData policyData, Str
if (format.equalsIgnoreCase(ExportFormat.YAML.name())) {
CommonUtil.writeDtoToFile(policyName, ExportFormat.YAML,
ImportExportConstants.TYPE_POLICY_SPECIFICATION,
policyData.getSpecification(), "v4.3.0");
policyData.getSpecification(), ImportExportConstants.APIM_VERSION);
} else if (format.equalsIgnoreCase(ExportFormat.JSON.name())) {
CommonUtil.writeDtoToFile(policyName, ExportFormat.JSON,
ImportExportConstants.TYPE_POLICY_SPECIFICATION,
policyData.getSpecification(), "v4.3.0");
policyData.getSpecification(), ImportExportConstants.APIM_VERSION);
}
}
if (policyData.getSynapsePolicyDefinition() != null) {
Expand Down

0 comments on commit 5b594fb

Please sign in to comment.