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

[#62103] fixed specs after merge

Eric Schubert60a8435d1455
diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.yml
index 33fb209736e..57cf236fdb8 100644
--- a/modules/storages/config/locales/en.yml
+++ b/modules/storages/config/locales/en.yml
@@ -232,43 +232,43 @@ en:
storage_provider: Storage provider
health:
actions:
- run_checks: "Run checks now"
- rerun_checks: "Re-run all checks"
+ rerun_checks: Re-run all checks
+ run_checks: Run checks now
+ checked: Last checked %{datetime}
checks:
+ ampf_configuration:
+ files_request: Fetching group folder files
+ group_folder_contents: Group folder has expected content
+ group_folder_presence: Group folder exists
+ header: Automatically managed project folder configuration
+ userless_access: Server-side request authentication
+ authentication:
+ existing_token: User token
+ header: Authentication
+ non_provisioned_user: User provisioned by IDP
+ provisioned_user_provider: User provisioned by OIDC
+ token_negotiable: User token capabilities
+ user_bound_request: User-based request authentication
+ base_configuration:
+ capabilities_request: Remote file storage capabilities
+ client_id: Client ID
+ client_secret: Client secret
+ dependencies_check: Dependencies
+ dependencies_versions: Dependencies (version)
+ diagnostic_request: Diagnostic request
+ drive_id_format: Drive ID format
+ drive_id_not_found: Drive exists
+ header: Basic configuration
+ host_url_accessible: Host URL accessible
+ storage_configured: Configuration complete
+ tenant_id: Tenant ID
failures:
- zero: "All checks passed"
one: "%{count} check failed"
other: "%{count} checks failed"
+ zero: All checks passed
warnings:
one: "%{count} check returned a warning"
other: "%{count} checks returned a warning"
- base_configuration:
- capabilities_request: "Remote file storage capabilities"
- client_id: "Client ID"
- client_secret: "Client secret"
- dependencies_check: "Dependencies"
- dependencies_versions: "Dependencies (version)"
- diagnostic_request: "Diagnostic request"
- drive_id_format: "Drive ID format"
- drive_id_not_found: "Drive exists"
- header: "Basic configuration"
- host_url_accessible: "Host URL accessible"
- storage_configured: "Configuration complete"
- tenant_id: "Tenant ID"
- authentication:
- existing_token: "User token"
- header: "Authentication"
- non_provisioned_user: "User provisioned by IDP"
- provisioned_user_provider: "User provisioned by OIDC"
- token_negotiable: "User token capabilities"
- user_bound_request: "User-based request authentication"
- ampf_configuration:
- files_request: "Fetching group folder files"
- group_folder_contents: "Group folder has expected content"
- group_folder_presence: "Group folder exists"
- header: "Automatically managed project folder configuration"
- userless_access: "Server-side request authentication"
- checked: Last checked %{datetime}
connection_validation:
app_version_mismatch: The Integration OpenProject app version is not supported. Please update your Nextcloud server.
client_id_wrong: The configured OAuth 2 client id is invalid. Please check the configuration.
@@ -277,13 +277,13 @@ en:
group_folder_not_found: The group folder could not be found.
group_folder_version_mismatch: The Group Folder version is not supported. Please update your Nextcloud server.
host_not_found: No Nextcloud server found at the configured host url. Please check the configuration.
- missing_dependencies: "A required dependency is missing on the file storage. Please add the following dependency: %{dependency}."
+ missing_dependencies: 'A required dependency is missing on the file storage. Please add the following dependency: %{dependency}.'
nextcloud:
unexpected_content: Unexpected content found in the managed group folder.
not_configured: The connection could not be validated. Please finish configuration first.
oauth_request_not_found: OpenProject couldn't find the root folder of Nextcloud using the current logged-in user. Please check the server logs for further information.
oauth_request_unauthorized: The current user isn't authorized to see the main folder of Nextcloud or we couldn't acquire a token. Please check the server logs for further information.
- oauth_token_missing: "OpenProject cannot test the user level communication with Nextcloud as the user did not yet link their Nextcloud account."
+ oauth_token_missing: OpenProject cannot test the user level communication with Nextcloud as the user did not yet link their Nextcloud account.
oidc_cant_acquire_token: Your OpenID Connect setup doesn't provide the necessary audience, nor provides token exchange capabilities. Please check out our documentation for more information.
oidc_cant_exchange_token: There seems to be a problem with the Token Exchange setup on your OpenID Connect Provider. Please check its configuration and try again.
oidc_cant_refresh_token: There was an error while trying to check your access to the storage. Please check the server logs for further information.
@@ -308,17 +308,16 @@ en:
label_pending: Pending
label_skipped: Skipped
label_warning: Warning
- no_report: "No report available"
- no_report_description: "Run the checks now for a full health status report for this file storage."
- open_report: "Open full health report"
+ no_report: No report available
+ no_report_description: Run the checks now for a full health status report for this file storage.
+ open_report: Open full health report
project_folders:
subtitle: Automatically managed project folders
since: since %{datetime}
summary:
- success: "All connections and systems are working as expected."
- failure: "Some checks failed and the system does not work as expected."
- warning: "Some checks returned a warning. This can lead to unexpected behaviour."
- pending: "Some checks are still running."
+ failure: Some checks failed and the system does not work as expected.
+ success: All connections and systems are working as expected.
+ warning: Some checks returned a warning. This can lead to unexpected behaviour.
title: Health status report
health_email_notifications:
description_subscribed: All administrators receive health status email notifications for this storage.
diff --git a/modules/storages/spec/common/storages/peripherals/connection_validators/nextcloud/ampf_configuration_validator_spec.rb b/modules/storages/spec/common/storages/peripherals/connection_validators/nextcloud/ampf_configuration_validator_spec.rb
index 7ddf4de2900..0c8b4f5000d 100644
--- a/modules/storages/spec/common/storages/peripherals/connection_validators/nextcloud/ampf_configuration_validator_spec.rb
+++ b/modules/storages/spec/common/storages/peripherals/connection_validators/nextcloud/ampf_configuration_validator_spec.rb
@@ -116,7 +116,7 @@ module Storages
results = validator.call
expect(results[:group_folder_contents]).to be_a_warning
- expect(results[:group_folder_contents].message).to eq(i18n_message(:unexpected_content))
+ expect(results[:group_folder_contents].message).to eq(i18n_message("nextcloud.unexpected_content"))
end
end
diff --git a/modules/storages/spec/components/storages/admin/health/health_report_component_spec.rb b/modules/storages/spec/components/storages/admin/health/health_report_component_spec.rb
index 4f443208a7c..fc52e3a5731 100644
--- a/modules/storages/spec/components/storages/admin/health/health_report_component_spec.rb
+++ b/modules/storages/spec/components/storages/admin/health/health_report_component_spec.rb
@@ -44,7 +44,7 @@ RSpec.describe Storages::Admin::Health::HealthReportComponent, type: :component
it "renders a placeholder blankslate" do
expect(page).to have_text("No report available")
- expect(page).to have_link("Run tests now")
+ expect(page).to have_link("Run checks now")
end
end
diff --git a/modules/storages/spec/controllers/storages/admin/health_status_controller_spec.rb b/modules/storages/spec/controllers/storages/admin/health_status_controller_spec.rb
index 7d0adb71e2d..2aa40e734ae 100644
--- a/modules/storages/spec/controllers/storages/admin/health_status_controller_spec.rb
+++ b/modules/storages/spec/controllers/storages/admin/health_status_controller_spec.rb
@@ -75,7 +75,7 @@ RSpec.describe Storages::Admin::HealthStatusController do
validator = instance_double(Storages::Peripherals::ConnectionValidators::NextcloudValidator)
report = Storages::Peripherals::ConnectionValidators::ValidatorResult.new
allow(Storages::Peripherals::ConnectionValidators::NextcloudValidator).to receive(:new).and_return(validator)
- allow(validator).to receive_messages(validate: report, report_cache_key: cache_key)
+ allow(validator).to receive_messages(call: report, report_cache_key: cache_key)
end
it "creates and caches a health status report and redirects to show" do
@@ -92,7 +92,7 @@ RSpec.describe Storages::Admin::HealthStatusController do
validator = instance_double(Storages::Peripherals::ConnectionValidators::NextcloudValidator)
report = Storages::Peripherals::ConnectionValidators::ValidatorResult.new
allow(Storages::Peripherals::ConnectionValidators::NextcloudValidator).to receive(:new).and_return(validator)
- allow(validator).to receive_messages(validate: report, report_cache_key: cache_key)
+ allow(validator).to receive_messages(call: report, report_cache_key: cache_key)
end
it "creates and caches a health status report and updates page via turbo stream" do