Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ module NATSSync
let(:client_id) { 'client_id' }
let(:client_secret) { 'client_secret' }
let(:ca_cert) { 'ca_cert' }
let(:sample_director_subject) do
file = Tempfile.new('director_subject')
file.write(director_subject)
file.flush
file.path
end
let(:sample_hm_subject) do
file = Tempfile.new('hm_subject')
file.write(hm_subject)
file.flush
file.path
end
let(:director_subject_file) { sample_director_subject }
let(:hm_subject_file) { sample_hm_subject }
let(:director_subject) { 'C=USA, O=Cloud Foundry, CN=default.director.bosh-internal' }
Expand Down Expand Up @@ -316,7 +328,7 @@ module NATSSync
end
end

describe 'when there are running vms in Bosh and there are is no subject information for hm or the director' do
describe 'when there are running vms in Bosh and there is no subject information for hm or the director' do
let(:director_subject_file) { '/file/nonexistent1' }
let(:hm_subject_file) { '/file/nonexistent2' }

Expand Down
Loading