chore(core): fix deprecation warnings #1889
Open
+168
−170
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes all deprecation warnings in the test suite to ensure compatibility with Rails 7.1+ and prepare for the upcoming Rails 7.2 release. All 1452 tests continue to pass with zero failures.
Changes Made
secrets.ymlto Rails 7.1+ configurationconfig/secrets.ymltoconfig/secrets.yml.deprecatedconfig/initializers/secret_key_base.rbto setsecret_key_basevia environment variables (Rails 7.1+ recommended approach)MONSOON_RAILS_SECRET_TOKENenvironment variableconfig.fixture_pathtoconfig.fixture_paths(array) inspec/spec_helper.rbplugins/metrics/test/test_helper.rbto usefixture_pathsinstead of deprecated singular form.stub()syntax with modernallow().to receive()inplugins/monsoon-openstack-auth/spec/lib/monsoon_openstack_auth/authentication/auth_session_spec.rbRails.application.secrets.secret_key_basewithRails.application.secret_key_baseinplugins/monsoon-openstack-auth/lib/monsoon_openstack_auth/authentication/auth_session.rbconfig.web_console.whitelisted_ipstoconfig.web_console.allowed_ipsinconfig/environments/development.rbChecklist