Plugin db:drop tests fail with The `production` database is not configured for the `production` environment

Hello,

bootdisk plugin tests are failing, anyone have insight what changed?

+ bundle exec rake db:drop RAILS_ENV=production DISABLE_DATABASE_ENVIRONMENT_CHECK=true
rake aborted!
ActiveRecord::AdapterNotSpecified: The `production` database is not configured for the `production` environment.

Thanks!

https://ci.theforeman.org/job/foreman_bootdisk-pull-request/66/database=postgresql,label=fast,ruby=2.5/console

I see the same for discovery plugin, likely an issue for all of them?

https://ci.theforeman.org/job/foreman_discovery-pull-request/73/database=postgresql,label=fast,ruby=2.5/console

That’s not an actual failure, that’s just ensuring the dbs are cleared after tests.
The actual failure in bootdisk is a bit earlier, on rubocop, and for discovery it should be fixed by Bug #30052: ActiveRecord dumps dynflow tables even though it cannot recreate them properly - Foreman

1 Like