#!/usr/bin/env bash

# ensure consistent behaviour
src_dir="$(dirname "$(realpath "$0")")"
source $src_dir/utils/_env.sh

# migrate all testing configuration
for config in $PWD/etc/config/config.migrate-test*.yaml;
do
    python3 -m knot_resolver.client migrate $config migrated.yaml;
    python3 -m knot_resolver.client validate migrated.yaml;
    check_rv $?
done
