Skip to content

Commit

Permalink
Updated test Java 20 version to 20.0.1 (#337)
Browse files Browse the repository at this point in the history
The latest Java 20 release.
  • Loading branch information
freemanjp authored Aug 3, 2023
1 parent 6221521 commit b3b78e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ jobs:
- max
molecule-scenario:
- ubuntu-min-java-max-lts-online
# - ubuntu-min-java-max-non-lts-online
- ubuntu-min-java-max-non-lts-online
- ubuntu-min-java-old-lts-online
- ubuntu-max-java-min-offline
- ubuntu-max-java-max-lts-offline
# - ubuntu-max-java-max-non-lts-offline
- ubuntu-max-java-max-non-lts-offline
- ubuntu-max-java-old-lts-offline
- debian-max-java-min-offline
- debian-max-java-max-lts-offline
Expand Down
12 changes: 6 additions & 6 deletions molecule/java-max-non-lts-offline/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

- name: Download JDK for offline install
ansible.builtin.get_url:
url: "https://api.adoptium.net/v3/binary/version/{{ 'jdk-20.0.0+36' | urlencode }}/linux/x64/jdk/hotspot/normal/adoptium?project=jdk" # noqa 204
dest: '{{ java_local_archive_dir }}/OpenJDK20-jdk_x64_linux_hotspot_20.0.0_36.tar.gz'
url: "https://api.adoptium.net/v3/binary/version/{{ 'jdk-20.0.1+9' | urlencode }}/linux/x64/jdk/hotspot/normal/adoptium?project=jdk" # noqa 204
dest: '{{ java_local_archive_dir }}/OpenJDK20-jdk_x64_linux_hotspot_20.0.1_9.tar.gz'
force: false
timeout: '{{ java_download_timeout_seconds }}'
mode: 'u=rw,go=r'
Expand All @@ -30,10 +30,10 @@
- role: ansible-role-java
java_use_local_archive: true
java_major_version: '20'
java_version: '20.0.0+36'
java_release_name: 'jdk-20.0.0+36'
java_redis_filename: 'OpenJDK20-jdk_x64_linux_hotspot_20.0.0_36.tar.gz'
java_redis_sha256sum: 'fb6000faf47fffcda8caf01f60097d582728a6fffb6c1b85c8075c674f0c9281'
java_version: '20.0.1+9'
java_release_name: 'jdk-20.0.1+9'
java_redis_filename: 'OpenJDK20-jdk_x64_linux_hotspot_20.0.1_9.tar.gz'
java_redis_sha256sum: '43ad054f135a7894dc87ad5d10ad45d8e82846186515892acdbc17c2c5cd27e4'

post_tasks:
- name: Verify java facts
Expand Down
6 changes: 3 additions & 3 deletions molecule/java-max-non-lts/tests/test_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_java(host):
m = re.search('(?:java|openjdk) version "([0-9]+)', cmd.stderr)
assert m is not None
java_version = m.group(1)
assert '17' == java_version
assert '20' == java_version


def test_javac(host):
Expand All @@ -17,11 +17,11 @@ def test_javac(host):
m = re.search('javac ([0-9]+)', cmd.stdout)
assert m is not None
java_version = m.group(1)
assert '17' == java_version
assert '20' == java_version


@pytest.mark.parametrize('version_dir_pattern', [
'jdk-17(\\.[0-9]+\\.[0-9]+)?(\\+[0-9]+)?$'
'jdk-20(\\.[0-9]+\\.[0-9]+)?(\\+[0-9]+)?$'
])
def test_java_installed(host, version_dir_pattern):

Expand Down

0 comments on commit b3b78e4

Please sign in to comment.