certmeister 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/certmeister/version.rb +1 -1
- data/spec/certmeister/policy/ip_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a34a13bbefa8d0ea4817a67eeebbc0b182e34299
|
4
|
+
data.tar.gz: cf99f4747e5889f884f4baa1273080e1aeffa552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 828e3b77c8013f5f7d80f22df627660cb4a5f79722d0c9bd46d62ea5a5dfa553527a624518e4036d6ed76384fc02a6a3e9a6b4511492fe13ae0510168de53d45
|
7
|
+
data.tar.gz: 0b09ff33db1d7b2a43ee03e8f602571ae6c4c9e6655e24c475b8bd17a36314fdf376902ecdb1cfb6174a28b95071f346463637fbb2a0ca51d53894842ff09116
|
data/Gemfile.lock
CHANGED
data/lib/certmeister/version.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
require 'certmeister/policy/ip'
|
4
|
+
require 'ipaddr'
|
4
5
|
|
5
6
|
describe Certmeister::Policy::IP do
|
6
7
|
|
@@ -10,6 +11,10 @@ describe Certmeister::Policy::IP do
|
|
10
11
|
expect { subject.authenticate }.to raise_error(ArgumentError)
|
11
12
|
end
|
12
13
|
|
14
|
+
it "explodes if initialized with things other than CIDR strings" do
|
15
|
+
expect { Certmeister::Policy::IP.new(['localhost']) }.to_not raise_error(IPAddr::Error)
|
16
|
+
end
|
17
|
+
|
13
18
|
it "refuses to authenticate a request with a missing ip" do
|
14
19
|
response = subject.authenticate(cn: 'localhost')
|
15
20
|
expect(response).to_not be_authenticated
|