e2e: only initialise selenium after setting up container

This commit is contained in:
Jens Langhammer 2020-07-10 16:49:25 +02:00
parent 111b037512
commit 40e794099a
5 changed files with 5 additions and 5 deletions

View File

@ -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"""

View File

@ -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"""

View File

@ -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"""

View File

@ -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"""

View File

@ -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