[QA] Run UploadWizard API integration test against production...

Željko Filipin zfilipin at wikimedia.org
Fri Jan 24 16:52:54 UTC 2014


On Fri, Jan 24, 2014 at 3:05 AM, Gergo Tisza <gtisza at wikimedia.org> wrote:

> USERNAME=mw_test_uw_1
> PASSWORD=wizard2013
> set -e
>
> virtualenv --distribute DEV
> DEV/bin/pip install -r tests/api/requirements.txt
> DEV/bin/python tests/api/upload-wizard_tests.py --username "$USERNAME"
> --password "$PASSWORD"
> DEV/bin/python tests/api/upload-wizard_tests.py --username "$USERNAME"
> --password "$PASSWORD" --gen_new_image
>

Thanks, everything works fine now with the new requirements.txt. The
problem is that console log of every Jenkins log is public and if we
provide password from the command line, it will be visible to everybody.

The way we solved that problem in Ruby is that the scripts expect the
password to be located in MEDIAWIKI_PASSWORD environment variable[1]. Can
you do something similar for upload-wizard_tests.py?

Željko
--
1:
https://github.com/wikimedia/qa-browsertests/blob/master/features/step_definitions/login_steps.rb#L20
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140124/bfbb9cb1/attachment.html>


More information about the QA mailing list