Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump APIM version to fix CTL test failures #12552

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading