|
5 | 5 | describe 'With one user' do
|
6 | 6 | it 'Throws a ConfigurationError if user does not exist' do
|
7 | 7 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
8 |
| - node.set['ssh_keys'] = { |
| 8 | + node.set['user_ssh_keys'] = { |
9 | 9 | :users => {
|
10 | 10 | :bob => {}
|
11 | 11 | }
|
|
24 | 24 | })
|
25 | 25 |
|
26 | 26 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
27 |
| - node.set['ssh_keys'] = { |
| 27 | + node.set['user_ssh_keys'] = { |
28 | 28 | :users => {
|
29 | 29 | :bob => {}
|
30 | 30 | }
|
|
47 | 47 | })
|
48 | 48 |
|
49 | 49 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
50 |
| - node.set['ssh_keys'] = { |
| 50 | + node.set['user_ssh_keys'] = { |
51 | 51 | :users => {
|
52 | 52 | :bob => {}
|
53 | 53 | }
|
|
73 | 73 | })
|
74 | 74 |
|
75 | 75 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
76 |
| - node.set['ssh_keys'] = { |
| 76 | + node.set['user_ssh_keys'] = { |
77 | 77 | :users => {
|
78 | 78 | :bob => {}
|
79 | 79 | }
|
|
116 | 116 | })
|
117 | 117 |
|
118 | 118 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
119 |
| - node.set['ssh_keys'] = { |
| 119 | + node.set['user_ssh_keys'] = { |
120 | 120 | :users => {
|
121 | 121 | :bob => {}
|
122 | 122 | }
|
|
155 | 155 | describe 'With multiple users' do
|
156 | 156 | it 'Throws a ConfigurationError if user does not exist' do
|
157 | 157 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
158 |
| - node.set['ssh_keys'] = { |
| 158 | + node.set['user_ssh_keys'] = { |
159 | 159 | :users => {
|
160 | 160 | :bob => {
|
161 | 161 | :authorized_keys => %w(foobar)
|
|
183 | 183 | })
|
184 | 184 |
|
185 | 185 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
186 |
| - node.set['ssh_keys'] = { |
| 186 | + node.set['user_ssh_keys'] = { |
187 | 187 | :users => {
|
188 | 188 | :bob => {
|
189 | 189 | :authorized_keys => %w(foobar)
|
|
201 | 201 | describe 'With one user' do
|
202 | 202 | it 'Throws a ConfigurationError if user does not exist in databag' do
|
203 | 203 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
204 |
| - node.set['ssh_keys'] = { |
| 204 | + node.set['user_ssh_keys'] = { |
205 | 205 | :users => {
|
206 | 206 | :bob => {
|
207 | 207 | :authorized_users => %w(joe)
|
|
240 | 240 | })
|
241 | 241 |
|
242 | 242 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
243 |
| - node.set['ssh_keys'] = { |
| 243 | + node.set['user_ssh_keys'] = { |
244 | 244 | :users => {
|
245 | 245 | :bob => {
|
246 | 246 | :authorized_users => %w(joe)
|
|
284 | 284 | })
|
285 | 285 |
|
286 | 286 | chef_run = ChefSpec::SoloRunner.new(step_into: ['user_ssh_keys_key']) do |node|
|
287 |
| - node.set['ssh_keys'] = { |
| 287 | + node.set['user_ssh_keys'] = { |
288 | 288 | :users => {
|
289 | 289 | :bob => {
|
290 | 290 | :authorized_users => [
|
|
0 commit comments