Skip to content

Commit

Permalink
Modify functional tests to include index creation
Browse files Browse the repository at this point in the history
- In preparation for changing the tools we use to create it
- This ensures that we don't make any unintended changes to the index

Required by #748
  • Loading branch information
adamdougal committed May 2, 2024
1 parent 31c257b commit 18fbe22
Show file tree
Hide file tree
Showing 2 changed files with 379 additions and 7 deletions.
7 changes: 6 additions & 1 deletion code/tests/functional/backend_api/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ def setup_default_mocking(httpserver: HTTPServer, app_config: AppConfig):
httpserver.expect_request(
f"/indexes('{app_config.get('AZURE_SEARCH_INDEX')}')",
method="GET",
).respond_with_json({})
).respond_with_json({}, status=404)

httpserver.expect_request(
"/indexes",
method="POST",
).respond_with_json({}, status=201)

httpserver.expect_request(
f"/indexes('{app_config.get('AZURE_SEARCH_CONVERSATIONS_LOG_INDEX')}')",
Expand Down
Loading

0 comments on commit 18fbe22

Please sign in to comment.