e2e: only initialise selenium after setting up container
This commit is contained in:
parent
111b037512
commit
40e794099a
|
@ -23,8 +23,8 @@ class TestFlowsEnroll(SeleniumTestCase):
|
|||
"""Test Enroll flow"""
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.container = self.setup_client()
|
||||
super().setUp()
|
||||
|
||||
def setup_client(self) -> Container:
|
||||
"""Setup test IdP container"""
|
||||
|
|
|
@ -20,10 +20,10 @@ class TestProviderOAuth(SeleniumTestCase):
|
|||
"""test OAuth Provider flow"""
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.client_id = generate_client_id()
|
||||
self.client_secret = generate_client_secret()
|
||||
self.container = self.setup_client()
|
||||
super().setUp()
|
||||
|
||||
def setup_client(self) -> Container:
|
||||
"""Setup client grafana container which we test OAuth against"""
|
||||
|
|
|
@ -23,10 +23,10 @@ class TestProviderOIDC(SeleniumTestCase):
|
|||
"""test OpenID Provider flow"""
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.client_id = generate_client_id()
|
||||
self.client_secret = generate_client_secret()
|
||||
self.container = self.setup_client()
|
||||
super().setUp()
|
||||
|
||||
def setup_client(self) -> Container:
|
||||
"""Setup client grafana container which we test OIDC against"""
|
||||
|
|
|
@ -40,8 +40,8 @@ class TestSourceSAML(SeleniumTestCase):
|
|||
"""test SAML Source flow"""
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.container = self.setup_client()
|
||||
super().setUp()
|
||||
|
||||
def setup_client(self) -> Container:
|
||||
"""Setup test IdP container"""
|
||||
|
|
|
@ -25,9 +25,9 @@ class TestSourceOAuth(SeleniumTestCase):
|
|||
container: Container
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.client_secret = generate_client_secret()
|
||||
self.container = self.setup_client()
|
||||
super().setUp()
|
||||
|
||||
def prepare_dex_config(self):
|
||||
"""Since Dex does not document which environment
|
||||
|
|
Reference in New Issue