Skip to content

Commit

Permalink
Fix ./modules/storages/spec/features/manage_project_storage_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ba1ash committed Jul 26, 2023
1 parent ec06dbc commit 6679324
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
let(:storage) { create(:nextcloud_storage, :as_automatically_managed, oauth_application:) }
let(:project) do
create(:project,
name: "Project name without sequence",
members: { user => role },
enabled_module_names: %i[storages work_package_tracking])
end
Expand Down Expand Up @@ -87,7 +88,11 @@
.to_return(status: 207, body: folder1_xml_response, headers: {})
stub_request(:get, "#{storage.host}/ocs/v1.php/apps/integration_openproject/fileinfo/11")
.to_return(status: 200, body: folder1_fileinfo_response.to_json, headers: {})
stub_request(:get, "https://host1.example.com/ocs/v1.php/cloud/user").to_return(status: 200, body: "{}")
stub_request(:get, "#{storage.host}/ocs/v1.php/cloud/user").to_return(status: 200, body: "{}")
stub_request(
:delete,
"#{storage.host}/remote.php/dav/files/OpenProject/OpenProject/Project%20name%20without%20sequence%20(#{project.id})"
).to_return(status: 200, body: "", headers: {})

storage
project
Expand Down

0 comments on commit 6679324

Please sign in to comment.