From bca852df7dc5f1281e5d0ebe7f9a0204030908fd Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 3 Jan 2024 08:51:15 +0100 Subject: [PATCH] Test NodeJS 20 on all ELs --- spec/acceptance/class_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/acceptance/class_spec.rb b/spec/acceptance/class_spec.rb index 6841c736..2801ea21 100644 --- a/spec/acceptance/class_spec.rb +++ b/spec/acceptance/class_spec.rb @@ -106,8 +106,7 @@ class { 'nodejs': end end - context 'RedHat with repo_class => nodejs::repo::dnfmodule', if: fact('os.family') == 'RedHat' && %w[8 9].include?(fact('os.release.major')), skip: ((nodejs_version == '20' && fact('os.name') != 'CentOS') || (nodejs_version == '16' && fact('os.release.major') == '9') ? 'NodeJS 20 is not yet in a released EL, NodeJS 16 is not available on EL9' : nil) do - # Node 20 is only available in Stream yet, not in a released EL + context 'RedHat with repo_class => nodejs::repo::dnfmodule', if: fact('os.family') == 'RedHat' && %w[8 9].include?(fact('os.release.major')), skip: (nodejs_version == '16' && fact('os.release.major') == '9' ? 'NodeJS 16 is not available on EL9' : nil) do # Node 16 is not available on EL9 include_examples 'cleanup'