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:
Roberto Treviño
2026-11-28 09:29:59 -06:00
parent d3f7aeb537
commit b515746406
10 changed files with 749 additions and 26 deletions
+8 -1
View File
@@ -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