Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 3d7c8c3ae47a577c2f3b6a713ab5c485c8584c5b
https://github.com/openSUSE/open-build-service/commit/3d7c8c3ae47a577c2f3b6a...
Author: Henne Vogelsang
Date: 2023-10-19 (Thu, 19 Oct 2023)
Changed paths:
M src/api/config/environments/test.rb
M src/api/lib/tasks/dev.rake
A src/api/lib/tasks/dev/minitest.rake
M src/api/test/test_helper.rb
Log Message:
-----------
Introduces ENV['RUNNING_MINITEST_WITH_DOCKER']
Make it possible to run some (like ~97% as of this writing) minitest tests in the
container based development environment against the backend that is running there.
$ rake dev:minitest:fixtures:create RAILS_ENV=test
$ export RUNNING_MINITEST_WITH_DOCKER=1
$ rake test TEST=test/functional/request_events_test.rb
Please be aware: If you are using this you'll be responsible for resetting the
state of the backend. Like running
$ docker-compose stop backend
$ docker-compose rm -f backend
$ docker-compose up -d backend
before and after executing a test as the tests are optimized to be run once.
It'll also not work for tests that "mock" backend functionality. Like the ones
using TestHelper.inject_build_job or doing something with OBS_BACKEND_TEMP.
$ grep -Hrl OBS_BACKEND_TEMP test
test/functional/zzz_post_consistency_test.rb
test/functional/build_controller_test.rb
test/functional/channel_maintenance_test.rb
test/functional/published_controller_test.rb
test/functional/backend_test.rb
test/functional/maintenance_test.rb
test/functional/source_controller_test.rb
$ grep -Hrl inject_build_job test
test/functional/release_management_test.rb
test/functional/product_test.rb
test/functional/search_controller_test.rb
test/functional/channel_maintenance_test.rb
test/functional/kgraft_maintenance_test.rb
test/functional/maintenance_test.rb
Commit: a7112563a0ae9b57ce18e668ff955c0410da003b
https://github.com/openSUSE/open-build-service/commit/a7112563a0ae9b57ce18e6...
Author: Eduardo J
Date: 2023-10-19 (Thu, 19 Oct 2023)
Changed paths:
M src/api/config/environments/test.rb
M src/api/lib/tasks/dev.rake
A src/api/lib/tasks/dev/minitest.rake
M src/api/test/test_helper.rb
Log Message:
-----------
Merge pull request #15082 from hennevogel/feature/running_minitest_with_docker
Introduces ENV['RUNNING_MINITEST_WITH_DOCKER']
Compare: https://github.com/openSUSE/open-build-service/compare/a77877c4c0bd...a71125...