|
| 1 | +# Shared changes run every examples/*/test.hurl, including newly added examples. |
| 2 | +all_examples: |
| 3 | + - 'examples/**' |
| 4 | + - 'Dockerfile' |
| 5 | + - '.dockerignore' |
| 6 | + - 'Cargo.toml' |
| 7 | + - 'Cargo.lock' |
| 8 | + - 'build.rs' |
| 9 | + - '.cargo/**' |
| 10 | + - 'scripts/**' |
| 11 | + - '.github/workflows/ci.yml' |
| 12 | + - '.github/hurl-examples.yml' |
| 13 | + |
| 14 | +# Keys are example folders; add one glob per line to associate more files. |
| 15 | +# Keep suites with distinctive integration coverage; describe it above each entry. |
| 16 | + |
| 17 | +# Trace propagation through nginx and actual OTLP export into Tempo. |
| 18 | +'examples/telemetry': |
| 19 | + - 'src/telemetry.rs' |
| 20 | + - 'src/app_config.rs' |
| 21 | + - 'src/main.rs' |
| 22 | + - 'src/webserver/http.rs' |
| 23 | + - 'src/webserver/http_client.rs' |
| 24 | + - 'src/webserver/database/execute_queries.rs' |
| 25 | + |
| 26 | +# Mailpit checks delivered MIME parts; the form asserts delayed multipart encoding. |
| 27 | +'examples/sending emails': |
| 28 | + - 'src/app_config.rs' |
| 29 | + - 'src/webserver/http_request_info.rs' |
| 30 | + - 'src/webserver/database/sqlpage_functions/functions/send_mail.rs' |
| 31 | + - 'src/webserver/database/sqlpage_functions/functions/uploaded_file_name.rs' |
| 32 | + - 'src/webserver/database/sqlpage_functions/functions/uploaded_file_path.rs' |
| 33 | + - 'src/webserver/database/sqlpage_functions/functions/read_file_as_data_url.rs' |
| 34 | + - 'sqlpage/templates/form.handlebars' |
| 35 | + |
| 36 | +# Real Keycloak discovery, login, callback cookies, and identity claims in SQL. |
| 37 | +'examples/single sign on': |
| 38 | + - 'src/app_config.rs' |
| 39 | + - 'src/lib.rs' |
| 40 | + - 'src/webserver/oidc.rs' |
| 41 | + - 'src/webserver/http.rs' |
| 42 | + - 'src/webserver/routing.rs' |
| 43 | + - 'src/webserver/http_client.rs' |
| 44 | + - 'src/webserver/http_request_info.rs' |
| 45 | + - 'src/webserver/database/sqlpage_functions/functions/user_info*.rs' |
| 46 | + - 'src/webserver/database/sqlpage_functions/functions/oidc_logout_url.rs' |
| 47 | + |
| 48 | +# A real proxy connects to SQLPage's Unix socket and rewrites pretty URLs. |
| 49 | +'examples/nginx': |
| 50 | + - 'src/app_config.rs' |
| 51 | + - 'src/main.rs' |
| 52 | + - 'src/webserver/http.rs' |
| 53 | + - 'src/webserver/routing.rs' |
| 54 | + |
| 55 | +# Apache proxies a site prefix, including the missing trailing slash redirect. |
| 56 | +'examples/web servers - apache': |
| 57 | + - 'src/app_config.rs' |
| 58 | + - 'src/webserver/http.rs' |
| 59 | + - 'src/webserver/routing.rs' |
| 60 | + |
| 61 | +# Load SpatiaLite's native library and use its spatial functions on pooled SQLite. |
| 62 | +'examples/make a geographic data application using sqlite extensions': |
| 63 | + - 'src/app_config.rs' |
| 64 | + - 'src/webserver/database/connect.rs' |
| 65 | + |
| 66 | +# Create a PostgreSQL-backed page, request it, and render dynamic rows in a table. |
| 67 | +'examples/SQLPage developer user interface': |
| 68 | + - 'src/filesystem.rs' |
| 69 | + - 'src/file_cache.rs' |
| 70 | + - 'src/webserver/routing.rs' |
| 71 | + - 'src/webserver/database/sqlpage_functions/functions/link.rs' |
| 72 | + - 'sqlpage/templates/table.handlebars' |
| 73 | + |
| 74 | +# Posted arrays feed MySQL JSON_TABLE; native JSON builds the select options. |
| 75 | +'examples/mysql json handling': |
| 76 | + - 'src/webserver/http_request_info.rs' |
| 77 | + - 'src/webserver/request_variables.rs' |
| 78 | + - 'src/webserver/single_or_vec.rs' |
| 79 | + - 'src/webserver/database/sql.rs' |
| 80 | + - 'src/webserver/database/sql/**' |
| 81 | + - 'src/webserver/database/execute_queries.rs' |
| 82 | + - 'src/webserver/database/sql_to_json.rs' |
| 83 | + - 'sqlpage/templates/form.handlebars' |
| 84 | + |
| 85 | +# A real cookie jar round-trips an encoded space and removes it from a subfolder. |
| 86 | +'examples/read-and-set-http-cookies': |
| 87 | + - 'src/render.rs' |
| 88 | + - 'src/webserver/http_request_info.rs' |
| 89 | + - 'src/webserver/database/sqlpage_functions/functions/cookie.rs' |
| 90 | + |
| 91 | +# Hash a new signup's password, authenticate it, and invalidate its login session. |
| 92 | +'examples/user-authentication': |
| 93 | + - 'src/render.rs' |
| 94 | + - 'src/webserver/http_request_info.rs' |
| 95 | + - 'src/webserver/database/sqlpage_functions/functions/hash_password.rs' |
| 96 | + - 'src/webserver/database/sqlpage_functions/functions/random_string.rs' |
| 97 | + - 'src/webserver/database/sqlpage_functions/functions/cookie.rs' |
| 98 | + |
| 99 | +# Authenticated multipart upload persists an image into a writable container mount. |
| 100 | +'examples/image gallery with user uploads': |
| 101 | + - 'src/app_config.rs' |
| 102 | + - 'src/webserver/http_request_info.rs' |
| 103 | + - 'src/webserver/database/sqlpage_functions/functions/persist_uploaded_file.rs' |
| 104 | + - 'src/webserver/database/sqlpage_functions/functions/uploaded_file_mime_type.rs' |
| 105 | + - 'src/webserver/database/sqlpage_functions/functions/random_string.rs' |
| 106 | + |
| 107 | +# JSON menus with icon-only submenus and arrays of custom scripts/styles. |
| 108 | +'examples/CRUD - Authentication': ['sqlpage/templates/shell.handlebars'] |
| 109 | + |
| 110 | +# Cards combine Markdown and remote chart/map/table embed markup. |
| 111 | +'examples/cards-with-remote-content': ['sqlpage/templates/card.handlebars'] |
0 commit comments