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
Delays caching until we know the operation result
Marcello Rocha820f7d9a0ef4
diff --git a/.rubocop.yml b/.rubocop.ymlindex f5ab796a4f6..ef318056fde 100644--- a/.rubocop.yml+++ b/.rubocop.yml@@ -236,6 +236,10 @@ RSpec/DescribeMethod:RSpec/SpecFilePathFormat:IgnoreMethods: true+# Disable deprecated cop+RSpec/FilePath:+ Enabled: false+# Prevent "fit" or similar to be committedRSpec/Focus:Enabled: truediff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/oauth_client_credentials.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/oauth_client_credentials.rbindex 0c231d273cd..2c5c7dc7e1c 100644--- a/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/oauth_client_credentials.rb+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/oauth_client_credentials.rb@@ -59,12 +59,14 @@ module Storageshttp = http_result.result- if access_token.nil?+ operation_result = yield http++ if access_token.nil? && operation_result.success?token = http.instance_variable_get(:@options).oauth_session.access_tokenRails.cache.write("storage.#{storage.id}.httpx_access_token", token, expires_in: 50.minutes)end- yield http+ operation_resultend# rubocop:enable Metrics/AbcSizediff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/authentication_strategies/o_auth_client_credentials_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/authentication_strategies/o_auth_client_credentials_spec.rbnew file mode 100644index 00000000000..070d6669811--- /dev/null+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/authentication_strategies/o_auth_client_credentials_spec.rb@@ -0,0 +1,110 @@+# frozen_string_literal: true++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2012-2024 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#++++require "spec_helper"+require_module_spec_helper++RSpec.describe Storages::Peripherals::StorageInteraction::AuthenticationStrategies::OAuthClientCredentials, :webmock do+ let(:storage) { create(:sharepoint_dev_drive_storage) }++ subject(:strategy) { described_class.new }++ context "when the attempted request fails with a 403" do+ before do+ stub_request(:post, "https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token")+ .and_return(status: 200, body: token_json, headers: { content_type: "application/json" })++ stub_request(:get, "https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root")+ .and_return(status: 403)+ end++ it "does not cache the result" do+ expect(Rails.cache.fetch("storage.#{storage.id}.httpx_access_token")).to be_nil++ strategy.call(storage:) do |http|+ http.get("https://graph.microsoft.com/v1.0/drives/#{storage.drive_id}/root").raise_for_status+ rescue HTTPX::Error+ ServiceResult.failure+ end++ expect(Rails.cache.fetch("storage.#{storage.id}.httpx_access_token")).to be_nil+ end++ it "returns the result of the operation" do+ result = strategy.call(storage:) do |http|+ http.get("https://graph.microsoft.com/v1.0/drives/#{storage.drive_id}/root").raise_for_status+ rescue HTTPX::Error+ ServiceResult.failure(result: "It failed")+ end++ expect(result).to be_failure+ expect(result.result).to eq("It failed")+ end+ end++ context "when the attempted request works" do+ before do+ Rails.cache.clear++ stub_request(:post, "https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token")+ .and_return(status: 200, body: token_json, headers: { content_type: "application/json" })++ stub_request(:get, "https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root")+ .and_return(status: 200, body: { data: "bunch of data" }.to_json, headers: { content_type: "application/json" })+ end++ it "caches the generated token" do+ expect(Rails.cache.fetch("storage.#{storage.id}.httpx_access_token")).to be_nil++ strategy.call(storage:) do |http|+ http.get("https://graph.microsoft.com/v1.0/drives/#{storage.drive_id}/root").raise_for_status+ ServiceResult.success+ end++ expect(Rails.cache.fetch("storage.#{storage.id}.httpx_access_token")).to eq("TOTALLY_VALID_TOKEN")+ end++ it "returns the result of the operation" do+ result = strategy.call(storage:) do |http|+ http.get("https://graph.microsoft.com/v1.0/drives/#{storage.drive_id}/root").raise_for_status+ ServiceResult.success(result: "It works")+ end++ expect(result).to be_success+ expect(result.result).to eq("It works")+ end+ end++ private++ def token_json+ '{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"TOTALLY_VALID_TOKEN"}'+ end+enddiff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/rename_file_command_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/rename_file_command_spec.rbindex 99632930672..8552a2bbb68 100644--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/rename_file_command_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/rename_file_command_spec.rb@@ -31,13 +31,14 @@require "spec_helper"require_module_spec_helper-RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::RenameFileCommand, :webmock,- skip: "TODO: disabled because it's flaky on dev currently. Needs to be reenabled before merging" do+RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::RenameFileCommand, :webmock dolet(:storage) { create(:sharepoint_dev_drive_storage) }+ let(:userless_strategy) { Storages::Peripherals::Registry.resolve("one_drive.authentication.userless").call }let(:folder) doStorages::Peripherals::Registry.resolve("one_drive.commands.create_folder")- .call(storage:, folder_path: "Wrong Name")+ .call(auth_strategy: userless_strategy, storage:, folder_name: "Wrong Name",+ parent_location: Storages::Peripherals::ParentFolder.new("/"))endsubject(:command) { described_class.new(storage) }@@ -72,6 +73,6 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::RenameFileCodef delete_folder(folder_id)Storages::Peripherals::Registry.resolve("one_drive.commands.delete_folder")- .call(storage:, location: folder_id)+ .call(auth_strategy: userless_strategy, storage:, location: folder_id)endenddiff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/rename_folder_success.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/rename_folder_success.ymlindex 1b2ae4da7e0..334975dfeab 100644--- a/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/rename_folder_success.yml+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/one_drive/rename_folder_success.yml@@ -4,19 +4,19 @@ http_interactions:method: posturi: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/tokenbody:- encoding: UTF-8- string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default+ encoding: ASCII-8BIT+ string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default+offline_access&client_id=4262df2b-77bb-49c2-a5df-28355da676d2&client_secret=Vwk8Q%7EJTuPh.pAjvPiWBQBdTFMDK%7EAIwxbj9_axBheaders:User-Agent:- - Rack::OAuth2 (2.2.1)- Authorization:- - Basic <BASIC_AUTH>- Content-Type:- - application/x-www-form-urlencoded- Accept-Encoding:- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ - httpx.rb/1.2.5Accept:- "*/*"+ Accept-Encoding:+ - gzip, deflate+ Content-Type:+ - application/x-www-form-urlencoded+ Content-Length:+ - '201'response:status:code: 200@@ -37,24 +37,26 @@ http_interactions:P3p:- CP="DSP CUR OTPi IND OTRi ONL FIN"X-Ms-Request-Id:- - 5cad9093-3a22-406e-bb6e-91a1a8067200+ - 5d94463c-89b2-4148-8afa-47d6d7686900X-Ms-Ests-Server:- - 2.1.17122.3 - FRC ProdSlices+ - 2.1.18216.5 - SEC ProdSlices+ X-Ms-Srs:+ - 1.PX-Xss-Protection:- '0'Set-Cookie:- - fpc=AtJoMauZWOBDo0kxnN79HDmkbDoXAQAAAMfaSt0OAAAA; expires=Thu, 29-Feb-2024- 11:55:52 GMT; path=/; secure; HttpOnly; SameSite=None- - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly- - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly+ - fpc=ApsGOKKY9c5MtcLEnQSVmSqkbDoXAQAAAJkC-d0OAAAA; expires=Wed, 10-Jul-2024+ 14:20:10 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;+ path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/;+ secure; samesite=none; httponlyDate:- - Tue, 30 Jan 2024 11:55:51 GMT+ - Mon, 10 Jun 2024 14:20:09 GMTContent-Length:- - '1708'+ - '1735'body:encoding: UTF-8string: '{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"<ACCESS_TOKEN>"}'- recorded_at: Tue, 30 Jan 2024 11:55:52 GMT+ recorded_at: Mon, 10 Jun 2024 14:20:10 GMT- request:method: posturi: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root/children@@ -62,18 +64,18 @@ http_interactions:encoding: UTF-8string: '{"name":"Wrong Name","folder":{},"@microsoft.graph.conflictBehavior":"fail"}'headers:- Authorization:- - Bearer <BEARER TOKEN>- Accept:- - application/jsonContent-Type:- application/jsonUser-Agent:- - httpx.rb/1.2.1+ - httpx.rb/1.2.5+ Accept:+ - "*/*"Accept-Encoding:- gzip, deflateContent-Length:- '76'+ Authorization:+ - Bearer <BEARER TOKEN>response:status:code: 201@@ -81,41 +83,96 @@ http_interactions:headers:Cache-Control:- no-store, no-cache- Transfer-Encoding:- - chunkedContent-Type:- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8Content-Encoding:- gzipEtag:- - '"{2CA620AC-3D42-437A-94B0-7DE8295827B8},1"'+ - '"{B880A739-43EF-4363-9134-BD49CFE7C910},1"'Location:- - https://finn.sharepoint.com/_api/v2.0/drives('b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs')/items('root')/children('01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y')+ - https://finn.sharepoint.com/_api/v2.0/drives('b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs')/items('root')/children('01AZJL5PJZU6ALR32DMNBZCNF5JHH6PSIQ')Vary:- Accept-EncodingStrict-Transport-Security:- max-age=31536000Request-Id:- - 736fc399-438a-40ca-93fd-75a21903b009+ - cd98c895-8ec4-45b7-8f07-eca6799a38c2Client-Request-Id:- - 736fc399-438a-40ca-93fd-75a21903b009+ - cd98c895-8ec4-45b7-8f07-eca6799a38c2X-Ms-Ags-Diagnostic:- - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF00000318"}}'+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"FR3PEPF000005B8"}}'Odata-Version:- '4.0'Date:- - Tue, 30 Jan 2024 11:55:51 GMT+ - Mon, 10 Jun 2024 14:20:10 GMTbody:encoding: UTF-8- string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/root/children/$entity","@odata.etag":"\"{2CA620AC-3D42-437A-94B0-7DE8295827B8},1\"","createdDateTime":"2024-01-30T11:55:52Z","eTag":"\"{2CA620AC-3D42-437A-94B0-7DE8295827B8},1\"","id":"01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y","lastModifiedDateTime":"2024-01-30T11:55:52Z","name":"Wrong- Name","size":0,"webUrl":"https://finn.sharepoint.com/sites/openprojectfilestoragetests/VCR/Wrong%20Name","cTag":"\"c:{2CA620AC-3D42-437A-94B0-7DE8295827B8},0\"","commentSettings":{"commentingDisabled":{"isDisabled":false}},"createdBy":{"application":{"displayName":"OpenProject+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/root/children/$entity","@odata.etag":"\"{B880A739-43EF-4363-9134-BD49CFE7C910},1\"","createdDateTime":"2024-06-10T14:20:11Z","eTag":"\"{B880A739-43EF-4363-9134-BD49CFE7C910},1\"","id":"01AZJL5PJZU6ALR32DMNBZCNF5JHH6PSIQ","lastModifiedDateTime":"2024-06-10T14:20:11Z","name":"Wrong+ Name","size":0,"webUrl":"https://finn.sharepoint.com/sites/openprojectfilestoragetests/VCR/Wrong%20Name","cTag":"\"c:{B880A739-43EF-4363-9134-BD49CFE7C910},0\"","commentSettings":{"commentingDisabled":{"isDisabled":false}},"createdBy":{"application":{"displayName":"OpenProjectDev App","id":"4262df2b-77bb-49c2-a5df-28355da676d2"},"user":{"displayName":"SharePointApp"}},"lastModifiedBy":{"application":{"displayName":"OpenProject Dev App","id":"4262df2b-77bb-49c2-a5df-28355da676d2"},"user":{"displayName":"SharePoint- App"}},"parentReference":{"driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","driveType":"documentLibrary","id":"01AZJL5PN6Y2GOVW7725BZO354PWSELRRZ","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:","sharepointIds":{"listId":"f3baf95b-362b-4740-80d8-4f593d28f5ec","listItemUniqueId":"049e81d0-52fb-4624-af6d-96611c29a9cc","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50","siteUrl":"https://finn.sharepoint.com/sites/openprojectfilestoragetests","tenantId":"4d44bf36-9b56-45c0-8807-bbf386dd047f","webId":"7ef259e8-8eed-4645-920a-8b367bb0d8e0"}},"fileSystemInfo":{"createdDateTime":"2024-01-30T11:55:52Z","lastModifiedDateTime":"2024-01-30T11:55:52Z"},"folder":{"childCount":0}}'- recorded_at: Tue, 30 Jan 2024 11:55:52 GMT+ App"}},"parentReference":{"driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","driveType":"documentLibrary","id":"01AZJL5PN6Y2GOVW7725BZO354PWSELRRZ","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:","sharepointIds":{"listId":"f3baf95b-362b-4740-80d8-4f593d28f5ec","listItemUniqueId":"049e81d0-52fb-4624-af6d-96611c29a9cc","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50","siteUrl":"https://finn.sharepoint.com/sites/openprojectfilestoragetests","tenantId":"4d44bf36-9b56-45c0-8807-bbf386dd047f","webId":"7ef259e8-8eed-4645-920a-8b367bb0d8e0"}},"fileSystemInfo":{"createdDateTime":"2024-06-10T14:20:11Z","lastModifiedDateTime":"2024-06-10T14:20:11Z"},"folder":{"childCount":0},"shared":{"scope":"unknown"}}'+ recorded_at: Mon, 10 Jun 2024 14:20:11 GMT+- request:+ method: post+ uri: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token+ body:+ encoding: UTF-8+ string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default+ headers:+ User-Agent:+ - Rack::OAuth2 (2.2.1)+ Authorization:+ - Basic <BASIC_AUTH>+ Content-Type:+ - application/x-www-form-urlencoded+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-store, no-cache+ Pragma:+ - no-cache+ Content-Type:+ - application/json; charset=utf-8+ Expires:+ - "-1"+ Strict-Transport-Security:+ - max-age=31536000; includeSubDomains+ X-Content-Type-Options:+ - nosniff+ P3p:+ - CP="DSP CUR OTPi IND OTRi ONL FIN"+ X-Ms-Request-Id:+ - bb546166-785b-453c-81bc-cb8c93af6e00+ X-Ms-Ests-Server:+ - 2.1.18216.5 - SEC ProdSlices+ X-Ms-Srs:+ - 1.P+ X-Xss-Protection:+ - '0'+ Set-Cookie:+ - fpc=AhKGA6Jv29JLr32JHmFcFrukbDoXAQAAAJoC-d0OAAAA; expires=Wed, 10-Jul-2024+ 14:20:11 GMT; path=/; secure; HttpOnly; SameSite=None+ - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly+ - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly+ Date:+ - Mon, 10 Jun 2024 14:20:11 GMT+ Content-Length:+ - '1708'+ body:+ encoding: UTF-8+ string: '{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"<ACCESS_TOKEN>"}'+ recorded_at: Mon, 10 Jun 2024 14:20:11 GMT- request:method: patch- uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y+ uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PJZU6ALR32DMNBZCNF5JHH6PSIQbody:encoding: UTF-8string: '{"name":"My Project No. 1 (19)"}'@@ -127,7 +184,7 @@ http_interactions:Content-Type:- application/jsonUser-Agent:- - httpx.rb/1.2.1+ - httpx.rb/1.2.5Accept-Encoding:- gzip, deflateContent-Length:@@ -139,8 +196,6 @@ http_interactions:headers:Cache-Control:- no-store, no-cache- Transfer-Encoding:- - chunkedContent-Type:- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8Content-Encoding:@@ -150,37 +205,35 @@ http_interactions:Strict-Transport-Security:- max-age=31536000Request-Id:- - 1e9e401d-cacf-41f9-ac60-91ebb154f9fc+ - 6ec63b53-7694-4127-91f2-6c9cc9741bd5Client-Request-Id:- - 1e9e401d-cacf-41f9-ac60-91ebb154f9fc+ - 6ec63b53-7694-4127-91f2-6c9cc9741bd5X-Ms-Ags-Diagnostic:- - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF000002DC"}}'+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"FR3PEPF000002E4"}}'Odata-Version:- '4.0'Date:- - Tue, 30 Jan 2024 11:55:52 GMT+ - Mon, 10 Jun 2024 14:20:11 GMTbody:encoding: UTF-8- string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/items/$entity","createdDateTime":"2024-01-30T11:55:52Z","eTag":"\"{2CA620AC-3D42-437A-94B0-7DE8295827B8},2\"","id":"01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y","lastModifiedDateTime":"2024-01-30T11:55:53Z","name":"My- Project No. 1 (19)","webUrl":"https://finn.sharepoint.com/sites/openprojectfilestoragetests/VCR/My%20Project%20No.%201%20(19)","cTag":"\"c:{2CA620AC-3D42-437A-94B0-7DE8295827B8},0\"","size":0,"createdBy":{"application":{"id":"4262df2b-77bb-49c2-a5df-28355da676d2","displayName":"OpenProject+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/items/$entity","createdDateTime":"2024-06-10T14:20:11Z","eTag":"\"{B880A739-43EF-4363-9134-BD49CFE7C910},3\"","id":"01AZJL5PJZU6ALR32DMNBZCNF5JHH6PSIQ","lastModifiedDateTime":"2024-06-10T14:20:12Z","name":"My+ Project No. 1 (19)","webUrl":"https://finn.sharepoint.com/sites/openprojectfilestoragetests/VCR/My%20Project%20No.%201%20(19)","cTag":"\"c:{B880A739-43EF-4363-9134-BD49CFE7C910},0\"","size":0,"createdBy":{"application":{"id":"4262df2b-77bb-49c2-a5df-28355da676d2","displayName":"OpenProjectDev App"},"user":{"displayName":"SharePoint App"}},"lastModifiedBy":{"application":{"id":"4262df2b-77bb-49c2-a5df-28355da676d2","displayName":"OpenProject- Dev App"},"user":{"displayName":"SharePoint App"}},"parentReference":{"driveType":"documentLibrary","driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","id":"01AZJL5PN6Y2GOVW7725BZO354PWSELRRZ","name":"VCR","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50"},"fileSystemInfo":{"createdDateTime":"2024-01-30T11:55:52Z","lastModifiedDateTime":"2024-01-30T11:55:53Z"},"folder":{"childCount":0},"shared":{"scope":"users"}}'- recorded_at: Tue, 30 Jan 2024 11:55:52 GMT+ Dev App"},"user":{"displayName":"SharePoint App"}},"parentReference":{"driveType":"documentLibrary","driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","id":"01AZJL5PN6Y2GOVW7725BZO354PWSELRRZ","name":"VCR","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50"},"fileSystemInfo":{"createdDateTime":"2024-06-10T14:20:11Z","lastModifiedDateTime":"2024-06-10T14:20:12Z"},"folder":{"childCount":0},"shared":{"scope":"users"}}'+ recorded_at: Mon, 10 Jun 2024 14:20:12 GMT- request:method: delete- uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y+ uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PJZU6ALR32DMNBZCNF5JHH6PSIQbody:encoding: US-ASCIIstring: ''headers:Authorization:- Bearer <BEARER TOKEN>- Accept:- - application/json- Content-Type:- - application/jsonUser-Agent:- - httpx.rb/1.2.1+ - httpx.rb/1.2.5+ Accept:+ - "*/*"Accept-Encoding:- gzip, deflateresponse:@@ -193,15 +246,15 @@ http_interactions:Strict-Transport-Security:- max-age=31536000Request-Id:- - 2a31e02e-a29a-443c-9da3-f2e3767198c2+ - b6c9de3e-fb1a-428a-bac3-158a753dae5dClient-Request-Id:- - 2a31e02e-a29a-443c-9da3-f2e3767198c2+ - b6c9de3e-fb1a-428a-bac3-158a753dae5dX-Ms-Ags-Diagnostic:- - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF00000366"}}'+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"FR3PEPF00000553"}}'Date:- - Tue, 30 Jan 2024 11:55:52 GMT+ - Mon, 10 Jun 2024 14:20:11 GMTbody:encoding: UTF-8string: ''- recorded_at: Tue, 30 Jan 2024 11:55:52 GMT+ recorded_at: Mon, 10 Jun 2024 14:20:12 GMTrecorded_with: VCR 6.2.0