Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More test fixes #857

Merged
merged 6 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-and-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
mkdir -p ${{ github.workspace }}/rpmbuild/RPMS/SRPMS

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: source

Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/run-tests-pebble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,103 +17,103 @@ jobs:
test-alpine:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Alpine
run: test/run-test.sh alpine
test-bash-4-0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Alpine using Bash 4.0
run: test/run-test.sh bash4-0
test-bash-4-2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Alpine using Bash 4.2
run: test/run-test.sh bash4-2
test-bash-5-0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Alpine using Bash 5
run: test/run-test.sh bash5-0
test-centos6:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on CentOS6
run: test/run-test.sh centos6
test-centos7:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on CentOS7
run: test/run-test.sh centos7
test-centos8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on CentOS8
run: test/run-test.sh centos8
test-debian:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Debian
run: test/run-test.sh debian
test-rockylinux8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on RockyLinux8
run: test/run-test.sh rockylinux8
test-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Ubuntu
run: test/run-test.sh ubuntu
test-ubuntu14:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Ubuntu14
run: test/run-test.sh ubuntu14
test-ubuntu16:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Ubuntu16
run: test/run-test.sh ubuntu16
test-ubuntu18:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Ubuntu18
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests-staging-acmedns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
test-ubuntu-acmedns:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Ubuntu against Staging using acmedns
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/run-tests-staging-duckdns.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Run tests against Staging server using DuckDNS
on:
workflow_dispatch:
branches:
- master
env:
DUCKDNS_TOKEN: ${{ secrets.DUCKDNS_TOKEN == '' && '1d616aa9-b8e4-4bb4-b312-3289de82badb' || secrets.DUCKDNS_TOKEN }}
jobs:
test-centos7-duckdns:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on CentOS7 against Staging using DuckDNS
Expand All @@ -19,7 +17,7 @@ jobs:
if: always()
needs: test-centos7-duckdns
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Ubuntu against Staging using DuckDNS
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/run-tests-staging-dynu.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Run tests against Staging server using Dynu
on:
workflow_dispatch:
branches:
- master
workflow_dispatch
env:
DYNU_API_KEY: ${{ secrets.DYNU_API_KEY == '' && '65cXefd35XbYf36546eg5dYcZT6X52Y2' || secrets.DYNU_API_KEY }}
jobs:
test-centos7-dynu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on CentOS7 against Staging using Dynu
Expand All @@ -19,7 +17,7 @@ jobs:
if: always()
needs: test-centos7-dynu
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the docker compose stack
run: docker compose up -d --build
- name: Run test suite on Ubuntu against Staging using Dynu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint check
uses: azohra/shell-linter@latest
with:
Expand Down
17 changes: 14 additions & 3 deletions getssl
Original file line number Diff line number Diff line change
Expand Up @@ -1622,9 +1622,20 @@ get_auth_dns() { # get the authoritative dns server for a domain (sets primary_n

# Query for NS records
if [[ -z "$res" ]]; then
debug Using "$HAS_DIG_OR_DRILL $DNS_CHECK_OPTIONS ${gad_s} NS ${gad_d}" to find primary nameserver
# shellcheck disable=SC2086
res=$($HAS_DIG_OR_DRILL $DNS_CHECK_OPTIONS ${gad_s} NS "${gad_d}"| grep -E "IN\W(NS|SOA)\W")
out="SERVFAIL"
i=0
while [[ "$out" == *"SERVFAIL"* ]] && [[ $i -lt 5 ]]; do
debug Using "$HAS_DIG_OR_DRILL $DNS_CHECK_OPTIONS ${gad_s} NS ${gad_d}" to find primary nameserver
# shellcheck disable=SC2086
out=$($HAS_DIG_OR_DRILL $DNS_CHECK_OPTIONS ${gad_s} NS "${gad_d}")
res=$(echo "$out"| grep -E "IN\W(NS|SOA)\W")
if [[ "$out" == *SERVFAIL* ]]; then
debug Output from "$HAS_DIG_OR_DRILL $DNS_CHECK_OPTIONS ${gad_s} NS ${gad_d}" contains SERVFAIL
debug "$out"
sleep 2
fi
((i++))
done
fi

if [[ -n "$res" ]]; then
Expand Down
2 changes: 0 additions & 2 deletions test/24-wildcard-sans.bats
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ teardown_file() {
check_output_for_errors
run openssl x509 -noout -text -in "${INSTALL_DIR}/.getssl/${GETSSL_CMD_HOST}/${GETSSL_CMD_HOST}.crt"
# verify certificate is for wildcard domain with non-wildcard domain in the Subject Alternative Name list
# assert_output --regexp "Subject: CN[ ]?=[ ]?\*.wild-${GETSSL_HOST}"
assert_output --partial "DNS:${GETSSL_HOST}"
}

Expand All @@ -69,6 +68,5 @@ teardown_file() {
check_output_for_errors
run openssl x509 -noout -text -in "${INSTALL_DIR}/.getssl/${GETSSL_CMD_HOST}/${GETSSL_CMD_HOST}.crt"
# verify certificate is for non-wildcard domain with wildcard domain in the Subject Alternative Name list
# assert_output --regexp "Subject: CN[ ]?=[ ]?${GETSSL_HOST}"
assert_output --partial "DNS:*.wild-${GETSSL_HOST}"
}
6 changes: 3 additions & 3 deletions test/Dockerfile-centos7
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ RUN yum -y install ftp vsftpd
RUN yum -y install openssh-server

# Set locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

WORKDIR /root
RUN mkdir -p /etc/nginx/pki/private
Expand Down
10 changes: 5 additions & 5 deletions test/Dockerfile-centos7-duckdns
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ RUN yum -y install epel-release
RUN yum -y install git curl bind-utils ldns wget which nginx jq

# Set locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

ENV staging "true"
ENV dynamic_dns "dynu"
ENV staging="true"
ENV dynamic_dns="dynu"

WORKDIR /root
RUN mkdir -p /etc/nginx/pki/private
Expand Down
10 changes: 5 additions & 5 deletions test/Dockerfile-centos7-dynu
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ RUN yum -y install epel-release
RUN yum -y install git curl bind-utils ldns wget which nginx jq

# Set locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

ENV staging "true"
ENV dynamic_dns "duckdns"
ENV staging="true"
ENV dynamic_dns="duckdns"

WORKDIR /root
RUN mkdir -p /etc/nginx/pki
Expand Down
6 changes: 3 additions & 3 deletions test/Dockerfile-centos8
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ RUN yum -y install ftp vsftpd
RUN yum -y install openssh-server

# Set locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

WORKDIR /root
RUN mkdir -p /etc/nginx/pki/private
Expand Down
6 changes: 3 additions & 3 deletions test/Dockerfile-debian
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ RUN apt-get install -y locales # for idn testing

# Set locale
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

WORKDIR /root
RUN mkdir -p /etc/nginx/pki/private
Expand Down
6 changes: 3 additions & 3 deletions test/Dockerfile-rockylinux8
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ RUN yum -y update && \
glibc-locale-source glibc-langpack-en # for en_US.UTF-8 support

# Set locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

WORKDIR /root
RUN mkdir -p /etc/nginx/pki/private
Expand Down
8 changes: 4 additions & 4 deletions test/Dockerfile-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:latest
# Note this image uses mawk1.3

# Set noninteractive otherwise tzdata hangs
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Update and install required software
RUN apt-get update --fix-missing
Expand All @@ -15,9 +15,9 @@ RUN apt-get install -y locales # for idn testing

# Set locale
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

# Setup ftp
ENV VSFTPD_CONF=/etc/vsftpd.conf
Expand Down
16 changes: 8 additions & 8 deletions test/Dockerfile-ubuntu-acmedns
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ FROM ubuntu:latest
# Note this image uses mawk1.3

# Set noninteractive otherwise tzdata hangs
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Ensure tests in this image use the staging server
ENV staging "true"
ENV staging="true"
# 2016ENV dynamic_dns "acme-dns"
ENV ACMEDNS_API_USER 49ac5f6d-74cd-4aca-acfe-f9457af7894c
ENV ACMEDNS_API_KEY 2NPGF8cH7PeTrHZWXImi1prhTsQGz2pdCC7Za5zE
ENV ACMEDNS_SUBDOMAIN 7268181b-7075-4dce-be51-9c20c205cf6e
ENV ACMEDNS_API_USER=49ac5f6d-74cd-4aca-acfe-f9457af7894c
ENV ACMEDNS_API_KEY=2NPGF8cH7PeTrHZWXImi1prhTsQGz2pdCC7Za5zE
ENV ACMEDNS_SUBDOMAIN=7268181b-7075-4dce-be51-9c20c205cf6e

# Update and install required software
RUN apt-get update --fix-missing
Expand All @@ -20,9 +20,9 @@ RUN apt-get install -y locales # for idn testing

# Set locale
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

WORKDIR /root

Expand Down
Loading
Loading