Skip to content

Commit

Permalink
Fix outdated documentation on Advanced Test Features page of framewor…
Browse files Browse the repository at this point in the history
…k documentation
  • Loading branch information
emichaud998 committed Aug 21, 2023
1 parent 82efcfc commit ed41394
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 ed41394

Please sign in to comment.