From Fedora Project Wiki

No edit summary
No edit summary
Line 8: Line 8:
# First note that in order to run into the SSH authentication problem which we'd like to test, you need to have either of the following two setups. 1. You have a yum installed Eclipse and have never used SSH actions from within Eclipse (i.e. SSH is not configured in Eclipse). We've seen it happening that a yum installed Eclipse might not exhibit the SSH authentication error we are trying to test. Please keep that in mind. 2. You have a fresh Eclipse Indigo (3.7.x), "classic" instance downloaded from [[http://eclipse.org/downloads eclipse.org]], which you've not used before.
# First note that in order to run into the SSH authentication problem which we'd like to test, you need to have either of the following two setups. 1. You have a yum installed Eclipse and have never used SSH actions from within Eclipse (i.e. SSH is not configured in Eclipse). We've seen it happening that a yum installed Eclipse might not exhibit the SSH authentication error we are trying to test. Please keep that in mind. 2. You have a fresh Eclipse Indigo (3.7.x), "classic" instance downloaded from [[http://eclipse.org/downloads eclipse.org]], which you've not used before.
# Don't have either of the two? Here are the steps required to get a setup of the latter option:
# Don't have either of the two? Here are the steps required to get a setup of the latter option:
## Download
## Download [http://eclipse.org/downloads/packages/eclipse-classic-37/indigor Eclipse Indigo classic]
# Open Eclipse and use a new workspace. {{command|eclipse -data test_day_20111013_fpe_cloning_SSH_setup}}
## Extract the tarball in your home directory and run it: e.g. {{command|mkdir -p ~/test_day_efp/eclipse-indigo && cd ~/test_day_efp/eclipse-indigo && tar -xzvf <ECLIPSE_3.7_TARBALL> && ./eclipse/eclipse -data remove_me_workspace}}
## Install Fedora Packager for Eclipse from our p2 update site as described on our [https://fedorahosted.org/eclipse-fedorapackager/wiki/InstallUpstreamEclipseP2 wiki]
# You can skip this step if you have done steps as described in item 2 above. Open Eclipse and use a new workspace. For example {{command|eclipse -data test_day_20111013_fpe_cloning_SSH_setup}}.
# Press {{command|CTRL+ALT+F I}} to open the import wizard. Alternatively press {{command|CTRL+3}} and start typing "Projects from Fedora Git", then press return.
# Press {{command|CTRL+ALT+F I}} to open the import wizard. Alternatively press {{command|CTRL+3}} and start typing "Projects from Fedora Git", then press return.
# This should open the Fedora Packager for Eclipse import dialog a
# If you've never used Eclipse for SSH based cloning you will likely not have SSH preferences set up. This might cause some clone failures, but should give you appropriate error messages with proposed fixes. Should you run into this problem, detailed instructions are [https://fedoraproject.org/wiki/Fedora_Packager_For_Eclipse_User_Guide#Configure_SSH_in_Eclipse here]. Feedback is very welcome if error messages are not what you would expect. In fact, this is one test case we'd like to have tested.
# If you've never used Eclipse for SSH based cloning you will likely not have SSH preferences set up. This might cause some clone failures, but should give you appropriate error messages with proposed fixes. Should you run into this problem, detailed instructions are [https://fedoraproject.org/wiki/Fedora_Packager_For_Eclipse_User_Guide#Configure_SSH_in_Eclipse here]. Feedback is very welcome if error messages are not what you would expect. In fact, this is one test case we'd like to have tested.
# Enter the package name {{package|eclipse-fedorapackager}}. In the top area of the wizard, a message should be shown that {{command|~/.fedora.cert}} has been found and should use the username extracted from it for the SSH based clone. Click "Finish". This will only work if you are a sponsored packager. If you are not sponsored, proceed with anonymous clone tests.
# Enter the package name {{package|eclipse-fedorapackager}}. In the top area of the wizard, a message should be shown that {{command|~/.fedora.cert}} has been found and should use the username extracted from it for the SSH based clone. Click "Finish". This will only work if you are a sponsored packager. If you are not sponsored, proceed with anonymous clone tests.

Revision as of 15:33, 14 September 2011

Description

This test case tests whether Eclipse SSH related authentication failures are properly handled by Fedora Packager for Eclipse.

Setup

  1. Boot into the machine/VM you wish to test
  2. Ensure the eclipse-fedorapackager-0.2.1-1.fc16 package IS installed. Install it via yum install eclipse-fedorapackager-0.2.1-1.fc16.
  3. Make sure that file ~/.fedora.cert exists. If you don't have it, run fedora-packager-setup in order to generate one.

How to test

  1. First note that in order to run into the SSH authentication problem which we'd like to test, you need to have either of the following two setups. 1. You have a yum installed Eclipse and have never used SSH actions from within Eclipse (i.e. SSH is not configured in Eclipse). We've seen it happening that a yum installed Eclipse might not exhibit the SSH authentication error we are trying to test. Please keep that in mind. 2. You have a fresh Eclipse Indigo (3.7.x), "classic" instance downloaded from [eclipse.org], which you've not used before.
  2. Don't have either of the two? Here are the steps required to get a setup of the latter option:
    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 && cd ~/test_day_efp/eclipse-indigo && tar -xzvf <ECLIPSE_3.7_TARBALL> && ./eclipse/eclipse -data remove_me_workspace
    3. Install Fedora Packager for Eclipse from our p2 update site as described on our wiki
  3. You can skip this step if you have done steps as described in item 2 above. Open Eclipse and use a new workspace. For example eclipse -data test_day_20111013_fpe_cloning_SSH_setup.
  4. Press CTRL+ALT+F I to open the import wizard. Alternatively press CTRL+3 and start typing "Projects from Fedora Git", then press return.
  5. This should open the Fedora Packager for Eclipse import dialog a
  6. If you've never used Eclipse for SSH based cloning you will likely not have SSH preferences set up. This might cause some clone failures, but should give you appropriate error messages with proposed fixes. Should you run into this problem, detailed instructions are here. Feedback is very welcome if error messages are not what you would expect. In fact, this is one test case we'd like to have tested.
  7. Enter the package name Package-x-generic-16.pngeclipse-fedorapackager. In the top area of the wizard, a message should be shown that ~/.fedora.cert has been found and should use the username extracted from it for the SSH based clone. Click "Finish". This will only work if you are a sponsored packager. If you are not sponsored, proceed with anonymous clone tests.

<<<FIXME>>>

Expected Results

  1. It is expected that errors occur if SSH is not properly configured in Eclipse.