Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2022-07-23 01:54:35 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2022-07-23 01:54:44 +0300
commit2af2bd80f78dd1669240f7d141b6001d02c3820f (patch)
tree37acd27d61395cb78cae685f0079e5f15bdc5f74 /spec
parent37a00173f5eec8bb7b63c56caad5d8a3bd194398 (diff)
parent419ed4d9fc6c7ab52fbfa4fae6993c4ee7e3504d (diff)
Merge pull request #8378 from SuperTux88/add-dummy-host-meta
Add dummy host meta
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/migration_service_spec.rb2
-rw-r--r--spec/lib/archive_importer/post_importer_spec.rb2
-rw-r--r--spec/lib/archive_importer_spec.rb2
-rw-r--r--spec/lib/archive_validator/author_private_key_validator_spec.rb2
-rw-r--r--spec/spec_helper.rb4
5 files changed, 0 insertions, 12 deletions
diff --git a/spec/integration/migration_service_spec.rb b/spec/integration/migration_service_spec.rb
index 84de21a6a..9ec5680f1 100644
--- a/spec/integration/migration_service_spec.rb
+++ b/spec/integration/migration_service_spec.rb
@@ -438,8 +438,6 @@ describe MigrationService do
expect(DiasporaFederation::Discovery::Discovery).to receive(:new).with(archive_author).and_call_original
stub_request(:get, "https://#{old_pod_hostname}/.well-known/webfinger?resource=acct:#{archive_author}")
.to_return(status: 404)
- stub_request(:get, %r{https*://#{old_pod_hostname}/\.well-known/host-meta})
- .to_return(status: 404)
expect_relayable_parent_fetch(archive_author, existing_subscription_guid)
.and_raise(DiasporaFederation::Federation::Fetcher::NotFetchable)
diff --git a/spec/lib/archive_importer/post_importer_spec.rb b/spec/lib/archive_importer/post_importer_spec.rb
index 9d7852349..15df64f88 100644
--- a/spec/lib/archive_importer/post_importer_spec.rb
+++ b/spec/lib/archive_importer/post_importer_spec.rb
@@ -87,8 +87,6 @@ describe ArchiveImporter::PostImporter do
:get,
%r{https*://old_pod\.nowhere/\.well-known/webfinger\?resource=acct:old_id@old_pod\.nowhere}
).to_return(status: 404, body: "", headers: {})
- stub_request(:get, %r{https*://old_pod\.nowhere/\.well-known/host-meta})
- .to_return(status: 404, body: "", headers: {})
expect {
instance.import
diff --git a/spec/lib/archive_importer_spec.rb b/spec/lib/archive_importer_spec.rb
index 1579371c9..2ad211965 100644
--- a/spec/lib/archive_importer_spec.rb
+++ b/spec/lib/archive_importer_spec.rb
@@ -95,8 +95,6 @@ describe ArchiveImporter do
before do
stub_request(:get, %r{https*://old_pod\.nowhere/\.well-known/webfinger\?resource=acct:old_id@old_pod\.nowhere})
.to_return(status: 404, body: "", headers: {})
- stub_request(:get, %r{https*://old_pod\.nowhere/\.well-known/host-meta})
- .to_return(status: 404, body: "", headers: {})
end
it "doesn't fail" do
diff --git a/spec/lib/archive_validator/author_private_key_validator_spec.rb b/spec/lib/archive_validator/author_private_key_validator_spec.rb
index cbaae8a8e..544661ea5 100644
--- a/spec/lib/archive_validator/author_private_key_validator_spec.rb
+++ b/spec/lib/archive_validator/author_private_key_validator_spec.rb
@@ -56,8 +56,6 @@ describe ArchiveValidator::AuthorPrivateKeyValidator do
before do
stub_request(:get, %r{https*://old_pod\.nowhere/\.well-known/webfinger\?resource=acct:old_id@old_pod\.nowhere})
.to_return(status: 404, body: "", headers: {})
- stub_request(:get, %r{https*://old_pod\.nowhere/\.well-known/host-meta})
- .to_return(status: 404, body: "", headers: {})
end
include_examples "validation result is valid"
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index e50ea8b09..3926b7f9f 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -108,10 +108,6 @@ RSpec.configure do |config|
:get,
"https://example.com/.well-known/webfinger?resource=acct:bob@example.com"
)
- stub_request(
- :get,
- "https://example.com/.well-known/host-meta"
- )
$process_queue = false
end