mirror of
https://git.proxmox.com/git/proxmox-acme
synced 2025-04-28 12:16:51 +00:00
tests: add non-word boundary to present functions
noticed that _clearaccountconf_mutable is used in dns_cf.sh, but not present (it gets masked since we provide _clearaccountconf) tested with this example. additionally update missing-functions.expected - _error is not present in upstream `acme.sh` but used in dns_aws.sh (I expect an error which is only hit very seldomly) Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
1b871fa818
commit
50ab3be956
@ -3,11 +3,11 @@
|
||||
set -e
|
||||
|
||||
# functions already in src/proxmox-acme
|
||||
PRESENT=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
|
||||
PRESENT=$(awk 'BEGIN{ORS="\\W|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
|
||||
../proxmox-acme | sed -r 's/\|$//')
|
||||
|
||||
# functions defined in all plugins
|
||||
LOCAL=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
|
||||
LOCAL=$(awk 'BEGIN{ORS="\\W|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
|
||||
../acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
|
||||
|
||||
grep -P '(?<!["$])\b_[a-zA-Z0-9_-]+ ' ../acme.sh/dnsapi/dns_*sh | \
|
||||
|
@ -1,3 +1,4 @@
|
||||
../acme.sh/dnsapi/dns_aws.sh: _error "invalid domain"
|
||||
../acme.sh/dnsapi/dns_cpanel.sh: for _domain in $_domains; do
|
||||
../acme.sh/dnsapi/dns_cyon.sh: printf "%s" "${_dns_entries}" | while read -r _hash _identifier; do
|
||||
../acme.sh/dnsapi/dns_do.sh: for _rrid in ${_rr_list}; do
|
||||
|
Loading…
Reference in New Issue
Block a user