Skip to content

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

[#57286] fixed test preparation for CI

Eric Schubert86bb5018c3c3
diff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/set_permissions_command_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/set_permissions_command_spec.rb
index 6fd0509d7f1..0f5e7ef7b2b 100644
--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/set_permissions_command_spec.rb
+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/set_permissions_command_spec.rb
@@ -33,7 +33,7 @@ require_module_spec_helper
RSpec.describe Storages::Peripherals::StorageInteraction::Nextcloud::SetPermissionsCommand, :webmock do
let(:user) { create(:user) }
- let(:storage) { create(:nextcloud_storage_with_local_connection, :as_automatically_managed) }
+ let(:storage) { create(:nextcloud_storage_with_local_connection, :as_automatically_managed, username: "vcr") }
let(:auth_strategy) { Storages::Peripherals::Registry.resolve("nextcloud.authentication.userless").call }
let(:test_folder) do
diff --git a/modules/storages/spec/factories/storage_factory.rb b/modules/storages/spec/factories/storage_factory.rb
index 7922df64a08..f31ed752dd2 100644
--- a/modules/storages/spec/factories/storage_factory.rb
+++ b/modules/storages/spec/factories/storage_factory.rb
@@ -94,7 +94,7 @@ FactoryBot.define do
trait :as_automatically_managed do
automatic_management_enabled { true }
- username { ENV.fetch("NEXTCLOUD_LOCAL_GROUP_USER_NAME", "OpenProject") }
+ username { "OpenProject" }
password { ENV.fetch("NEXTCLOUD_LOCAL_GROUP_USER_PASSWORD", "Password123") }
end
end