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

Update spring compatibility tests #32710

Merged
merged 4 commits into from
Dec 26, 2022
Merged
Show file tree
Hide file tree
Changes from 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#
# This script is used to update sdk\spring\supported-version-matrix.json before compatibility check.
# Sample:
# 1. python .\sdk\spring\scripts\supported-version-matrix.py
# 1. python .\sdk\spring\scripts\compatibility_update_supported_version_matrix_json.py
# 2. python .\sdk\spring\scripts\compatibility_update_supported_version_matrix_json.py -m 3
#
# The script must be run at the root of azure-sdk-for-java.import time

Expand All @@ -11,6 +12,13 @@
from log import log
import os
import json
import argparse


def get_args():
parser = argparse.ArgumentParser()
parser.add_argument('-m', '--spring-boot-major-version', type = str, default='2')
return parser.parse_args()


def change_to_repo_root_dir():
Expand All @@ -37,7 +45,8 @@ def get_supported_spring_boot_version(filepath):
for entry in data:
for key in entry:
if entry[key] == "SUPPORTED":
supported_version_list.append(entry["spring-boot-version"])
if entry["spring-boot-version"].startswith(get_args().spring_boot_major_version):
saragluna marked this conversation as resolved.
Show resolved Hide resolved
supported_version_list.append(entry["spring-boot-version"])
return supported_version_list


Expand Down
4 changes: 2 additions & 2 deletions sdk/spring/spring-cloud-azure-supported-spring.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"current" : false,
"releaseStatus" : "GENERAL_AVAILABILITY",
"snapshot" : false,
"supportStatus" : "TODO",
"supportStatus" : "SUPPORTED",
"spring-boot-version" : "3.0.0",
"spring-cloud-version" : "2022.0.0-RC2"
"spring-cloud-version" : "2022.0.0"
},
{
"current" : false,
Expand Down