From bb09144e47caf6f3814eec78a93f90cf7437f8af 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 ad65fac0..8abed10e 100644 --- a/spec/acceptance/class_spec.rb +++ b/spec/acceptance/class_spec.rb @@ -107,8 +107,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'