smart_proxy_pulp 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e438c9624c9a6d9e79b9385794fbe257b0a1f80b57f4a02a8c4e2c8e5310a192
4
- data.tar.gz: e6488c2bbc9201f45a79e579f2c9ce1d146c94da76a2316064c500bd327d8649
3
+ metadata.gz: b877e4d04354d2589c3a051e4723da0e9ab3a1d8e16ff2a27623b250631df05f
4
+ data.tar.gz: a922da7e9d0981d1a5f90c2a26d81d7d609c25c82f4ffdf1e666ecf92b5eca33
5
5
  SHA512:
6
- metadata.gz: c965b3c5d4dff8569215db890c4ff3cf1d24a469665187f7c410edd74af9c132f5c45ff55b84e7f7146531b432da6bc3c3b5585e619e0a7350eb1e60288755ff
7
- data.tar.gz: 1ab9215eeec600b50177624c8e217f22f786871c173b70b78c02a9b491e64e7e5535c43e3df9e34ce4f490ef4f7c64be43917126abbd6943b8ca84549e98b0ff
6
+ metadata.gz: c9356b22cb7f402569342d7fdd3f420af829b0e1fb329b60800f7cb1df0502840c71b596d845491fa21855de88b7094fb92e00e62f053640a4d14ee5b86b51c3
7
+ data.tar.gz: '095e9ae318f742a89a286beac7167e8d699b874f9adae6846947164c7e5ed6f1c02832c7bf69ea1caded394300d4be0b83aa62771ff8e3ecd0f4e7dd69a3f76a'
@@ -9,7 +9,7 @@ module PulpProxy
9
9
  get '/status' do
10
10
  content_type :json
11
11
  begin
12
- result = Pulp3Client.get("api/v3/status/")
12
+ result = Pulp3Client.get("/pulp/api/v3/status/")
13
13
  return result.body if result.is_a?(Net::HTTPSuccess)
14
14
  log_halt result.code, "Pulp server at #{::PulpProxy::Settings.settings.pulp_url} returned an error: '#{result.message}'"
15
15
  rescue SocketError, Errno::ECONNREFUSED => e
@@ -14,7 +14,7 @@ module PulpProxy
14
14
  end
15
15
 
16
16
  def self.capabilities
17
- body = JSON.parse(get("api/v3/status/").body)
17
+ body = JSON.parse(get("/pulp/api/v3/status/").body)
18
18
  body['versions'].map{|item| item['component'] }
19
19
  rescue => e
20
20
  logger.error("Could not fetch capabilities: #{e.message}")
@@ -3,7 +3,7 @@ require 'smart_proxy_pulp_plugin/validators/pulp_url_validator'
3
3
  module PulpProxy
4
4
  class Pulp3Plugin < ::Proxy::Plugin
5
5
  plugin "pulp3", ::PulpProxy::VERSION
6
- default_settings :pulp_url => 'https://localhost/pulp/',
6
+ default_settings :pulp_url => 'https://localhost',
7
7
  :content_app_url => 'https://localhost:24816/',
8
8
  :pulp_dir => '/var/lib/pulp',
9
9
  :pulp_content_dir => '/var/lib/pulp/content',
@@ -1,3 +1,3 @@
1
1
  module PulpProxy
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.0"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  :enabled: true
3
- #:pulp_url: https://localhost/pulp/
3
+ #:pulp_url: https://localhost/
4
4
  #:content_app_url: https://localhost:24816/
5
5
  #:pulp_dir: /var/lib/pulp
6
6
  #:pulp_content_dir: /var/lib/pulp/content
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_pulp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Dolguikh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-18 00:00:00.000000000 Z
11
+ date: 2020-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit