init
This commit is contained in:
19
s3_api/tests/e2e/test_e2e.py
Normal file
19
s3_api/tests/e2e/test_e2e.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
import pytest
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
|
||||
|
||||
SELENIUM_GRID_URL = os.getenv('SELENIUM_GRID_URL')
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_ping_endpoint():
|
||||
if not SELENIUM_GRID_URL:
|
||||
pytest.skip("No Selenium Grid URL set")
|
||||
|
||||
driver = webdriver.Remote(
|
||||
command_executor=SELENIUM_GRID_URL,
|
||||
desired_capabilities=DesiredCapabilities.CHROME
|
||||
)
|
||||
driver.get("http://host.docker.internal:8080/")
|
||||
assert "Pong" in driver.page_source
|
||||
driver.quit()
|
||||
0
s3_api/tests/integration/test_integration.py
Normal file
0
s3_api/tests/integration/test_integration.py
Normal file
0
s3_api/tests/unit/test_app.py
Normal file
0
s3_api/tests/unit/test_app.py
Normal file
Reference in New Issue
Block a user