Skip to content

Commit

Permalink
Enable more PHP docker-ssi tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iamluc committed Nov 20, 2024
1 parent d1e67f6 commit ffcd5d9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/docker_ssi/test_docker_ssi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def test_telemetry(self):

@features.ssi_guardrails
@irrelevant(context.library == "java" and context.installed_language_runtime >= "1.8.0_0")
@bug(condition=context.library == "php" and context.installed_language_runtime < "7.0", reason="INPLAT-180")
@irrelevant(context.library == "php" and context.installed_language_runtime >= "7.0")
@bug(condition=context.library == "python" and context.installed_language_runtime < "3.7.0", reason="INPLAT-181")
@irrelevant(context.library == "python" and context.installed_language_runtime >= "3.7.0")
Expand Down
25 changes: 24 additions & 1 deletion utils/docker_ssi/docker_ssi_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,31 @@ class PHPRuntimeInstallableVersions:
""" PHP runtime versions that can be installed automatically"""

PHP56 = RuntimeInstallableVersion("PHP56", "5.6") # Not supported (EOL runtime)
PHP70 = RuntimeInstallableVersion("PHP70", "7.0")
PHP71 = RuntimeInstallableVersion("PHP71", "7.1")
PHP72 = RuntimeInstallableVersion("PHP72", "7.2")
PHP73 = RuntimeInstallableVersion("PHP73", "7.3")
PHP74 = RuntimeInstallableVersion("PHP74", "7.4")
PHP80 = RuntimeInstallableVersion("PHP80", "8.0")
PHP81 = RuntimeInstallableVersion("PHP81", "8.1")
PHP82 = RuntimeInstallableVersion("PHP82", "8.2")
PHP83 = RuntimeInstallableVersion("PHP83", "8.3")
PHP84 = RuntimeInstallableVersion("PHP84", "8.4")

@staticmethod
def get_all_versions():
return [
PHPRuntimeInstallableVersions.PHP56,
PHPRuntimeInstallableVersions.PHP70,
PHPRuntimeInstallableVersions.PHP71,
PHPRuntimeInstallableVersions.PHP72,
PHPRuntimeInstallableVersions.PHP73,
PHPRuntimeInstallableVersions.PHP74,
PHPRuntimeInstallableVersions.PHP80,
PHPRuntimeInstallableVersions.PHP81,
PHPRuntimeInstallableVersions.PHP82,
PHPRuntimeInstallableVersions.PHP83,
PHPRuntimeInstallableVersions.PHP84,
]

@staticmethod
Expand Down Expand Up @@ -174,7 +190,14 @@ def get_version_id(version):
PHP_APP = WeblogDescriptor(
"php-app",
"php",
[SupportedImages().UBUNTU_22_AMD64.with_allowed_runtime_versions(PHPRuntimeInstallableVersions.get_all_versions())],
[
SupportedImages().UBUNTU_22_AMD64.with_allowed_runtime_versions(
PHPRuntimeInstallableVersions.get_all_versions()
),
SupportedImages().UBUNTU_22_ARM64.with_allowed_runtime_versions(
PHPRuntimeInstallableVersions.get_all_versions()
),
],
)

PY_APP = WeblogDescriptor(
Expand Down

0 comments on commit ffcd5d9

Please sign in to comment.