Source types, connection test, server folders, uploads and OAuth sign-in for the Conectar dialog; sign-in for the web app with fastapi-users, the API left open
This commit is contained in:
@@ -33,4 +33,11 @@ def test_every_page_loads_from_the_api(api, platform, site):
|
||||
ok(api.put("/ingest/pipelines/site", json=json.loads(site.drawn)))
|
||||
run(api, "site")
|
||||
subprocess.run(["npx", "playwright", "test"], cwd=ROOT / "WebApp", check=True,
|
||||
env={**os.environ, "API_URL": str(api.base_url).rstrip("/")}) # fmt: skip
|
||||
env={**os.environ, "API_URL": str(api.base_url).rstrip("/"),
|
||||
"SITE_URL": site.url}) # fmt: skip
|
||||
# The dialog's source is the one an operator draws by hand for this site.
|
||||
drawn = json.loads(site.drawn)["nodes"][0]
|
||||
made = ok(api.get("/ingest/pipelines/asistente"))["pipeline"]["nodes"][0]
|
||||
assert made["guided"]["type"] == "sqlserver" and made["source"] == drawn["source"]
|
||||
assert {k: v for k, v in made["args"].items() if k != "credentials"} == {
|
||||
k: v for k, v in drawn["args"].items() if k != "credentials"} # fmt: skip
|
||||
|
||||
Reference in New Issue
Block a user