Fix FetchRemoteKeyService possibly returning incorrect keys (#38511)
This commit is contained in:
1 parent
8733d09dc4
commit
e9a051fcef
2 files changed
+20
-5
No files matched your search
@@ -64,6 +64,8 @@ RSpec.describe ActivityPub::FetchRemoteKeyService do
|
||||
|
||||
it 'returns the expected account' do
|
||||
expect(keypair.account.uri).to eq 'https://example.com/alice'
|
||||
expect(keypair.uri).to eq public_key_id
|
||||
expect(keypair.public_key).to eq public_key_pem
|
||||
end
|
||||
end
|
||||
|
||||
@@ -76,6 +78,8 @@ RSpec.describe ActivityPub::FetchRemoteKeyService do
|
||||
|
||||
it 'returns the expected account' do
|
||||
expect(keypair.account.uri).to eq 'https://example.com/alice'
|
||||
expect(keypair.uri).to eq public_key_id
|
||||
expect(keypair.public_key).to eq public_key_pem
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user