Skip to content

Commit

Permalink
Merge pull request #12552 from RakhithaRR/ctl-version-bump
Browse files Browse the repository at this point in the history
Bump APIM version to fix CTL test failures
  • Loading branch information
RakhithaRR committed Sep 10, 2024
2 parents d5b28eb + 1a0638f commit 8652b74
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
run: mv product-apim/modules/integration/tests-integration/tests-backend/target/surefire-reports/TEST-TestSuite.xml TEST-TestSuite_${{ matrix.id }}.xml
- name: Archive testng report
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: TEST-TestSuite_${{ matrix.id }}
path: |
Expand Down
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 8652b74

Please sign in to comment.