diff options
author | Max Magorsch <max@magorsch.de> | 2020-01-01 03:58:23 +0100 |
---|---|---|
committer | Max Magorsch <max@magorsch.de> | 2020-01-01 03:58:23 +0100 |
commit | 20b84a1c15a3ad0da9fed2232605a4a06cc39ed7 (patch) | |
tree | 2ce01b524aa129480b4c4456836c9fe1dfffe80d | |
parent | Run the test in travis (diff) | |
download | packages-5-20b84a1c15a3ad0da9fed2232605a4a06cc39ed7.tar.gz packages-5-20b84a1c15a3ad0da9fed2232605a4a06cc39ed7.tar.bz2 packages-5-20b84a1c15a3ad0da9fed2232605a4a06cc39ed7.zip |
Fix the test failures
So far the tests are failing when executed, using for example the
docker-compose.test.yml file. To fix this, three things have changed:
- the kkuleomi:update:all task has been added to bin/test.sh so that
the test index is populated using the test data
- kkuleomi_config.rb has been replaced by kkuleomi_config.rb.test
- a repo/profiles/categories file has been created
Signed-off-by: Max Magorsch <max@magorsch.de>
-rwxr-xr-x | bin/test.sh | 1 | ||||
-rw-r--r-- | docker-compose.test.yml | 2 | ||||
-rw-r--r-- | test/fixtures/repo/profiles/categories | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/bin/test.sh b/bin/test.sh index 5397212..59ee5ff 100755 --- a/bin/test.sh +++ b/bin/test.sh @@ -7,5 +7,6 @@ bundler install bundle exec rake tmp:create RAILS_ENV=test bundle exec rake assets:precompile RAILS_ENV=test bundle exec rake kkuleomi:index:init RAILS_ENV=test +bundle exec rake kkuleomi:update:all RAILS_ENV=test RAILS_ENV=test bundle exec rake test test/
\ No newline at end of file diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 29c51c0..0b01688 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -35,7 +35,7 @@ services: depends_on: - redis - elasticsearch - command: bash -c "/var/www/packages.gentoo.org/htdocs/bin/test.sh" + command: bash -c "cp /var/www/packages.gentoo.org/htdocs/config/initializers/kkuleomi_config.rb.test /var/www/packages.gentoo.org/htdocs/config/initializers/kkuleomi_config.rb && /var/www/packages.gentoo.org/htdocs/bin/test.sh" sidekiq: build: . volumes: diff --git a/test/fixtures/repo/profiles/categories b/test/fixtures/repo/profiles/categories new file mode 100644 index 0000000..37d71c6 --- /dev/null +++ b/test/fixtures/repo/profiles/categories @@ -0,0 +1 @@ +virtual
\ No newline at end of file |