From 0b4d47c700ff998df880601c1eac571288a4909e Mon Sep 17 00:00:00 2001 From: Ruben Koster Date: Fri, 17 Apr 2026 09:17:38 +0200 Subject: [PATCH 1/2] Apply suggested fix to src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb b/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb index fade3b2341..44c83a5cde 100644 --- a/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb +++ b/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb @@ -316,7 +316,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' } From 9d5d708f2700fb33f261a6980c561a75aab81f6b Mon Sep 17 00:00:00 2001 From: Ruben Koster Date: Fri, 17 Apr 2026 09:17:39 +0200 Subject: [PATCH 2/2] Apply suggested fix to src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb b/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb index 44c83a5cde..8c4faa87e7 100644 --- a/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb +++ b/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb @@ -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' }