Skip to content

Commit 5353a2f

Browse files
authored
Update spring compatibility tests (Azure#32710)
1 parent d7c139f commit 5353a2f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

sdk/spring/scripts/compatibility_update_supported_version_matrix_json.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# This script is used to update sdk\spring\supported-version-matrix.json before compatibility check.
44
# Sample:
5-
# 1. python .\sdk\spring\scripts\supported-version-matrix.py
5+
# 1. python .\sdk\spring\scripts\compatibility_update_supported_version_matrix_json.py
6+
# 2. python .\sdk\spring\scripts\compatibility_update_supported_version_matrix_json.py -m 3
67
#
78
# The script must be run at the root of azure-sdk-for-java.import time
89

@@ -11,6 +12,13 @@
1112
from log import log
1213
import os
1314
import json
15+
import argparse
16+
17+
18+
def get_args():
19+
parser = argparse.ArgumentParser()
20+
parser.add_argument('-m', '--spring-boot-major-version', type = str, default='2')
21+
return parser.parse_args()
1422

1523

1624
def change_to_repo_root_dir():
@@ -37,7 +45,8 @@ def get_supported_spring_boot_version(filepath):
3745
for entry in data:
3846
for key in entry:
3947
if entry[key] == "SUPPORTED":
40-
supported_version_list.append(entry["spring-boot-version"])
48+
if entry["spring-boot-version"].startswith(get_args().spring_boot_major_version + "."):
49+
supported_version_list.append(entry["spring-boot-version"])
4150
return supported_version_list
4251

4352

sdk/spring/spring-cloud-azure-supported-spring.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"current" : false,
1212
"releaseStatus" : "GENERAL_AVAILABILITY",
1313
"snapshot" : false,
14-
"supportStatus" : "TODO",
14+
"supportStatus" : "SUPPORTED",
1515
"spring-boot-version" : "3.0.0",
16-
"spring-cloud-version" : "2022.0.0-RC2"
16+
"spring-cloud-version" : "2022.0.0"
1717
},
1818
{
1919
"current" : false,

0 commit comments

Comments
 (0)