chef-attribute-validator 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGES +3 -0
- data/lib/chef-attribute-validator/checks/regex.rb +0 -2
- data/lib/chef-attribute-validator/version.rb +1 -1
- data/test/unit/check_regex_spec.rb +4 -4
- metadata +1 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzE4YmM5ZjAyNGVjM2MyYTY5M2Q2OGFmMWE5YmM3YmRiNWFmNWNlZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2FlNGQ5NTYyZWMzY2UzY2JjOTZmZmMwYzY3MzFiZGNiNjU2N2U2NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjM2NDdkOTBiMzQ3MDU5MmNkOGE1OGJlYzliZTY4ZWQ2NjZmNzcwODc0YmVl
|
10
|
+
OWEzZDdhYWYzOGExMmJiMDAwMTQ1OWYxNzg3MDYyZWE5ZmI4NjI4NDYzYWFj
|
11
|
+
ZTc3ODYzNTI0YTYxNTljNzdkOWNlN2RkNTIyZjI3MThiOWUzY2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDdkYjUyOWM2OTIyYTcwNDZlYjA4OTQ2MDk0MDViOTIzMTExNDViZmRiOTVl
|
14
|
+
NzYyOGY0ZTIwOWZlOTI4OGQ0MzAzMjFkZWM5MmRmMmNjNTM3MmUyZjBmOWY0
|
15
|
+
MzhlZTNhODY3ODM1NzFmNjBlODNjN2VmODQ3ZTQ3ZDk3YmVkZTQ=
|
data/CHANGES
CHANGED
@@ -20,8 +20,6 @@ class Chef
|
|
20
20
|
unless check_arg.match(value)
|
21
21
|
violations.push Chef::Attribute::Validator::Violation.new(rule_name, path, "Attribute's value is '#{value}', which does not match regex '#{check_arg}'")
|
22
22
|
end
|
23
|
-
else
|
24
|
-
violations.push Chef::Attribute::Validator::Violation.new(rule_name, path, "Attribute's value is '#{value}' (class #{value.class.name}), which is cannot be regexed")
|
25
23
|
end
|
26
24
|
end
|
27
25
|
end
|
@@ -58,14 +58,14 @@ describe "'regex' check" do
|
|
58
58
|
expect(av.validate_rule('not-foo-foo')).not_to be_empty
|
59
59
|
end
|
60
60
|
|
61
|
-
it "/foo/ should violate on false" do
|
61
|
+
it "/foo/ should not violate on false" do
|
62
62
|
expect { av.validate_rule('foo-false') }.not_to raise_error
|
63
|
-
expect(av.validate_rule('foo-false')).
|
63
|
+
expect(av.validate_rule('foo-false')).to be_empty
|
64
64
|
end
|
65
65
|
|
66
|
-
it "/foo/ should violate on 1" do
|
66
|
+
it "/foo/ should not violate on 1" do
|
67
67
|
expect { av.validate_rule('foo-one') }.not_to raise_error
|
68
|
-
expect(av.validate_rule('foo-one')).
|
68
|
+
expect(av.validate_rule('foo-one')).to be_empty
|
69
69
|
end
|
70
70
|
|
71
71
|
end
|