Remove old stubs for /.well-known/host-meta

Since the diaspora_federation gem doesn't try to access host-meta
anymore, there is no need to create stubs for it anymore.
This commit is contained in:
Benjamin Neff 2022-07-23 00:21:06 +02:00
parent ed8e340fa2
commit 419ed4d9fc
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
5 changed files with 0 additions and 12 deletions

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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