Repository Public
1#!/usr/bin/env bash2# SP Notes Core3# File: Scripts/record-next-fixtures.sh4# Description: Re-records every fixture of Tests/SPNotesAPITests/Fixtures/next from the SCRATCH backend (API-NEXT §7) by5# running each scenario of Scripts/recorders/. Never run it against production (the recorder refuses).6#7# Author: Simon-Pierre Boucher8# Contact: contact@spboucher.ai9#10# Usage:11# ssh -f -N -L 18483:127.0.0.1:8483 M4M64c12# export SPN_LIVE_URL=http://127.0.0.1:1848313# export SPN_LIVE_TOKEN=$(ssh M4M64c 'cd ~/dev/note-next && bash scripts/next-dev-server.sh token')14# Scripts/record-next-fixtures.sh [group …]15set -euo pipefail16cd "$(dirname "$0")"17if [ "$#" -gt 0 ]; then18 for group in "$@"; do python3 "recorders/$group.py"; done19else20 for scenario in recorders/*.py; do python3 "$scenario"; done21fi22