|
| 1 | +GET http://localhost:8080/ |
| 2 | +HTTP 200 |
| 3 | +[Asserts] |
| 4 | +body contains "SQLPage" |
| 5 | +body contains "Documentation" |
| 6 | +body contains "Get Started" |
| 7 | +body not contains "An error occurred" |
| 8 | + |
| 9 | +GET http://localhost:8080/documentation.sql |
| 10 | +HTTP 200 |
| 11 | +[Asserts] |
| 12 | +body contains "SQLPage v" |
| 13 | +body contains "components" |
| 14 | +body contains "shell" |
| 15 | +body not contains "An error occurred" |
| 16 | + |
| 17 | +GET http://localhost:8080/component.sql?component=form |
| 18 | +HTTP 200 |
| 19 | +[Asserts] |
| 20 | +body contains "The form component" |
| 21 | +body contains "Building forms in SQL" |
| 22 | +body not contains "An error occurred" |
| 23 | + |
| 24 | +GET http://localhost:8080/functions.sql?function=url_encode |
| 25 | +HTTP 200 |
| 26 | +[Asserts] |
| 27 | +body contains "sqlpage.url_encode" |
| 28 | +body contains "Parameters" |
| 29 | +body not contains "An error occurred" |
| 30 | + |
| 31 | +GET http://localhost:8080/search.sql?search=form |
| 32 | +HTTP 302 |
| 33 | +[Asserts] |
| 34 | +header "Location" == "/component.sql?component=form" |
| 35 | + |
| 36 | +GET http://localhost:8080/not-a-real-doc-page |
| 37 | +HTTP 404 |
| 38 | +[Asserts] |
| 39 | +body contains "Not Found" |
| 40 | +body not contains "An error occurred" |
| 41 | + |
| 42 | +GET http://localhost:8080/examples/authentication/ |
| 43 | +HTTP 302 |
| 44 | +[Asserts] |
| 45 | +header "Location" == "login.sql" |
| 46 | + |
| 47 | +GET http://localhost:8080/examples/authentication/login.sql |
| 48 | +HTTP 200 |
| 49 | +[Asserts] |
| 50 | +body contains "Demo Login Form" |
| 51 | +body contains "admin" |
| 52 | +body not contains "An error occurred" |
| 53 | + |
| 54 | +POST http://localhost:8080/examples/authentication/create_session_token.sql |
| 55 | +[FormParams] |
| 56 | +username: admin |
| 57 | +password: admin |
| 58 | +HTTP 302 |
| 59 | +[Asserts] |
| 60 | +header "Location" == "/examples/authentication" |
| 61 | + |
| 62 | +GET http://localhost:8080/examples/authentication/ |
| 63 | +HTTP 200 |
| 64 | +[Asserts] |
| 65 | +body contains "You are logged in as admin" |
| 66 | +body contains "Log out" |
| 67 | +body not contains "An error occurred" |
| 68 | + |
| 69 | +GET http://localhost:8080/examples/authentication/logout.sql |
| 70 | +HTTP 302 |
| 71 | +[Asserts] |
| 72 | +header "Location" == "login.sql" |
0 commit comments