chef-vault-testfixtures 0.5.1 → 0.5.2
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/chef-vault-testfixtures.gemspec +3 -3
- data/lib/chef-vault/test_fixtures.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3783e0e9855e83940e28dde3c1c306d4a778deac
|
|
4
|
+
data.tar.gz: faf5bae370142aa9f3e215bbcdcecbee27e850ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3d6df174763af6799db37da183bb17da71fe9e4936504f1e6559d9eff7f2fae437659c28fae657e78469b4710a65dd2bf5440dee33edec875e794fbdbaac039
|
|
7
|
+
data.tar.gz: f54b88800adf59f88f7967013a259f9c738d63eff162e3f0af87d8d974c15fbb1e99657d576edd82c03b10c4d24f42b148aa2f0d5a650952808028544f754617
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: chef-vault-testfixtures 0.5.
|
|
2
|
+
# stub: chef-vault-testfixtures 0.5.2.20160208102442 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "chef-vault-testfixtures"
|
|
6
|
-
s.version = "0.5.
|
|
6
|
+
s.version = "0.5.2.20160208102442"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib"]
|
|
10
10
|
s.authors = ["James FitzGibbon"]
|
|
11
|
-
s.date = "2016-02-
|
|
11
|
+
s.date = "2016-02-08"
|
|
12
12
|
s.description = "chef-vault-testfixtures provides an RSpec shared context that\nstubs access to chef-vault encrypted data bags using the same\nfallback mechanism as the `chef_vault_item` helper from the\n[chef-vault cookbook](https://supermarket.chef.io/cookbooks/chef-vault)"
|
|
13
13
|
s.email = ["james.i.fitzgibbon@nordstrom.com"]
|
|
14
14
|
s.extra_rdoc_files = ["History.md", "Manifest.txt", "README.md"]
|
|
@@ -11,7 +11,7 @@ class ChefVault
|
|
|
11
11
|
# dynamic RSpec contexts for cookbooks that use chef-vault
|
|
12
12
|
class TestFixtures
|
|
13
13
|
# the version of the gem
|
|
14
|
-
VERSION = "0.5.
|
|
14
|
+
VERSION = "0.5.2"
|
|
15
15
|
|
|
16
16
|
# dynamically creates a memoized RSpec shared context
|
|
17
17
|
# that when included into an example group will stub
|
|
@@ -95,6 +95,10 @@ class ChefVault
|
|
|
95
95
|
# stub ChefVault and Chef::DataBag to return the doubles
|
|
96
96
|
# via both symbol and string forms of the data bag name
|
|
97
97
|
[vault, vault.to_sym].each do |dbname|
|
|
98
|
+
allow(ChefVault::Item).to(
|
|
99
|
+
receive(:vault?).with(dbname, item).and_return(true)
|
|
100
|
+
)
|
|
101
|
+
|
|
98
102
|
allow(ChefVault::Item).to(
|
|
99
103
|
receive(:load)
|
|
100
104
|
.with(dbname, item)
|
|
@@ -129,9 +133,7 @@ class ChefVault
|
|
|
129
133
|
|
|
130
134
|
[vault, vault.to_sym].each do |dbname|
|
|
131
135
|
allow(Chef::DataBagItem).to(
|
|
132
|
-
receive(:load)
|
|
133
|
-
.with(dbname, item)
|
|
134
|
-
.and_return(dbi)
|
|
136
|
+
receive(:load).with(dbname, item).and_return(dbi)
|
|
135
137
|
)
|
|
136
138
|
end
|
|
137
139
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-vault-testfixtures
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James FitzGibbon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-02-
|
|
11
|
+
date: 2016-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|