You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
examples/flapi-test.yaml has two endpoints that reference a connection it deliberately excludes #167
flapi -c examples/flapi-test.yaml --validate-config (run from examples/) exits 1 with two genuine errors:
✗ Endpoint: /sap/flights
ERROR: Connection 'sap-abap-trial' not found in configuration
✗ Endpoint: flight_list
ERROR: Connection 'sap-abap-trial' not found in configuration
flapi-test.yaml omits the SAP connection on purpose ("SAP ERPL and BigQuery excluded for test isolation"), but it still points template.path at ./sqls, which contains sap/flights-*.yaml. So those two endpoints are loaded against a connection that does not exist: they can only fail when called, and the validator is right to say so.
Found by
#156. Its issue text said flapi.yaml and flapi-test.yaml "fail the same way" (a prompt file validated as an endpoint). That was true of flapi.yaml, which #156's fix now makes pass. flapi-test.yaml was failing for this reason as well, hidden behind the first.
Suggested fix
Either keep the SAP endpoints out of the test config's template path, or give the config a stand-in connection so the endpoints are at least well-formed. Then add flapi-test.yaml to test_validate_config_prompts.py::TestShippedExamplesValidate so it cannot regress.
Activity
Merge pull request #174 from DataZooDE/fix/gh-167-166-examples-and-regex