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
Replace the term nextcloud audience with storage audience
Jan Sandbrinkf1ac9d90e4e3
diff --git a/modules/storages/app/common/storages/peripherals/nextcloud_registry.rb b/modules/storages/app/common/storages/peripherals/nextcloud_registry.rbindex 3c16587afcf..a5842ff819a 100644--- a/modules/storages/app/common/storages/peripherals/nextcloud_registry.rb+++ b/modules/storages/app/common/storages/peripherals/nextcloud_registry.rb@@ -61,7 +61,7 @@ module Storagesnamespace("forms") doregister(:automatically_managed_folders, ::Storages::Admin::Forms::AutomaticallyManagedProjectFoldersFormComponent)register(:general_information, ::Storages::Admin::Forms::GeneralInfoFormComponent)- register(:nextcloud_audience, ::Storages::Admin::Forms::NextcloudAudienceFormComponent)+ register(:storage_audience, ::Storages::Admin::Forms::NextcloudAudienceFormComponent)register(:oauth_application, ::Storages::Admin::OAuthApplicationInfoCopyComponent)register(:oauth_client, ::Storages::Admin::Forms::OAuthClientFormComponent)end@@ -70,7 +70,7 @@ module Storagesregister(:automatically_managed_folders, ::Storages::Admin::AutomaticallyManagedProjectFoldersInfoComponent)register(:general_information, ::Storages::Admin::GeneralInfoComponent)- register(:nextcloud_audience, ::Storages::Admin::NextcloudAudienceInfoComponent)+ register(:storage_audience, ::Storages::Admin::NextcloudAudienceInfoComponent)register(:oauth_application, ::Storages::Admin::OAuthApplicationInfoComponent)register(:oauth_client, ::Storages::Admin::OAuthClientInfoComponent)end@@ -78,7 +78,7 @@ module Storagesnamespace("contracts") doregister(:storage, ::Storages::Storages::NextcloudContract)register(:general_information, ::Storages::Storages::NextcloudGeneralInformationContract)- register(:nextcloud_audience, ::Storages::Storages::NextcloudAudienceContract)+ register(:storage_audience, ::Storages::Storages::NextcloudAudienceContract)endnamespace("models") dodiff --git a/modules/storages/app/common/storages/peripherals/nextcloud_storage_wizard.rb b/modules/storages/app/common/storages/peripherals/nextcloud_storage_wizard.rbindex 65d2aa4f021..22c33b0e9d7 100644--- a/modules/storages/app/common/storages/peripherals/nextcloud_storage_wizard.rb+++ b/modules/storages/app/common/storages/peripherals/nextcloud_storage_wizard.rb@@ -35,10 +35,10 @@ module Storages# OAuth 2.0 SSO- step :nextcloud_audience,+ step :storage_audience,section: :oauth_configuration,if: ->(storage) { storage.authenticate_via_idp? },- completed_if: ->(storage) { storage.nextcloud_audience.present? }+ completed_if: ->(storage) { storage.storage_audience.present? }# Two-Way OAuth 2.0diff --git a/modules/storages/app/components/storages/admin/forms/nextcloud_audience_form_component.html.erb b/modules/storages/app/components/storages/admin/forms/nextcloud_audience_form_component.html.erbindex 939cdd5aeda..45b9345723c 100644--- a/modules/storages/app/components/storages/admin/forms/nextcloud_audience_form_component.html.erb+++ b/modules/storages/app/components/storages/admin/forms/nextcloud_audience_form_component.html.erb@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.<%=component_wrapper(tag: "turbo-frame") do- render(Primer::Beta::Text.new(tag: :div, test_selector: "storage-nextcloud-audience-form")) do+ render(Primer::Beta::Text.new(tag: :div, test_selector: "storage-audience-form")) doprimer_form_with(model:,url: form_url,diff --git a/modules/storages/app/components/storages/admin/forms/nextcloud_audience_form_component.rb b/modules/storages/app/components/storages/admin/forms/nextcloud_audience_form_component.rbindex 1f79f9521d1..c4aa2a3be7e 100644--- a/modules/storages/app/components/storages/admin/forms/nextcloud_audience_form_component.rb+++ b/modules/storages/app/components/storages/admin/forms/nextcloud_audience_form_component.rb@@ -30,12 +30,12 @@#module Storages::Admin::Formsclass NextcloudAudienceFormComponent < StorageFormComponent- def self.wrapper_key = :storage_nextcloud_audience_section+ def self.wrapper_key = :storage_audience_sectionoptions submit_button_disabled: falsedef form_url- query = { origin_component: "nextcloud_audience" }+ query = { origin_component: "storage_audience" }query[:continue_wizard] = storage.id if in_wizardadmin_settings_storage_path(storage, query)diff --git a/modules/storages/app/components/storages/admin/nextcloud_audience_info_component.erb b/modules/storages/app/components/storages/admin/nextcloud_audience_info_component.erbindex 4688465bc30..155416c665d 100644--- a/modules/storages/app/components/storages/admin/nextcloud_audience_info_component.erb+++ b/modules/storages/app/components/storages/admin/nextcloud_audience_info_component.erb@@ -31,11 +31,11 @@ See COPYRIGHT and LICENSE files for more details.component_wrapper(tag: 'turbo-frame') dogrid_layout('op-storage-view--row', tag: :div, align_items: :center) do |grid|grid.with_area(:item, tag: :div, mr: 3) do- concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: 'nextcloud-audience-label')) { I18n.t('storages.file_storage_view.nextcloud_audience') })- concat(configuration_check_label_for(:nextcloud_audience_configured))+ concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: 'storage-audience-label')) { I18n.t('storages.file_storage_view.storage_audience') })+ concat(configuration_check_label_for(:storage_audience_configured))end- grid.with_area(:description, tag: :div, color: :subtle, test_selector: 'nextcloud-audience-description') do+ grid.with_area(:description, tag: :div, color: :subtle, test_selector: 'storage-audience-description') doconcat(render(Primer::Beta::Text.new) { audience_summary })end@@ -48,9 +48,9 @@ See COPYRIGHT and LICENSE files for more details.icon: :pencil,tag: :a,scheme: :invisible,- href: edit_nextcloud_audience_admin_settings_storage_path(storage),- aria: { label: I18n.t('storages.label_edit_nextcloud_audience') },- test_selector: 'storage-edit-nextcloud-audience-button',+ href: edit_storage_audience_admin_settings_storage_path(storage),+ aria: { label: I18n.t('storages.label_edit_storage_audience') },+ test_selector: 'storage-edit-storage-audience-button',data: { turbo_stream: true }))diff --git a/modules/storages/app/components/storages/admin/nextcloud_audience_info_component.rb b/modules/storages/app/components/storages/admin/nextcloud_audience_info_component.rbindex 6c0ff21cad7..70a49123e33 100644--- a/modules/storages/app/components/storages/admin/nextcloud_audience_info_component.rb+++ b/modules/storages/app/components/storages/admin/nextcloud_audience_info_component.rb@@ -31,16 +31,16 @@module Storagesmodule Adminclass NextcloudAudienceInfoComponent < StorageInfoComponent- def self.wrapper_key = :storage_nextcloud_audience_section+ def self.wrapper_key = :storage_audience_sectiondef audience_summary- case storage.nextcloud_audience+ case storage.storage_audiencewhen ""- I18n.t("storages.file_storage_view.nextcloud_audience_blank")+ I18n.t("storages.file_storage_view.storage_audience_blank")when OpenIDConnect::UserToken::IDP_AUDIENCE- I18n.t("storages.file_storage_view.nextcloud_audience_idp")+ I18n.t("storages.file_storage_view.storage_audience_idp")else- I18n.t("storages.file_storage_view.nextcloud_audience_description", audience: storage.nextcloud_audience)+ I18n.t("storages.file_storage_view.storage_audience_description", audience: storage.storage_audience)endendenddiff --git a/modules/storages/app/contracts/storages/storages/nextcloud_audience_contract.rb b/modules/storages/app/contracts/storages/storages/nextcloud_audience_contract.rbindex fb6f4669039..826989a7c18 100644--- a/modules/storages/app/contracts/storages/storages/nextcloud_audience_contract.rb+++ b/modules/storages/app/contracts/storages/storages/nextcloud_audience_contract.rb@@ -30,10 +30,10 @@module Storages::Storagesclass NextcloudAudienceContract < ::ModelContract- attribute :nextcloud_audience- validates :nextcloud_audience, presence: true, if: -> { nextcloud_storage_authenticate_via_idp? }+ attribute :storage_audience+ validates :storage_audience, presence: true, if: -> { nextcloud_storage_authenticate_via_idp? }- # Adding this to allow writing the nextcloud_audience+ # Adding this to allow writing the storage_audienceattribute :provider_fieldsprivatediff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rbindex fed0763d292..c23db058f91 100644--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb@@ -45,7 +45,7 @@ class Storages::Admin::StoragesController < ApplicationController# and set the @<controller_name> variable to the object referenced in the URL.before_action :require_adminbefore_action :find_model_object,- only: %i[show_oauth_application destroy edit edit_host edit_nextcloud_audience confirm_destroy update+ only: %i[show_oauth_application destroy edit edit_host edit_storage_audience confirm_destroy updatechange_health_notifications_enabled replace_oauth_application]before_action :ensure_valid_wizard_parameters, only: [:new]before_action :require_ee_token_for_one_drive, only: [:new]@@ -123,7 +123,7 @@ class Storages::Admin::StoragesController < ApplicationControllerrespond_with_turbo_streamsend- def edit_nextcloud_audience+ def edit_storage_audienceupdate_via_turbo_stream(component: Storages::Admin::Forms::NextcloudAudienceFormComponent.new(@storage))respond_with_turbo_streamsend@@ -253,7 +253,7 @@ class Storages::Admin::StoragesController < ApplicationController"host","authentication_method","audience_configuration",- "nextcloud_audience",+ "storage_audience","oauth_client_id","oauth_client_secret","tenant_id",diff --git a/modules/storages/app/forms/storages/admin/nextcloud_audience_input_form.rb b/modules/storages/app/forms/storages/admin/nextcloud_audience_input_form.rbindex 266037c3b7a..819e4584407 100644--- a/modules/storages/app/forms/storages/admin/nextcloud_audience_input_form.rb+++ b/modules/storages/app/forms/storages/admin/nextcloud_audience_input_form.rb@@ -51,11 +51,11 @@ module Storages::Adminstorage_form.group(data: { "storages--storage-audience-target": "audienceInputWrapper" }) do |toggleable_group|toggleable_group.text_field(- name: :nextcloud_audience,- label: I18n.t("activerecord.attributes.storages/nextcloud_storage.nextcloud_audience"),+ name: :storage_audience,+ label: I18n.t("activerecord.attributes.storages/nextcloud_storage.storage_audience"),required: true,- caption: I18n.t("storages.instructions.nextcloud.nextcloud_audience"),- placeholder: I18n.t("storages.instructions.nextcloud.nextcloud_audience_placeholder"),+ caption: I18n.t("storages.instructions.nextcloud.storage_audience"),+ placeholder: I18n.t("storages.instructions.nextcloud.storage_audience_placeholder"),input_width: :large,data: { "storages--storage-audience-target": "audienceInput" })@@ -65,7 +65,7 @@ module Storages::Adminprivatedef idp?- model.nextcloud_audience == OpenIDConnect::UserToken::IDP_AUDIENCE+ model.storage_audience == OpenIDConnect::UserToken::IDP_AUDIENCEendendenddiff --git a/modules/storages/app/models/storages/nextcloud_storage.rb b/modules/storages/app/models/storages/nextcloud_storage.rbindex 05af29059f7..f5c3afc3783 100644--- a/modules/storages/app/models/storages/nextcloud_storage.rb+++ b/modules/storages/app/models/storages/nextcloud_storage.rb@@ -43,7 +43,7 @@ module Storagesstore_attribute :provider_fields, :group, :stringstore_attribute :provider_fields, :group_folder, :stringstore_attribute :provider_fields, :authentication_method, :string, default: "two_way_oauth2"- store_attribute :provider_fields, :nextcloud_audience, :string+ store_attribute :provider_fields, :storage_audience, :stringdef oauth_configurationPeripherals::OAuthConfigurations::NextcloudConfiguration.new(self)@@ -67,7 +67,7 @@ module Storagesenddef audience- nextcloud_audience+ storage_audienceenddef authenticate_via_idp?@@ -83,7 +83,7 @@ module Storagesstorage_oauth_client_configured: !authenticate_via_storage? || oauth_client.present?,openproject_oauth_application_configured: !authenticate_via_storage? || oauth_application.present?,host_name_configured: host.present? && name.present?,- nextcloud_audience_configured: !authenticate_via_idp? || nextcloud_audience.present?+ storage_audience_configured: !authenticate_via_idp? || storage_audience.present?}enddiff --git a/modules/storages/app/services/storages/storages/set_attributes_service.rb b/modules/storages/app/services/storages/storages/set_attributes_service.rbindex 3f2eb6a90ef..15980a22983 100644--- a/modules/storages/app/services/storages/storages/set_attributes_service.rb+++ b/modules/storages/app/services/storages/storages/set_attributes_service.rb@@ -78,7 +78,7 @@ module Storages::Storagesenddef set_idp_audience- storage.nextcloud_audience = OpenIDConnect::UserToken::IDP_AUDIENCE+ storage.storage_audience = OpenIDConnect::UserToken::IDP_AUDIENCEendendenddiff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex 29f14a8d370..89db2071168 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -9,7 +9,7 @@ en:oauth2_sso: Single-Sign-On through OpenID Connect Identity Provideroauth2_sso_with_two_way_oauth2_fallback: Single-Sign-On with Two-Way OAuth 2.0 as fallbacktwo_way_oauth2: Two-way OAuth 2.0 authorization code flow- nextcloud_audience: Nextcloud Audience+ storage_audience: Storage Audiencestorages/project_storage:storage: Storagestorages/storage:@@ -210,16 +210,16 @@ en:access_management_section: Access and project foldersautomatically_managed_folders: Automatically managed foldersgeneral_information: General information- nextcloud_audience: Nextcloud Audience- nextcloud_audience_blank: No audience has been configured- nextcloud_audience_description: Obtaining tokens for audience "%{audience}".- nextcloud_audience_idp: Using first access token received by identity provider, regardless of audience.- nextcloud_oauth: Nextcloud OAuthoauth_configuration: OAuth configurationone_drive_oauth: Azure OAuthopenproject_oauth: OpenProject OAuthproject_folders: Project foldersredirect_uri: Redirect URI+ storage_audience: Storage Audience+ storage_audience_blank: No audience has been configured+ storage_audience_description: Obtaining tokens for audience "%{audience}".+ storage_audience_idp: Using first access token received by identity provider, regardless of audience.+ storage_oauth: Nextcloud OAuthstorage_provider: Storage providerhealth:checked: Last checked %{datetime}@@ -276,10 +276,10 @@ en:nextcloud:application_link_text: application “Integration OpenProject”integration: Nextcloud Administration / OpenProject- nextcloud_audience: Please enter the Client ID that the Nextcloud instance uses to communicate with the identity provider.- nextcloud_audience_placeholder: e.g. nextcloudoauth_configuration: Copy these values from %{application_link_text}.provider_configuration: Please make sure you have administration privileges in your Nextcloud instance and the %{application_link_text} is installed before doing the setup.+ storage_audience: Please enter the Client ID that the Nextcloud instance uses to communicate with the identity provider.+ storage_audience_placeholder: e.g. nextcloudno_specific_folder: By default, each user will start at their own home folder when they upload a file.no_storage_set_up: There are no file storages set up yet.not_logged_into_storage: To select a project folder, please first login@@ -310,8 +310,8 @@ en:label_creation_time: Creation timelabel_creator: Creatorlabel_delete_storage: Delete storage- label_edit_nextcloud_audience: Edit Nextcloud Audiencelabel_edit_storage_access_management: Edit storage access management+ label_edit_storage_audience: Edit Storage Audiencelabel_edit_storage_automatically_managed_folders: Edit storage automatically managed folderslabel_edit_storage_host: Edit storage hostlabel_existing_manual_folder: Existing folder with manually managed permissionsdiff --git a/modules/storages/config/routes.rb b/modules/storages/config/routes.rbindex 54878cbbb89..3068788acdd 100644--- a/modules/storages/config/routes.rb+++ b/modules/storages/config/routes.rb@@ -62,7 +62,7 @@ Rails.application.routes.draw domember doget :show_oauth_applicationget :edit_host- get :edit_nextcloud_audience+ get :edit_storage_audiencepatch :change_health_notifications_enabledget :confirm_destroydelete :replace_oauth_applicationdiff --git a/modules/storages/spec/common/storages/peripherals/nextcloud_connection_validator_spec.rb b/modules/storages/spec/common/storages/peripherals/nextcloud_connection_validator_spec.rbindex 867502b3597..4a522b7e9d7 100644--- a/modules/storages/spec/common/storages/peripherals/nextcloud_connection_validator_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/nextcloud_connection_validator_spec.rb@@ -256,7 +256,7 @@ RSpec.describe Storages::Peripherals::NextcloudConnectionValidator doendit "returns a validation failure if storage audience isn't set" do- storage.update!(nextcloud_audience: nil)+ storage.update!(storage_audience: nil)expect(subject.type).to eq(:none)expect(subject.error_code).to eq(:wrn_not_configured)diff --git a/modules/storages/spec/common/storages/peripherals/nextcloud_storage_wizard_spec.rb b/modules/storages/spec/common/storages/peripherals/nextcloud_storage_wizard_spec.rbindex 2232ca82d33..041b015aa92 100644--- a/modules/storages/spec/common/storages/peripherals/nextcloud_storage_wizard_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/nextcloud_storage_wizard_spec.rb@@ -146,19 +146,19 @@ RSpec.describe Storages::Peripherals::NextcloudStorageWizard doendit "has new steps pending in correct order" do- expect(wizard.pending_steps).to eq(%i[nextcloud_audience+ expect(wizard.pending_steps).to eq(%i[storage_audienceautomatically_managed_folders])end- context "and the nextcloud audience was set" do+ context "and the storage audience was set" dobefore dowizard.prepare_next_step- model.nextcloud_audience = "nextcloud"+ model.storage_audience = "nextcloud"end- it "finished the nextcloud_audience step" do+ it "finished the storage_audience step" doexpect(wizard.completed_steps).to eq(%i[general_information- nextcloud_audience])+ storage_audience])endit "still didn't specify how to manage folders" do@@ -184,7 +184,7 @@ RSpec.describe Storages::Peripherals::NextcloudStorageWizard doit "has all steps completed" doexpect(wizard.completed_steps).to eq(%i[general_information- nextcloud_audience+ storage_audienceautomatically_managed_folders])endend@@ -204,20 +204,20 @@ RSpec.describe Storages::Peripherals::NextcloudStorageWizard doendit "has new steps pending in correct order" do- expect(wizard.pending_steps).to eq(%i[nextcloud_audience+ expect(wizard.pending_steps).to eq(%i[storage_audienceoauth_applicationoauth_clientautomatically_managed_folders])end- context "and the nextcloud audience was set" do+ context "and the storage audience was set" dobefore dowizard.prepare_next_step- model.nextcloud_audience = "nextcloud"+ model.storage_audience = "nextcloud"end- it "has nextcloud_audience step completed" do- expect(wizard.completed_steps).to eq(%i[general_information nextcloud_audience])+ it "has storage_audience step completed" do+ expect(wizard.completed_steps).to eq(%i[general_information storage_audience])endit "has no oauth_application yet" do@@ -231,7 +231,7 @@ RSpec.describe Storages::Peripherals::NextcloudStorageWizard doit "automatically finished the oauth_application step" doexpect(wizard.completed_steps).to eq(%i[general_information- nextcloud_audience+ storage_audienceoauth_application])end@@ -250,7 +250,7 @@ RSpec.describe Storages::Peripherals::NextcloudStorageWizard doit "finishes the oauth_client step" doexpect(wizard.completed_steps).to eq(%i[general_information- nextcloud_audience+ storage_audienceoauth_applicationoauth_client])end@@ -283,7 +283,7 @@ RSpec.describe Storages::Peripherals::NextcloudStorageWizard doit "has all steps completed" doexpect(wizard.completed_steps).to eq(%i[general_information- nextcloud_audience+ storage_audienceoauth_applicationoauth_clientautomatically_managed_folders])diff --git a/modules/storages/spec/contracts/storages/storages/nextcloud_contract_spec.rb b/modules/storages/spec/contracts/storages/storages/nextcloud_contract_spec.rbindex a2fee562eb4..d99745ee0c4 100644--- a/modules/storages/spec/contracts/storages/storages/nextcloud_contract_spec.rb+++ b/modules/storages/spec/contracts/storages/storages/nextcloud_contract_spec.rb@@ -156,7 +156,7 @@ RSpec.describe Storages::Storages::NextcloudContract, :storage_server_helpers, :context "when the authentication method is oauth2_sso" dolet(:authentication_method) { "oauth2_sso" }- before { storage.nextcloud_audience = "valid_audience" }+ before { storage.storage_audience = "valid_audience" }it { is_expected.to be_valid }end@@ -174,22 +174,22 @@ RSpec.describe Storages::Storages::NextcloudContract, :storage_server_helpers, :endend- describe "nextcloud_audience validation" do+ describe "storage_audience validation" dolet(:storage) do- build(:nextcloud_storage, :as_not_automatically_managed, authentication_method:, nextcloud_audience:)+ build(:nextcloud_storage, :as_not_automatically_managed, authentication_method:, storage_audience:)endcontext "when authentication happens through bidirectional OAuth 2.0" dolet(:authentication_method) { "two_way_oauth2" }- context "and there is no nextcloud_audience" do- let(:nextcloud_audience) { nil }+ context "and there is no storage_audience" do+ let(:storage_audience) { nil }it { is_expected.to be_valid }end- context "and there is a nextcloud_audience" do- let(:nextcloud_audience) { "nextcloud" }+ context "and there is a storage_audience" do+ let(:storage_audience) { "nextcloud" }it { is_expected.to be_valid }end@@ -198,14 +198,14 @@ RSpec.describe Storages::Storages::NextcloudContract, :storage_server_helpers, :context "when authentication happens through a common IDP" dolet(:authentication_method) { "oauth2_sso" }- context "and there is no nextcloud_audience" do- let(:nextcloud_audience) { nil }+ context "and there is no storage_audience" do+ let(:storage_audience) { nil }it { is_expected.not_to be_valid }end- context "and there is a nextcloud_audience" do- let(:nextcloud_audience) { "nextcloud" }+ context "and there is a storage_audience" do+ let(:storage_audience) { "nextcloud" }it { is_expected.to be_valid }enddiff --git a/modules/storages/spec/factories/storage_factory.rb b/modules/storages/spec/factories/storage_factory.rbindex 7ee7564ce49..a2e094e52f4 100644--- a/modules/storages/spec/factories/storage_factory.rb+++ b/modules/storages/spec/factories/storage_factory.rb@@ -92,15 +92,15 @@ FactoryBot.define doprovider_type { Storages::Storage::PROVIDER_TYPE_NEXTCLOUD }sequence(:host) { |n| "https://host#{n}.example.com/" }authentication_method { "two_way_oauth2" }- nextcloud_audience { nil }+ storage_audience { nil }trait :oidc_sso_enabled do- nextcloud_audience { "nextcloud" }+ storage_audience { "nextcloud" }authentication_method { "oauth2_sso" }endtrait :oidc_sso_with_fallback do- nextcloud_audience { "nextcloud" }+ storage_audience { "nextcloud" }authentication_method { "oauth2_sso_with_two_way_oauth2_fallback" }enddiff --git a/modules/storages/spec/features/storages/admin/create_storage_spec.rb b/modules/storages/spec/features/storages/admin/create_storage_spec.rbindex 4f80abc2704..c966d658a18 100644--- a/modules/storages/spec/features/storages/admin/create_storage_spec.rb+++ b/modules/storages/spec/features/storages/admin/create_storage_spec.rb@@ -210,17 +210,17 @@ RSpec.describe "Admin Create a new file storage",click_on "Save and continue"end- aggregate_failures "Nextcloud Audience" do- within_test_selector("storage-nextcloud-audience-form") do+ aggregate_failures "Storage Audience" do+ within_test_selector("storage-audience-form") doclick_on "Save and continue"- expect(page).to have_text("Nextcloud Audience can't be blank.")+ expect(page).to have_text("Storage Audience can't be blank.")- fill_in "Nextcloud Audience", with: "nextcloud"+ fill_in "Storage Audience", with: "nextcloud"click_on "Save and continue"end- expect(page).to have_test_selector("label-nextcloud_audience_configured-status", text: "Completed")- expect(page).to have_test_selector("nextcloud-audience-description", text: "Obtaining tokens for audience \"nextcloud\"")+ expect(page).to have_test_selector("label-storage_audience_configured-status", text: "Completed")+ expect(page).to have_test_selector("storage-audience-description", text: "Obtaining tokens for audience \"nextcloud\"")endaggregate_failures "Automatically managed project folders" dodiff --git a/modules/storages/spec/features/storages/admin/edit_storage_spec.rb b/modules/storages/spec/features/storages/admin/edit_storage_spec.rbindex 1dab17fae53..bb05d6dfa64 100644--- a/modules/storages/spec/features/storages/admin/edit_storage_spec.rb+++ b/modules/storages/spec/features/storages/admin/edit_storage_spec.rb@@ -247,7 +247,7 @@ RSpec.describe "Admin Edit File storage",:nextcloud_storage,:as_automatically_managed,authentication_method: "oauth2_sso",- nextcloud_audience: "",+ storage_audience: "",name: "Cloud Storage")end@@ -273,10 +273,10 @@ RSpec.describe "Admin Edit File storage",expect(page).to have_test_selector("label-host_name_configured-status", text: "Completed")expect(page).to have_test_selector("storage-description", text: "Nextcloud - #{storage.name} - #{storage.host}")- # Nextcloud audience- expect(page).to have_test_selector("nextcloud-audience-label", text: "Nextcloud Audience")- expect(page).to have_test_selector("label-nextcloud_audience_configured-status", text: "Incomplete")- expect(page).to have_test_selector("nextcloud-audience-description", text: "No audience has been configured")+ # Storage audience+ expect(page).to have_test_selector("storage-audience-label", text: "Storage Audience")+ expect(page).to have_test_selector("label-storage_audience_configured-status", text: "Incomplete")+ expect(page).to have_test_selector("storage-audience-description", text: "No audience has been configured")# Automatically managed project foldersexpect(page).to have_test_selector("storage-managed-project-folders-label",@@ -290,18 +290,18 @@ RSpec.describe "Admin Edit File storage",# Only testing interaction with components not tested# in Two-Way OAuth 2.0 case- aggregate_failures "Nextcloud Audience" do- find_test_selector("storage-edit-nextcloud-audience-button").click- within_test_selector("storage-nextcloud-audience-form") do+ aggregate_failures "Storage Audience" do+ find_test_selector("storage-edit-storage-audience-button").click+ within_test_selector("storage-audience-form") doclick_on "Save and continue"- expect(page).to have_text("Nextcloud Audience can't be blank")+ expect(page).to have_text("Storage Audience can't be blank")- fill_in "Nextcloud Audience", with: "schmaudience"+ fill_in "Storage Audience", with: "schmaudience"click_on "Save and continue"end- expect(page).to have_test_selector("label-nextcloud_audience_configured-status", text: "Completed")- expect(page).to have_test_selector("nextcloud-audience-description", text: "Using audience schmaudience")+ expect(page).to have_test_selector("label-storage_audience_configured-status", text: "Completed")+ expect(page).to have_test_selector("storage-audience-description", text: "Using audience schmaudience")endenddiff --git a/modules/storages/spec/models/storages/nextcloud_storage_spec.rb b/modules/storages/spec/models/storages/nextcloud_storage_spec.rbindex 884dd047596..cd79151931f 100644--- a/modules/storages/spec/models/storages/nextcloud_storage_spec.rb+++ b/modules/storages/spec/models/storages/nextcloud_storage_spec.rb@@ -65,7 +65,7 @@ RSpec.describe Storages::NextcloudStorage doaggregate_failures "configuration_checks" doexpect(storage.configuration_checks).to eq(host_name_configured: true,- nextcloud_audience_configured: true,+ storage_audience_configured: true,storage_oauth_client_configured: true,openproject_oauth_application_configured: true)end@@ -85,10 +85,10 @@ RSpec.describe Storages::NextcloudStorage doendend- context "without nextcloud audience" do+ context "without storage audience" dolet(:storage) dobuild(:nextcloud_storage,- nextcloud_audience: "",+ storage_audience: "",oauth_application: build(:oauth_application),oauth_client: build(:oauth_client))end@@ -97,7 +97,7 @@ RSpec.describe Storages::NextcloudStorage doaggregate_failures doexpect(storage.configured?).to be(true)aggregate_failures "configuration_checks" do- expect(storage.configuration_checks[:nextcloud_audience_configured]).to be(true)+ expect(storage.configuration_checks[:storage_audience_configured]).to be(true)endendend@@ -106,7 +106,7 @@ RSpec.describe Storages::NextcloudStorage dolet(:storage) dobuild(:nextcloud_storage,authentication_method: "oauth2_sso",- nextcloud_audience: "",+ storage_audience: "",oauth_application: build(:oauth_application),oauth_client: build(:oauth_client))end@@ -115,7 +115,7 @@ RSpec.describe Storages::NextcloudStorage doaggregate_failures doexpect(storage.configured?).to be(false)aggregate_failures "configuration_checks" do- expect(storage.configuration_checks[:nextcloud_audience_configured]).to be(false)+ expect(storage.configuration_checks[:storage_audience_configured]).to be(false)endendend@@ -138,7 +138,7 @@ RSpec.describe Storages::NextcloudStorage dolet(:storage) dobuild(:nextcloud_storage,authentication_method: "oauth2_sso",- nextcloud_audience: "some")+ storage_audience: "some")endit "returns true" do