Project

General

Profile

« Previous | Next » 

Revision 5534df90

Added by Dominic Cleal almost 10 years ago

refs #3272 - pass admin user details into db:seed rake task

View differences:

spec/classes/foreman_config_spec.rb
with_content(/^:locations_enabled:\s*false$/).
with_content(/^:organizations_enabled:\s*false$/).
with_content(/^:oauth_active:\s*true$/).
with_content(/^:oauth_map_users:\s*true$/).
with_content(/^:oauth_map_users:\s*false$/).
with_content(/^:oauth_consumer_key:\s*\w+$/).
with_content(/^:oauth_consumer_secret:\s*\w+$/).
with({})
......
locations_enabled => true,
organizations_enabled => true,
oauth_active => false,
oauth_map_users => false,
oauth_map_users => true,
oauth_consumer_key => 'abc',
oauth_consumer_secret => 'def',
}"
......
with_content(/^:locations_enabled:\s*true$/).
with_content(/^:organizations_enabled:\s*true$/).
with_content(/^:oauth_active:\s*false$/).
with_content(/^:oauth_map_users:\s*false$/).
with_content(/^:oauth_map_users:\s*true$/).
with_content(/^:oauth_consumer_key:\s*abc$/).
with_content(/^:oauth_consumer_secret:\s*def$/).
with({})
......
with_content(/^:locations_enabled:\s*false$/).
with_content(/^:organizations_enabled:\s*false$/).
with_content(/^:oauth_active:\s*true$/).
with_content(/^:oauth_map_users:\s*true$/).
with_content(/^:oauth_map_users:\s*false$/).
with_content(/^:oauth_consumer_key:\s*\w+$/).
with_content(/^:oauth_consumer_secret:\s*\w+$/).
with({})

Also available in: Unified diff