Skip to content

Commit 0b1fa1e

Browse files
committed
Add test case for optional agent creds for the blobstore job
1 parent 588139b commit 0b1fa1e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

spec/read_write_users.erb_spec.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,27 @@
99
ERB.new(template).result(binding).split("\n")
1010
end
1111

12+
context 'blobstore with no agent user settings' do
13+
let(:properties) do
14+
{
15+
'properties' => {
16+
'blobstore' => {
17+
'director' => {
18+
'user' => 'director-0',
19+
'password' => 'oeuirgh9453yt44y98',
20+
},
21+
},
22+
},
23+
}
24+
end
25+
26+
it 'should render *_users.erb file with director user only' do
27+
expect(rendered_template_lines.count).to eq(1)
28+
expect(rendered_template_lines).not_to include('agent-0:')
29+
expect(rendered_template_lines).to include('director-0:{PLAIN}oeuirgh9453yt44y98')
30+
end
31+
end
32+
1233
context 'blobstore with single users settings' do
1334
let(:properties) do
1435
{

0 commit comments

Comments
 (0)