Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19868

Add automated test for "Backup and restore a wiki"

    XMLWordPrintable

Details

    • Unknown

    Description

      The manual test is here: https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Export%20Whole%20Wiki

      The test verifies if the export and import of a wiki from Administration is working properly.

      Matrix discussion: https://matrix.to/#/!ikPtGZaGWtyblizzlR:matrix.xwiki.com/$165596708938yFUPy:matrix.xwiki.com?via=matrix.org&via=matrix.xwiki.com&via=caubin.fr

      Ilie Andriuta: Hi! Continuing the manual tests migration, there is a test about checking if the export and import of a wiki from Administration is working properly: https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Export%20Whole%20Wiki
      I've checked https://github.com/xwiki/xwiki-platform/blob/73b07f8352d1716b9945b577d6e4a3334f058a77/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-tests/src/test/it/org/xwiki/flamingo/test/ui/XARExportIT.java and https://github.com/xwiki/xwiki-platform/blob/73b07f8352d1716b9945b577d6e4a3334f058a77/xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/web/ExportActionTest.java but couldn't find automated tests for it (the tests found don't cover the XAR export of an entire wiki from Administration).
      Can you please confirm whether the automated test exists for it or not and maybe providing the link to it?
      Thanks!

      Thomas@tmortagne:matrix.xwiki.com: "working properly" can mean many things, we probably have at least one export test from admin but there is many things you can test (select/unselect some pages, etc.)
      there does not seems to be any export test in xwiki-platform-administration-test-docker (which would be the most logical place for that) at least, checking flavor tests
      Thomas@tmortagne:matrix.xwiki.com: there does not seems to be any export test in xwiki-platform-administration-test-docker (which would be the most logical place for that) at least, checking flavor tests
      nothing there either, if one exist it's in a location that does not make any kind of sense
      Ilie Andriuta: for selective export/import there is https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Export%20and%20Import%20Partial%20Wiki

      ok, thanks, Thomas!
      I will create a task for it (which may be closed if a test is found afterwards)

      Attachments

        Activity

          People

            Unassigned Unassigned
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: