-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues getting tests running #1721
Comments
Looks like the failures for JSON.parse are due to: https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization So we likely need something like |
With this diff I was able to significantly reduce the failures down to 1196 examples, 6 failures: diff --git a/spec/dummy/config/environments/development.rb b/spec/dummy/config/environments/development.rb
index 0702a8b1..87d65102 100644
--- a/spec/dummy/config/environments/development.rb
+++ b/spec/dummy/config/environments/development.rb
@@ -28,4 +28,6 @@ Dummy::Application.configure do
config.assets.debug = true
config.eager_load = false
+
+ config.hosts << 'www.example.com'
end
diff --git a/spec/dummy/config/environments/production.rb b/spec/dummy/config/environments/production.rb
index 5365afb9..eef5028b 100644
--- a/spec/dummy/config/environments/production.rb
+++ b/spec/dummy/config/environments/production.rb
@@ -61,4 +61,6 @@ Dummy::Application.configure do
config.active_support.deprecation = :notify
config.eager_load = true
+
+ config.hosts << 'www.example.com'
end
diff --git a/spec/dummy/config/environments/test.rb b/spec/dummy/config/environments/test.rb
index b184dff9..915f5f3a 100644
--- a/spec/dummy/config/environments/test.rb
+++ b/spec/dummy/config/environments/test.rb
@@ -42,4 +42,6 @@ Dummy::Application.configure do
config.active_support.deprecation = :stderr
config.eager_load = true
+
+ config.hosts << 'www.example.com'
end
But I'm not sure what these failures are |
I workaround the
|
Whilst docker-based development experience isn't fantastic (rebuilds are quiet slow) the changes in #1732 do at least unblock me, and if those were merged, then we could consider this closed. |
I believe we fixed this, right? Or do we still have a problem? |
Steps to reproduce (local)
bundle install
rake spec
Fails with a huge number of errors:
Steps to reproduce (docker)
docker build --pull -t doorkeeper:test .
Fails with:
It seems the Dockerfile is still using ruby 2.6, when the project dropped 2.6 support 19 months ago in #1622
I managed to "fix" the dockerfile by upgrading ruby and bundle to 3.3.4 and 2.5.11 respectively, and fixed the ENV warnings:
However, upon running
docker run -it --rm doorkeeper:test
the tests once again failed:Other Notes
I also tried running the specs like they are run from GitHub Actions with:
This still failed with (wrapped for readability):
The errors all seem to be related to
Failure/Error: JSON.parse(request_response.body)
whererequest_response.body
is a HTML string:The text was updated successfully, but these errors were encountered: