about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaude2026-08-26 14:08:42 +0000
committerFrederick Muriuki Muriithi2026-08-26 09:12:08 -0500
commit23967c163f32d696147cc9384ffe7e0a3193075c (patch)
tree009493fd493590ce550d91ff8ee9abe00298128c
parent8fcdb6d435aea4736253915c701474d27971d2be (diff)
downloadgn-machines-23967c163f32d696147cc9384ffe7e0a3193075c.tar.gz
ci(gn3-auth-flow-tests): wire credentials setup and teardown HEAD main
The 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>
-rw-r--r--genenetwork-development.scm4
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