]> git.apps.os.sepia.ceph.com Git - s3-tests.git/commit
website: routing_setup() as pytest fixture ceph-reef
authorCasey Bodley <cbodley@redhat.com>
Wed, 4 Jun 2025 22:31:39 +0000 (18:31 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 6 Jun 2025 13:30:54 +0000 (09:30 -0400)
commit1fb622547bb4671e26d27e32b4cc68c8c07985e7
treefb6d66bb1c394151fab7ebf64c03942ed3b48629
parent3709d367985970a4242668dfcaba9adf265841a8
website: routing_setup() as pytest fixture

c80e9d2118ca5bcdec5285898a532f8e18faa6b6 had removed the use of
routing_setup() without adding a fixture to replace it. this had broken
routing_check(), but we hadn't noticed it because pytest hadn't
supported the 'yield' pattern in test_routing_generator() to call it

test_routing_generator() now uses this routing_setup fixture to provide
the kwargs that had previously been injected into routing_check() via
@common.with_setup_kwargs(setup=routing_setup, teardown=routing_teardown)

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 9839a407c2353125bb867dec67a8f9960b1a2065)
s3tests/functional/test_s3_website.py