From 90052201eda71415d0430d87c9df2f99b1634ad9 Mon Sep 17 00:00:00 2001 From: Jacob Penner Date: Thu, 19 Sep 2024 11:53:42 -0400 Subject: [PATCH] updates to submission builder in accordance with new direction --- .../app/services/simple_forms_api/s3/utils.rb | 2 +- .../spec/services/s3/submission_archive_builder_spec.rb | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/simple_forms_api/app/services/simple_forms_api/s3/utils.rb b/modules/simple_forms_api/app/services/simple_forms_api/s3/utils.rb index 7b31b0abdac..d07425ba6a7 100644 --- a/modules/simple_forms_api/app/services/simple_forms_api/s3/utils.rb +++ b/modules/simple_forms_api/app/services/simple_forms_api/s3/utils.rb @@ -29,7 +29,7 @@ def handle_error(message, error, **) end def temp_directory_path - @temp_directory_path ||= Rails.root.join("tmp/#{benefits_intake_uuid}-#{SecureRandom.hex}/").to_s + @temp_directory_path ||= Rails.root.join("tmp/#{benefits_intake_uuid}-#{SecureRandom.hex}-archive/").to_s end def s3_resource diff --git a/modules/simple_forms_api/spec/services/s3/submission_archive_builder_spec.rb b/modules/simple_forms_api/spec/services/s3/submission_archive_builder_spec.rb index da95d50aefd..7ad66534c46 100644 --- a/modules/simple_forms_api/spec/services/s3/submission_archive_builder_spec.rb +++ b/modules/simple_forms_api/spec/services/s3/submission_archive_builder_spec.rb @@ -24,9 +24,7 @@ attachments: nil, benefits_intake_uuid:, file_path: nil, - include_json_archive: true, include_manifest: true, - include_text_archive: true, metadata: nil, submission: nil } @@ -75,7 +73,7 @@ describe '#run' do subject(:run) { archive_builder_instance.run } - let(:temp_file_path) { Rails.root.join("tmp/#{benefits_intake_uuid}-random-letters-n-numbers/").to_s } + let(:temp_file_path) { Rails.root.join("tmp/#{benefits_intake_uuid}-random-letters-n-numbers-archive/").to_s } context 'when properly initialized' do it 'completes successfully' do