diff --git a/scripts/maas b/scripts/maas deleted file mode 100644 index c57f41e..0000000 --- a/scripts/maas +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# fake maas: serves read endpoints from fixtures. `vlans read ` is filtered by -# fabric_id and MIMICS REAL MAAS by erroring (non-JSON, non-zero) on an unknown/absent -# fabric id -- this is what tripped the live run when a placeholder id leaked through. -prof="${1:-}"; obj="${2:-}"; act="${3:-}"; fab="${4:-}" -case "$obj $act" in - "subnets read") cat "${FIX_SUBNETS:?}"; exit 0 ;; - "spaces read") cat "${FIX_SPACES:?}"; exit 0 ;; - "ipranges read") cat "${FIX_IPRANGES:?}"; exit 0 ;; - "fabrics read") cat "${FIX_FABRICS:?}"; exit 0 ;; - "vlans read") - if jq -e --arg f "$fab" 'any(.[]; (.fabric_id|tostring)==$f)' "${FIX_VLANS:?}" >/dev/null 2>&1; then - jq --arg f "$fab" '[.[]|select((.fabric_id|tostring)==$f)]' "${FIX_VLANS:?}"; exit 0 - fi - echo "Unable to find fabric with id '$fab'." >&2; echo "Not Found"; exit 2 ;; -esac -echo "{}"; exit 0 diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh deleted file mode 100644 index ea50f45..0000000 --- a/scripts/run-tests.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash -# Behavior regression for phase-00-maas-standup.sh (D-058). Fake `maas` + real jq. -# Drives DRY-RUN and asserts WOULD/SKIP/DRIFT/refuse behaviour across scenarios. -set -uo pipefail -HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -SCRIPT="$(cd "$HERE/../../scripts" && pwd)/phase-00-maas-standup.sh" -BIN="$HERE/fakebin"; FIX="$HERE/fix" -chmod +x "$BIN"/* 2>/dev/null || true # GitHub Desktop lands files mode 100644 -command -v jq >/dev/null || { echo "FAIL: jq required"; exit 1; } -python3 "$HERE/make_fixtures.py" >/dev/null -rc_all=0; OUT="$(mktemp)" - -run() { #