ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
16
services/oci-l4-relay-guest/image/test
Executable file
16
services/oci-l4-relay-guest/image/test
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
|
||||
temporary_directory="$(mktemp -d)"
|
||||
trap 'rm -rf "$temporary_directory"' EXIT
|
||||
|
||||
GOCACHE="$temporary_directory/guest-cache" go test -C "$root/services/oci-l4-relay-guest" ./...
|
||||
bash -n "$root/services/oci-l4-relay-guest/image/artifacts"
|
||||
bash -n "$root/services/oci-l4-relay-guest/image/create"
|
||||
bash -n "$root/services/oci-l4-relay-guest/image/provision.sh"
|
||||
test "$(cat "$root/services/oci-l4-relay-guest/image/etc/modules-load.conf")" = nf_conntrack
|
||||
rg -q 'modules-load\.conf /etc/modules-load\.d/oci-l4-relay\.conf' "$root/services/oci-l4-relay-guest/image/provision.sh"
|
||||
rg -q 'systemctl mask sshd\.service sshd\.socket' "$root/services/oci-l4-relay-guest/image/provision.sh"
|
||||
rg -q '^Restart=on-failure$' "$root/services/oci-l4-relay-guest/image/systemd/oci-l4-relay-log-credential.service"
|
||||
tofu -chdir="$root/terraform/external/oci-relay" fmt -check
|
||||
Loading…
Reference in a new issue