Skip to content

Commit d7ed717

Browse files
authored
Merge pull request #800 from mendix/DEP-6227_update_lts_mts_check
DEP-6227 update lts and mts version check
2 parents fac8104 + b5aee40 commit d7ed717

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

buildpack/core/runtime.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,18 @@ def is_version_supported(version):
4141

4242
def is_version_maintained(version):
4343
# LTS / MTS versions: https://docs.mendix.com/releasenotes/studio-pro/lts-mts
44-
if version.major == 7 and version.minor == 23:
45-
return True
4644
if version.major == 8 and version.minor == 18:
4745
return True
4846
if version.major == 9 and version.minor == 24:
4947
return True
5048
if version.major == 10 and version.minor == 6:
5149
return True
50+
if version.major == 10 and version.minor == 12:
51+
return True
52+
if version.major == 10 and version.minor == 18:
53+
return True
54+
if version.major == 10 and version.minor == 21:
55+
return True
5256
return False
5357

5458

tests/unit/test_deprecations.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ def test_mx7_supported(self):
2727

2828

2929
class TestCaseMxMaintained(TestCase):
30-
def test_mx7_maintained(self):
31-
assert runtime.is_version_maintained(MXVersion("7.23.1"))
32-
3330
def test_mx7_not_maintained(self):
31+
assert not runtime.is_version_maintained(MXVersion("7.23.1"))
3432
assert not runtime.is_version_maintained(MXVersion("7.16"))
3533

3634
def test_mx8_maintained(self):
@@ -49,6 +47,9 @@ def test_mx9_not_maintained(self):
4947

5048
def test_mx10_maintained(self):
5149
assert runtime.is_version_maintained(MXVersion("10.6.1"))
50+
assert runtime.is_version_maintained(MXVersion("10.12.1"))
51+
assert runtime.is_version_maintained(MXVersion("10.18.1"))
52+
assert runtime.is_version_maintained(MXVersion("10.21.1"))
5253

5354
def test_mx10_not_maintained(self):
5455
assert not runtime.is_version_maintained(MXVersion("10.5.1"))

0 commit comments

Comments
 (0)