mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 01:18:35 +01:00
Break out into a multi-module project
This commit is contained in:
3
service/src/test/resources/fixtures/contact.json
Normal file
3
service/src/test/resources/fixtures/contact.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"token" : "BQVVHxMt5zAFXA"
|
||||
}
|
||||
4
service/src/test/resources/fixtures/contact.relay.json
Normal file
4
service/src/test/resources/fixtures/contact.relay.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"token" : "BQVVHxMt5zAFXA",
|
||||
"relay" : "whisper"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"token" : "BQVVHxMt5zAFXA",
|
||||
"voice" : true,
|
||||
"video" : true,
|
||||
"relay" : "whisper"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"token" : "BQVVHxMt5zAFXA",
|
||||
"voice" : true,
|
||||
"relay" : "whisper"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"messages" : [{
|
||||
"type" : 1,
|
||||
"destinationDeviceId" : 1,
|
||||
"body" : "Zm9vYmFyego",
|
||||
"timestamp" : 1234
|
||||
},
|
||||
{
|
||||
"type" : 1,
|
||||
"destinationDeviceId" : 3,
|
||||
"body" : "Zm9vYmFyego",
|
||||
"timestamp" : 1234
|
||||
}]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"messages" : [{
|
||||
"type" : 1,
|
||||
"destinationDeviceId" : 1,
|
||||
"destinationRegistrationId" : 222,
|
||||
"body" : "Zm9vYmFyego",
|
||||
"timestamp" : 1234
|
||||
},
|
||||
{
|
||||
"type" : 1,
|
||||
"destinationDeviceId" : 2,
|
||||
"destinationRegistrationId" : 333,
|
||||
"body" : "Zm9vYmFyego",
|
||||
"timestamp" : 1234
|
||||
}]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"messages" : [{
|
||||
"type" : 1,
|
||||
"destinationDeviceId" : 1,
|
||||
"destinationRegistrationId" : 222,
|
||||
"body" : "Zm9vYmFyego",
|
||||
"timestamp" : 1234
|
||||
},
|
||||
{
|
||||
"type" : 1,
|
||||
"destinationDeviceId" : 2,
|
||||
"destinationRegistrationId" : 999,
|
||||
"body" : "Zm9vYmFyego",
|
||||
"timestamp" : 1234
|
||||
}]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"messages" : [{
|
||||
"type" : 1,
|
||||
"destinationDeviceId" : 1,
|
||||
"body" : "Zm9vYmFyego",
|
||||
"timestamp" : 1234
|
||||
}]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"messages" : [{
|
||||
"type": 1,
|
||||
"destination": "+14151111111",
|
||||
"body": "Zm9vYmFyego",
|
||||
"timestamp": "1234"
|
||||
}]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"staleDevices" : [2]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"missingDevices" : [2],
|
||||
"extraDevices" : []
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"missingDevices" : [2],
|
||||
"extraDevices" : [3]
|
||||
}
|
||||
7
service/src/test/resources/fixtures/prekey.json
Normal file
7
service/src/test/resources/fixtures/prekey.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"deviceId" : 1,
|
||||
"keyId" : 1234,
|
||||
"publicKey" : "test",
|
||||
"identityKey" : "identityTest",
|
||||
"registrationId" : 987
|
||||
}
|
||||
4
service/src/test/resources/fixtures/prekey_v2.json
Normal file
4
service/src/test/resources/fixtures/prekey_v2.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"keyId" : 1234,
|
||||
"publicKey" : "test"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"devices":[{"id":1,"name":"foo","authToken":"bar","salt":"salt","signalingKey":"keykey","gcmId":"gcm-id","apnId":"apn-id","voipApnId":"voipapn-id","pushTimestamp":0,"fetchesMessages":true,"registrationId":1234,"signedPreKey":{"keyId":5,"publicKey":"public-signed","signature":"signtture-signed"},"lastSeen":31337,"created":31336,"userAgent":"CoolClient","unauthenticatedDelivery":true}],"identityKey":"identity_key_value","name":"OneProfileName","avatar":null,"avatarDigest":null,"pin":"******","uak":"AAAAAAAAAAAAAAAAAAAAAA==","uua":false}
|
||||
@@ -0,0 +1 @@
|
||||
{"devices":[{"id":1,"name":"2foo","authToken":"2bar","salt":"2salt","signalingKey":"2keykey","gcmId":"2gcm-id","apnId":"2apn-id","voipApnId":"2voipapn-id","pushTimestamp":0,"fetchesMessages":true,"registrationId":1234,"signedPreKey":{"keyId":5,"publicKey":"public-signed","signature":"signtture-signed"},"lastSeen":31337,"created":31336,"userAgent":"CoolClient","unauthenticatedDelivery":true}],"identityKey":"different_identity_key_value","name":"TwoProfileName","avatar":null,"avatarDigest":null,"pin":"******","uak":"AAAAAAAAAAAAAAAAAAAAAA==","uua":false}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Response>
|
||||
<Play>https://foo.com/bar/en-US/verification.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/1_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/2_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/3_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/4_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/5_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/6_falling.mp3</Play>
|
||||
<Pause length="1"/>
|
||||
<Play>https://foo.com/bar/en-US/verification.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/1_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/2_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/3_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/4_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/5_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/6_falling.mp3</Play>
|
||||
<Pause length="1"/>
|
||||
<Play>https://foo.com/bar/en-US/verification.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/1_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/2_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/3_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/4_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/5_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/en-US/6_falling.mp3</Play>
|
||||
</Response>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Response>
|
||||
<Play>https://foo.com/bar/pt-BR/verification.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/1_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/2_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/3_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/4_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/5_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/6_falling.mp3</Play>
|
||||
<Pause length="1"/>
|
||||
<Play>https://foo.com/bar/pt-BR/verification.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/1_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/2_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/3_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/4_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/5_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/6_falling.mp3</Play>
|
||||
<Pause length="1"/>
|
||||
<Play>https://foo.com/bar/pt-BR/verification.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/1_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/2_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/3_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/4_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/5_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/pt-BR/6_falling.mp3</Play>
|
||||
</Response>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Response>
|
||||
<Play>https://foo.com/bar/ru/verification.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/1_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/2_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/3_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/4_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/5_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/6_falling.mp3</Play>
|
||||
<Pause length="1"/>
|
||||
<Play>https://foo.com/bar/ru/verification.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/1_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/2_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/3_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/4_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/5_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/6_falling.mp3</Play>
|
||||
<Pause length="1"/>
|
||||
<Play>https://foo.com/bar/ru/verification.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/1_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/2_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/3_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/4_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/5_middle.mp3</Play>
|
||||
<Play>https://foo.com/bar/ru/6_falling.mp3</Play>
|
||||
</Response>
|
||||
Reference in New Issue
Block a user