Skip to content

Commit 128b9f5

Browse files
committed
Fix tests
1 parent a2686d2 commit 128b9f5

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Berksfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ DEPENDENCIES
44
metadata: true
55

66
GRAPH
7-
user-ssh-keys (1.0.0)
7+
user-ssh-keys (1.0.2)

spec/unit/default_spec.rb

+10-10
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
describe 'With one user' do
66
it 'Throws a ConfigurationError if user does not exist' do
77
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
8-
node.set['ssh_keys'] = {
8+
node.set['user_ssh_keys'] = {
99
:users => {
1010
:bob => {}
1111
}
@@ -24,7 +24,7 @@
2424
})
2525

2626
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
27-
node.set['ssh_keys'] = {
27+
node.set['user_ssh_keys'] = {
2828
:users => {
2929
:bob => {}
3030
}
@@ -47,7 +47,7 @@
4747
})
4848

4949
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
50-
node.set['ssh_keys'] = {
50+
node.set['user_ssh_keys'] = {
5151
:users => {
5252
:bob => {}
5353
}
@@ -73,7 +73,7 @@
7373
})
7474

7575
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
76-
node.set['ssh_keys'] = {
76+
node.set['user_ssh_keys'] = {
7777
:users => {
7878
:bob => {}
7979
}
@@ -116,7 +116,7 @@
116116
})
117117

118118
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
119-
node.set['ssh_keys'] = {
119+
node.set['user_ssh_keys'] = {
120120
:users => {
121121
:bob => {}
122122
}
@@ -155,7 +155,7 @@
155155
describe 'With multiple users' do
156156
it 'Throws a ConfigurationError if user does not exist' do
157157
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
158-
node.set['ssh_keys'] = {
158+
node.set['user_ssh_keys'] = {
159159
:users => {
160160
:bob => {
161161
:authorized_keys => %w(foobar)
@@ -183,7 +183,7 @@
183183
})
184184

185185
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
186-
node.set['ssh_keys'] = {
186+
node.set['user_ssh_keys'] = {
187187
:users => {
188188
:bob => {
189189
:authorized_keys => %w(foobar)
@@ -201,7 +201,7 @@
201201
describe 'With one user' do
202202
it 'Throws a ConfigurationError if user does not exist in databag' do
203203
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
204-
node.set['ssh_keys'] = {
204+
node.set['user_ssh_keys'] = {
205205
:users => {
206206
:bob => {
207207
:authorized_users => %w(joe)
@@ -240,7 +240,7 @@
240240
})
241241

242242
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
243-
node.set['ssh_keys'] = {
243+
node.set['user_ssh_keys'] = {
244244
:users => {
245245
:bob => {
246246
:authorized_users => %w(joe)
@@ -284,7 +284,7 @@
284284
})
285285

286286
chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
287-
node.set['ssh_keys'] = {
287+
node.set['user_ssh_keys'] = {
288288
:users => {
289289
:bob => {
290290
:authorized_users => [

0 commit comments

Comments
 (0)