rspec: Use environment variables for user+password

Change-Id: I20273f1be7d11614879144a495c7853b6459e8b2
This commit is contained in:
Roan Kattouw 2018-04-30 15:46:01 -07:00
parent 2988b0ac04
commit 36d250da85

View file

@ -5,8 +5,8 @@ describe 'Echo' do
if ENV['JENKINS_HOME']
# jenkins
@mediawiki_api = "#{ENV['MW_SERVER']}#{ENV['MW_SCRIPT_PATH']}/api.php"
@admin_username = 'WikiAdmin'
@admin_password = 'testwikijenkinspass'
@admin_username = "#{ENV['MEDIAWIKI_USER']}"
@admin_password = "#{ENV['MEDIAWIKI_PASSWORD']}"
else
# mediawiki-vagrant
@mediawiki_api = 'http://127.0.0.1:8080/w/api.php'