From Fedora Project Wiki
Description
This test case tests whether cloning packages from Fedora Git works as expected. In particular, authenticated and anonymous cloning works.
Setup
- Boot into the machine/VM you wish to test
- Ensure the
eclipse-fedorapackager-0.2.1-1.fc16
package IS installed. Install it viayum install eclipse-fedorapackager-0.2.1-1.fc16
. - Make sure that file
~/.fedora.cert
exists and your FAS SSH key is properly set up in Eclipse and the public key properly uploaded to the FAS account system.
How to test
- Open Eclipse and use a new workspace.
eclipse -data test_day_20111013_fpe_cloning
- Press
CTRL+ALT+F I
to open the import wizard. Alternatively pressCTRL+3
and start typing "Projects from Fedora Git", then press return. - 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.
- Enter the package name
eclipse-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. - Fedora Packager for Eclipse should then ask if you'd like to switch to the "Fedora Packaging" perspective. Choose "Yes".
- A project with name
eclipse-fedorapackager
should now be available in your Eclipse workspace. - The perspective should open and you should see local branches "f13"-"f16" in the "Git Repositories View"
- Anonymous clone: Repeat steps 2-5 but select "Clone Anonymously" and enter
eclipse-rpm-editor
as package name. - Non-existing package: Repeat steps 2-5 but select "Clone Anonymously" and enter
eclipse-123456
as package name. This should result with an error message indicating that packageeclipse-123456
does not exist.
Expected Results
- Cloning should succeed without errors which weren't expected. I.e. it is expected that errors occur if SSH is not properly configured in Eclipse. Same if the Git repository does not exist for the entered package.