From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case tests whether Bodhi updates work as expected. |setup= # Boot into the machine/VM you wish to test. # Install {{command|eclipse-fedorapa...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
# Boot into the machine/VM you wish to test.
# Boot into the machine/VM you wish to test.
# Install {{command|eclipse-fedorapackager-0.2.1-1.fc16}} via {{command|yum install eclipse-fedorapackager}}.
# Install {{command|eclipse-fedorapackager-0.2.1-1.fc16}} via {{command|yum install eclipse-fedorapackager}}.
# Make sure that file ~/.fedora.cert exists.
# Make sure that file ~/.fedora.cert exists and your FAS SSH key is set up correctly.
# For this test you will need a package for which you'd like to push an Bodhi update for. I.e. you need to be at least a sponsored packager. If you aren't, please skip this test.
# For this test you will need a package for which you'd like to push a Bodhi update for. I.e. you need to be at least a sponsored packager. If you aren't, please skip this test. We are aware that this is a fairly specific requirement. Kudos to everyone who has packages handy for an update :)
|actions=
|actions=
# <<<FIXME>>>
# Open Eclipse and use a new workspace. {{command|eclipse -data test_day_20111013_fpe_bodhi_update}}
# Press {{key_press|Ctrl|Alt|F}} {{key_press|I}} to open the import wizard. Alternatively press {{key_press|Ctrl|3}} and start typing "Projects from Fedora Git", then press return.
# Enter the name of the package you had prepared for pushing an update and click "Finish".
# The package you've just cloned should show up in your workspace.
# Open the .spec file by double-clicking on it. This should open the .spec file editor in Eclipse.
# In the .spec file right-click => "Fedora Packager" => "Create New Bodhi Update". Alternatively you can press {{key_press|Ctrl|Alt|F}} {{key_press|B}} when the .spec file is in focus.
# This will trigger the following actions (in this order):
## It will be checked if there are unpushed changes on the current branch. Note that this might prompt for your SSH passphrase.
## A login screen pops up requesting Bodhi/FAS credentials from you.
## The Bodhi update dialog is shown in order to specify the updates one would like to push and other options. Note that you can arbitrary builds in addition to the pre-filled list of builds (N-V-R's) by using the "Add Build" button. Please refer to our [https://fedoraproject.org/wiki/Fedora_Packager_For_Eclipse_User_Guide#Pushing_a_Bodhi_Update user guide] for more information on this.
# After the dialog of step 7.3 has been filled in, the update will get pushed to Bodhi.
|results=
|results=
# <<<FIXME>>>
# If the Bodhi update was successful, you should have seen a message dialog similar to this:<br/>[[Image:FedoraPackagerBodhiPushedUpdate.png]]
# When you click on the link provided a browser window should open and you should see the details of the pushed update.
}}
}}

Latest revision as of 23:54, 5 October 2011

Description

This test case tests whether Bodhi updates work as expected.

Setup

  1. Boot into the machine/VM you wish to test.
  2. Install eclipse-fedorapackager-0.2.1-1.fc16 via yum install eclipse-fedorapackager.
  3. Make sure that file ~/.fedora.cert exists and your FAS SSH key is set up correctly.
  4. For this test you will need a package for which you'd like to push a Bodhi update for. I.e. you need to be at least a sponsored packager. If you aren't, please skip this test. We are aware that this is a fairly specific requirement. Kudos to everyone who has packages handy for an update :)

How to test

  1. Open Eclipse and use a new workspace. eclipse -data test_day_20111013_fpe_bodhi_update
  2. Press Ctrl+Alt+F I to open the import wizard. Alternatively press Ctrl+3 and start typing "Projects from Fedora Git", then press return.
  3. Enter the name of the package you had prepared for pushing an update and click "Finish".
  4. The package you've just cloned should show up in your workspace.
  5. Open the .spec file by double-clicking on it. This should open the .spec file editor in Eclipse.
  6. In the .spec file right-click => "Fedora Packager" => "Create New Bodhi Update". Alternatively you can press Ctrl+Alt+F B when the .spec file is in focus.
  7. This will trigger the following actions (in this order):
    1. It will be checked if there are unpushed changes on the current branch. Note that this might prompt for your SSH passphrase.
    2. A login screen pops up requesting Bodhi/FAS credentials from you.
    3. The Bodhi update dialog is shown in order to specify the updates one would like to push and other options. Note that you can arbitrary builds in addition to the pre-filled list of builds (N-V-R's) by using the "Add Build" button. Please refer to our user guide for more information on this.
  8. After the dialog of step 7.3 has been filled in, the update will get pushed to Bodhi.

Expected Results

  1. If the Bodhi update was successful, you should have seen a message dialog similar to this:
    FedoraPackagerBodhiPushedUpdate.png
  2. When you click on the link provided a browser window should open and you should see the details of the pushed update.