Skip to content

Commit

Permalink
Add new distributions for tests (#65)
Browse files Browse the repository at this point in the history
* Add new distributions for tests

It seems we sometimes run into problems with other packages like openssl
library. So we need to check more distributions and versions.


* Replace pipefail code with one compatible to non bash
* Fix other pipefail as well
  • Loading branch information
widhalmt authored Nov 9, 2023
1 parent 1a7c95e commit eb0b56b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
distro: [rockylinux8]
distro: [rockylinux8, rockylinux9, ubuntu2204]
scenario: [default, renew, ca-renew]
steps:
- name: Check out code
Expand Down
10 changes: 5 additions & 5 deletions molecule/ca-renew/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

- name: Register notAfter of client certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand All @@ -140,7 +140,7 @@

- name: Register notAfter of server certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand All @@ -155,7 +155,7 @@

- name: Register notAfter of etcd certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand All @@ -170,7 +170,7 @@

- name: Register notAfter of etcd server certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand All @@ -189,7 +189,7 @@

- name: Register notAfter of CA certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand Down
10 changes: 5 additions & 5 deletions molecule/renew/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@

- name: Register notAfter of client certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand All @@ -139,7 +139,7 @@

- name: Register notAfter of server certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand All @@ -154,7 +154,7 @@

- name: Register notAfter of etcd certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand All @@ -169,7 +169,7 @@

- name: Register notAfter of etcd server certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand All @@ -188,7 +188,7 @@

- name: Register notAfter of CA certificate
shell: >
set -o pipefail &&
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
openssl x509
-noout
-dates
Expand Down

0 comments on commit eb0b56b

Please sign in to comment.