ci(gn3-auth-flow-tests): wire credentials setup and teardown
HEAD mainThe gn3-auth-flow-tests job was running without test users or an OAuth2
client, so all valid-token tests (which require the access_token fixture)
were skipping silently in CI.
Add setup-gn-auth-credentials-gexp and teardown-gn-auth-credentials-gexp,
mirroring the gn-auth-auth-flow-tests job. This creates a system-admin
test user and OAuth2 client before the run, and removes them on exit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Reviewed-By: Frederick M. Muriithi <fredmanglis@gmail.com>
1 files changed, 3 insertions, 1 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index 24176c0..282fe2b 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -440,7 +440,9 @@ genenetwork3 source from the latest commit of @var{project}."
(name "gn3-auth-flow-tests")
(run (gn-integration-tests-gexp
config
- (list "pytest" "-m" "gn3 and auth_flow" "-v")))
+ (list "pytest" "-m" "gn3 and auth_flow" "-v")
+ #:setup (list (setup-gn-auth-credentials-gexp))
+ #:teardown (list (teardown-gn-auth-credentials-gexp))))
(trigger? #f))))
(ci-jobs-trigger 'webhook))
(forge-project
|