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' | ||
| 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 } | ||
|
Check failure on line 23 in spec/acceptance/storage_spec.rb
|
||
| end | ||
|
|
||
| describe file('/etc/pulp/settings.py') do | ||
| it { is_expected.to be_file } | ||
| its(:content) { is_expected.not_to match(/^MEDIA_ROOT =/) } | ||
|
Check failure on line 28 in spec/acceptance/storage_spec.rb
|
||
| its(:content) { is_expected.to include('"BACKEND": "storages.backends.s3.S3Storage"') } | ||
|
Check failure on line 29 in spec/acceptance/storage_spec.rb
|
||
| its(:content) { is_expected.to include('"endpoint_url": "https://object.example.test"') } | ||
|
Check failure on line 30 in spec/acceptance/storage_spec.rb
|
||
| its(:content) { is_expected.to include('"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"') } | ||
|
Check failure on line 31 in spec/acceptance/storage_spec.rb
|
||
| 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.