Merge branch 'master' into consent-mode
This commit is contained in:
commit
9ff3ee7c0c
|
@ -29,7 +29,7 @@ class TestProviderOAuth(SeleniumTestCase):
|
||||||
"""Setup client grafana container which we test OAuth against"""
|
"""Setup client grafana container which we test OAuth against"""
|
||||||
client: DockerClient = from_env()
|
client: DockerClient = from_env()
|
||||||
container = client.containers.run(
|
container = client.containers.run(
|
||||||
image="grafana/grafana:latest",
|
image="grafana/grafana:7.1.0",
|
||||||
detach=True,
|
detach=True,
|
||||||
network_mode="host",
|
network_mode="host",
|
||||||
auto_remove=True,
|
auto_remove=True,
|
||||||
|
@ -104,22 +104,19 @@ class TestProviderOAuth(SeleniumTestCase):
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=name]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[1]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().username,
|
USER().username,
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=email]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[2]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().email,
|
USER().email,
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=login]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[3]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().username,
|
USER().username,
|
||||||
)
|
)
|
||||||
|
@ -176,22 +173,19 @@ class TestProviderOAuth(SeleniumTestCase):
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=name]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[1]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().username,
|
USER().username,
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=email]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[2]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().email,
|
USER().email,
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=login]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[3]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().username,
|
USER().username,
|
||||||
)
|
)
|
||||||
|
|
|
@ -32,7 +32,7 @@ class TestProviderOIDC(SeleniumTestCase):
|
||||||
"""Setup client grafana container which we test OIDC against"""
|
"""Setup client grafana container which we test OIDC against"""
|
||||||
client: DockerClient = from_env()
|
client: DockerClient = from_env()
|
||||||
container = client.containers.run(
|
container = client.containers.run(
|
||||||
image="grafana/grafana:latest",
|
image="grafana/grafana:7.1.0",
|
||||||
detach=True,
|
detach=True,
|
||||||
network_mode="host",
|
network_mode="host",
|
||||||
auto_remove=True,
|
auto_remove=True,
|
||||||
|
@ -154,22 +154,19 @@ class TestProviderOIDC(SeleniumTestCase):
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=name]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[1]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().name,
|
USER().name,
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=email]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[2]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().email,
|
USER().email,
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=login]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[3]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().email,
|
USER().email,
|
||||||
)
|
)
|
||||||
|
@ -236,22 +233,19 @@ class TestProviderOIDC(SeleniumTestCase):
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=name]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[1]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().name,
|
USER().name,
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=email]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[2]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().email,
|
USER().email,
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(
|
self.driver.find_element(
|
||||||
By.XPATH,
|
By.CSS_SELECTOR, "input[name=login]"
|
||||||
"/html/body/grafana-app/div/div/div/react-profile-wrapper/form[1]/div[3]/div/input",
|
|
||||||
).get_attribute("value"),
|
).get_attribute("value"),
|
||||||
USER().email,
|
USER().email,
|
||||||
)
|
)
|
||||||
|
|
Reference in New Issue