Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/634
Narrative
As a developer, I can set up test wikis easily, without having to import a hundred templates / upload test images / etc. by hand
Acceptance Criteria
- Add a puppet command to import an XML file created with Special:Export when a role is enabled (you can use importDump.php )
- it should also import the images mentioned in the XML file ( importImages.php )
- come up with a convention of were these files should be stored and where their purpose can be described (multiple roles might want to share the same dump; one role might want to import multiple dumps), whether they should be gzipped etc. Create an example that others can copy (e.g. the template shims for CommonsMetadata)
- There is no great way to check if the file has been imported already, esp. when the role gets disabled/reenabled; skipping existing pages, or just overwriting them, is acceptable.
Related Bugs
- https://bugzilla.wikimedia.org/show_bug.cgi?id=71901
- https://bugzilla.wikimedia.org/show_bug.cgi?id=71354
- https://bugzilla.wikimedia.org/show_bug.cgi?id=71340