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
[#57706] removed reference from deprecated test file
Eric Schubert12538cf124f3
diff --git a/modules/storages/spec/common/storages/peripherals/registry_spec.rb b/modules/storages/spec/common/storages/peripherals/registry_spec.rbindex 4f614910bb0..bcf7ee97c0f 100644--- a/modules/storages/spec/common/storages/peripherals/registry_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/registry_spec.rb@@ -147,72 +147,6 @@ RSpec.describe Storages::Peripherals::Registry, :webmock doendend- describe "#remove_user_from_group" do- let(:expected_response) do- {- status: 200,- body: expected_response_body,- headers: {}- }- end- let(:expected_response_body) do- <<~XML- <?xml version="1.0"?>- <ocs>- <meta>- <status>ok</status>- <statuscode>100</statuscode>- <message>OK</message>- <totalitems></totalitems>- <itemsperpage></itemsperpage>- </meta>- <data/>- </ocs>- XML- end-- before do- stub_request(:delete, "https://example.com/ocs/v1.php/cloud/users/#{origin_user_id}/groups?groupid=#{storage.group}")- .with(- headers: {- "Authorization" => "Basic T3BlblByb2plY3Q6T3BlblByb2plY3RTZWN1cmVQYXNzd29yZA==",- "OCS-APIRequest" => "true"- }- )- .to_return(expected_response)- end-- it "removes user from the group" do- result = registry.resolve("nextcloud.commands.remove_user_from_group").call(storage:, user: origin_user_id)- expect(result).to be_success- end-- context "when Nextcloud reponds with 105 code in the response body" do- let(:expected_response_body) do- <<~XML- <?xml version="1.0"?>- <ocs>- <meta>- <status>failure</status>- <statuscode>105</statuscode>- <message>Not viable to remove user from the last group you are SubAdmin of</message>- <totalitems></totalitems>- <itemsperpage></itemsperpage>- </meta>- <data/>- </ocs>- XML- end-- it "responds with a failure and parses message from the xml response" do- result = registry.resolve("nextcloud.commands.remove_user_from_group").call(storage:, user: origin_user_id)- expect(result).to be_failure- expect(result.errors.log_message)- .to eq("Not viable to remove user from the last group you are SubAdmin of")- end- end- end-describe "#delete_folder_command" dolet(:auth_strategy) { Storages::Peripherals::StorageInteraction::AuthenticationStrategies::BasicAuth.strategy }