QA:Testcase fpe upgrade

From FedoraProject

Jump to: navigation, search

Contents

Description

This test case tests whether old projects cloned with Fedora Packager for Eclipse 0.1.12 and below can be properly upgraded to Fedora Packager for Eclipse 0.2 using the conversion tool shipped with 0.2.

Setup

  1. Boot into the machine/VM you wish to test
  2. Make sure that file ~/.fedora.cert does not exist. You can move it out of the way via mv ~/.fedora.cert{,-away}
  3. Create a 0.1.12 Fedora Packager for Eclipse project in order to have something to upgrade. If you have 0.1.12 projects in some existing workspace, you can use these instead.
    1. Download Eclipse Indigo classic
    2. Extract the tarball in your home directory and run it: e.g. mkdir -p ~/test_day_efp/eclipse-indigo-upgrade-test && cd ~/test_day_efp/eclipse-indigo-upgrade-test && tar -xzvf <ECLIPSE_3.7_TARBALL> && ./eclipse/eclipse -data ~/workspace_fpe_upgrade
    3. Install Fedora Packager for Eclipse 0.1.12 from our p2 repository:
      1. Go to "Help" => "Install New Software..."
      2. Click on "Add.."
      3. Enter a "Name" for the repository, for example "Fedora Packager for Eclipse"
      4. In the "Location" field enter: https://fedorahosted.org/released/eclipse-fedorapackager/p2-repo/
      5. Click "OK" and wait until the list of available software comes up.
      6. Below the list of available software, uncheck "Group items by category" and "Show only latest versions of software".
      7. Then, select "Eclipse Fedora Packager Tools" from the list of available packages. Make sure to install version 0.1.12.X
      8. The installation dialog should now look similar to this:
        FedoraPackagerInstall0112.png
      9. Click "Next >", accept the license and click "Ok" if warnings are presented with respect to unsigned software being installed.
      10. When Eclipse asks if it should restart, select "Restart now".
      11. Now you should have Fedora Packager for Eclipse 0.1.12 installed.
      12. Import packages from Fedora Git via "File" => "Import" => "Git" => "Projects from Fedora Git". Enter Package-x-generic-16.pngeclipse-fedorapackager as package name and click "Finish".
      13. Repeat step 12 but use package name Package-x-generic-16.pnged.
      14. You should now see two 0.1.12 projects, namely "eclipse-fedorapackager" and "ed, in your workspace.
      15. If you right-click on either project, you should see a context menu item called "Fedora Packager"

How to test

  1. Open Eclipse as provided with Fedora. Don't use Eclipse which you have downloaded in the "Setup" section. $ cd ~ && eclipse -data ~/workspace_fpe_upgrade
  2. Open the "Import from Fedora Git" wizard. Press CTRL+3 and start typing "Projects from Fedora" and hit return once it's the only option shown. Alternatively, use File => Import => Git => Projects from Fedora Git
  3. You should now see the "eclipse-fedorapackager" and "ed" projects in your Eclipse workspace again.
  4. We now install Fedora Packager for Eclipse 0.2. yum install eclipse-fedorapackager-0.2.1-1.fc16
  5. Restart Eclipse. File => Restart.
  6. Once Eclipse has been restarted, try right-clicking on project "eclipse-fedorapackager". The "Fedora Packager" context menu item should be gone. Now we need to upgrade this project in order for the context menu to show up again.
  7. Open the "Fedora Packaging" perspective. Go to "Window" => "Open Perspective" => "Other..." and select "Fedora Packaging"
  8. Click the Fedora icon as shown in this image: Fedora Packager for Eclipse project conversion icon
  9. Select project eclipse-fedorapackager from the list and click OK.
  10. You should get expected results as noted below. Don't forget to reinstate your Fedora certificates: mv ~/.fedora.cert{-away,}

Expected Results

  1. A message dialog should show up indicating that project eclipse-fedorapackager got converted.
  2. If you right-click on project "eclipse-fedorapackager" you should see the "Fedora Packager" context menu item again.
  3. If you double-click on the file eclipse-fedorapackager.spec the contents of the .spec file should show and right-clicking in that .spec file should show the "Fedora Packager" context menu item as well.