Skip to content

Commit

Permalink
Merge branch 'main' into FI-2041-bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alisawallace authored Aug 30, 2023
2 parents fa31368 + 516a1ab commit 2c8fc7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/advanced-test-features/serving-http-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ class MyTestSuite < Inferno::TestSuite
id :my_test_suite

my_html = File.read(File.join(__dir__, 'my_html.html'))
my_html_route_handler = proc { [200, { 'Content-Type' => 'text/html' }, [html]] }
my_html_route_handler = proc { [200, { 'Content-Type' => 'text/html' }, [my_html]] }

# Serve an html page at INFERNO_PATH/my_test_suite/custom/my_html_page
# Serve an html page at INFERNO_PATH/custom/my_test_suite/my_html_page
route :get, '/my_html_page', my_html_route_handler

my_jwks = File.read(File.join(__dir__, 'my_jwks.json'))
my_jwks_route_handler = proc { [200, { 'Content-Type' => 'application/json' }, [my_jwks]] }

# Serve a JSON file at INFERNO_PATH/my_test_suite/custom/.well-known/jwks.json
# Serve a JSON file at INFERNO_PATH/custom/my_test_suite/.well-known/jwks.json
route :get, '/.well-known/jwks.json', my_jwks_route_handler
end
```

0 comments on commit 2c8fc7b

Please sign in to comment.