diff --git a/config/application.yml b/config/application.yml index 7dca08d4f..0fd3e0782 100644 --- a/config/application.yml +++ b/config/application.yml @@ -3,14 +3,14 @@ common: &common repo_project_name: Openmandriva ABF anonymous_access: true preregistration: false - file_store_url: 'http://file-store.openmandriva.org' + file_store_url: 'https://file-store.openmandriva.org' distr_types: ['mdv'] github_organization: 'OpenMandrivaAssociation' allowed_addresses: - 127.0.0.1 abf_worker: publish_workers_count: 1 - downloads_url: 'http://abf-downloads.openmandriva.org/' + downloads_url: 'https://abf-downloads.openmandriva.org/' development: <<: *common diff --git a/spec/services/file_store_service_spec.rb b/spec/services/file_store_service_spec.rb index c8525c74d..af5c79266 100644 --- a/spec/services/file_store_service_spec.rb +++ b/spec/services/file_store_service_spec.rb @@ -6,7 +6,7 @@ describe FileStoreService::File do context '#exist?' do let(:response) { [ { file_name: 'test.log', sha1_hash: sha1 } ].to_json } - let(:url) { "http://file-store.rosalinux.ru/api/v1/file_stores.json?hash=#{sha1}" } + let(:url) { "https://file-store.rosalinux.ru/api/v1/file_stores.json?hash=#{sha1}" } subject { FileStoreService::File.new(sha1: sha1) } @@ -43,7 +43,7 @@ describe FileStoreService::File do end context 'file does not exist on FS' do - let(:url) { "http://test-token:@file-store.rosalinux.ru/api/v1/upload" } + let(:url) { "https://test-token:@file-store.rosalinux.ru/api/v1/upload" } let(:response) { { sha1_hash: sha1 }.to_json } before do @@ -70,7 +70,7 @@ describe FileStoreService::File do end context '#destroy' do - let(:url) { "http://file-store.rosalinux.ru/api/v1/file_stores/#{sha1}.json" } + let(:url) { "https://file-store.rosalinux.ru/api/v1/file_stores/#{sha1}.json" } it 'not raise errors' do stub_request(:delete, url).to_raise(StandardError)