linux_admin 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDdmYTgzMzdjYTViZDA4ZDNlOWI5ZmY5NmQ0MjMwMzhkNDJmYjBjMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDg1MGM3YmI4ZjFhYmYyZGQyODVjM2YwYmE0ZWIyZTk4NGFmNjZmMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTA4ZjA0N2E0NjllZDFhODNhZWU3MzE5YzQyMDQ0NzQ0NjZkNmM3NjBlNTBk
|
10
|
+
ZDIzZDY5ZGMxY2M4ODFiY2U0NmNiMmUwZTE2ZjNiOWRkNjgwMGVkNGY2MjZi
|
11
|
+
YTBmYWMyNGI4NGUxZWY0MDE1NTdjNmZjZWU2NjVjYWYxZmFlOTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWM1NTY3ZWZmODEzYjQ1YWY4YjIwM2RiYzcxMWUwZTk3ZmNiY2UyOWIyN2Nj
|
14
|
+
ODA0YWJhY2NiZDk4YWM2NDY1NGQ1OTkyYjk2NTQ3ZWJhNWZhMjViOTZiMWE1
|
15
|
+
ZGM1NjIxM2FhMzdiMDIyZGFlY2EyMTZmOWZhOWVmMmVhYTBiYmM=
|
@@ -25,6 +25,9 @@ class LinuxAdmin
|
|
25
25
|
|
26
26
|
def organizations(options)
|
27
27
|
raise ArgumentError, "username and password are required" unless options[:username] && options[:password]
|
28
|
+
|
29
|
+
install_server_certificate(options[:server_url], SATELLITE6_SERVER_CERT_PATH) if options[:server_url]
|
30
|
+
|
28
31
|
cmd = "subscription-manager orgs"
|
29
32
|
|
30
33
|
params = {"--username=" => options[:username], "--password=" => options[:password]}
|
data/lib/linux_admin/version.rb
CHANGED
@@ -131,7 +131,10 @@ describe LinuxAdmin::SubscriptionManager do
|
|
131
131
|
context "#organizations" do
|
132
132
|
it "with valid credentials" do
|
133
133
|
run_options = ["subscription-manager orgs", {:params=>{"--username="=>"SomeUser", "--password="=>"SomePass", "--proxy="=>"1.2.3.4", "--proxyuser="=>"ProxyUser", "--proxypassword="=>"ProxyPass", "--serverurl="=>"192.168.1.1"}}]
|
134
|
+
|
135
|
+
LinuxAdmin::Rpm.should_receive(:upgrade).with("http://192.168.1.1/pub/candlepin-cert-consumer-latest.noarch.rpm")
|
134
136
|
described_class.any_instance.should_receive(:run!).once.with(*run_options).and_return(double(:output => sample_output("subscription_manager/output_orgs")))
|
137
|
+
|
135
138
|
expect(described_class.new.organizations({:username=>"SomeUser", :password=>"SomePass", :proxy_address=>"1.2.3.4", :proxy_username=>"ProxyUser", :proxy_password=>"ProxyPass", :server_url=>"192.168.1.1"})).to eq({"SomeOrg"=>{:name=>"SomeOrg", :key=>"1234567"}})
|
136
139
|
end
|
137
140
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linux_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Dunne
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-11-
|
14
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|