OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[chore] added vcr cassettes for one drive files info
Eric Schubertc2c24245844d
diff --git a/.env.test.local.example b/.env.test.local.exampleindex 85514575377..4c2682c3b12 100644--- a/.env.test.local.example+++ b/.env.test.local.example@@ -26,6 +26,8 @@# See COPYRIGHT and LICENSE files for more details.#+++# Nextcloud VCR credentials+NEXTCLOUD_LOCAL_OAUTH_CLIENT_ID=NEXTCLOUD_LOCAL_OAUTH_CLIENT_SECRET=@@ -35,3 +37,14 @@ NEXTCLOUD_LOCAL_OPENPROJECT_REDIRECT_URI=https://nextcloud.local/index.php/apps/NEXTCLOUD_LOCAL_OAUTH_CLIENT_ACCESS_TOKEN=NEXTCLOUD_LOCAL_OAUTH_CLIENT_REFRESH_TOKEN=++# Sharepoint/OneDrive VCR credentials++ONE_DRIVE_TEST_TENANT_ID=+ONE_DRIVE_TEST_DRIVE_ID=++ONE_DRIVE_TEST_OAUTH_CLIENT_ID=+ONE_DRIVE_TEST_OAUTH_CLIENT_SECRET=++ONE_DRIVE_TEST_OAUTH_CLIENT_ACCESS_TOKEN=+ONE_DRIVE_TEST_OAUTH_CLIENT_REFRESH_TOKEN=diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/file_info_query.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/file_info_query.rbindex 5d3a5a99a46..efa64d81ede 100644--- a/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/file_info_query.rb+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/file_info_query.rb@@ -33,7 +33,7 @@ module Storagesmodule StorageInteractionmodule OneDriveclass FileInfoQuery- FIELDS = %w[id name fileSystemInfo file size createdBy lastModifiedBy parentReference].freeze+ FIELDS = %w[id name fileSystemInfo file folder size createdBy lastModifiedBy parentReference].freezedef self.call(storage:, user:, file_id:)new(storage).call(user:, file_id:)diff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/files_info_query_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/files_info_query_spec.rbindex 1a01a23354e..3afff1e40ea 100644--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/files_info_query_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/files_info_query_spec.rb@@ -31,163 +31,185 @@require 'spec_helper'require_module_spec_helper-RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::FilesInfoQuery, :webmock do- include JsonResponseHelper+RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::FilesInfoQuery, :vcr, :webmock do+ using Storages::Peripherals::ServiceResultRefinements- let(:storage) do- create(:one_drive_storage,- :with_oauth_client,- drive_id: 'b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd')- endlet(:user) { create(:user) }- let(:token) { create(:oauth_client_token, user:, oauth_client: storage.oauth_client) }- let(:file_ids) do- %w(- 01BYE5RZ5MYLM2SMX75ZBIPQZIHT6OAYPB- 01BYE5RZ7T3DFLFS6TCRH2QAPWXL5APDLE- 01BYE5RZ4VAJVBMWSWINA2QYFFNZ2GL3O5- not_existent- forbidden- )- end- let(:not_found_json) { not_found_response }- let(:forbidden_json) { forbidden_response }-- before do- stub_request(:get, "https://graph.microsoft.com/v1.0/drives/#{storage.drive_id}/items/#{file_ids[0]}?$select=id,name,fileSystemInfo,file,size,createdBy,lastModifiedBy,parentReference")- .with(headers: { 'Authorization' => "Bearer #{token.access_token}" })- .to_return(status: 200, body: read_json('folder_drive_item'), headers: {})- stub_request(:get, "https://graph.microsoft.com/v1.0/drives/#{storage.drive_id}/items/#{file_ids[1]}?$select=id,name,fileSystemInfo,file,size,createdBy,lastModifiedBy,parentReference")- .with(headers: { 'Authorization' => "Bearer #{token.access_token}" })- .to_return(status: 200, body: read_json('file_drive_item_1'), headers: {})- stub_request(:get, "https://graph.microsoft.com/v1.0/drives/#{storage.drive_id}/items/#{file_ids[2]}?$select=id,name,fileSystemInfo,file,size,createdBy,lastModifiedBy,parentReference")- .with(headers: { 'Authorization' => "Bearer #{token.access_token}" })- .to_return(status: 200, body: read_json('file_drive_item_2'), headers: {})- stub_request(:get, "https://graph.microsoft.com/v1.0/drives/#{storage.drive_id}/items/#{file_ids[3]}?$select=id,name,fileSystemInfo,file,size,createdBy,lastModifiedBy,parentReference")- .with(headers: { 'Authorization' => "Bearer #{token.access_token}" })- .to_return(status: 404, body: not_found_json, headers: {})- stub_request(:get, "https://graph.microsoft.com/v1.0/drives/#{storage.drive_id}/items/#{file_ids[4]}?$select=id,name,fileSystemInfo,file,size,createdBy,lastModifiedBy,parentReference")- .with(headers: { 'Authorization' => "Bearer #{token.access_token}" })- .to_return(status: 403, body: forbidden_json, headers: {})- end-- it 'responds to .call' do- expect(described_class).to respond_to(:call)+ let(:storage) { create(:sharepoint_dev_drive_storage, oauth_client_token_user: user) }- method = described_class.method(:call)- expect(method.parameters).to contain_exactly(%i[keyreq storage], %i[keyreq user], %i[key file_ids])- end+ subject { described_class.new(storage) }- it 'returns an array of StorageFileInfo' do- storage_file_infos = described_class.call(storage:, user:, file_ids:).result+ describe '#call' do+ context 'without outbound request involved' do+ context 'with an empty array of file ids' do+ it 'returns an empty array' do+ result = subject.call(user:, file_ids: [])- expect(storage_file_infos).to all(be_a(Storages::StorageFileInfo))- end+ expect(result).to be_success+ expect(result.result).to eq([])+ end+ end- it 'returns a folder storage file info object' do- storage_file_info = described_class.call(storage:, user:, file_ids: file_ids.slice(0, 1)).result[0]-- # rubocop:disable Layout/LineLength- expect(storage_file_info.to_h).to eq({- status: 'ok',- status_code: 200,- id: '01BYE5RZ5MYLM2SMX75ZBIPQZIHT6OAYPB',- name: 'Business Data',- size: 39566226,- mime_type: 'application/x-op-directory',- created_at: Time.parse('2017-08-07T16:16:30Z'),- last_modified_at: Time.parse('2017-08-07T16:16:30Z'),- owner_name: 'Megan Bowen',- owner_id: '48d31887-5fad-4d73-a9f5-3c356e68a038',- last_modified_by_id: '48d31887-5fad-4d73-a9f5-3c356e68a038',- last_modified_by_name: 'Megan Bowen',- permissions: nil,- trashed: false,- location: '/drives/b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd/root:'- })- # rubocop:enable Layout/LineLength- end+ context 'with nil' do+ it 'returns an error' do+ result = subject.call(user:, file_ids: nil)- it 'returns a file storage file info object' do- storage_file_info = described_class.call(storage:, user:, file_ids: file_ids.slice(1, 1)).result[0]-- expect(storage_file_info.to_h).to eq({- status: 'ok',- status_code: 200,- id: '01BYE5RZ7T3DFLFS6TCRH2QAPWXL5APDLE',- name: 'Popular Mixed Drinks.xlsx',- size: 7064929,- mime_type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',- created_at: Time.parse('2017-08-07T16:16:53Z'),- last_modified_at: Time.parse('2017-08-07T16:16:53Z'),- owner_name: 'Megan Bowen',- owner_id: '48d31887-5fad-4d73-a9f5-3c356e68a038',- last_modified_by_id: '48d31887-5fad-4d73-a9f5-3c356e68a038',- last_modified_by_name: 'Megan Bowen',- permissions: nil,- trashed: false,- location: '/drive/root:/Business Data'- })- end-- it 'returns an error storage file info object for not found' do- storage_file_info = described_class.call(storage:, user:, file_ids: file_ids.slice(3, 1)).result[0]-- expect(storage_file_info.to_h).to eq({- status: 'itemNotFound',- status_code: 404,- id: 'not_existent',- name: nil,- size: nil,- mime_type: nil,- created_at: nil,- last_modified_at: nil,- owner_name: nil,- owner_id: nil,- last_modified_by_id: nil,- last_modified_by_name: nil,- permissions: nil,- trashed: nil,- location: nil- })- end-- it 'returns an error storage file info object for forbidden' do- storage_file_info = described_class.call(storage:, user:, file_ids: file_ids.slice(4, 1)).result[0]-- expect(storage_file_info.to_h).to eq({- status: 'accessDenied',- status_code: 403,- id: 'forbidden',- name: nil,- size: nil,- mime_type: nil,- created_at: nil,- last_modified_at: nil,- owner_name: nil,- owner_id: nil,- last_modified_by_id: nil,- last_modified_by_name: nil,- permissions: nil,- trashed: nil,- location: nil- })- end+ expect(result).to be_failure+ expect(result.result).to eq(:error)+ end+ end+ end- describe 'error handling' do- it 'returns a success with empty result, if the query is called with empty file ids array' do- storage_files = described_class.call(storage:, user:, file_ids: [])+ context 'with outbound requests successful', vcr: 'one_drive/files_info_query_success' do+ context 'with an array of file ids' do+ let(:file_ids) do+ %w(+ 01AZJL5PKU2WV3U3RKKFF2A7ZCWVBXRTEU+ 01AZJL5PJTICED3C5YSVAY6NWTBNA2XERU+ 01AZJL5PNCQCEBFI3N7JGZSX5AOX32Z3LA+ )+ end++ # rubocop:disable RSpec/ExampleLength+ # rubocop:disable Layout/LineLength+ it 'must return an array of file information when called' do+ result = subject.call(user:, file_ids:)+ expect(result).to be_success++ result.match(+ on_success: ->(file_infos) do+ expect(file_infos.size).to eq(3)+ expect(file_infos).to all(be_a(Storages::StorageFileInfo))+ expect(file_infos.map(&:to_h))+ .to eq([+ {+ status: 'ok',+ status_code: 200,+ id: '01AZJL5PKU2WV3U3RKKFF2A7ZCWVBXRTEU',+ name: 'Folder with spaces',+ size: 35141,+ mime_type: 'application/x-op-directory',+ created_at: Time.parse('2023-09-26T14:38:57Z'),+ last_modified_at: Time.parse('2023-09-26T14:38:57Z'),+ owner_name: 'Eric Schubert',+ owner_id: '0a0d38a9-a59b-4245-93fa-0d2cf727f17a',+ last_modified_by_name: 'Eric Schubert',+ last_modified_by_id: '0a0d38a9-a59b-4245-93fa-0d2cf727f17a',+ permissions: nil,+ trashed: false,+ location: '/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:'+ },+ {+ status: 'ok',+ status_code: 200,+ id: '01AZJL5PJTICED3C5YSVAY6NWTBNA2XERU',+ name: 'Document.docx',+ size: 19408,+ mime_type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',+ created_at: Time.parse('2023-09-26T14:40:58Z'),+ last_modified_at: Time.parse('2023-09-26T14:42:03Z'),+ owner_name: 'Eric Schubert',+ owner_id: '0a0d38a9-a59b-4245-93fa-0d2cf727f17a',+ last_modified_by_name: 'Eric Schubert',+ last_modified_by_id: '0a0d38a9-a59b-4245-93fa-0d2cf727f17a',+ permissions: nil,+ trashed: false,+ location: '/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:/Folder'+ },+ {+ status: 'ok',+ status_code: 200,+ id: '01AZJL5PNCQCEBFI3N7JGZSX5AOX32Z3LA',+ name: 'NextcloudHub.md',+ size: 1095,+ mime_type: 'application/octet-stream',+ created_at: Time.parse('2023-09-26T14:45:25Z'),+ last_modified_at: Time.parse('2023-09-26T14:46:13Z'),+ owner_name: 'Eric Schubert',+ owner_id: '0a0d38a9-a59b-4245-93fa-0d2cf727f17a',+ last_modified_by_name: 'Eric Schubert',+ last_modified_by_id: '0a0d38a9-a59b-4245-93fa-0d2cf727f17a',+ permissions: nil,+ trashed: false,+ location: '/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:/Folder/Subfolder'+ }+ ])+ end,+ on_failure: ->(error) { fail "Expected success, got #{error}" }+ )+ end+ # rubocop:enable RSpec/ExampleLength+ # rubocop:enable Layout/LineLength+ end+ end- expect(storage_files).to be_success- expect(storage_files.result).to eq([])+ context 'with one outbound request returning not found', vcr: 'one_drive/files_info_query_one_not_found' do+ context 'with an array of file ids' do+ let(:file_ids) { %w[01AZJL5PJTICED3C5YSVAY6NWTBNA2XERU not_existent] }++ it 'must return an array of file information when called' do+ result = subject.call(user:, file_ids:)+ expect(result).to be_success++ result.match(+ on_success: ->(file_infos) do+ expect(file_infos.size).to eq(2)+ expect(file_infos).to all(be_a(Storages::StorageFileInfo))+ expect(file_infos[1].id).to eq('not_existent')+ expect(file_infos[1].status).to eq('itemNotFound')+ expect(file_infos[1].status_code).to eq(404)+ end,+ on_failure: ->(error) { fail "Expected success, got #{error}" }+ )+ end+ endend- it 'returns an error, if the query is called with nil file ids array' do- storage_files = described_class.call(storage:, user:, file_ids: nil)+ context 'with invalid oauth token', vcr: 'one_drive/files_info_query_invalid_token' do+ before do+ token = build_stubbed(:oauth_client_token, oauth_client: storage.oauth_client)+ allow(Storages::Peripherals::StorageInteraction::OneDrive::Util)+ .to receive(:using_user_token)+ .and_yield(token)+ end++ context 'with an array of file ids' do+ let(:file_ids) { %w[01AZJL5PKU2WV3U3RKKFF2A7ZCWVBXRTEU] }++ it 'must return an array of file information when called' do+ result = subject.call(user:, file_ids:)+ expect(result).to be_success++ result.match(+ on_success: ->(file_infos) do+ expect(file_infos.size).to eq(1)+ expect(file_infos).to all(be_a(Storages::StorageFileInfo))+ expect(file_infos[0].id).to eq('01AZJL5PKU2WV3U3RKKFF2A7ZCWVBXRTEU')+ expect(file_infos[0].status).to eq('InvalidAuthenticationToken')+ expect(file_infos[0].status_code).to eq(401)+ end,+ on_failure: ->(error) { fail "Expected success, got #{error}" }+ )+ end+ end+ end- expect(storage_files).to be_failure- expect(storage_files.result).to eq(:error)- expect(storage_files.errors.to_s).to eq('error | File IDs can not be nil')+ context 'with not existent oauth token' do+ context 'with an array of file ids' do+ let(:file_ids) { %w[01AZJL5PKU2WV3U3RKKFF2A7ZCWVBXRTEU] }+ let(:user_without_token) { create(:user) }++ it 'must return an array of file information when called' do+ result = subject.call(user: user_without_token, file_ids:)+ expect(result).to be_failure+ expect(result.error_source).to be_a(OAuthClients::ConnectionManager)++ result.match(+ on_failure: ->(error) { expect(error.code).to eq(:unauthorized) },+ on_success: ->(file_infos) { fail "Expected failure, got #{file_infos}" }+ )+ end+ endendendenddiff --git a/modules/storages/spec/factories/storage_factory.rb b/modules/storages/spec/factories/storage_factory.rbindex fcfe8ba81dd..cabb39e8cf6 100644--- a/modules/storages/spec/factories/storage_factory.rb+++ b/modules/storages/spec/factories/storage_factory.rb@@ -103,4 +103,33 @@ FactoryBot.define doclass: '::Storages::OneDriveStorage' dohost { nil }end++ factory :sharepoint_dev_drive_storage,+ parent: :one_drive_storage do+ transient do+ oauth_client_token_user { association :user }+ end++ name { 'Sharepoint VCR drive' }+ tenant_id { ENV.fetch('ONE_DRIVE_TEST_TENANT_ID', 'MISSING_ONE_DRIVE_TEST_TENANT_ID') }+ drive_id { ENV.fetch('ONE_DRIVE_TEST_DRIVE_ID', 'MISSING_ONE_DRIVE_TEST_DRIVE_ID') }++ after(:create) do |storage, evaluator|+ create(:oauth_client,+ client_id: ENV.fetch('ONE_DRIVE_TEST_OAUTH_CLIENT_ID', 'MISSING_ONE_DRIVE_TEST_OAUTH_CLIENT_ID'),+ client_secret: ENV.fetch('ONE_DRIVE_TEST_OAUTH_CLIENT_SECRET',+ 'MISSING_ONE_DRIVE_TEST_OAUTH_CLIENT_SECRET'),+ integration: storage)++ create(:oauth_client_token,+ oauth_client: storage.oauth_client,+ user: evaluator.oauth_client_token_user,+ access_token: ENV.fetch('ONE_DRIVE_TEST_OAUTH_CLIENT_ACCESS_TOKEN',+ 'MISSING_ONE_DRIVE_TEST_OAUTH_CLIENT_ACCESS_TOKEN'),+ refresh_token: ENV.fetch('ONE_DRIVE_TEST_OAUTH_CLIENT_REFRESH_TOKEN',+ 'MISSING_ONE_DRIVE_TEST_OAUTH_CLIENT_REFRESH_TOKEN'),+ token_type: 'bearer',+ origin_user_id: 'admin')+ end+ endenddiff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/files_info_query_invalid_token.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/files_info_query_invalid_token.ymlnew file mode 100644index 00000000000..88e25bf7a13--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/files_info_query_invalid_token.yml@@ -0,0 +1,47 @@+---+http_interactions:+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PKU2WV3U3RKKFF2A7ZCWVBXRTEU?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Bearer 1234567890-1+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 401+ message: Unauthorized+ headers:+ Transfer-Encoding:+ - chunked+ Content-Type:+ - application/json+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - bc75372b-8884-45cf-9453-f93226c16ee6+ Client-Request-Id:+ - bc75372b-8884-45cf-9453-f93226c16ee6+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"FR3PEPF0000016B"}}'+ Www-Authenticate:+ - Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize",+ client_id="00000003-0000-0000-c000-000000000000"+ Date:+ - Wed, 27 Sep 2023 13:42:25 GMT+ body:+ encoding: UTF-8+ string: '{"error":{"code":"InvalidAuthenticationToken","message":"CompactToken+ parsing failed with error code: 80049217","innerError":{"date":"2023-09-27T13:42:25","request-id":"bc75372b-8884-45cf-9453-f93226c16ee6","client-request-id":"bc75372b-8884-45cf-9453-f93226c16ee6"}}}'+ recorded_at: Wed, 27 Sep 2023 13:42:25 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/files_info_query_one_not_found.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/files_info_query_one_not_found.ymlnew file mode 100644index 00000000000..8dbbce57945--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/files_info_query_one_not_found.yml@@ -0,0 +1,93 @@+---+http_interactions:+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PJTICED3C5YSVAY6NWTBNA2XERU?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6IlJTdHpqTVJNSGcxOTFMcHJoOVcwRG94a2VkZGZOX2RIMm42dEw1Wm1TSFUiLCJhbGciOiJSUzI1NiIsIng1dCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC80ZDQ0YmYzNi05YjU2LTQ1YzAtODgwNy1iYmYzODZkZDA0N2YvIiwiaWF0IjoxNjk1ODE5NTA1LCJuYmYiOjE2OTU4MTk1MDUsImV4cCI6MTY5NTgyNDEyNCwiYWNjdCI6MSwiYWNyIjoiMSIsImFpbyI6IkFXUUFtLzhVQUFBQUw3MnhpOVlPcDdOZjRJTEo1Z1EvUWJrcXI0ZVBPWlRnSU0xR1N2OVptcUZ1OUN0NlpnTWpMWERLQXVLQytrOU5nb0l1Y3pLUUhvOC9IVnh6RENlak5YTUlzQUxrdENoaEFOaTFwVnRCY3pCK3AzZ0ZrbVJqcjZ0SjVvbGJ1cktwIiwiYWx0c2VjaWQiOiIxOmxpdmUuY29tOjAwMDM0MDAxNjA2Q0VEMTciLCJhbXIiOlsicHdkIl0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IndpZHMiOlsiODhkOGUzZTMtOGY1NS00YTFlLTk1M2EtOWI5ODk4Yjg4NzZiIiwiMTNiZDFjNzItNmY0YS00ZGNmLTk4NWYtMThkM2I4MGYyMDhhIl0sInhtc19zdCI6eyJzdWIiOiIwblA2VEVfQUhBeFM0dm5ibWFRcDFLZUEyUngzbXNBTXphRFQ4RTJ4RmpJIn0sInhtc190Y2R0IjoxNDA1NTE0ODYxLCJ4bXNfdGRiciI6IkVVIn0.J0z20sVW7ClLpsTnGZRJ_vULwXuXAtESGeQ9BidcFrR_k8Pb3Z8DIlgAMAhzK8glbfHVIk3hAOott7GCkEFZ3cWYw2HDvgeHb7urZMuxvMQ9bIrXS8YJLlUP5ATBdy0Xp42i5VzK4xvSxTaihJJh8Sf97MlQL6JRSnh2CEezBGopBKsUW3W6HsvPsypDltRRDBCW5tqD6cPWjv-GkWp0boWSCcP8UGx7ShTILRjIpN6DTB0MqaMgVh3clwYOEYviIGp7yjD4tl_9sJSqImDTXNipg0taTEcR6b8kyQuNWSgJJ0n_cygR3Lh7LbqNQ1ibnOjvA_FcjeYSiYXRBAlEFQ+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-cache+ Transfer-Encoding:+ - chunked+ Content-Type:+ - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8+ Etag:+ - '"{3D884033-B88B-4195-8F36-D30B41AB9234},5"'+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - 8c910f5f-1f69-4386-9b77-720429c29c02+ Client-Request-Id:+ - 8c910f5f-1f69-4386-9b77-720429c29c02+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"FR1PEPF00000AB4"}}'+ Odata-Version:+ - '4.0'+ Date:+ - Wed, 27 Sep 2023 13:04:30 GMT+ body:+ encoding: UTF-8+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/items(id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference)/$entity","@odata.etag":"\"{3D884033-B88B-4195-8F36-D30B41AB9234},5\"","id":"01AZJL5PJTICED3C5YSVAY6NWTBNA2XERU","name":"Document.docx","size":19408,"createdBy":{"user":{"email":"[email protected]","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a","displayName":"Eric+ Schubert"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a","displayName":"Eric+ Schubert"}},"parentReference":{"driveType":"documentLibrary","driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","id":"01AZJL5PMAXGDWAAKMEBALX4Q6GSN5BSBR","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:/Folder","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50"},"file":{"mimeType":"application/vnd.openxmlformats-officedocument.wordprocessingml.document","hashes":{"quickXorHash":"siGSuezz5qa4hRCiJay8spMkl7o="}},"fileSystemInfo":{"createdDateTime":"2023-09-26T14:40:58Z","lastModifiedDateTime":"2023-09-26T14:42:03Z"}}'+ recorded_at: Wed, 27 Sep 2023 13:04:31 GMT+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/not_existent?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference+ body:+ encoding: US-ASCII+ string: ''+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MAhzK8glbfHVIk3hAOott7GCkEFZ3cWYw2HDvgeHb7urZMuxvMQ9bIrXS8YJLlUP5ATBdy0Xp42i5VzK4xvSxTaihJJh8Sf97MlQL6JRSnh2CEezBGopBKsUW3W6HsvPsypDltRRDBCW5tqD6cPWjv-GkWp0boWSCcP8UGx7ShTILRjIpN6DTB0MqaMgVh3clwYOEYviIGp7yjD4tl_9sJSqImDTXNipg0taTEcR6b8kyQuNWSgJJ0n_cygR3Lh7LbqNQ1ibnOjvA_FcjeYSiYXRBAlEFQ+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 404+ message: Not Found+ headers:+ Cache-Control:+ - no-store, no-cache+ Transfer-Encoding:+ - chunked+ Content-Type:+ - application/json+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - 79be8d99-9078-47b1-8f9b-cb5ab3d4f20a+ Client-Request-Id:+ - 79be8d99-9078-47b1-8f9b-cb5ab3d4f20a+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"FR1PEPF00000AB5"}}'+ Date:+ - Wed, 27 Sep 2023 13:04:30 GMT+ body:+ encoding: UTF-8+ string: '{"error":{"code":"itemNotFound","message":"Item not found","innerError":{"date":"2023-09-27T13:04:31","request-id":"79be8d99-9078-47b1-8f9b-cb5ab3d4f20a","client-request-id":"79be8d99-9078-47b1-8f9b-cb5ab3d4f20a"}}}'+ recorded_at: Wed, 27 Sep 2023 13:04:31 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/files_info_query_success.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/files_info_query_success.ymlnew file mode 100644index 00000000000..6977e733a89--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/files_info_query_success.yml@@ -0,0 +1,148 @@+---+http_interactions:+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PKU2WV3U3RKKFF2A7ZCWVBXRTEU?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6IlFSRGhSZF94dGNVeHFqQmRPNFVLRGxsRjRIcHJKNmNzdS13MjlkajNDOHMiLCJhbGciOiJSUzI1NiIsIng1dCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC80ZDQ0YmYzNi05YjU2LTQ1YzAtODgwNy1iYmYzODZkZDA0N2YvIiwiaWF0IjoxNjk1ODEyNzQwLCJuYmYiOjE2OTU4MTI3NDAsImV4cCI6MTY5NTgxNzI1OCwiYWNjdCI6MSwiYWNyIjoiMSIsImFpbyI6IkFXUUFtLzhVQUFBQUI4MldVa3FYdWc0WGtwNnZqOEJiQ0MxQ2xHSUhUR3FtWUNwQnk3ZzRNbCtzcmtWOERnN09vUmtmelgvVEdtWUZ5TnlBeEsxZVFxZjc2bkdYVzIxQlE5YnZoZXhxZTNIMkFPNXlRU0l1Q3M3Zm5TaXR6cTBaMkh5b3Avb2EzUW12IiwiYWx0c2VjaWQiOiIxOmxpdmUuY29tOjAwMDM0MDAxNjA2Q0VEMTciLCJhbXIiOlsicHdkIl0sImFwcF9kaXNwbGF5bmFtZSI6Ik9wZW5Qcm9qZWN0IERldiBBcHAiLCJhcHBpZCI6IjQyNj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zItNmY0YS00ZGNmLTk4NWYtMThkM2I4MGYyMDhhIl0sInhtc19zdCI6eyJzdWIiOiIwblA2VEVfQUhBeFM0dm5ibWFRcDFLZUEyUngzbXNBTXphRFQ4RTJ4RmpJIn0sInhtc190Y2R0IjoxNDA1NTE0ODYxLCJ4bXNfdGRiciI6IkVVIn0.isOTJVaI4vJGRzfhbMaDAYqXml1tGV0OVGucRL4dT9eHNG5p2oBRYsjpBVBJJ8ioftNrIPYZr689LXEf5i_z8tLu1ZhlutJc2NfBJSNCMni9rInQKWM15Q01-y3CUaxQdV51FpZyPK_GKrIfybE4wwqKur-QcIut-acwW1isarWMvCJOyNiQA6zqSFoRgeBhyk3515N9X8K0J9tPqEXYYlNJncG8rYfSn-NObvVgt6xGPKANnOiHjgKEMZDVPst32JQWjJlp_57ZZ7EAjVk0bsW06NwIboNYLc4bjh-aBSS1O6s7AVF-XGhCiwATZDWGmuh1Qsmt7hCKdGdQvxqthQ+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-cache+ Transfer-Encoding:+ - chunked+ Content-Type:+ - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8+ Etag:+ - '"{BAABD554-2A6E-4B51-A07F-22B54378CC94},1"'+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - 704fb062-8dbc-4b45-abfd-2d1f4c086619+ Client-Request-Id:+ - 704fb062-8dbc-4b45-abfd-2d1f4c086619+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"FR2PEPF00000397"}}'+ Odata-Version:+ - '4.0'+ Date:+ - Wed, 27 Sep 2023 11:24:25 GMT+ body:+ encoding: UTF-8+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/items(id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference)/$entity","@odata.etag":"\"{BAABD554-2A6E-4B51-A07F-22B54378CC94},1\"","id":"01AZJL5PKU2WV3U3RKKFF2A7ZCWVBXRTEU","name":"Folder+ with spaces","size":35141,"createdBy":{"user":{"email":"[email protected]","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a","displayName":"Eric+ Schubert"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a","displayName":"Eric+ Schubert"}},"parentReference":{"driveType":"documentLibrary","driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","id":"01AZJL5PN6Y2GOVW7725BZO354PWSELRRZ","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50"},"fileSystemInfo":{"createdDateTime":"2023-09-26T14:38:57Z","lastModifiedDateTime":"2023-09-26T14:38:57Z"},"folder":{"childCount":3}}'+ recorded_at: Wed, 27 Sep 2023 11:24:26 GMT+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PJTICED3C5YSVAY6NWTBNA2XERU?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6IlFSRGhSZF94dGNVeHFqQmRPNFVLRGxsRjRIcHJKNmNzdS13MjlkajNDOHMiLCJhbGciOiJSUzI1N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hyk3515N9X8K0J9tPqEXYYlNJncG8rYfSn-NObvVgt6xGPKANnOiHjgKEMZDVPst32JQWjJlp_57ZZ7EAjVk0bsW06NwIboNYLc4bjh-aBSS1O6s7AVF-XGhCiwATZDWGmuh1Qsmt7hCKdGdQvxqthQ+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-cache+ Transfer-Encoding:+ - chunked+ Content-Type:+ - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8+ Etag:+ - '"{3D884033-B88B-4195-8F36-D30B41AB9234},5"'+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - 0c22e5e1-827b-4731-96b1-797f247a4a14+ Client-Request-Id:+ - 0c22e5e1-827b-4731-96b1-797f247a4a14+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"FR2PEPF0000037A"}}'+ Odata-Version:+ - '4.0'+ Date:+ - Wed, 27 Sep 2023 11:24:25 GMT+ body:+ encoding: UTF-8+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/items(id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference)/$entity","@odata.etag":"\"{3D884033-B88B-4195-8F36-D30B41AB9234},5\"","id":"01AZJL5PJTICED3C5YSVAY6NWTBNA2XERU","name":"Document.docx","size":19408,"createdBy":{"user":{"email":"[email protected]","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a","displayName":"Eric+ Schubert"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a","displayName":"Eric+ Schubert"}},"parentReference":{"driveType":"documentLibrary","driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","id":"01AZJL5PMAXGDWAAKMEBALX4Q6GSN5BSBR","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:/Folder","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50"},"file":{"mimeType":"application/vnd.openxmlformats-officedocument.wordprocessingml.document","hashes":{"quickXorHash":"siGSuezz5qa4hRCiJay8spMkl7o="}},"fileSystemInfo":{"createdDateTime":"2023-09-26T14:40:58Z","lastModifiedDateTime":"2023-09-26T14:42:03Z"}}'+ recorded_at: Wed, 27 Sep 2023 11:24:26 GMT+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PNCQCEBFI3N7JGZSX5AOX32Z3LA?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6IlFSRGhSZF94dGNVeHFqQmRPNFVLRGxsRjRIcHJKNmNzdS13MjlkajNDOHMiLCJhbGciOiJSUzI1NiIsIng1dCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC80ZDQ0YmYzNi05YjU2LTQ1YzAtODgwNy1iYmYzODZkZDA0N2YvIiwiaWF0IjoxNjk1ODEyNzQwLCJuYmYiOjE2OTU4MT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lkIGVtYWlsIiwic2lnbmluX3N0YXRlIjpbImttc2kiXSwic3ViIjoiWUFYYjFTaUR3RjNCUHFyN2lXWVhGT2YzMGxKSG9PeGtrYzQ4Z0R3c1Q1TSIsInRlbmFudF9yZWdpb25fc2NvcGUiOiJFVSIsInRpZCI6IjRkNDRiZjM2LTliNTYtNDVjMC04ODA3LWJiZjM4NmRkMDQ3ZiIsInVuaXF1ZV9uYW1lIjoibGl2ZS5jb20jZXNjaHViZXJ0Lm9wQG91dGxvb2suY29tIiwidXRpIjoiOFh2UGxvQkliVVNNQmVNT3hpSWFBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiODhkOGUzZTMtOGY1NS00YTFlLTk1M2EtOWI5ODk4Yjg4NzZiIiwiMTNiZDFjNzItNmY0YS00ZGNmLTk4NWYtMThkM2I4MGYyMDhhIl0sInhtc19zdCI6eyJzdWIiOiIwblA2VEVfQUhBeFM0dm5ibWFRcDFLZUEyUngzbXNBTXphRFQ4RTJ4RmpJIn0sInhtc190Y2R0IjoxNDA1NTE0ODYxLCJ4bXNfdGRiciI6IkVVIn0.isOTJVaI4vJGRzfhbMaDAYqXml1tGV0OVGucRL4dT9eHNG5p2oBRYsjpBVBJJ8ioftNrIPYZr689LXEf5i_z8tLu1ZhlutJc2NfBJSNCMni9rInQKWM15Q01-y3CUaxQdV51FpZyPK_GKrIfybE4wwqKur-QcIut-acwW1isarWMvCJOyNiQA6zqSFoRgeBhyk3515N9X8K0J9tPqEXYYlNJncG8rYfSn-NObvVgt6xGPKANnOiHjgKEMZDVPst32JQWjJlp_57ZZ7EAjVk0bsW06NwIboNYLc4bjh-aBSS1O6s7AVF-XGhCiwATZDWGmuh1Qsmt7hCKdGdQvxqthQ+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-cache+ Transfer-Encoding:+ - chunked+ Content-Type:+ - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8+ Etag:+ - '"{128880A2-6DA3-4DFA-995F-A075F7ACED60},3"'+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - 7c9c71d4-e4cb-41c0-adb0-000294484aaf+ Client-Request-Id:+ - 7c9c71d4-e4cb-41c0-adb0-000294484aaf+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF000002DF"}}'+ Odata-Version:+ - '4.0'+ Date:+ - Wed, 27 Sep 2023 11:24:26 GMT+ body:+ encoding: UTF-8+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/items(id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference)/$entity","@odata.etag":"\"{128880A2-6DA3-4DFA-995F-A075F7ACED60},3\"","id":"01AZJL5PNCQCEBFI3N7JGZSX5AOX32Z3LA","name":"NextcloudHub.md","size":1095,"createdBy":{"user":{"email":"[email protected]","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a","displayName":"Eric+ Schubert"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a","displayName":"Eric+ Schubert"}},"parentReference":{"driveType":"documentLibrary","driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","id":"01AZJL5PPWP5UOATNRJJBYJG5TACDHEUAG","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:/Folder/Subfolder","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50"},"file":{"mimeType":"application/octet-stream","hashes":{"quickXorHash":"2HQJc625zkgBM9NAAjuXr1Im/0M="}},"fileSystemInfo":{"createdDateTime":"2023-09-26T14:45:25Z","lastModifiedDateTime":"2023-09-26T14:46:13Z"}}'+ recorded_at: Wed, 27 Sep 2023 11:24:26 GMT+recorded_with: VCR 6.2.0