From a41a33c4ff141e2be9904e4d0789cfadd38b3bda Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Fri, 18 Oct 2024 19:48:33 +0100 Subject: [PATCH] missing test files --- src/.env.test | 3 ++- src/user-groups.test.yaml | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/user-groups.test.yaml diff --git a/src/.env.test b/src/.env.test index 9beb17a..fdbff38 100644 --- a/src/.env.test +++ b/src/.env.test @@ -4,4 +4,5 @@ BLOCKED_EMAILS='["blocked@example.com"]' DATABASE_PATH="sqlite:///auto-archiver.test.db" -API_BEARER_TOKEN=this_is_the_test_api_token \ No newline at end of file +API_BEARER_TOKEN=this_is_the_test_api_token +USER_GROUPS_FILENAME=user-groups.test.yaml \ No newline at end of file diff --git a/src/user-groups.test.yaml b/src/user-groups.test.yaml new file mode 100644 index 0000000..97225db --- /dev/null +++ b/src/user-groups.test.yaml @@ -0,0 +1,18 @@ +# NOTE: all emails should be lower-cased +users: + rick@example.com: + - spaceship + - interdimensional + morty@example.com: + - spaceship + jerry@example.com: + +domains: + example.com: + - animated-characters + + +orchestrators: + spaceship: secrets/orchestration-dev.yaml + interdimensional: secrets/orchestration-dev.yaml + default: secrets/orchestration-dev.yaml