Repository navigation
Support S3-compatible Pulp storage #418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||||
| require 'spec_helper_acceptance' | ||||||||
|
|
||||||||
| if ENV.fetch('BEAKER_FACTER_pulpcore_version', 'nightly') == 'nightly' | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm still not quite sure about this. It will mean we won't test everything automatically when we add new versions. How about we skip it on known incompatible versions and then list it as a known limitation on https://github.com/theforeman/puppet-pulpcore#support-policy?
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have prepared this locally: the S3 tests skip only 3.63, 3.73, 3.85 and 3.105, so newly added versions are included automatically. The support policy documents that these Foreman package repositories lack the required pulpcore-storage-s3 capability, rather than implying that Pulp itself cannot use S3. Ruby syntax and the version-selection check passed. I am holding the push until theforeman/pulpcore-packaging#3259 is resolved to avoid spending CI resources on the known packaging blocker. |
||||||||
| describe 'with S3-compatible storage' do | ||||||||
| it_behaves_like 'an idempotent resource' do | ||||||||
| let(:manifest) do | ||||||||
| <<~PUPPET | ||||||||
| class { 'pulpcore': | ||||||||
| storage_backend => 's3', | ||||||||
| storage_options => { | ||||||||
| 'access_key' => 'test', | ||||||||
| 'secret_key' => 'test', | ||||||||
| 'bucket_name' => 'pulp', | ||||||||
| 'endpoint_url' => 'https://object.example.test', | ||||||||
| 'addressing_style' => 'path', | ||||||||
| }, | ||||||||
| } | ||||||||
| PUPPET | ||||||||
| end | ||||||||
| end | ||||||||
|
|
||||||||
| describe command('rpm -q --whatprovides pulpcore-storage-s3') do | ||||||||
| its(:exit_status) { is_expected.to eq 0 } | ||||||||
| end | ||||||||
|
|
||||||||
| describe file('/etc/pulp/settings.py') do | ||||||||
| it { is_expected.to be_file } | ||||||||
| its(:content) { is_expected.not_to match(/^MEDIA_ROOT =/) } | ||||||||
| its(:content) { is_expected.to include('"BACKEND": "storages.backends.s3.S3Storage"') } | ||||||||
| its(:content) { is_expected.to include('"endpoint_url": "https://object.example.test"') } | ||||||||
| its(:content) { is_expected.to include('"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"') } | ||||||||
| end | ||||||||
|
|
||||||||
| describe command('PULP_SETTINGS=/etc/pulp/settings.py pulpcore-manager check') do | ||||||||
| its(:exit_status) { is_expected.to eq 0 } | ||||||||
| end | ||||||||
| end | ||||||||
| end | ||||||||
Uh oh!
There was an error while loading. Please reload this page.