Developer Info

From BITPlan mediawiki-japi Wiki
Revision as of 16:07, 3 January 2015 by Wf (talk | contribs) (Created page with "== Testenvironment == There is a JUnit 4 Testsuite for the Mediawiki-Japi library that accesses some Example Wikis for the tests. Please find below the list of example wikis b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Testenvironment

There is a JUnit 4 Testsuite for the Mediawiki-Japi library that accesses some Example Wikis for the tests. Please find below the list of example wikis being used

Read-only tests

A login attempt is part of the tests - you'll need credentials at http://www.mediawiki.org to run these tests successfully. You might want to create an account at https://www.mediawiki.org/w/index.php?title=Special:UserLogin&type=signup

Read/Write tests

link wiki wikiid wikiname Version email
http://mediawiki-japi.bitplan.com/mw1_19/ mw1_19test mediawiki-japi-test1_19 1.19.23 mediawiki-japi@bitplan.com
http://mediawiki-japi.bitplan.com/mw1_23/ mw1_23test mediawiki-japi-test1_23 1.23.8 mediawiki-japi@bitplan.com
http://mediawiki-japi.bitplan.com/mw1_24/ mw1_24test mediawiki-japi-test1_24 1.24.1 mediawiki-japi@bitplan.com

You need full api write access to these wikis to run these tests.

Credentials for the test example Mediawikis

The credentials for the test example Mediawikis are fetched from ini files in the .mediawiki-api subdirectory of your home directory. E.g. if your username is bob and the id of the Mediawiki is "mediawiki_org" then you'll find the ini file at $HOME/.mediawiki-api/bob_mediawiki_org.ini.

If the credentials ini files do not exist yet they are created interactively during the test run.

Example for a credential ini file

#Mediawiki-api 
#Fri Jan 02 19:58:49 CET 2015
secret=5hKnFOyU1uE\=
user=Scott
email=scott@tiger.org
salt=w75pcoUN
cypher=YYmhAs86ygNnLbs@b9dNq36afytEzkCm