canvas-lms/spec/support
Tucker McKnight 0991a6e8b8 spec: Don't add non-200 status requests to openapi spec
This is a temporary fix to avoid having invalid query
parameters documented in the request schemas.

Also, this change makes the yaml file names match the
controller name instead of using the first part of
the url, since so many of our endpoints start with
/accounts.

test plan:
- Run `OPENAPI=1 rspec spec/controllers/lti/registrations_controller_spec.rb`
- See that a file was created in spec/openapi/lti/registrations.yaml
  - It would have been in spec/openapi/accounts.yaml without this change
- See that the word "bad" does not show up in the yaml file (several tests
  use "bad" as an example of an invalid query parameter)

Change-Id: Ib7c0093bc8b36fc42bdbb13edb910c61449359f5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/352231
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Tucker Mcknight <tmcknight@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
2024-07-23 01:37:07 +00:00
..
custom_matchers Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
microsoft_sync rails 7.1: spec/lib 2024-02-21 17:51:31 +00:00
mock_static_sites/sample_site
onceler bundle update rubocop 2024-05-30 16:20:52 +00:00
blank_slate_protection.rb update rubocop, and apply new cops 2023-07-03 22:11:42 +00:00
boolean_translator.rb RuboCop: Style/SymbolArray, Style/WordArray 2021-11-23 14:30:08 +00:00
call_stack_utils.rb bundle update rubocop 2024-01-24 16:17:43 +00:00
cdn_registry_stubs.rb rubocop: Style/RedundantConstantBase 2023-04-10 20:56:27 +00:00
crystalball.rb skip crystalball on package.json or yarn.lock changes 2023-10-23 15:27:26 +00:00
discourage_slow_specs.rb RuboCop: Style/BlockDelimiters, Style/Lambda 2021-11-23 21:30:47 +00:00
external_tools.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
great_expectations.rb RuboCop: Style/StderrPuts 2021-11-23 02:50:08 +00:00
inst_access_env.rb spec: pass example as a block in around hooks 2024-03-01 21:45:31 +00:00
jwt_env.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
mock_static_site.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
names_and_roles_matchers.rb bundle update rubocop 2023-12-06 14:25:02 +00:00
openapi_generator.rb spec: Don't add non-200 status requests to openapi spec 2024-07-23 01:37:07 +00:00
outcome_import_context.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
request_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
sorted_by_matcher.rb RuboCop: Layout spec 2021-09-22 22:40:24 +00:00
spec_time_limit.rb spec: pass example as a block in around hooks 2024-03-01 21:45:31 +00:00
test_database_utils.rb drop Rails 7.0 support 2024-07-05 15:30:54 +00:00